Please read before posting on the forums:
Welcome to the Maian Script World support forums. This is the only method for FREE support. If you require assistance or your problem is urgent, think about sending a donation first. Use your descretion with donations. Don`t expect too much of my time for a dollar. :p

You are required to register before you can post. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. Finally, there are no guarantees when a reply will appear. DO NOT post here and also use the contact option. Unless you have sent a donation, this will NOT speed up the response.

IMPORTANT! Posts in English ONLY please, thank you! Any other languages will be ignored.
SEARCH! Use the search option to see if your question has been answered on the forum before.
PRIVATE MESSAGES! Do NOT contact me via the private message option for support. Your message will be ignored.
DOCUMENTATION: Did you check to see if your question has been answered already in the script documentation?
AUTO ACCOUNT DELETION: If you have an account older than 2 months, but have made no posts or started no topics, it will automatically be deleted. Only register if you are thinking of posting. Thanks.

You are not logged in.

#1 7 November 2009 17:00:37

jandokan
Member
Registered: 7 November 2009
Posts: 4

Thank You page

Hi is it possible to redirect users to a thank you page instead of displaying the Thank You message in the form?

Thanks

Offline

 

#2 8 November 2009 10:07:17

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 9 May 2006
Posts: 4482

Re: Thank You page

Yes, that would be no problem. Open the index.php file. On lines 153 & 203 find:

$dMsg   = $thanks;

AFTER that add the redirect to your thanks page. Depending on its location, use full or relative url:

header("Location: templates/thanks_page.html');
header("Location: http:/ /www.yoursite.com/thanks_page.html");
exit;

Don`t forget to use 'exit' or else it may not redirect.


David.

Maian Script World
http://www.maianscriptworld.co.uk

Offline

 

#3 9 November 2009 17:34:00

jandokan
Member
Registered: 7 November 2009
Posts: 4

Re: Thank You page

Great Thanks it works.
For other people who want to use this there is a slight typo in the code above please use this:

header("Location: templates/thanks_page.html");
header("Location: http:/ /www.yoursite.com/thanks_page.html");
exit;



Again thanks

Offline

 

#4 9 November 2009 19:49:56

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 9 May 2006
Posts: 4482

Re: Thank You page

Typo where? Probably the way this forum formats the code. Glad it works anyway.


David.

Maian Script World
http://www.maianscriptworld.co.uk

Offline

 

Board footer

MSWorld Forum
© R. Andersson