Jamit Software Forum
Welcome, Guest. Please login or register.
March 05, 2021, 08:29:50 pm

Login with username, password and session length
Search:     Advanced search
May 5th, 2010 - Jamit Software Launches the Market!
3,080 Posts in 791 Topics by 1,737,345 Members
Latest Member: SigmorMam
* Home Help Search Login Register
+  Jamit Software Forum
|-+  Jamit Job Board Customers
| |-+  Developers
| | |-+  Redirect to home page
« previous next »
Pages: [1] Print
Author Topic: Redirect to home page  (Read 5956 times)
dotmagic
Global Moderator
Sr. Member
*****
Posts: 85


« 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.
Logged
Sergio
Jammers
Sr. Member
*
Posts: 42


« Reply #1 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.
Logged
abhishek1711
Guest
« Reply #2 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
}
>
Logged
dotmagic
Global Moderator
Sr. Member
*****
Posts: 85


« Reply #3 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.
« Last Edit: September 10, 2009, 10:23:28 am by dotmagic » Logged
abhishek1711
Guest
« Reply #4 on: September 10, 2009, 05:10:10 pm »

yeah thnks a lot  and adam doing mistakes  Grin
Logged
scuba dave
Jammers
Jr. Member
*
Posts: 10


« Reply #5 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
Logged
padmanaban
Guest
« Reply #6 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.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.045 seconds with 18 queries.