Restrict Guest Access

Pentru întrebări legate de facilităţile forumului phpBB 2.0.x, acest loc este cel mai potrivit.
Închis
Demon
Nou venit
Mesaje: 4
Membru din: 03-Ian-2003, 06:37:49
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti

Restrict Guest Access

Mesaj de Demon »

Problema mea de baza este : Cum fac sa configurez phpBB sa ma prompteze cu login form inainte sa imi dea voie sa vad Lista Membrilor.
Adica nu vreau ca Guest sa vada Member list !
Help me out pls !
George
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

rezolvarea ? un mod !

Mesaj de bogdan »

exista deja un mod - Restrict Guest Access pentru aceasta problema !

Download - restrict_guest_111.mod

:arrow: Acest mod interzice vizitatorilor sa acceseze profilele membrilor si a grupurilor de utilizatori, paginile cu membrii curenti si ascunde informatiile personale afisate dupa fiecare mesaj.
Demon
Nou venit
Mesaje: 4
Membru din: 03-Ian-2003, 06:37:49
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti

Mesaj de Demon »

Multam pentru raspunsuri...tot mai am o problema
1. Am facut modificarile in viewtopic.php, memberlist.php, groupcp.php.

insa
2. In profile.php nu gasesc :

if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
$sid = '';


Problema este rezolvata la modul neelegant ca imi da

"Fatal error: Call to undefined function: redirect() in c:\inetpub\wwwroot\memberlist.php on line 39"

cand apas pe Lista Membrilor ne fiind logat, dar totusi ma macina :))
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

contact

Mesaj de bogdan »

destul de ciudat ... probabil ca autorul nu a mai actualizat informatiile de la restrict_guest_111.mod (cu toate ca el precizeaza ca merge si cu phpBB 2.0.4...)

o solutie ar fi sa-l intrebi direct pe autor: Duncan Campbell
user@phpBB: Flipper
email: flipper@pogoworld.co.uk
site: http://www.pogoworld.co.uk

dar citeste si subiectul: [2.0.4] Restrict Guest Access :idea:
CipCip
Nou venit
Mesaje: 3
Membru din: 05-Ian-2006, 13:05:04

cum pot sa...?

Mesaj de CipCip »

am un forum de la phpbb instralat si vreau ca lista de membri sa fie vazuta doar de membri inregistrati; ce mod imi trebuie? unde il gasesc ? cum il instalez? va multumesc

[edit="flowers"]Subiect unit cu altul care dezbate aceeaşi problemă.[/edit]
Avatar utilizator
MJR
Fost coleg
Mesaje: 1021
Membru din: 10-Mar-2003, 03:30:07
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: constanta
Contact:

Mesaj de MJR »

Cod: Selectaţi tot

## EasyMod 0.0.7 compliant 
############################################################## 
## MOD Title: Restrict Guest Access 
## MOD Author: Flipper < flipper@pogoworld.co.uk > (Duncan Campbell) http://www.pogoworld.co.uk
## MOD Description: Denies guests access to member profiles, usergroup, memberlist pages and hides the personal information displayed at the bottom of posts. 
## MOD Version: 1.1.1
## 
## Installation Level: Easy 
## Installation Time: 5 Minutes 
## Files To Edit: memberlist.php, groupcp.php, profile.php, viewtopic.php 
## Included Files: N/A
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/phpBB/catdb.php?db=1 for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/phpBB/catdb.php?db=1
############################################################## 
## Version History: 
##    17th January 2003  - Updated for phpBB 2.0.4 
##                       - Changed name from Restrict Usergroup / Memberlist pages to Restrict Guest Access 
##                       - Added profile changes (Herbalite & Netclectic)
##                       - EasyMod 0.0.7 Compliant
##    16th February 2003 - Fixed Invalid Session Errors (Luciouslinda)
##    21st February 2003 - Added removal of 'Personal Info' (IM, PM, AIM, etc) buttons from bottom of each post (darbyrob)
##    1st March 2003     - No longer require addtional file (save problems with various templates).
############################################################## 
## Author Notes: For use with phpBB 2.0.4 and above only. Note the code you are looking for within viewtopic.php is about line 911.  
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
# 

viewtopic.php

# 
#-----[ FIND ]------------------------------------------ 
# 

if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

#
#-----[ REPLACE WITH ]------------------------------------
#

if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

# 
#-----[ OPEN ]------------------------------------------ 
#

memberlist.php

# 
#-----[ FIND ]------------------------------------------ 
#
 
//
// End session management
//

# 
#-----[ AFTER, ADD ]------------------------------------ 
# 

// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
	{
		redirect(append_sid("login.".$phpEx."?redirect=memberlist.".$phpEx, true));
		exit;
	}
// End 'Restrict Guest Access' MOD

#
#-----[ OPEN ]------------------------------------------ 
#

groupcp.php

# 
#-----[ FIND ]------------------------------------------ 
#
 
//
// End session management
//

# 
#-----[ AFTER, ADD ]------------------------------------ 
# 

// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
	{
		redirect(append_sid("login.".$phpEx."?redirect=groupcp.".$phpEx, true));
		exit;
	}
// End 'Restrict Guest Access' MOD

# 
#-----[ OPEN ]------------------------------------------ 
# 

profile.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
	$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
	$sid = '';
}

# 
#-----[ AFTER, ADD ]------------------------------------ 
# 

// Begin 'Restrict Guest Access' MOD
$u = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? intval($HTTP_GET_VARS[POST_USERS_URL]) : intval($HTTP_POST_VARS[POST_USERS_URL]);
 
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; 
if ( !$userdata['session_logged_in']  && $mode == 'viewprofile') 
{ 
      redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile&".POST_USERS_URL."=".$u, true));
      exit; 
} 
// End 'Restrict Guest Access' MOD 

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------- 
# 
# EoM
Marian96
Utilizator înregistrat
Mesaje: 990
Membru din: 26-Dec-2005, 14:01:59
Versiune: 3.0.5
Ext: Da
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucuresti

Mesaj de Marian96 »

Iti multumesc si eu ca nu stiam asta
Închis

Înapoi la “2.0.x Cum pot să...?”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator