Forum Activity for @michael

michael
@michael
11/12/17 11:07:45PM
7,823 posts

Audio Files not getting processed and player not loading.


Design and Skin Customization

duke:
if this helps modules/jrSystemTools/tools/sox is not working correctly

You can use a different version of sox than the one packaged with jamroom if you like, info here:

Docs: "Howto use a different ffmpeg binary"
https://www.jamroom.net/the-jamroom-network/documentation/howto/4641/howto-use-a-different-ffmpeg-binary
michael
@michael
11/12/17 10:51:25PM
7,823 posts

Communicating an array across AJAX boundaries


Jamroom Developers

Stored in memory across sessions, yup that's a difficult ask. :p

The jrCore_get_temp_value() function set do not have a cache system built into it, so it will be accessing the db for each request.

A quick look for functions that do have a caching system in them turned up this one from the jrBanned module that might be useful to you:


/**
 * Get current banned config for a given ban type
 * @param $type string
 * @return bool|mixed|string
 */
function jrBanned_get_banned_config($type)
{ if (!is_array($type)) { $type = array($type); } $key = "jrbanned_is_banned_" . json_encode($type); if (!$_rt = jrCore_get_flag($key)) { if (!$_rt = jrCore_is_cached('jrBanned', $key, false, false)) { $tbl = jrCore_db_table_name('jrBanned', 'banned'); $req = "SELECT ban_type AS t, ban_value AS v FROM {$tbl} WHERE ban_type IN('" . implode("','", $type) . "')"; $_rt = jrCore_db_query($req, 'NUMERIC'); if (!$_rt || !is_array($_rt)) { $_rt = 'no_items'; } jrCore_set_flag($key, $_rt); jrCore_add_to_cache('jrBanned', $key, $_rt, 0, 0, false, false); } } if (!$_rt || !is_array($_rt) || count($_rt) === 0) { // No items of this type return false; } return $_rt; }

What its doing is checking if there is a flag ( IN MEMORY ), if no, check if there is a cached item ( FILESYSTEM / MEMORY ), if not, get it from the database ( DATABASE ).

So if its a performance issue reason you want to bypass the database, that structure looks about as good as you could get i reckon. Adjust as needed for your own module and situation.
michael
@michael
11/12/17 10:39:48PM
7,823 posts

Comments and Biog not showing on members page


Ning To Jamroom

sorry, im not really understanding the problem in relation to the screenshots. I see 'carcso' has a lot of modules active, but the profile is still pending activation.

I see the "Full Member" quota is allowed to comment on things.

I see that 'Bun' has just joined and only seems to have access to the comments module, so I guess 'Bun' is in the "Full Member" quota.

Passed that I'm lost.
michael
@michael
11/12/17 10:22:34PM
7,823 posts

Communicating an array across AJAX boundaries


Jamroom Developers

For storing things and moving them around during a single page load my first idea would be to see if a flag would work:
$_stuff = array(
 'things' => 'some things',
 'bits' => 'and pieces'
);
jrCore_set_flag('some_key', $_stuff);
// then later somewhere else
$_stuff = jrCore_get_flag('some_key');

But you're wanting to save it over to a different page, so flags aren't going to be useful, my first thought for this scenario is:
jrCore_set_temp_value('xxYourModule', 'some_key', $_stuff);
// then later somewhere else
$_stuff = jrCore_get_temp_value('some_key');

But you're not wanting to use the database. How would you like to do it outside of the jamroom system?
michael
@michael
11/10/17 08:16:02PM
7,823 posts

Alternative to Mailgun


Using Jamroom

might be a drop-in alternative: http://www.serversmtp.com/en

Haven't used them though, but if you look for "SMTP server" there might be more.

Put the details into:
your-site.com/mailer/admin/global/section=delivery+settings

and choose "External Mail Server"
michael
@michael
11/10/17 12:46:32AM
7,823 posts

Audio Files not getting processed and player not loading.


Design and Skin Customization

If you cant post the login details so I can look at the template code for your page, you'll need to look for what is wrong. I suspect your item_detail.tpl page is not up-to-date with the latest version.

As a test try changing to a current non-altered jamroom skin like elastic2 and see if the message is still visible. If it goes away when you change to the elastic skin then the message is a result of something in your .tpl file, probably a check for the wrong file type.
michael
@michael
11/10/17 12:40:55AM
7,823 posts

Audio Files not getting processed and player not loading.


Design and Skin Customization

What is the url of your site where I can see "This audio file is currently being processed and will appear here when complete."

What is the admin username and password for your site.
michael
@michael
11/10/17 12:04:51AM
7,823 posts

Audio Files not getting processed and player not loading.


Design and Skin Customization

Thats a big clue. URL for one of the audio files that shows the "this is still being processed" message please.

and the logins for admin so I can see what that template looks like.
michael
@michael
11/09/17 10:13:21PM
7,823 posts

Group members unable to access Group Discussions intermittently


Using Jamroom

LOL, 'intermittently' is fine when accompanied by steps to reproduce it. Its the "something is wrong somewhere sometimes" overtones of 'intermittently' that make it a daunting task to even start to look for what and where then figure out the why.

I like strumlia's idea, that could be it. Another guess could be caching related but its a far stretch, thinking maybe they are seeing the page as cached for a user not allowed to access it. And another guess could be their session perhaps. Since its the first page they land on after having the session just start up fresh maybe the "ok" needed to show that page isn't there yet and will be fore the next page load, but because that page has now been cached for them they see the cache version of it.

just guesses though.
  173