News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Allowing guests to see all Boards but not entering

Started by trenchteam, September 05, 2004, 11:19:01 PM

Previous topic - Next topic

[SiNaN]

Quote from: Jhez on November 12, 2008, 07:19:23 AM
I would like all Guests to see, but not be able to enter, all the boards they would get access to by registering (one standard group). Is this similar to OP?

Try this mod:

http://custom.simplemachines.org/mods/index.php?mod=1332
Former SMF Core Developer | My Mods | SimplePortal

JuzMazaaaZeus

Quote from: [Unknown] on September 05, 2004, 11:37:51 PM
Sources/BoardIndex.php, find:

WHERE $user_info[query_see_board]

Replace with:

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

--> Tips and Tricks.

-[Unknown]

I am surely going to try it !!!
Thanks !!!

mototalkuk

#282
Quote from: Blue Dream on December 06, 2008, 11:02:06 AM
Quote from: Jhez on November 12, 2008, 07:19:23 AM
I would like all Guests to see, but not be able to enter, all the boards they would get access to by registering (one standard group). Is this similar to OP?



http://custom.simplemachines.org/mods/index.php?mod=1332


I've just tried this on 1.1.8 and it appears to work well so far with no bugs found.  Thanks very much!

bosmolskate



Dragooon

Did you get this issue solved? If not, you can have a look at this mod.

B1gft

Is there an update on this code as when I went into the the file coding on the line was different than shown.
I assume it could have slightly changed as the script progressed.
thanks

paulwiggy

Hi, could someone help me with a simple question.  Is it possible to configure this product so that user must register before they can see anything on any of the forums

Illori

in admin->features and option you can disable guests from viewing your whole forum.

Masterd

Quote from: paulwiggy on November 30, 2010, 07:39:05 AM
Hi, could someone help me with a simple question.  Is it possible to configure this product so that user must register before they can see anything on any of the forums

Find this in Sources/Load.php:

// Now check if the user is a moderator.
$user_info['is_mod'] = isset($board_info['moderators'][$user_info['id']]);

if (count(array_intersect($user_info['groups'], $board_info['groups'])) == 0 && !$user_info['is_admin'])
$board_info['error'] = 'access';


Replace that with this:

// Now check if the user is a moderator.
$user_info['is_mod'] = isset($board_info['moderators'][$user_info['id']]);

if ((count(array_intersect($user_info['groups'], $board_info['groups'])) == 0 && !$user_info['is_admin']) || (!empty($topic) && $user_info['is_guest']))
        $board_info['error'] = 'access';



#socialmedialikers#

mine says
'boardindex-latest_posts:' . md5($user_info[query_wanna_see_board]" .
What to do?

tMicky

is there an update? the trick below no longer works -



WHERE $user_info[query_see_board]


Replace with:

Code:

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


--> Tips and Tricks.

-[Unknown]

ElviraS

Is there an update on how this trick can be done for SMF version 2.0.2?

TheListener


Elliiott

Friends this code no longer works, anyone know how to do this for those who use 2.0.9 thanks!

WHERE $user_info[query_see_board]


Replace with:

Code:

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


--> Tips and Tricks.

Arantor




stuffedanimals

I tried but it didn't work. Could you please check it and share with us again? Tks.

Kindred

"didn't work" isn't a great description.

HOW did it not work?

What error(s) did you get?
Did it say something like - this mod is not compatible with your version of SMF?
if so: http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version

did it give your errors during the installation tests?
if so: http://wiki.simplemachines.org/smf/Error_in_mod_installation

did it install but fails to work or gives errors when you attempt to use it?
If so: Please detail the specific error or problem
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: