Customizing SMF > Tips and Tricks

Allowing guests to see all Boards but not entering

<< < (2/59) > >>

[Unknown]:
For Sources/MessageIndex.php, find:


--- Code: ---$user_info[query_see_board]
--- End code ---

Replace with:


--- Code: ---($user_info[query_see_board]" . ($user_info['is_guest'] ? " OR FIND_IN_SET('0', b.memberGroups)" : '') . ")
--- End code ---

-[Unknown]

farg:
and allow all member's group to view all board?

for example:
now, with this mod, a guest can view a board for registred members but its says they (guests) have no access to it without login.. ok!...
 but if a board is for supermoderator only? Guest and registred members not see it  :(

i want that all board are visible for all user...

who's able to help me?

(excuse for may bad english!  :P)

Oldiesmann:
Why do you want a board for super moderators to be visible to guests and all registered members who can't post in it?

farg:
ehm..
i've create a forum for Vip (user with 40 posts) and i want that this forum is visible for all (but non entering/access)!!
smf has many option for permission but it hasn't most important permission (like ipb2)
i hope so  ;)

Oldiesmann:
I'll see what I can come up with, but I still don't understand why you'd want a board to be visible to everyone who can't post there...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version