phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

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!

Re: Disable Guest

Postby drewtscott » Fri Apr 27, 2007 10:42 pm

Nicholas the Italian wrote:
code reader wrote:ban the anonymous user

Wow, dirty, but genial :P


Except for the fact that if the first sentence a users sees when viewing your forum is "You have been banned permanenty," they're probably not going to stick around for long ;) At least I wouldn't!
drewtscott
Registered User
 
Posts: 58
Joined: Sun Jan 14, 2007 5:43 am

Re: Disable Guest

Postby Nicholas the Italian » Sat Apr 28, 2007 5:13 pm

drewtscott wrote:Except for the fact that if the first sentence a users sees when viewing your forum is "You have been banned permanenty," they're probably not going to stick around for long ;) At least I wouldn't!

Since it's a private forum, I guess it should be totally unreachable by unknown users. So they're not even meant to see that.
User avatar
Nicholas the Italian
Registered User
 
Posts: 659
Joined: Mon Nov 20, 2006 11:19 pm
Location: 46°8' N, 12°13' E

Re: Disable Guest

Postby Highway of Life » Sun Apr 29, 2007 1:53 am

I’m not quite understanding what is difficult with putting the registered users code in index.php and faq.php, which are the only two locations that require it after all other options are set in the ACP. :?
Image
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

Re: Disable Guest

Postby code reader » Sun Apr 29, 2007 3:25 am

Highway of Life wrote:I’m not quite understanding what is difficult with putting the registered users code in index.php and faq.php, which are the only two locations that require it after all other options are set in the ACP. :?
it is not that difficult, but you have to admit there is something elegant in exploiting some existing quirk without modifying a single line of code.
it's a shame that the text on the blocked page is somewhat awkward, but the actual functionality is exactly what the OP wanted, with minimal fiddling and zero code change. not sure if that's how i would do it, but, at least until some modding advice is accepted here, that was the best trick i saw so far.
code reader
Registered User
 
Posts: 634
Joined: Wed Sep 21, 2005 3:01 pm

Re: Disable Guest

Postby me_09 » Thu May 10, 2007 11:19 am

But i hope staff phpbb insert this feature on PhpBB3 or i aspect a MOD for this
:)
Because the people want create a forum private, the forum for only person he want is really good
I want create a forum private and don't want the guest see all page for viewtopic, viewforum the problem is resolved
Is easy Permission --> Only group you want
But for index and faq the only page see guest you use a code or i hope phpbb insert this feature
me_09
Registered User
 
Posts: 31
Joined: Wed Apr 04, 2007 11:12 pm

Re: Disable Guest

Postby Highway of Life » Thu May 10, 2007 2:59 pm

The code changes are so small, I can’t imagine MOD being made for it... it’s just more of a tip/trick than a MOD.
Image
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

Re: Disable Guest

Postby Rotsblok » Thu May 10, 2007 3:42 pm

me_09 wrote:But i hope staff phpbb insert this feature on PhpBB3 or i aspect a MOD for this
:)
Because the people want create a forum private, the forum for only person he want is really good
I want create a forum private and don't want the guest see all page for viewtopic, viewforum the problem is resolved
Is easy Permission --> Only group you want
But for index and faq the only page see guest you use a code or i hope phpbb insert this feature



Not likely cos phpBB3 is feature frozen which means nothing is added to the feature list. But i still cannot see why you would want to block guest from seeing your Faq page. I will explain myself. The faq page is uniform on all phpBB forums (unless you are putting stuff in that relates very close to the operation of your board)

And just another "dirty" hack you can also alter the you are permanently banned messages. Problem only is that you then have an strange messages for people that are really banned permanently
ø = 1.618033988749895...
Everything has ø in it
Rotsblok
Registered User
 
Posts: 325
Joined: Mon Nov 14, 2005 12:21 pm
Location: x= y+1

Re: Disable Guest

Postby me_09 » Thu May 10, 2007 8:43 pm

I want create a forum private for only person i want and don't want the other person and guest enter on this forum and don't see page
All page don't see, faq, index ecc.
Example

Guest try a go on page and see Login or
You don't have permission for this page

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

Re: Disable Guest

Postby Highway of Life » Fri May 11, 2007 3:44 am

Yes, but don’t you have the solutions you need already? :?
Image
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

Re: Disable Guest

Postby me_09 » Fri May 11, 2007 10:29 am

The only solution is add this code

Code: Select all
if (!$user->data['is_registered'])
{
    redirect('ucp.php?mode=login');
}


In page you don't want guest see
me_09
Registered User
 
Posts: 31
Joined: Wed Apr 04, 2007 11:12 pm

Previous Next

Return to [3.0/Olympus] Discussion

Who is online

Users browsing this forum: No registered users and 13 guests