Forum Activity for @ultrajam

SteveX
@ultrajam
12/29/17 04:12:42PM
2,584 posts

Jamroom Optimization


Installation and Configuration

Another thought, you have 7 xxlarge images in that page, only one looks like it should be xxlarge. So you check your skin templates for oversized images.
SteveX
@ultrajam
12/29/17 04:09:37PM
2,584 posts

Jamroom Optimization


Installation and Configuration

Hi

My first thought is that you could turn off developer mode and run the page speed test again? Then step through the report and action the obvious.

I would ignore the amp stuff for now, see where that goes before changing your website to comply.

Happy new year!
SteveX
@ultrajam
12/29/17 03:58:34PM
2,584 posts

Documentation pagination?


Using Jamroom

I don't know about pagination of the ToC, but I would mention that a Table of Contents should be available on a single page view - people will use their browser search with page to find the keyword they are looking for rather than scrolling down. If it were 50,000 lines I would want it all on the same page as well, I don't think it will work for you paginating a ToC.
SteveX
@ultrajam
12/28/17 03:03:13PM
2,584 posts

Happy Holiday!


Off Topic

Late wishes for Happy Christmas Holidays to you all. Hope it was great for you.

No Santa here, snow arrived on Boxing Day evening. It looked lovely :)
SteveX
@ultrajam
12/28/17 12:38:00PM
2,584 posts

jrGallery db_update_item listener


Jamroom Developers

Yes, that's going to work perfectly.

Thanks Man, much appreciated :)
SteveX
@ultrajam
12/28/17 12:31:00PM
2,584 posts

jrGallery db_update_item listener


Jamroom Developers

Ah OK, I hadn't realised that!

I will give it a try.

Thanks Michael :)
SteveX
@ultrajam
12/28/17 12:27:41PM
2,584 posts

jrGallery db_update_item listener


Jamroom Developers

Ideally once. My hotspots module references the gallery using the gallery title. When the title changes I need to update the reference in the Hotspots datastore. And delete it if that gallery no longer exists.

For your code suggestion there where would I set the flag to off?
updated by @ultrajam: 12/28/17 12:29:08PM
SteveX
@ultrajam
12/28/17 12:20:16PM
2,584 posts

jrGallery db_update_item listener


Jamroom Developers

I guess it's a separate listener, but I'm also going to need to update my module's datastore when the last gallery image is deleted. Just mentioning that here to remind myself later ;)
SteveX
@ultrajam
12/28/17 12:13:23PM
2,584 posts

jrGallery db_update_item listener


Jamroom Developers

Yes, that's what I'm trying too avoid, but it's many separate db_update_item triggers - from a db_update_item listener I'm not sure how to unset the flag after the last image has been updated. There's no way of telling if it's the last iteration. Also no way of passing the old gallery title (which I would have to get from the db on the first item) between iterations, so I would be getting from and then writing to the database for each image.

Here is a listener with an fdebug to the log:
function ujHotspots_db_update_item_listener($_data, $_user, $_conf, $_args, $event)
{ if (isset($_args['module']) && $_args['module'] == 'jrGallery') { fdebug("ujHotspots_db_update_item_listener",$_data,$_args, $event); } return $_data; }

And here is the output ($_data,$_args, $event) for a 2 image gallery:
Quote: (2017-12-28T20:04:42+00:00.0.68599500 : 0.012)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
|ujHotspots_db_update_item_listener|

(2017-12-28T20:04:42+00:00.0.68599500 : 0.012)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
Array
(
[gallery_title] => Banksy Gallery
[gallery_title_url] => banksy-gallery
[gallery_order] => 2
[_updated] => 1514393591
)

(2017-12-28T20:04:42+00:00.0.68599500 : 0.012)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
Array
(
[_item_id] => 1
[module] => jrGallery
[jrcore_unique_trigger_id] => 9815d1287d1054c2ac358c9460db6667
)

(2017-12-28T20:04:42+00:00.0.68599500 : 0.012)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
|db_update_item|

(2017-12-28T20:04:42+00:00.0.68698600 : 0.013)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
|ujHotspots_db_update_item_listener|

(2017-12-28T20:04:42+00:00.0.68698600 : 0.013)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
Array
(
[gallery_title] => Banksy Gallery
[gallery_title_url] => banksy-gallery
[gallery_order] => 3
[_updated] => 1514393591
)

(2017-12-28T20:04:42+00:00.0.68698600 : 0.013)-(mem: 2MB)-(pid: 6174)-(ip: 92.238.255.12)-(user: SteveX)-(uri: POST /gallery/update_save/__ajax=1)
Array
(
[_item_id] => 2
[module] => jrGallery
[jrcore_unique_trigger_id] => 002d51479d35e48108c6a997fd295506
)
SteveX
@ultrajam
12/28/17 11:47:47AM
2,584 posts

profile_stats function example


Jamroom Developers

Hi Michael. Yes that will work - simpler than I was thinking, and simplest is definitely best!

Thanks :)
  22