Page 1 of 19

[2.0.15] Redirect anonymous users to login

Posted: Wed Jul 28, 2004 6:51 am
by Extensions Robot
MOD Name: Redirect anonymous users to login
Author: StefanKausL
MOD Description: This very simple MOD redirects anonymous users to the login page instead of showing member, groups, or profile pages. That way anonymous users can't see registered user's data.


MOD Version: 1.0.8 (Updated 06/22/05)

Download File: redirect_annonymous_users_to_login_mod_1.0.8.txt.mod
mods overview page: View
File Size: 5568 Bytes

Security Score: 0

Posted: Mon Aug 02, 2004 7:45 pm
by wGEric
MOD Validated/Released

Notes:
This MOD makes it so guests can't view any registered users information.

If a guest tries to view groups, the memberlist, who is online, and any profiles they will be redirected to the log in page.

Posted: Tue Aug 03, 2004 2:37 pm
by Dark Side
Will this MOD work with version 2.0.10?

Posted: Tue Aug 03, 2004 3:33 pm
by Shof515
yes it does

Posted: Fri Aug 06, 2004 2:18 am
by wendas
Wonderful start for me! I love it..! I voted you highly.. :D

I needed a totally locked down forum. Using your code I added it also to the Search and the Index pages.. And I believe I got exactly what I wanted.. Thank you soo... Much..

Wenda

Posted: Sat Aug 07, 2004 5:12 pm
by Vv.
What would search-engines do?
Will they still be able to find and read through the posts?

Posted: Sun Aug 08, 2004 9:38 am
by /\/\orph3us
I loved the Mod, but it is missing this...

posting.php

to stop guest posting... Well, that was the only way I could stop it....

Thanx for the great MOD!

Posted: Thu Aug 12, 2004 8:24 am
by xcannon
Do you just upload the script into the main directory?

Edit:// Oops, I should just read. NM :oops:

Posted: Thu Aug 12, 2004 1:11 pm
by iStan
Thanks. Easy to install and a very useful feature that one of our moderators was asking for.

Posted: Fri Aug 13, 2004 2:02 pm
by nickname88
is there any way to lock the topics?

Posted: Sat Aug 14, 2004 1:18 am
by Sub_Dive
Is it posible that it don't work as well?
this is the standard:

Code: Select all

#-----[ OPEN ]---------------------------------------------
#
profile.php

#
#-----[ FIND ]---------------------------------------------
#
		if ( $mode == 'viewprofile' )
		{

#
#-----[ AFTER, ADD ]---------------------------------------------
#
			if ($userdata['user_id'] == ANONYMOUS)
			{
				redirect(append_sid('login.'.$phpEx));
			}

#
I have this replace with

Code: Select all

#-----[ OPEN ]---------------------------------------------
#
profile.php

#
#-----[ FIND ]---------------------------------------------
#
		init_userprefs($userdata);

#
#-----[ AFTER, ADD ]---------------------------------------------
#
			if ($userdata['user_id'] == ANONYMOUS)
			{
				redirect(append_sid('login.'.$phpEx));
			}

#

And than it will work

Posted: Sat Aug 14, 2004 1:45 pm
by Crazy Canuck
im using phpBB 2.0.10 and it dosent seem to be working :|

Posted: Sat Aug 14, 2004 1:52 pm
by Crazy Canuck
nevermind, i see what the problem was haha i feel dumb, now, i wanted it on my index page as well, i just added the below into my index page so the ycannot view it without registering :) thanks, i will also add this to my search page.

Code: Select all

#-----[ OPEN ]--------------------------------------------- 
# 
index.php 

# 
#-----[ FIND ]--------------------------------------------- 
# 
      init_userprefs($userdata); 

# 
#-----[ AFTER, ADD ]--------------------------------------------- 
# 
         if ($userdata['user_id'] == ANONYMOUS) 
         { 
            redirect(append_sid('login.'.$phpEx)); 
         } 

# 

Posted: Sun Aug 15, 2004 9:33 am
by nickname88
where i put that? can you be more specific please?
i want to redirect my topics to login if there are not members.

Posted: Sun Aug 15, 2004 9:44 am
by nickname88
@ Crazy Canuck

with your code you made the first page as a login page.
I want to have visible forums and topics, but when a non member clicks in a topic, the login page must be displayed. i think i understand what i mean.