9, July 2008

Redirect after logout? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web site promotion  >  Promoting & building a forum  >  SMF moding & promoting
Topic: Redirect after logout?
« previous next »
Pages: [1] Print

Author Topic: Redirect after logout?  (Read 508 times)
I love Pokemon
*
Posts: 14
92 credits
Members referred : 0


« on: Sep 17, 2006, 04:39:52 PM »

Hi Nikolas or anyone who knows how to do this. Do you know how I can redirect members who logout of my SMF forum to another page?

I want members who logout of www.sample-site.com/forum Visit through proxy to be redirected to www.sample-site.com Visit through proxy immediately after they've logged out. Anyone?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« Reply #1 on: Sep 17, 2006, 06:43:34 PM »

Open the Sources/LogInOut.php and in the last

find this :

Code:
<?php
if (empty($_SESSION['logout_url']))
redirectexit(''true$context['server']['needs_login_fix']);
else
{
$temp $_SESSION['logout_url'];
unset($_SESSION['logout_url']);

redirectexit($tempfalse$context['server']['needs_login_fix']);
}

replace it with this :

Code:
<?php
if (empty($_SESSION['logout_url']))
redirectexit('http://www.domain.com/'true$context['server']['needs_login_fix']);
else
{
$temp $_SESSION['logout_url'];
unset($_SESSION['logout_url']);

redirectexit('http://www.domain.com/'false$context['server']['needs_login_fix']);
}

Does this works?

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
I love Pokemon
*
Posts: 14
92 credits
Members referred : 0


« Reply #2 on: Sep 17, 2006, 06:59:50 PM »

Yes it does! Thanks! Smiley
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4129
Tags : forums simple machines forum Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web site promotion  >  Promoting & building a forum  >  SMF moding & promoting
Topic: Redirect after logout?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 09, 2008, 12:28:09 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.588
Total Topics: 7.355
Total Members: 3.661
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: komrad

29 Guests, 4 Users online :

17 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.