Topic Title: slideshow not working inside phpnuke

Forum Index » Gallery 2 Integration » slideshow not working inside phpnuke
Topic URL: http://www.nukedgallery.net/postt1707.html

AuthorMessage
Post Title: slideshow not working inside phpnuke
HrlyKrs
Joined: Apr 11, 2005
Posts: 12
Location: New York, NY
Posted: Mon Jun 20, 2005 6:55 pm
the slide show doesn't appear to be working when it is embedded in phpnuke.

Quote: ›
Gallery version = 2.0-beta-3+ core 0.9.25
PHP version = 4.3.11 apache2handler
Webserver = Apache/2.0.52 (Fedora)
Database = mysql 3.23.58
Toolkits = ArchiveUpload, Exif, NetPBM, SquareThumb, ImageMagick, Thumbnail
Operating system = Linux huey.kh-tech.com 2.6.11-1.27_FC3 #1 Tue May 17 20:27:37 EDT 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
PHP-Nuke version = 7.6

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Jun 22, 2005 6:25 am
Gallery2 is still beta, as is the integration work. What errors are you seeing?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
HrlyKrs
Joined: Apr 11, 2005
Posts: 12
Location: New York, NY
Posted: Wed Jun 22, 2005 2:07 pm
Unfortunately, there are no errors in /var/log/httpd/error_log. there are also no error in the browser either.

the image just never changes from the first one. It also appears that changing the settings (delay, direction, and size) don't do anything.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
kradsith
Joined: Oct 27, 2004
Posts: 3

Posted: Thu Jun 23, 2005 7:02 am
I have the same problem. not sure yet what is causing it. but I do find if you jump into the standalone G2 without phpnuke. it works.

Confused

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Jun 23, 2005 7:16 am
aah..i see the problem here too. go post this as a bug Smile

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
kradsith
Joined: Oct 27, 2004
Posts: 3

Posted: Thu Jun 23, 2005 7:27 am
HrlyKrs all yours Smile

here is a releated issue with drupal and G2 integration that was fixed.

http://gallery.menalto.com/index.php?na ... 756#137756

http://drupal.org/node/21880

may help.

Cheers,

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
HrlyKrs
Joined: Apr 11, 2005
Posts: 12
Location: New York, NY
Posted: Thu Jun 23, 2005 8:03 am
what's your opinion of drupal? do you know of some place that compares all of the CMS's?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Jun 23, 2005 8:10 am
actually, i see why this isnt' working...the javascript hasn't been inserted into the header of the page...i'm gonna tweak and try to get this fixed.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Jun 23, 2005 8:24 am
got a fix:)
in gallery2/index.php find:
PHP: › <?php foreach($css as $stylesheet) {
                                
$links $stylesheet;
                                
$links str_replace('"''\"'$links);
                                
$header .= 'echo "' $links'\n";' "\n";
                            } 
?>


immediately after this, add:
PHP: › <?php foreach($javascript as $script) {
                                
$scriptline $script;
                                
$scriptline str_replace('"','\"',$scriptline);
                                
$header .= 'echo "' $scriptline'\n";'."\n";
                            } 
?>


viola Smile your slideshow works embedded Smile

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
HrlyKrs
Joined: Apr 11, 2005
Posts: 12
Location: New York, NY
Posted: Thu Jun 23, 2005 8:58 am
works great! thanks, mate!

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
kradsith
Joined: Oct 27, 2004
Posts: 3

Posted: Thu Jun 23, 2005 12:24 pm
Your Kung-fu is better than mine Wink

You da man!

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Fri Jun 24, 2005 5:48 am
this has been committed to CVS as of about 10 minutes ago. It will take a few hours for the anonymous pserver to grab it, but it should appear in the next nightly build.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
WhirlyGirl
Joined: Dec 28, 2004
Posts: 19

Posted: Sat Mar 04, 2006 5:53 pm
Still not working for me unfortunately, and I have got the extra lines of code in there already. Sad

WG

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Mar 06, 2006 7:49 am
if you have JS disabled in your browser, it won't work

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Thu Oct 12, 2006 2:09 am
Sorry to bring back an old thread, but it appears that this solution didn't work for me.
I just attempted to run the Slideshow on my site, it didn't work. It did exactly what HrlyKrs orginally said. Doesn't change the starting image, and clicking the buttons along the top don't seem to do anything. EXCEPT the "stop" button. Hitting that will take you back to the album, viewing the picture it was stuck on.

