PDA

View Full Version : 2 questions ;)


davidebretti
12-14-2005, 07:08 AM
hi! i've two problems... i think one is simple and one is difficult :P

a) how can I remove the "Please click to be transferred back." link that appear when someone write a comment?

b) i try to repeat my troubleshooting with thumbnail creation, i posted it inside another thread (http://forum.pixelpost.org/showthread.php?t=2736), perhaps it need more visibility:

My website (PP 1.4.3)
http://www.davidebretti.it

Host Information
PHP-version 4.4.1 (Pixelpost's min requirement: PHP version 4.3.0)
MySQL version 4.0.23a (Pixelpost's min requirement: MySQL 3.23.58)
GD-lib bundled (2.0.28 compatible) with JPEG support
Server software Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.7e
EXIF Pixelpost is using exifer v1.5 for EXIF information.

Paths
Guessed imagepath: /home/davidebrettiit/images/
Configured Imagepath /home/davidebrettiit/images/

Image Directory: OK - Can we write to the directory? YES.
Thumbnails Directory: OK - Can we write to the directory? YES.
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK

and this is my php info file
http://www.davidebretti.it/hp_resources/info.php

i looked back in the forum but i dont know which patches should i apply... i'm not very skilled in php.

thank u, bye
d.

(anyway pixelpost it's great :))

GeoS
12-14-2005, 09:05 AM
Near line 1075 in /index.php instead of:
} // end of if($_GET['x'] == "save_comment")

?>

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<meta http-equiv="refresh" content="8; URL=<?php echo $_SERVER['HTTP_REFERER']; ?>" />
<title><?php echo $lang_comment_page_title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="admin/admin_index.css" type="text/css" />
</head>
<body>
<?php
echo "<p />$lang_comment_thank_you<p />$extra_message<br />";
echo "<a href='$_SERVER[HTTP_REFERER]'>$lang_comment_redirect</a><p />";
echo "</body></html>";
} // commentemail yes

I got:
} // end of if($_GET['x'] == "save_comment")
// moja zmiana
header("Location: /?showimage=$parent_id");
} // commentemail yes

It moves user back to photo.

davidebretti
12-14-2005, 09:20 AM
It moves user back to photo.

i'm sorry... with my poor english i'm not so clear.
i want to remove the back link or, if it is possible, i need a link that close the save-comment-window.

thank u anymore!

GeoS
12-14-2005, 07:41 PM
So try to replace:

echo "<p />$lang_comment_thank_you<p />$extra_message<br />";
echo "<a href='$_SERVER[HTTP_REFERER]'>$lang_comment_redirect</a><p />";
}

with:

echo "<p />$lang_comment_thank_you<p />$extra_message<br />";
echo "<a href='javascript:self.close();'>$lang_comment_redirect</a><p />";
}

PS Code is not tested, but here you have link about opening/closing windows:
http://www.javascript-page.com/windows.html

davidebretti
12-15-2005, 07:11 AM
So try to replace:

echo "<p />$lang_comment_thank_you<p />$extra_message<br />";
echo "<a href='$_SERVER[HTTP_REFERER]'>$lang_comment_redirect</a><p />";
}


i cant find this code in index.php
sorry :°(

what about patches to apply to the other php problem? no one as idea? :( :D
EDIT: i solved this problem!!! :D:D:D

GeoS
12-15-2005, 09:22 AM
I forgot that you dont have 1.5b :P

In index.php (lines 891-898):
echo "$lang_comment_thank_you<p />$extra_message";
if(!$_GET['popup']) {
echo "<a href='index.php?showimage=$parent_id'>$lang_comment_redirect</a>";
} else {
echo "<a href='index.php?popup=comment&amp;showimage=$parent_id '>$lang_comment_redirect</a>";
}
echo "</body></html>";
}

replace with:
echo "$lang_comment_thank_you<p />$extra_message";
if(!$_GET['popup']) {
echo "<a href='index.php?showimage=$parent_id'>$lang_comment_redirect</a>";
} else {
echo "<a href='javascript:self.close();'>$lang_comment_redirect</a>";
}
echo "</body></html>";
}

davidebretti
12-16-2005, 07:06 AM
I forgot that you dont have 1.5b :P


i cant get it work :(:(:(
i will renounce. :P

search66
12-16-2005, 10:06 AM
It worked great... thanks for the code!