If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Guestbook 2.23: Images are being called from the wrong dir  XML
Forum Index » Support Forum
Author Message
Anonymous



I'm kinda new at this so bare with me. I must have something screwed up somewhere, the images for the guestbook are being called for from the wrong dir
ex: /php/img/sign.gif
and should be
ex: /guestbook/img/sign.gif

I have no dir /php/ on my server and have no idea why it's trying to call from that dir??? I'm not familiar enough with php scripting to locate a fix in the code myself. Please Help!!!
Anonymous



hi, i have the same problem!
the path to the images is .../php/modules/gbook/... and should be ../modules/gbook/... i have some php coding experience but couldnt fix it and when you make the dir php/modules ... the images arent loaded also.
its a great guestbook so i hope someone could help.
Anonymous



An extra 2 slipped into my first post in the subject line.... Just wanted to clarify that I'm having problems with Advanced Guestbook 2.3 not 2.23.
Anonymous



Change

$GB_PG["base_url"] = "http://www.yourdomain.com/correct_path/";

in the configuration file config.inc.php
Anonymous



that doesnt work, but i found a solution for my problem!
a coder had scripted a hack of this guestbook thet is almost as good as the original here is the dl link:
http://www.tp-krefeld.de/modules.php?name=Downloads&d_op=getit&lid=1
Anonymous



remove this code snippet:

------------
if (ereg("php.exe",$HTTP_SERVER_VARS["PHP_SELF"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["REQUEST_URI"]);
} elseif (isset($HTTP_SERVER_VARS["SCRIPT_NAME"]) && !empty($HTTP_SERVER_VARS["SCRIPT_NAME"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["SCRIPT_NAME"]);
} else {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
}

with:

$GB_PG["base_url"] = "http://www.yourdomain.com/correct_path/";

tested and works with PHP-Nuke 5.2

Of course the 'correct_path' may not contain the 'modules/guestbook'
Anonymous



$GB_PG["base_url"] = "http://www.yourdomain.com/correct_path/"; worked great when replaced with $GB_PG["base_url"] = "http://www.yourdomain.com/guestbook/"; All of the images for the guestbook were showing properly but another snag has arose.

Whenever an image is posted when signing the guestbook the thumbnail image is displayed properly but after clicking the thumbnail image to increase the size the image is not displayed.

When doing a preview, before submitting, the image is being called from:
/php/temp/
but should be:
/guestbook/temp.

After submitting the post, the thumbnail image is showing properly, but after clicking the thumbnail image to increase the size the image is not displayed. It is being called from:
/php/public/
but should be:
/guestbook/public.

Thanks for the help thus far
Anonymous



Since nobody can help me out here Could someone recommend another quality guestbook. I hate to ask but this one just isn't working for me.
Anonymous



the problem occures only when using PHP as 'CGI'


After submitting the post, the thumbnail image is showing properly, but after clicking the thumbnail image to increase the size the image is not displayed. It is being called from:
/php/public/
but should be:
/guestbook/public.


can also be fixed in picture.php
rude
Newbie

Joined: 28/01/2002 21:26:03
Messages: 2
Offline

What other way is there to run PHP? I installed PHP and configured apache to use it with the documentation that was included with PHP. If there is another way to configure apache with PHP how would the advanced guestbook distinguish the differences?

As I stated in the first post:
I'm not familiar enough with php scripting to locate a fix in the code myself.
Could you point out what changes need to be made in the pictures.php file to make it function properly?
[Yahoo!] aim icon [MSN] [ICQ]
Anonymous



user wrote:
can also be fixed in picture.php


Can you show us how to fix it in picture.php?
Anonymous



I don't know where the problem is?
There is a setting for the image url in the configuration file:

$GB_PG["base_url"] = "http://www.domain.com/guestbook/image";
Anonymous



Anonymous wrote:I don't know where the problem is?
There is a setting for the image url in the configuration file:

$GB_PG["base_url"] = "http://www.domain.com/guestbook/image";


if you see on http://www.all-worx.be/modules.php?name=Guestbook and you click on the picture you will seehe will call the wrong dir. If you change $GB_PG["base_url"] the other picture are called from the wrong dir.

Can somebody help us please

Thanks
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum