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 
phpnuke GUESTBOOK if i click on image the img doesn't show  XML
Forum Index » Support Forum
Author Message
Anonymous



i have phpnuke 7.5 i install guest book is ok.BUT when i am putting a picture and I want to see it (if i click on it) the image doesn't show..what can i do?
all the pictures all appearing but if i click on it (java open new window,to see the image bigger) it doesn t show
pls help
http://www.thecurse.ro/html/modules.php?op=modload&name=guestbook&file=index
Anonymous



and here is my CONFIG.php code
---------



<?php
/* database settings */

$GB_DB["dbName"] = "thecurse_book";
$GB_DB["host"] = "localhost";
$GB_DB["user"] = "thecurse_book1";
$GB_DB["pass"] = "xxxxxxxxxxxxxxxxxxxx";

/* tables */

$GB_TBL["data"] = "book_data";
$GB_TBL["auth"] = "book_auth";
$GB_TBL["cfg"] = "book_config";
$GB_TBL["com"] = "book_com";
$GB_TBL["ip"] = "book_ip";
$GB_TBL["words"] = "book_words";
$GB_TBL["ban"] = "book_ban";
$GB_TBL["priv"] = "book_private";
$GB_TBL["smile"] = "book_smilies";
$GB_TBL["pics"] = "book_pics";

/* guestbook pages */

$GB_PG["index"] = "index.php";
$GB_PG["admin"] = "admin.php";
$GB_PG["comment"] = "comment.php";
$GB_PG["addentry"] = "addentry.php";


/* guestbook templates */

$GB_TPL["adm_enter"] = "admin_enter.php";
$GB_TPL["body"] = "body.php";
$GB_TPL["entry"] = "entry.php";
$GB_TPL["error"] = "error.php";
$GB_TPL["form"] = "form.php";
$GB_TPL["preview"] = "preview.php";
$GB_TPL["prev_entry"] = "preview_entry.php";
$GB_TPL["header"] = "header.php";
$GB_TPL["footer"] = "footer.php";
$GB_TPL["icq"] = "icq.php";
$GB_TPL["url"] = "url.php";
$GB_TPL["aim"] = "aim.php";
$GB_TPL["com"] = "com.php";
$GB_TPL["email"] = "email.php";
$GB_TPL["success"] = "success.php";
$GB_TPL["frm_icq"] = "form_icq.php";
$GB_TPL["frm_aim"] = "form_aim.php";
$GB_TPL["frm_gender"] = "form_gender.php";
$GB_TPL["frm_image"] = "form_image.php";
$GB_TPL["com_pass"] = "com_pass.php";
$GB_TPL["com_form"] = "comment.php";
$GB_TPL["image"] = "user_pic.php";

/* misc */

define('IS_MODULE', true); /* running as POST-Nuke 0.x or PHP-Nuke 5.x addon? */

$GB_PG["base_url"] = ""; /* e.g htpp://www.yourdomain.com/guestbook/img */

$DB_CLASS = "mysql.class.php";
$TEC_MAIL = "you_at_your_domain_dot_com";
$GB_UPLOAD = "public";
$GB_TMP = "tmp";

if ($GB_PG["base_url"] == "") {
$inter_type = php_sapi_name();
if ($inter_type == "cgi") {
if (isset($HTTP_SERVER_VARS["PATH_INFO"]) && !empty($HTTP_SERVER_VARS["PATH_INFO"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PATH_INFO"]);
} elseif (isset($HTTP_SERVER_VARS["REQUEST_URI"]) && !empty($HTTP_SERVER_VARS["REQUEST_URI"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["REQUEST_URI"]);
} else {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["SCRIPT_NAME"]);
}
} else {
$GB_PG["base_url"] = "http://www.thecurse.ro/html";
}
}

?>
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

$GB_PG["base_url"] = ""; /* e.g htpp://www.yourdomain.com/guestbook/img */


Fill that in

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



I allready did it so i added
$GB_PG["base_url"] = "http://www.thecurse.ro/html";
and not working ....... anything else ??
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Anonymous wrote:I allready did it so i added
$GB_PG["base_url"] = "http://www.thecurse.ro/html";
and not working ....... anything else ??


So you're saying that the index.php for the guestbook is located at http://www.thecurse.ro/html and not say http://www.thecurse.ro/html/guestbook ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Hm looking at picture.php. If there is a problem it lies in there.

Ok I've had a look at for some reason your photos are being uploaded to the root of the guestbook rather than the public and tmp folders as they should be. http://www.thecurse.ro/html/modules/guestbook/img-1096667664.jpg shows this. So try changing to

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



i am using this, Code:
$GB_UPLOAD = "";

and still not working ufff
Anonymous



ahh and now if i wanna see the picture BIGGER then in java scrip new window it s appearing a green screen click my guestbook to see
Anonymous



WHAT YOU NEED TO DO(I JUST HAD THE SAME PROBLEM)
IS TO OPEN THE FILE picture.php (ON THE MAIN DIRECTORY OF THE GUESTBOOK)
AND REPLACE THE CODE:

WITH THE CODE:


NOW IT MUST WORK
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum