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  

The links on the Improved Random Image block are wrong...

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
ErDrRon

Beginner
Beginner


Joined: Jul 22, 2003
Posts: 9

PostPosted: Mon Aug 11, 2003 3:19 pm    Post subject: The links on the Improved Random Image block are wrong... Reply with quote

When I hover over the thumbnail or the Album links in the Improved Random Image block for PHP-Nuke the url is incorrect. Where can I fix this?

Thanx!
Ron

----
Gallery version: 1.3.4-pl1
Apache version: 1.3.27
PHP version (don't just say PHP 4, please): 4.2.3
Operating system: Linux
Web browser/version (if applicable): IE 6
Back to top
Offline View user's profile Send private message Send e-mail
AdBot
   Post subject: The links on the Improved Random Image block are wrong...  

Back to top
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Aug 11, 2003 3:34 pm    Post subject: Re: The links on the Improved Random Image block are wrong.. Reply with quote

Check that you have the right DIRECTORY NAME in random_support.php code.

EXAMPLE:

&op=modload&name=gallery&file=index&include=view_album.php

It may be CASE sensitive!
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ErDrRon

Beginner
Beginner


Joined: Jul 22, 2003
Posts: 9

PostPosted: Mon Aug 11, 2003 3:38 pm    Post subject: Reply with quote

The Directory Name is correct (gallery). Any other thoughts?

This is the error I get when I click on the thumbnail or album link:

Not Found
The requested URL /modules.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

This is my code in random_support.php:

Code: ›   function random_photo($album, $index,$filetype){
   global $gallery;
      if (isset($index)) {
         $id = $album->getPhotoId($index);
         $url = SERVER_ADDR;
         $url .= "modules.php?set_albumName=".$album->fields["name"];
         $url .= "&id=" .$id;
         $url .= "&op=modload&name=gallery&file=index&include=view_photo.php";

         $albumURL = SERVER_ADDR;
         $albumURL .= "modules.php?set_albumName=".$album->fields["name"];
         $albumURL .= "&op=modload&name=gallery&file=index&include=view_album.php";
         $content = "<center><a href=\"$url\">".$album->getThumbnailTag($index)."</a></center>";
         $caption = $album->getCaption($index);
         if ($caption) {
            $content.="<br><center>".$caption."</center>";
         }
         $content .= "<br><center>From: <a href=\"".$albumURL."\">".$album->fields["title"]."</a></center>";


Thanx!
Ron
Back to top
Offline View user's profile Send private message Send e-mail
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Aug 11, 2003 3:52 pm    Post subject: Reply with quote

Check the refs in block-NG-random.php

$GALLERY_BASEDIR = "/your/server/path/to/modules/gallery/";
define(ALBUM_BASEADDR, "http://yoursite.com/albums/");
define(SERVER_ADDR, "http://yoursite.com/");

Is you NUKE install in the root? (e.g. yoursite.com/admin.php and not yoursite.com/nuke/admin.php)?
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ErDrRon

Beginner
Beginner


Joined: Jul 22, 2003
Posts: 9

PostPosted: Mon Aug 11, 2003 4:18 pm    Post subject: Reply with quote

Nuke is NOT installed in the root directory. It is installed in a subdirectory under the root directory.

Thanx!
Ron
Back to top
Offline View user's profile Send private message Send e-mail
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Aug 11, 2003 4:20 pm    Post subject: Reply with quote

Are your REFs correct then?

EXAMPLE:

$GALLERY_BASEDIR = "/your/server/path/to/SUBDIR/modules/gallery/";
define(ALBUM_BASEADDR, "http://yoursite.com/albums/");
define(SERVER_ADDR, "http://yoursite.com/SUBDIR/");
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ErDrRon

Beginner
Beginner


Joined: Jul 22, 2003
Posts: 9

PostPosted: Mon Aug 11, 2003 9:43 pm    Post subject: Reply with quote

That did the trick...

Thanx!
Ron
Very Happy
Back to top
Offline View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks 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 HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

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