Title: Redirect to home page Post by: dotmagic on June 21, 2009, 05:10:03 am Hi,
When the employers and candidates log out they are just made to stay in the same page that says you have successfully logged out. It would be great if they can be redirected to home page in a couple of seconds. Thanks. Title: Re: Redirect to home page Post by: Sergio on June 21, 2009, 05:52:01 pm There is an article in the knowledge base that talks about this. If it helps, here is the link:
https://www.jamit.com.au/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=189 Sergio. Title: Re: Redirect to home page Post by: abhishek1711 on September 10, 2009, 07:27:32 am the instructions are confusing
You would modify the candidates-outside-header.php template file and then it says Make sure that the above code is in the <HEAD> part of the candidates-header.php template file. so which one to edit also is this the exact code to be placed <?php if (strpos($_SERVER['PHP_SELF'], 'logout.php')!==false) { // is it on the logout.php page? echo ' <META HTTP-EQUIV="Refresh" CONTENT="3; URL='.JB_BASE_HTTP_PATH.'">'; // redirect to the home page } > Title: Re: Redirect to home page Post by: dotmagic on September 10, 2009, 10:21:47 am The code provided in knowledge base by jamit.com in the link
https://www.jamit.com.au/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=189 WILL NOT WORK. If you use it you can see an error Quote Parse error: syntax error, unexpected '>' in /home/myaccount/public_html/xxxxx/include/themes/ooooo/employers-outside-header.php on line 5 Its because of simple php coding error, "?" is missed out at close of the php code. Here is the right one below Quote <?php if (strpos($_SERVER['PHP_SELF'], 'logout.php')!==false) { // is it on the logout.php page? echo ' <META HTTP-EQUIV="Refresh" CONTENT="3; URL='.JB_BASE_HTTP_PATH.'">'; // redirect to the home page } ?> code must be placed in employers-outside-header.php and candidates-outside-header.php just above the HEAD as mentioned in the knowledgebase. Hope its clear now. Title: Re: Redirect to home page Post by: abhishek1711 on September 10, 2009, 05:10:10 pm yeah thnks a lot and adam doing mistakes ;D
Title: Re: Redirect to home page Post by: scuba dave on October 25, 2009, 02:29:45 pm Hi everyone new to Jamit and this forum
I have managed to add a google adsense advert to the succesfull log out page and as people are left on this page my thinking is they will follow the add would welcome coments on my new site also www.jobsinscuba.com Ta Title: Re: Redirect to home page Post by: padmanaban on December 01, 2009, 05:39:02 am Hi dotmagic,
This post is very interesting, since i faced similar problems like this while redirecting to home page and from your point i got a clear idea. |