TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,995
  • Total Topics: 21,326
  • Online today: 148
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 97
  • Total: 97

Tip & Trick Help

Started by JaT, August 29, 2005, 05:36:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JaT

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

IchBin

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.

JaT

I understand that.

Couldnt you just change the code to say "Restricted" for the regular membergorup, for that paticular board?

IchBin

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.

JaT


Bjørn

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.

JaT

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.