Posted: Thu May 29, 2008 8:13 pm Post subject: G2 Nightly w/PicLens integration + PHPNuke + G2 Integration
I've installed the nightly build of Gallery2 which has integration for the PicLens plugin featured by CoolIris. I've used this plugin on standalone installations of Gallery2 but I wanted to see if I could get that integration to come through when browsing the gallery through PHPNuke.
the first is OK, but the second, for some reason, isn't. i'll ask one of the g2 devs if they can see why the generated JS code is different (g2 generates both lines of code). _________________
Posted: Sat May 31, 2008 1:03 pm Post subject: Re: G2 Nightly w/PicLens integration + PHPNuke + G2 Integrat
dari wrote: ›
cute chinchillas
i see the problem.
...
the first is OK, but the second, for some reason, isn't. i'll ask one of the g2 devs if they can see why the generated JS code is different (g2 generates both lines of code).
So I got a really interesting one...
For some odd reason, when I included the G2 Sidebar, piclens worked, so long as I had the pictures in the root of Gallery2 (no albums). Now that I do have a picture in the root, and one album, piclens is no longer working. Additionally, the "Random Picture" in both the sidebar and the random block aren't random at all, they're cycling only through the album photos (odd).
I most certainly want to use albums... but I still want piclens to have a shot at working. I looked at the code you posted, and yeah, I'm not able to really tell a difference myself but then again, that's because I'm not terribly savvy with php.
Thanks for the investigation, looking forward to results.
Posted: Mon Jun 02, 2008 11:21 am Post subject: Re: G2 Nightly w/PicLens integration + PHPNuke + G2 Integrat
dari wrote: › does this same behavior translate over to the standalone g2?
Well, not quite.
Pictures installed in the base will show the plugin, whereas the first photos for albums will not resolve the plugin (this is normal behavior from when I modified Gallery2 myself before using the nightly build to work with Piclens). I expected this because the collection of photos generates based on the album its assocated with - so if it has no album (installed in Gallery2 root) then the xml.php parses those and the plugin initializes for only those pictures. I've noticed that the block-G2_Sidebar.php and block-G2_Random.php will both initialize the Piclens plugin for root based pictures. It will, however, not initialize for pictures contained within an album. Also when browsing any picture (those in the root, or those in albums) will not initialize the plugin (as opposed to when browsing the gallery directly, it will initialize for the album you're presently in).
Synopsis
PHP-Nuke based browsing
Picture in Gallery2 root (Sidebar or Random blocks): YES
Picture in Gallery2 album (Sidebar or Random blocks): NO
Browsing Gallery2 root (browsing from modules): NO
Browsing Gallery2 album (browsing from modules): NO
Gallery2 Base browsing
Picture in Gallery2 root: YES (only root pictures)
Picture in Gallery2 albums: YES (only album pictures)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum