TinyPortal

General => Chit chat => Topic started by: JaT on August 29, 2005, 05:36:50 PM

Title: Tip & Trick Help
Post by: JaT on August 29, 2005, 05:36:50 PM
I need some help with the "Allowing guests to see all Boards but not entering" trick. No one seems to want to help at SMF.

Well i have this set up to where there is one board I have regular users are able to see but can't enter it.

But they are able to see the Last topic posted and the thread name. Does anyone know how to code this to where in the Last Post box it will say something like "Restricted"?

Thanks
Title: Re: Tip & Trick Help
Post by: IchBin on August 29, 2005, 08:03:43 PM
I'm not sure that is possible. In order for the person not to see the posts in the "last topic posted" they will have to have the right taken away to see the board.
Title: Re: Tip & Trick Help
Post by: JaT on August 29, 2005, 10:26:12 PM
I understand that.

Couldnt you just change the code to say "Restricted" for the regular membergorup, for that paticular board?
Title: Re: Tip & Trick Help
Post by: IchBin on August 29, 2005, 10:45:34 PM
I would imagine you probably could but that would require coding, which I am no good at just yet. Maybe Bloc could give you a more definitive answer on this.
Title: Re: Tip & Trick Help
Post by: JaT on August 30, 2005, 01:18:52 AM
Yo Bloc! Holla at me.
Title: Re: Tip & Trick Help
Post by: Bjørn on August 30, 2005, 04:03:09 PM
You called? ;D

Its actually difficult to to do this, because everything happens "behind the scenes". When SMF is fetching last post, it looks JUST in the boards you are allowed to see. So to show boards you are not allowed, you would have to change that function, and even check a extra time if it indeed is restricted.
Title: Re: Tip & Trick Help
Post by: JaT on August 30, 2005, 05:17:54 PM
That make since as well. But it just seems there should be a way to do it. Here is the code that allows regular members to see the board on the index but will not allow them to enter it.

WHERE ($user_info[query_see_board]" . ($user_info['is_guest'] ? " OR b.ID_BOARD IN (13)" : ' OR b.ID_BOARD IN (13)') . ')' . (empty($modSettings['countChildPosts']) ? "
AND b.childLevel <= 1" : ''), __FILE__, __LINE__);


There should be a way to change the last post code in the boardindex.php for that paticular board.