Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Login And Redirect To Current Page 
 
after the login, it redirects you to forum.php


I would want that redirect to current page before login.

I have found this code for the login.php, but I think it is for phpbb2


Spoiler: [ Show ]



I found this similar topic, but I cannot find a solution...
www.icyphoenix.com/viewtopic.php?f=35&t=598
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
I found this:

www.phpbbhacks.com/download/550


in particular redirect_outside.txt and redirect_register.txt

I tried, but no good results...
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
Hi

My icy phoenix redirects to the current page after login now.... sorry am I miss understanding you question...
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
look at: http://www.pugliabaila.it/discograf...compilation.php

if you login there, you'll be redirect to index.php
 



 
Last edited by Gianni PB on Thu 28 Jan, 2010 11:39; edited 1 time in total 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
Any ideas?
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
Hey Gianni

take a look at this codelines:

Code: [Download] [Hide] [Select]
if ( !$userdata['session_logged_in'] )
{
    redirect(append_sid(LOGIN_MG . '?redirect=YOUR_SITE.' . PHP_EXT, true));
}


with this code you can set the page after login
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
Where can I put it?
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Login And Redirect To Current Page 
 
I don't know if this is the best solution, but:

Code: [Download] [Hide] [Select]
echo "<a href='" . $_SERVER['PHP_SELF'] . "?&$ascolta_login=true'><font size=\'5\'>Ascolta Album!</font></a><br>";
if($_GET['$ascolta_login'] && !$userdata['session_logged_in'])
        redirect(append_sid(LOGIN_MG . '?redirect=' . $_SERVER['PHP_SELF'], true));



and it works...
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron