View Full Version : edit thankyou page? (popup)
mkmkmk
12-07-2008, 01:52 PM
Hi
i have "add comment" in popup window and after submitting i get this thankyou/redirecting page, which is a bit off.
is it possible to edit this thank you page?
i don't want it to redirect back. i just want to edit it to: "refresh the main page to see you comment" (and have a "close popup" button at the bottom )
Or is it possible to automatically refresh the main page after i add a comment in popup?
you can see my photoblog here: foto.hullus.ee (http://foto.hullus.ee)
thanks
Scarabaeus
12-07-2008, 02:48 PM
Add this after the add comment button:
<input type="hidden" name="withthankyou" value="no" />
mkmkmk
12-08-2008, 01:30 PM
but that just hides the thankyou page and nothing happens.
user probably wont understand what happens because he sitll has the add comment popup and no comment in picture page (it wont refresh automatically)
is there any other way?
mkmkmk
12-15-2008, 12:47 AM
so it's not possible to edit the popup/thankyou page?
i still haven't found any help with it.
Dennis
12-15-2008, 04:03 PM
What do you want to edit? The text is in the language files.
mkmkmk
12-22-2008, 10:59 PM
here is the popup that i get after clicking "submit comment" in comment popup:
http://hullus.ee/tmp/popup.jpg
as you can see, the text isn't aligned to left etc. (looks ugly)
and i don't want it to redirect back to adding comment, but i just want to close the popup after adding comment.
so there can be 2 possibilities:
1. after clicking "submit comment" the popup closes.
2. after clicking "submit comment" i get this new popup view that has a link "close popup" and text "Thanks, your comment has been added. Close the popup and refresh the page to see your comment."
how can i do that?
dhdesign
12-23-2008, 12:40 AM
To do what you are wanting, you will need to edit includes/functions_comments.php.
Look toward the end of the file and you will see the html code for the thank you popup page. You can edit the code there to add the javascript link to close the page.
You will need to edit your language file (if English, then edit lang-english.php) to change the message on the page. Look for $lang_comment_thank_you and edit the message between the quote marks.
Be sure to use a plain text editor (like Notepad) to edit these files, not an html editor or rich text editor.
mkmkmk
12-26-2008, 12:18 AM
thanks...i got it working :)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.