Welcome Guest Search | Active Topics | Log In | Register

forum ban Options · View
yafbie
#1 Posted : Wednesday, July 09, 2008 6:03:29 PM
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.
svfox
#2 Posted : Wednesday, July 09, 2008 7:04:50 PM
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.
yafbie
#3 Posted : Wednesday, July 09, 2008 11:50:54 PM
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?
svfox
#4 Posted : Friday, July 11, 2008 7:02:04 AM
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.
svfox
#5 Posted : Friday, July 11, 2008 7:03:17 AM
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.
yafbie
#6 Posted : Saturday, July 19, 2008 1:42:11 AM
Rank: Advanced Member


Joined: 4/17/2008
Posts: 36
I am still looking for a way to do this.
Ederon
#7 Posted : Saturday, July 19, 2008 1:49:41 AM

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.
yafbie
#8 Posted : Monday, July 21, 2008 4:37:50 PM
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 Sad
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.083 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET