[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: 27719
Joined: Sat Aug 16, 2003 7:36 am

[2.0.15] Redirect anonymous users to login

Post by Extensions Robot » Wed Jul 28, 2004 6:51 am

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)

User avatar
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Mon Aug 02, 2004 7:45 pm

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.

User avatar
Dark Side
Registered User
Posts: 21
Joined: Sun Jun 13, 2004 1:08 am
Location: Southeast, U.S.

Post by Dark Side » Tue Aug 03, 2004 2:37 pm

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 » Tue Aug 03, 2004 3:33 pm

yes it does
Whos missing up my sig?

wendas
Registered User
Posts: 11
Joined: Sat Jul 24, 2004 3:37 am

Post by wendas » Fri Aug 06, 2004 2:18 am

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. » Sat Aug 07, 2004 5:12 pm

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 » Sun Aug 08, 2004 9:38 am

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 » Thu Aug 12, 2004 8:24 am

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 » Thu Aug 12, 2004 1:11 pm

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 » Fri Aug 13, 2004 2:02 pm

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 » Sat Aug 14, 2004 1:18 am

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 » Sat Aug 14, 2004 1:45 pm

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 » Sat Aug 14, 2004 1:52 pm

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 » Sun Aug 15, 2004 9:33 am

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 » Sun Aug 15, 2004 9:44 am

@ 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”

Who is online

Users browsing this forum: No registered users and 7 guests