PDA

View Full Version : After Comment Redirect in Pixelpost 1.5 RC


kidleethal
05-07-2006, 01:18 AM
Hello,

I just upgraded to Pixelpost 1.5RC. Everything is working swimmingly, except I used to have a hack in the index.php in 1.43 that removed the redirect page after someone posted a comment. You can see the instructions for it here:

http://forum.pixelpost.org/showthread.php?t=2312&highlight=comment+redirect

The problem is, I think the code has changed for 1.5 and PHP scares me :) I think I found the place I'm supposed to change something, but I'm not sure what it is I need to change, can anyone help me out?

I think it's in the header somewhere here:

<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>";

Joe[y]
05-07-2006, 09:09 AM
i suppose you could try changing


<meta http-equiv="refresh" content="8;


to


<meta http-equiv="refresh" content="0;

kidleethal
05-07-2006, 10:13 PM
Hey Joey,

Thanks very much for your reply. Changing it to zero does cut down the delay time to a fraction, but the redirect still occurs, albeit briefly. Is there anyway to just remove it completely, and get pixelpost to redirect the user back to the main comment page after posting a comment?

Thanks,

Lee

se.nsuo.us
05-08-2006, 09:30 AM
Yes there is, but you will then not be able to offer any feedback to the commentor about success or failure of the comment... and it also means that you have to hack the index.php file - this unless you are an expereinced PHP programmer is generally not recommended

Connie
05-08-2006, 05:13 PM
if you use comments in the main page and not in a popup-window, you won't run into that redirect problem