I do have the mentioned code added to my index.php file, and javascript is enabled on my browser. I use Firefox and no errors, or anything came up. However, when I ran it in Internet Explorer. And error did come up and I went into the debugger.

It went to the following file and line of code with the error;
modules.php in the root folder on my webserver;
Line: 321;
PHP: › <?php function show_text() {
spanTitle.innerHTML document.getElementById('title_'+index).innerHTML;
spanSummary.innerHTML document.getElementById('summary_'+index).innerHTML;
spanDate.innerHTML document.getElementById('date_'+index).innerHTML;
//line below me was highlighted
spanDescription.innerHTML document.getElementById('description_'+index).innerHTML;
?>

The error was "htmlfile: Unknown runtime error" but I don't think that means anything.

If I click one of the buttons along the top (i hit the delay button), I get this in IE on the same php file:
PHP: › <?php function goto_next_photo() {
index move_index(1);
if (
bCanBlendapply_filter();
document.images.slide.src =
//line below me was highlighted
document.getElementById('item_'+index+'_'+item_map[index][iSize]).href;
linkStop.href document.getElementById('href_'+index).href;
if (
bCanBlenddocument.images.slide.filters[0].Play();
?>


It reports, "Error: Object Requred." and reports line number 311. This will happen now matter what time delay I pick.

Quote: › Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_jk/1.2.14 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Gd
Acceleration = partial/3600, none
Operating system = Linux
Default theme = matrix
Locale = en_US
Browser = Firefox/1.5.0.7 or IE 6


ANY help by ANYONE would be kickass! Thanks for reading everyone!

EDIT:
Sorry, I noticed in Firefox's Javascript Consol window I do get an error when I attempt to view the slideshow. It comes up with an error in the function goto_next_photo() { function as mentioned above.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Oct 12, 2006 6:45 am
what happens if you try to view your gallery standalone and watch the slideshow? does it work, or do you get the same errors?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Thu Oct 12, 2006 12:33 pm
Hi dari,
Thanks for your help.

If I view the gallery standalone it works fine.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
StarScream159
Joined: Apr 08, 2006
Posts: 117

Posted: Tue Nov 07, 2006 9:01 pm
Okay. I installed a new theme on my site and I was hoping that the problem would be fixed. But it isn't. I just attempted to view a slideshow in my gallery, and I get this error in the Firefox Error Console:
Code: ›
Error: document.getElementById("item_" + index + "_" + item_map[index][iSize]) has no properties
Source File: modules.php?name=pictures&g2_view=slideshow.Slideshow&g2_itemId=17091
Line: 1306

I got that error when I clicked on one of the buttons.

Any help from anyone?

Thanks for reading!
Quote: › Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_jk/1.2.14 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Jpegtran, Exif, ImageMagick, Thumbnail, Gd
Acceleration = partial/3600, none
Operating system = Linux host18.canaca.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
Default theme = PGtheme
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 or IE 6/7

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
mengesb
Joined: Sep 17, 2007
Posts: 17

Posted: Wed Jun 04, 2008 12:40 am
For me, I can't get the regular slideshow to work (I just get a blank page, no pictures, nothing). The fullscreen slideshow that loads the java app works fine.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Jun 04, 2008 7:03 am
when you try to view it via the regular slideshow, can you check the source of the page and see what's there, where it gets cut off, etc?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
mengesb
Joined: Sep 17, 2007
Posts: 17

Posted: Wed Jun 04, 2008 2:15 pm
dari wrote: › when you try to view it via the regular slideshow, can you check the source of the page and see what's there, where it gets cut off, etc?


Every time I try to post code I get a message from your forum:
The html tags you attempted to use are not allowed

So I can't post the syntax that I have on the page.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
mengesb
Joined: Sep 17, 2007
Posts: 17

Posted: Wed Jun 04, 2008 2:24 pm
dari wrote: › when you try to view it via the regular slideshow, can you check the source of the page and see what's there, where it gets cut off, etc?


I am seeing this in my error log though, wondering why its trying to stat a file that doesn't exist:

Code: ›
[Wed Jun 04 12:19:31 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:31 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:32 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat, referer: http://www.janetandbrian.info/modules.php?name=gallery2&g2_itemId=911
[Wed Jun 04 12:19:32 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:32 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:32 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:32 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:33 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:34 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Wed Jun 04 12:19:37 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat, referer: http://www.janetandbrian.info/modules.php?name=gallery2&g2_view=slideshow.Slideshow&g2_itemId=911

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Jun 05, 2008 6:13 am
is this 2.2.4 or an SVN version of gallery? can you copy/paste the source into a text file, and then either PM me the location, or post the location here?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
mengesb
Joined: Sep 17, 2007
Posts: 17

Posted: Thu Jun 05, 2008 1:26 pm
Wow, I can't get predictable here.

I noticed yesterday that my Gallery2 installation somehow corrupted itself. So I took the opportunity to update to the 6/1/2008 build of Gallery2 from the nightly posts. I also made sure I didn't have any fruityness with the nukedgallery mod, so I also installed from phpnuke_063.zip again after I finished updating the base Gallery2 install.

Now when I click the View Slideshow (not the full screen one), my PicLens plugin fires. This is probably because i have an xml.php file for the MediaRSS.

I'm still getting these messages in my /var/log/httpd/error_log:

Code: ›
[Thu Jun 05 11:06:11 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Thu Jun 05 11:06:12 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Thu Jun 05 11:06:13 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat
[Thu Jun 05 11:06:13 2008] [error] [client 69.59.136.172] script '/home/mengesb/public_html/janetandbrian.info/modules/gallery2/modules.php' not found or unable to stat


It most certinaly is looking for a modules.php in the gallery2 directory. Here's my version info:

Gallery2 versions.dat:
1.2.34
2.3-svn

Nuked Gallery:
install from phpnuke_063.zip (not the nightly)

Recent upgrade log:
Code: ›
2008-06-04 21:49:24 [TMP_SESSION_ID_DI_NOISSES_PMT]

--------------------------------------------------------
        Upgrade Core Module
--------------------------------------------------------


2008-06-04 21:49:24 [TMP_SESSION_ID_DI_NOISSES_PMT]

--------------------------------------------------------
System and Gallery information:
--------------------------------------------------------
    Gallery version:    2.3-svn
    File integrity:     Ok
    SVN install:        No
    PHP version:        5.1.6 apache2handler
    PHP memory limit:   32M
    PHP disable_functions:
    PHP zend.ze1_compatibility_mode:
    Webserver:  Apache/2.2.3 (CentOS)
    Database:   mysqli 5.0.22
    Operating system:   Linux servepath.cat6wired.net 2.6.18-53.1.21.el5 #1 SMP
Tue May 20 09:34:18 EDT 2008 i686
    Browser:     Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Ge
cko/20080404 Firefox/2.0.0.14
--------------------------------------------------------


The Piclens plugin doesn't detect on the pictures, but apparently I can force start it with the Slideshow link... wonder what non-Piclens users see. Question

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Sat Jun 07, 2008 8:35 am
what are your integration settings?

i wonder if this is related to some other issues that have been posted here w/ the newest builds...

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
mengesb
Joined: Sep 17, 2007
Posts: 17

Posted: Sat Jun 07, 2008 10:59 am
dari wrote: › what are your integration settings?

i wonder if this is related to some other issues that have been posted here w/ the newest builds...


Code: ›
Embedded Gallery: http://www.janetandbrian.info/modules.php?name=gallery2
Standalone Gallery: http://www.janetandbrian.info/modules/gallery2/
Active user id: 0
Cookie path: /

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Sat Jun 07, 2008 12:48 pm
ok, those look good. i'm 110% convinced it's got something to do with the URL generator in G2 and the new combinedjavascript file (you had another post here where i noticed that as well). i've left another note for the integration developer on the G2 side of things to take a look at this.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
fkelly
Joined: Dec 03, 2005
Posts: 28

Posted: Wed Oct 01, 2008 11:19 am
It's October, the last post here was June. I just installed a 2.2.6 Gallery and am having the same symptoms. Slideshow works from "native" Gallery but not embedded in Nuke.

Any word on this?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Oct 01, 2008 11:28 am
check the HTML source of both the integrated and standalone versions. odds are the javascript required isn't being properly included, most likely due to a missing slash at the end of one of your integration settings.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
fkelly
Joined: Dec 03, 2005
Posts: 28

Posted: Wed Oct 01, 2008 3:04 pm
I have tried all permutations of slashes at the end. On a 2.2.4 site I have that really works I have a slash at the end of the standalone url and not one at the end of the embedded url. That's correct if I am not mistaken. On my 2.2.6 site that same combination doesn't work. The integration is totally fouled up ... I can see the one album but in integrated mode I don't even see a slideshow choice. In standalone mode I do and can run the slideshow. Not to mix threads but also in the embedded mode I get no choices on the themes administration panel whereas I do in the standalone themes admin. By choices I mean where it says blocks to show in the sidebar and there is a select box ... there are no options in the embedded mode.

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Oct 02, 2008 11:20 am
i don't see any substantial differnce between 2.2.4's embed class and the one in 2.2.6 (see http://gallery.svn.sourceforge.net/view ... 2&r2=17149 ).

Are these on different servers w/ identical configurations (both php and apache)? is one site a virtual host? from what i've read here and in your other thread, this seems to be a site-specific issue for you, and one that isn't easily replicated here...

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
fkelly
Joined: Dec 03, 2005
Posts: 28

Posted: Fri Oct 03, 2008 9:57 am
I am running four different sites but all on the same servers and all with identical software environments. One, fkelly.org is just a test site that I use for Ravennuke development and testing purposes. That's where I have Gallery 2.2.4 and that works fine embedded in Ravennuke. On fsgtroy.org however I installed the 2.2.6 about 10 days ago and have had nothing but headaches. I've done several "wipe-outs" and clean installs to try to resolve it but it just seems like there are numerous combinations of problems that keep occurring. Like admin screens without choices (themes for instance), the slideshow not working in embedded mode etc. The phpinfo() results for these sites are identical and they both run under phpsuexec which has proven to be a great environment for Gallery (old permissions problems in a shared hosting arrangement have totally disappeared) so the only real difference I see is the version of Gallery.

I'm prepared to revert to 2.2.5 or even 2.2.4. It takes me maybe a half hour to reinstall from scratch as opposed to unlimited time to be running through debug mode and looking at view sources and trying to figure out other things where I have no knowledge really of how the code works. I just don't have the time for that.

A more general question if I may. I see the announcements on the home page here (today it is that RC2 is available, previously it was that 2.2.6 was available and we all should upgrade). I know these all come from the main Gallery site. When these are posted here can we take it for granted that the releases have been thoroughly tested in integrated or embedded mode or is just echoing out what the main Gallery site is promoting?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
anlenterprises
Joined: Jan 16, 2007
Posts: 9

Posted: Sat Jan 03, 2009 1:04 am
I just installed gallery 2.3 as an embedded nuke installation. Like everybody else it works fine in standalone mode but the slideshow does nothing in embededed mode.

Here's an interesteing fact - I was doing this in IE so I decided to see what would happen in Firefox - and guess what - it worked...

I'm not sure what this means but I thought I would report it.

Andrew Confused

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
MisterPat
Joined: Feb 08, 2009
Posts: 2
Location: North Jersey
Posted: Fri Apr 10, 2009 5:25 pm
Same problem here also. Works in Firefox. Doesn't work in IE embedded or stand alone. Throws up a Unknown run time error.

RavenNuke 2.3

Gallery 2.2

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Apr 13, 2009 6:39 am
does enabling debug in g2 yield any insightful errors when using IE?

AuthorMessage
Post Title: Re: slideshow not working inside phpnuke
onummi
Joined: Jan 25, 2009
Posts: 10

Posted: Fri Apr 17, 2009 8:23 am
I have same problem. Actually there are problems with all feeds when embedded in phpnuke. I get warnings from google when submitting my feeds to google sitemap:
Quote: › Leading whitespace
We've detected that your Sitemap file begins with whitespace. We've accepted the file, but you may want to remove the whitespace so that the file adheres to the XML standard.

The same problem is reported when embedding in drupal, and I found this workaround for drupal:
http://drupal.org/node/395944 [drupal.org]

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group