Disable Guest

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Disable Guest

Post by Highway of Life »

Go to ACP > Permissions [Tab] > Groups permissions > Guests > (user permissions) click on Advanced permissions
And set each option within each tab to No.

This should disable their ability to use the search function.

For the other pages, open faq.php and index.php
Add the following code:

Code: Select all

if (!$user->data['is_registered'])
{
    login_box('', 'LOGIN');
}
right AFTER you see...

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');

// and for faq.php...
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
That should do it :D
Image

me_09
Registered User
Posts: 31
Joined: Wed Apr 04, 2007 11:12 pm

Re: Disable Guest

Post by me_09 »

Yes but i want is possible on configuration
have this

Acp ---> Configuration PHPBB ---> Forum and all page (Search, memberlist ecc.) Is only for registred? Your choose yes or no

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Disable Guest

Post by Highway of Life »

me_09 wrote: Yes but i want is possible on configuration
have this

Acp ---> Configuration PHPBB ---> Forum and all page (Search, memberlist ecc.) Is only for registred? Your choose yes or no
Dude, I just posted that... it’s controlled by permissions (the memberlist and the search) in phpBB3, NOT configuration. :roll:
You have to go into Group Permissions > Guests > User permissions > Set all to NO!.
Image

me_09
Registered User
Posts: 31
Joined: Wed Apr 04, 2007 11:12 pm

Re: Disable Guest

Post by me_09 »

yes i and understand and i posted for request a staff phpbb...

User avatar
ChrisRLG
Registered User
Posts: 160
Joined: Wed Oct 11, 2006 9:47 am
Contact:

Re: Disable Guest

Post by ChrisRLG »

me_09 wrote: yes i and understand and i posted for request a staff phpbb...


Most topics here are answered by other users - that is the norm.

You might get a mod/admin to reply, but they too like the other users to assist where they can - so they can concentrate on the software itself.

You actulally had one of the more experinece regular members (not like me) post an answer for you - a good one - you should be greatfull to have had such a good reply.

BTW - it was just the answer I too would have given you - so you have now had two users give thier recommendations - which happen to be the same.

me_09
Registered User
Posts: 31
Joined: Wed Apr 04, 2007 11:12 pm

Re: Disable Guest

Post by me_09 »

Yes i agree and thx member answer me and help
but i hope on phpbb3 have this new function because on phpbb have all but for create forum private example
you need a blocked guest in all page
anyway thx member answer

code reader
Registered User
Posts: 653
Joined: Wed Sep 21, 2005 3:01 pm

Re: Disable Guest

Post by code reader »

actually, there is a way to do what you want without playing with permissions.
the only problem is that the text displayed to guests is a little awkward.
the "trick":
ban the anonymous user, and in "Reason shown to the banned" write something like:
"This board is for registered users only. If you are a registered user, please log in. I you are not, please Register"

guests will see something like this:
* Board index
* Change font size

* FAQ Register Login


Advanced search
Information

You have been permanently banned from this board.

Please contact the Board Administrator for more information.

Reason given for ban: This board is for registered users only. If you are a registered user, please log in. I you are not, please Register

This ban has been issued on your username.

me_09
Registered User
Posts: 31
Joined: Wed Apr 04, 2007 11:12 pm

Re: Disable Guest

Post by me_09 »

Great tricks :P thx

User avatar
Nicholas the Italian
Registered User
Posts: 659
Joined: Mon Nov 20, 2006 11:19 pm
Location: 46°8' N, 12°13' E
Contact:

Re: Disable Guest

Post by Nicholas the Italian »

code reader wrote: ban the anonymous user

Wow, dirty, but genial :P

User avatar
Black Antitoon
Registered User
Posts: 93
Joined: Mon Apr 02, 2007 2:50 pm

Re: Disable Guest

Post by Black Antitoon »

:mrgreen: Great idea! :mrgreen:

EDIT: Tested and worked perfectly. :D

Post Reply