View Full Version : Changing the after comments redirect.
mikebshaw
10-04-2005, 03:17 AM
How do you change so that after someone submits a comment they are returned to a re-freshed version of the same page they just commented on. I know Pixelpost has the standard "Thank You" and a link back to that page. But I don't want a thank you page...any ideas?
Thanks,
Mike
fotogram
10-05-2005, 04:45 AM
This is a subject for the "Hacks and Mods" area :)
I implemented mine a while back, so forgive me if there is more that this, but here is how the end of my "EMAIL NOTE ON COMMENTS" block look like:
// Sending notification
mail($recipient_email,$subject,$body,$headers);
header("Location: $link_to_comment&popup=comment");
I added the "header" line.
Good luck
Nemesis
10-06-2005, 01:08 AM
You can also create custom page that header command would transfer you to.
Another thing you might want to try is to use JavaScript to auto-close the window.
blinking8s
10-06-2005, 05:25 AM
moved to hacks and mods, i just cant keep up anymore...lol
Tilnox
03-09-2006, 09:53 AM
if you post a comment here:
http://www.tilnox.org/visualmente/.V02.1/index.php?showimage=91
it goes to 'index.php?x=save_comment' and them jumps to http://www.tilnox.org/visualmente/.V02.1/index.php?popup=comment&showimage=91
the thing is there's nothing there!!!
what do i want?
i want it to jump the the image page where the comment was previews made.
no thank you page
se.nsuo.us
03-09-2006, 10:14 AM
// Sending notification
mail($recipient_email,$subject,$body,$headers);
header("Location: $link_to_comment&popup=comment");
Try and change the header line to
header("Location: index.php?showimage=$comment_image_id")
exit;
Should work - but untested - let us know ;)
Tilnox
03-09-2006, 10:28 AM
thank you for your answer but...*question full of shame*
where do i put that? on what file?
and if it's an index.php please tell me wich one
Tilnox
03-09-2006, 10:35 AM
i found it!! *crazy laugh*on the index.php
<!-- pixelpost saving comment -->
<?php
echo "<meta http-equiv='refresh' content='0;URL=index.php?popup=comment&showimage=$parent_id'>";
}
i just removed the popup=
and it works fine!
busychild424
04-10-2006, 03:58 AM
When I did this using the exit, I got an error message, but doing it like this:
header("Location: index.php?showimage=$comment_image_id");
It worked great.
Try and change the header line to
header("Location: index.php?showimage=$comment_image_id")
exit;
Should work - but untested - let us know ;)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.