Forum Activity for @michael

michael
@michael
01/03/18 11:28:29AM
7,827 posts

Login problems


Using Jamroom

If you have the option from your server control panel to upgrade to php7 try upgrading.
michael
@michael
01/03/18 01:04:18AM
7,827 posts

All about changelog.txt?


Using Jamroom

All the changelogs can be found via:
ACP -> MODULES -> CORE -> MARKETPLACE -> reload modules or skins

You'll see 'changelog' link that will open a popup window.
changelog.jpg changelog.jpg - 152KB
michael
@michael
12/31/17 04:09:59PM
7,827 posts

Documentation pagination?


Using Jamroom

Looks like google has indexed all your pages, cant find one going "No Results".
michael
@michael
12/29/17 10:45:59PM
7,827 posts

Documentation pagination?


Using Jamroom

No pagination by default, but when it gets to 500 entries, I'll take a look at it if you like.
michael
@michael
12/29/17 10:43:51PM
7,827 posts

Unable to Retrieve Quota Settings for Module


Jamroom Developers

The normal fix for that is run the integrity check.

The cause is probably the module was activated, but the datastore hasn't been created yet.

Try that first.
michael
@michael
12/28/17 12:28:59PM
7,827 posts

jrGallery db_update_item listener


Jamroom Developers

So putting flags in the code (as above) should do the trick.

--edit--
A flag will only last for this round of processing, as soon as the next round starts (a page refresh, another url call) the flag will be gone.
updated by @michael: 12/28/17 12:30:00PM
michael
@michael
12/28/17 12:24:03PM
7,827 posts

jrGallery db_update_item listener


Jamroom Developers

so you want that to only fire ONCE or once for each separate (something)?

function ujHotspots_db_update_item_listener($_data, $_user, $_conf, $_args, $event)
{ if (isset($_args['module']) && $_args['module'] == 'jrGallery' && !jrCore_get_flag('ujHotspots_already_done')) { fdebug("ujHotspots_db_update_item_listener",$_data,$_args, $event); jrCore_set_flag('ujHotspots_already_done', 1); } return $_data; }
michael
@michael
12/28/17 11:47:15AM
7,827 posts

jrGallery db_update_item listener


Jamroom Developers

That will update every image in that gallery. The 'gallery_title' and the 'gallery_title_url' will be updated.

What I think you're trying to avoid is having your custom modules check function fire too many times. If thats the case, what about setting a flag when the first one runs, then check if that flag has been set before running the second time.

similar to this (screenshot)
flags.jpg flags.jpg - 182KB
michael
@michael
12/28/17 11:38:57AM
7,827 posts

profile_stats function example


Jamroom Developers

If its for a profile's side bar or similar, you could use the jrCore_list call with the return_count parameter something like:
{jrCore_list module="jrGallery" profile_id=2 group_by="gallery_title_url" return_count=true}

Will that work for you?
  161