Support Forums | Demo Gallery [1.x] [2.x] | 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  

slideshow not working inside phpnuke
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
HrlyKrs

Beginner
Beginner


Joined: Apr 11, 2005
Posts: 12
Location: New York, NY

PostPosted: Mon Jun 20, 2005 6:55 pm    Post subject: slideshow not working inside phpnuke Reply with quote

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
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
AdBot
   Post subject: slideshow not working inside phpnuke  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Wed Jun 22, 2005 6:25 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

Gallery2 is still beta, as is the integration work. What errors are you seeing?
Back to top
Offline View user's profile Send private message Visit poster's website
HrlyKrs

Beginner
Beginner


Joined: Apr 11, 2005
Posts: 12
Location: New York, NY

PostPosted: Wed Jun 22, 2005 2:07 pm    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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.
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kradsith

Beginner
Beginner


Joined: Oct 27, 2004
Posts: 3

PostPosted: Thu Jun 23, 2005 7:02 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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

Site Admin
Site Admin


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

PostPosted: Thu Jun 23, 2005 7:16 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

aah..i see the problem here too. go post this as a bug Smile
Back to top
Offline View user's profile Send private message Visit poster's website
kradsith

Beginner
Beginner


Joined: Oct 27, 2004
Posts: 3

PostPosted: Thu Jun 23, 2005 7:27 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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

Beginner
Beginner


Joined: Apr 11, 2005
Posts: 12
Location: New York, NY

PostPosted: Thu Jun 23, 2005 8:03 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

what's your opinion of drupal? do you know of some place that compares all of the CMS's?
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Thu Jun 23, 2005 8:10 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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

Site Admin
Site Admin


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

PostPosted: Thu Jun 23, 2005 8:24 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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

Beginner
Beginner


Joined: Apr 11, 2005
Posts: 12
Location: New York, NY

PostPosted: Thu Jun 23, 2005 8:58 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

works great! thanks, mate!
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kradsith

Beginner
Beginner


Joined: Oct 27, 2004
Posts: 3

PostPosted: Thu Jun 23, 2005 12:24 pm    Post subject: Re: slideshow not working inside phpnuke Reply with quote

Your Kung-fu is better than mine Wink

You da man!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Fri Jun 24, 2005 5:48 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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

Beginner
Beginner


Joined: Dec 28, 2004
Posts: 19

PostPosted: Sat Mar 04, 2006 5:53 pm    Post subject: Re: slideshow not working inside phpnuke Reply with quote

Still not working for me unfortunately, and I have got the extra lines of code in there already. Sad

WG
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Mar 06, 2006 7:49 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

if you have JS disabled in your browser, it won't work
Back to top
Offline View user's profile Send private message Visit poster's website
StarScream159

Wizard
Wizard


Joined: Apr 08, 2006
Posts: 120

PostPosted: Thu Oct 12, 2006 2:09 am    Post subject: Re: slideshow not working inside phpnuke Reply with quote

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.
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 Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page 1, 2, 3  Next

 
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: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkSearch Engine OptimisationCompare VoIPSEO IndiaWeb Design Melbournemiami web designSEO IndiaLink BuildingPhoenix SEOPhoenix Web MarketingSEOManual Directory Submission Serviceflorida web design companyScottsdale Interior Designweb marketing servicesScottsdale SEOHome Appliances

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