|
|
Rank: Advanced Member
Joined: 4/17/2008 Posts: 36
|
Hi, is there a way to prevent users from browsing my forum? I want to "totally" prohibit guest access.
|
|
|
Rank: Member
Joined: 11/2/2007 Posts: 14
|
Yes there is. I found it by screwing the code up. There is some code in there that checks if the user is not logged in and a "Guest" and it lets them right on in. You can take that check out and guests can't be recognized. Then it will make a member check and that check will fail since you've taken out the check for Guest. That is all I remember. But doing this will have adverse reactions like killing smtp verify perhaps since that is tied to it...not sure. I did it by mistake, good luck.
|
|
|
Rank: Advanced Member
Joined: 4/17/2008 Posts: 36
|
Can someone guide me to do this without having to mess up the forum and code?
|
|
|
Rank: Member
Joined: 11/2/2007 Posts: 14
|
It would have to be Jaben. Someone who knows the forums workings. I could not find the right way to do it without huge side effects that ruined it.
|
|
|
Rank: Member
Joined: 11/2/2007 Posts: 14
|
I will go back and look at it again and tell you something you can try that might work. But I make no guarantees. It would be a do at your own risk type of thing.
|
|
|
Rank: Advanced Member
Joined: 4/17/2008 Posts: 36
|
I am still looking for a way to do this.
|
|
|
 Rank: YAF Developer

Joined: 1/8/2007 Posts: 1,083 Location: Heart of Europe
|
IIRC in 1.9.3 there is an option in admin > host settings to allow only registered users access forum (site-wide). Try to look host settings, it's in one of the tabs but I can't tell which without having 1.9.3 installed (which I'm working on right now on my new box). If you have older version and don't intend to upgrade, you'll have to edit code and do something about it in the load event of ForumPage class. Check for IsGuest. ..or something along the line, as I don't have code in front of me. When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
|
|
|
Rank: Advanced Member
Joined: 4/17/2008 Posts: 36
|
I put the if (isGuest) in the forumpage_load, but it's stuck in that loop forever 
|
|
|
| Users browsing this topic |
|
Guest
|
YAFPro Theme Created by Jaben Cargman (Tiny Gecko)Powered by YAF 1.9.3 RC2 |
YAF © 2003-2008, Yet Another Forum.NETThis page was generated in 0.140 seconds.