| Author |
Message |
ErDrRon
Beginner


Joined: Jul 22, 2003 Posts: 9
|
Posted: Mon Aug 11, 2003 3:19 pm Post subject: The links on the Improved Random Image block are wrong... |
|
|
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 |
|
|
AdBot
|
| Post subject: The links on the Improved Random Image block are wrong... |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Aug 11, 2003 3:34 pm Post subject: Re: The links on the Improved Random Image block are wrong.. |
|
|
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 |
|
|
ErDrRon
Beginner


Joined: Jul 22, 2003 Posts: 9
|
Posted: Mon Aug 11, 2003 3:38 pm Post subject: |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Aug 11, 2003 3:52 pm Post subject: |
|
|
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 |
|
|
ErDrRon
Beginner


Joined: Jul 22, 2003 Posts: 9
|
Posted: Mon Aug 11, 2003 4:18 pm Post subject: |
|
|
Nuke is NOT installed in the root directory. It is installed in a subdirectory under the root directory.
Thanx!
Ron |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Aug 11, 2003 4:20 pm Post subject: |
|
|
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 |
|
|
ErDrRon
Beginner


Joined: Jul 22, 2003 Posts: 9
|
Posted: Mon Aug 11, 2003 9:43 pm Post subject: |
|
|
That did the trick...
Thanx!
Ron
 |
|
| Back to top |
|
|
|
|
|
|
|