Advertisement:

Author Topic: Allowing guests to see all Boards but not entering  (Read 248704 times)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Allowing guests to see all Boards but not entering
« Reply #280 on: December 06, 2008, 11:02:06 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

Offline JuzMazaaaZeus

  • Semi-Newbie
  • *
  • Posts: 10
Re: Guests
« Reply #281 on: December 07, 2008, 01:45:58 AM »
Sources/BoardIndex.php, find:

Code: [Select]
WHERE $user_info[query_see_board]
Replace with:

Code: [Select]
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 !!!

Offline mototalkuk

  • Semi-Newbie
  • *
  • Posts: 17
Re: Allowing guests to see all Boards but not entering
« Reply #282 on: March 23, 2009, 03:36:03 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!
« Last Edit: March 23, 2009, 03:40:09 AM by mototalkuk »

Offline bosmolskate

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Female
    • SEO Optimizers Website promotion
Re: Allowing guests to see all Boards but not entering
« Reply #283 on: March 23, 2009, 03:33:09 PM »
Great tips and advice!

HabForms

  • Guest
Re: Allowing guests to see all Boards but not entering
« Reply #284 on: April 07, 2009, 07:45:13 AM »
i cant find the code my site is www.habforms.com

Offline Dragooon

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,738
  • Gender: Male
  • I'm batman
    • ShitizGarg on Facebook
    • Dragooon on GitHub
    • dragooon on LinkedIn
    • SMF-Media
Re: Allowing guests to see all Boards but not entering
« Reply #285 on: April 24, 2009, 06:33:51 AM »
Did you get this issue solved? If not, you can have a look at this mod.

Offline B1gft

  • Semi-Newbie
  • *
  • Posts: 49
Re: Allowing guests to see all Boards but not entering
« Reply #286 on: November 29, 2010, 09:32:11 AM »
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

Offline paulwiggy

  • Newbie
  • *
  • Posts: 1
Re: Allowing guests to see all Boards but not entering
« Reply #287 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

Offline Illori

  • Lead Support Specialist
  • SMF Legend
  • *
  • Posts: 52,934
Re: Allowing guests to see all Boards but not entering
« Reply #288 on: November 30, 2010, 10:56:39 AM »
in admin->features and option you can disable guests from viewing your whole forum.

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,927
  • Gender: Male
Re: Allowing guests to see all Boards but not entering
« Reply #289 on: November 30, 2010, 02:13:59 PM »
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:

Code: [Select]
// 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:

Code: [Select]
// 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';


Offline #socialmedialikers#

  • Semi-Newbie
  • *
  • Posts: 11
Re: Allowing guests to see all Boards but not entering
« Reply #290 on: June 03, 2012, 07:55:31 PM »
mine says
'boardindex-latest_posts:' . md5($user_info[query_wanna_see_board]" .
What to do?

Offline tMicky

  • Jr. Member
  • **
  • Posts: 146
  • Gender: Female
Re: Allowing guests to see all Boards but not entering
« Reply #291 on: September 22, 2012, 07:43:09 AM »
is there an update? the trick below no longer works -

Code: [Select]

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]

Offline ElviraS

  • Newbie
  • *
  • Posts: 6
Re: Allowing guests to see all Boards but not entering
« Reply #292 on: September 23, 2012, 11:25:35 AM »
Is there an update on how this trick can be done for SMF version 2.0.2?

TheListener

  • Guest
Re: Allowing guests to see all Boards but not entering
« Reply #293 on: September 23, 2012, 05:16:51 PM »
Try the View Only Boards Mod.

Offline Elliiott

  • Semi-Newbie
  • *
  • Posts: 24
Re: Allowing guests to see all Boards but not entering
« Reply #294 on: December 25, 2014, 08:58:00 AM »
Friends this code no longer works, anyone know how to do this for those who use 2.0.9 thanks!

Code: [Select]
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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Allowing guests to see all Boards but not entering
« Reply #295 on: December 25, 2014, 09:35:07 AM »
Use View Only Boards instead.
No good deed goes unpunished
All helpful urges should be circumvented

Offline marcio.mendes

  • Newbie
  • *
  • Posts: 6
Re: Allowing guests to see all Boards but not entering
« Reply #296 on: December 25, 2014, 08:15:08 PM »

Offline karaflas

  • Newbie
  • *
  • Posts: 1
Re: Allowing guests to see all Boards but not entering
« Reply #297 on: January 18, 2015, 06:58:48 PM »
Use View Only Boards instead.

this works on SMF 2.0.9??

bump, and if it doesn't how can we apply such mod in 2.0.9?

Offline stuffedanimals

  • Newbie
  • *
  • Posts: 3
Re: Allowing guests to see all Boards but not entering
« Reply #298 on: January 21, 2015, 12:43:31 AM »
I tried but it didn't work. Could you please check it and share with us again? Tks.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,422
  • Gender: Male
    • Kindred-999 on GitHub
Re: Allowing guests to see all Boards but not entering
« Reply #299 on: January 21, 2015, 11:16:45 AM »
"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
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."