PDA

View Full Version : Comments Refering Page


lawrencejay
08-18-2005, 05:27 PM
Hello,

I am wondering how I might change the default refering page once someone leaves a comment.

For example say I would like to have them transfered to a different URL, how might I achieve this?

Thanks in advance for any input.

LJ

GeoS
08-18-2005, 10:10 PM
If you dont know how to do it - better dont do it!!

If you want make some experiments:
/index.php lines 934-947 says what is displayed/what should be done after comment submition.

babyben
08-19-2005, 12:06 AM
Maybe it could be another template page, cos it's can be slightly odd that you can template all of the site, except one page. I think.

*waits to hear you can easily change the look of that page* :lol:

dontfeedthenerd
08-19-2005, 12:16 AM
No you can change the look of it. You can have a comments_template.html which is what I use for my site. But the actual handling of the comment submission is done in the index.php file I believe.

search for the string:

<?php
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>";
}

I believe you can change the rederict by changing the line <a href='index.php?showimage=$parent_id'> to whatever target you want.

Now what I want to know is how do I just close the window? I'm using a comment popup and I'd like to be able to just close the window.


edit: nm, I got it working so it self closes. Whee javascript.