Customizing SMF > Tips and Tricks

Allowing guests to see all Boards but not entering

(1/59) > >>

trenchteam:
I want guests to be able to see all the boards, but when the click the board, its says they have no access to it without login. How do I do this. WHen i set permissons in the admin, when your a guest the board just doesnt appear at all to them.   I want it to be able to be seen, but disable access until they are registered.  not sure if this makes sense.

[edit] changed topic title [/edit]

[Unknown]:
Sources/BoardIndex.php, find:


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

Replace with:


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

--> Tips and Tricks.

-[Unknown]

CapriSkye:
ha i thought you could just do this with the permissions...but i guess not

trenchteam:
thanks. worked perfectly.

trenchteam:

--- Quote from: CapriSkye on September 05, 2004, 11:51:57 PM ---ha i thought you could just do this with the permissions...but i guess not

--- End quote ---
No it doesnt. I attempted that.  Didn't work.

Navigation

[0] Message Index

[#] Next page

Go to full version