[2.0.15] Redirect anonymous users to login

The cleanup is complete. This forum is now read only.
Post Reply

Rating:

Excellent!
102
73%
Very Good
25
18%
Good
3
2%
Fair
1
1%
Poor
8
6%
 
Total votes: 139

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29220
Joined: Sat Aug 16, 2003 7:36 am

[2.0.15] Redirect anonymous users to login

Post 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
Last edited by Extensions Robot on Mon Apr 30, 2007 12:29 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post 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.
Dark Side
Registered User
Posts: 21
Joined: Sun Jun 13, 2004 1:08 am
Location: Southeast, U.S.

Post by Dark Side »

Will this MOD work with version 2.0.10?
Dark Side
Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 »

yes it does
Whos missing up my sig?
wendas
Registered User
Posts: 11
Joined: Sat Jul 24, 2004 3:37 am

Post 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
Vv.
Registered User
Posts: 42
Joined: Sat May 29, 2004 10:41 pm

Post by Vv. »

What would search-engines do?
Will they still be able to find and read through the posts?
/\/\orph3us
Registered User
Posts: 1
Joined: Sun Aug 08, 2004 9:34 am

Post 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!
xcannon
Registered User
Posts: 6
Joined: Thu Aug 12, 2004 12:04 am

Post by xcannon »

Do you just upload the script into the main directory?

Edit:// Oops, I should just read. NM :oops:
iStan
Registered User
Posts: 104
Joined: Sat Jun 12, 2004 5:19 pm
Location: sunny, southern Ontario

Post by iStan »

Thanks. Easy to install and a very useful feature that one of our moderators was asking for.
nickname88
I've Been Banned!
Posts: 9
Joined: Fri Aug 13, 2004 8:51 am

Post by nickname88 »

is there any way to lock the topics?
Sub_Dive
Registered User
Posts: 7
Joined: Sat Aug 14, 2004 1:09 am
Contact:

Post 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
Crazy Canuck
Registered User
Posts: 2
Joined: Sat Aug 14, 2004 1:39 pm

Post by Crazy Canuck »

im using phpBB 2.0.10 and it dosent seem to be working :|
Crazy Canuck
Registered User
Posts: 2
Joined: Sat Aug 14, 2004 1:39 pm

Post 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)); 
         } 

# 
nickname88
I've Been Banned!
Posts: 9
Joined: Fri Aug 13, 2004 8:51 am

Post 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.
nickname88
I've Been Banned!
Posts: 9
Joined: Fri Aug 13, 2004 8:51 am

Post 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.
Post Reply

Return to “[2.0.x] MOD Database Cleanup”