[REQUEST] no logged in regs

Mods etc.

Moderator: Integra Moderator

[REQUEST] no logged in regs

PostAuthor: Skywalker » Wed Sep 06, 2006 4:57 am

can someone port this to IM?

Code: Select all
############################################################## ## MOD Title]http://www.midnightfaction.com#[/url]# MOD Description: If users are logged in and manage to reach your register page they will be redirected to the index## MOD Version: v1.0## ## Installation Level: Easy## Installation Time: 1 Minute#### Files To Edit: profile.php#### Included Files: None################################################################## ## For Security Purposes, Please Check: [url=http://www.phpbbhacks.com/]http://www.phpbbhacks.com/[/url] for the newest version of this MOD################################################################ Author Notes:####     This MOD has only been tested on phpBB v2.0.8 - But should work with earlier versions as well. :]####     I do not offer any support for this MOD, use at your own risk!####     I do realize this is extremely simple, but I think it could be very useful for those will different site layouts. If not, don't install it! :]################################################################ ## MOD History:####       v1.0b - Initial release################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD############################################################### #-----[ OPEN ]------------------------------------------ #profile.php  # #-----[ FIND ]------------------------------------------ # if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )         {             redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));         }  # #-----[ AFTER, ADD ]------------------------------------------ ## NOTE: You may change index.$phpEx to any page you want to redirect to :]#// Anti Logged-In Register MODif ( $userdata['session_logged_in'] && $mode == 'register' )         {             redirect(append_sid("index.$phpEx", true));         }// END Anti Logged-In Register MOD# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM  

i dont know witch mode IM is using for regs
Last edited by Skywalker on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 4:25 pm
Cash on hand: 0.00

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Helter, Majestic-12 [Bot]