Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

G2 Nightly w/PicLens integration + PHPNuke + G2 Integration

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Thu May 29, 2008 8:13 pm    Post subject: G2 Nightly w/PicLens integration + PHPNuke + G2 Integration Reply with quote

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.

Gallery2 installation: www.janetandbrian.info/modules/gallery2/main.php

As you can see, the plugin works fine when I directly go to the installation. It just doesn't pick up when I'm not.

maybe it will take some customization of modules.php of PHPNuke? Anyone have some hints or ideas?

To get it to work manually (before I got a nightly build) I did the following...

../gallery2/themes/matrix/themes/theme.tpl:
[code]
{if $theme.pageType == 'album'}
<link rel="alternate" type="application/rss+xml" title="MediaRSS:{$theme.item.title}" href="/gallery2/xml.php?g2_itemId={$theme.item.id}" />
{/if}
[/code]

.../gallery2/xml.php:
http://www.janetandbrian.info/modules/g ... ml-php.txt

-----
Gallery URL: http://www.janetandbrian.info/
PHP-Nuke version: 8.0
Gallery version: 2.2.4
Gallery integration: 0.6.3
Apache version: 2.2.3
PHP version: PHP 5.1.6
Graphics Toolkit: php-gd.i386 5.1.6-15.el5
Operating system: CentOS 5
Web browser/version: Firefox 2.0.0.14[code][/code]
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: G2 Nightly w/PicLens integration + PHPNuke + G2 Integration  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Fri May 30, 2008 6:50 am    Post subject: Re: G2 Nightly w/PicLens integration + PHPNuke + G2 Integrat Reply with quote

cute chinchillas Smile

i see the problem.

In the standalone HTML source, you have this:

Code: › <script type="text/javascript" src="main.php?g2_view=core.CombinedJavascript&amp;g2_key=faba16c6447d3b49e6b95212c7d59de3"></script>
<script type="text/javascript" src="main.php?g2_view=slideshow.DownloadPicLens&amp;g2_file=js&amp;g2_v=1.1.0.457"></script>


in the embedded one you have:
Code: ›
<script type="text/javascript" src="modules.php?name=gallery2&amp;g2_view=core.CombinedJavascript&amp;g2_key=faba16c6447d3b49e6b95212c7d59de3"></script>
<script type="text/javascript" src="modules/gallery2/modules.php?name=gallery2&amp;g2_view=slideshow.DownloadPicLens&amp;g2_file=js&amp;g2_v=1.1.0.457"></script>


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).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Sat May 31, 2008 1:03 pm    Post subject: Re: G2 Nightly w/PicLens integration + PHPNuke + G2 Integrat Reply with quote

dari wrote: ›
cute chinchillas Smile

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.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Mon Jun 02, 2008 7:28 am    Post subject: Re: G2 Nightly w/PicLens integration + PHPNuke + G2 Integrat Reply with quote

does this same behavior translate over to the standalone g2?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
mengesb

Beginner
Beginner


Joined: Sep 17, 2007
Posts: 15

PostPosted: Mon Jun 02, 2008 11:21 am    Post subject: Re: G2 Nightly w/PicLens integration + PHPNuke + G2 Integrat Reply with quote

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)

I hope this helps.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia