Advertisement:

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

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,280
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Allowing guests to see all Boards but not entering
« Reply #80 on: September 02, 2005, 08:17:45 PM »
12,13,27 are board ids right?
so you mean we will change ONLY this code and it will work for all the groups?
Home of Elmacik

Offline Jay T

  • Jr. Member
  • **
  • Posts: 143
Re: Allowing guests to see all Boards but not entering
« Reply #81 on: September 02, 2005, 10:43:06 PM »
the 12,13,27 are example board ids. You will need to change those numbers for the boards you want this mod for.

If you will just put in this code and change the permissions for the groups, it work.

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Allowing guests to see all Boards but not entering
« Reply #82 on: September 03, 2005, 09:06:54 AM »
Hmm...  I started this topic back when I was using RC1. but I cant seem to get it to work with 1.1BP

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,280
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Allowing guests to see all Boards but not entering
« Reply #83 on: September 03, 2005, 09:16:43 AM »
Hmm...  I started this topic back when I was using RC1. but I cant seem to get it to work with 1.1BP

i made the [unknown]'s code work with 1.1bp but works only for guests.
i will try this now.
edit: this code works ONLY for GUESTS too...
normal members cannot see the marked board. (guest can, but not enter.)
« Last Edit: September 03, 2005, 09:26:35 AM by elmacik »
Home of Elmacik

Offline Jay T

  • Jr. Member
  • **
  • Posts: 143
Re: Allowing guests to see all Boards but not entering
« Reply #84 on: September 03, 2005, 01:34:10 PM »
For all boards

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]

For specific boards. You have to change the (12, 13) to the specific boards on your forums you want this to work on. (12, 13) are just an example

You want to replace this:

Code: [Select]
WHERE $user_info[query_see_board]" . (empty($modSettings['countChildPosts']) ? "
AND b.childLevel <= 1" : ''), __FILE__, __LINE__);

With:

Code: [Select]
WHERE ($user_info[query_see_board]" . ($user_info['is_guest'] ? " OR b.ID_BOARD IN (12, 13)" : '') .')' . (empty($modSettings['countChildPosts']) ? "
AND b.childLevel <= 1" : ''), __FILE__, __LINE__);

-[Unknown]


And this does work for all guests and groups not assigned to those boards. I am using it on my boards.


« Last Edit: September 03, 2005, 01:36:59 PM by Jay T »

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,280
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Allowing guests to see all Boards but not entering
« Reply #85 on: September 04, 2005, 05:14:27 PM »
i dont know whats wrong but didnt work with my forum.
i changed the codes, changed the board ids accordin to my needs, i removed the permission of the spesific group that i dont want them to enter but to see...
that didnt work..

thanks again. i will try to figure out again.
« Last Edit: September 07, 2005, 09:01:21 PM by elmacik »
Home of Elmacik

Offline Dinagyang

  • Semi-Newbie
  • *
  • Posts: 48
Re: Guests
« Reply #86 on: September 07, 2005, 03:02:00 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 want guests to see the topics posted but not read the message. I need help on this.
THanks!
« Last Edit: September 07, 2005, 03:13:34 AM by berlin »

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Allowing guests to see all Boards but not entering
« Reply #87 on: September 07, 2005, 08:21:10 AM »
Tried the most recent one you posted by unknown. Its still  not working with 1.1 BP. :-[

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Allowing guests to see all Boards but not entering
« Reply #88 on: September 20, 2005, 05:47:00 AM »
good trick but is possible do this ?  ???


i want have one section called DONATORS (id=87) that will be visible to 2 or 3 (not important how many groups)  membergroups but allowed to entry are only one membergroups called Donatori (id=134)

how is possible do this?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline mrandall131

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
    • Killing Authority
Re: Allowing guests to see all Boards but not entering
« Reply #89 on: September 20, 2005, 07:56:40 AM »
Check [unknown]'s response to my questions earlier in the thread.  The code is there to allow both guests and regular members to see the boards, I currently have it running on my forums.   8)

Offline farg

  • Semi-Newbie
  • *
  • Posts: 89
  • Gender: Male
  • Italian Power
Re: Allowing guests to see all Boards but not entering
« Reply #90 on: September 21, 2005, 04:48:38 AM »
I think that this all this mods MUST BE include in admin section...
I hope in next release  ;)

Offline xtremecruiser

  • Jr. Member
  • **
  • Posts: 375
    • GolfDiscussions.com
Re: Allowing guests to see all Boards but not entering
« Reply #91 on: September 23, 2005, 03:01:40 PM »
Will this work with SMF 1.1 RC1.

Offline mrandall131

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
    • Killing Authority
Re: Allowing guests to see all Boards but not entering
« Reply #92 on: September 24, 2005, 04:43:42 PM »
That's a question for unknown, but it works with 1.1B3.

Offline JustJa

  • Jr. Member
  • **
  • Posts: 274
  • Gender: Female
Re: Allowing guests to see all Boards but not entering
« Reply #93 on: September 26, 2005, 09:10:36 AM »
I have Unknowns mod running nice on my forum. I created this area for special members that others can see but not come into it.
My older members are asking me to modify it so that this permition can be given manually. Istead of ruling by the amount of posts, it would be authorized by indication.
Any ideas?

Thanks!
:)

Offline flybywire44

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Allowing guests to see all Boards but not entering
« Reply #94 on: October 19, 2005, 10:34:36 AM »
Referencing: http://www.simplemachines.org/community/index.php?topic=16281.msg193474#msg193474

I've tried to apply this code but I cannot figure out which board IDs I should put in there.
Am I doing it right?

I'm using this in the BoardIndex
Code: [Select]
WHERE ($user_info[query_see_board]" . ($user_info['is_guest'] ? " OR b.ID_BOARD IN (06, 02)" : '') . ")
This is in regards to the Members Corner and Committie on @ hxxp:www.alphaomicronalpha.org/forums [nonactive]

Thanks,
-Rick
« Last Edit: October 19, 2005, 03:05:53 PM by flybywire44 »
hxxp:www.alphaomicronalpha.org/forums [nonactive]

Offline thetzfreak

  • Semi-Newbie
  • *
  • Posts: 99
Re: Allowing guests to see all Boards but not entering
« Reply #95 on: October 24, 2005, 10:43:24 AM »
I saw one reply on how to make all the boards visible, but to make the threads unreadable. Can someone please post code on how to make the threads unviewable for only one board?

More explanation: I want guests to be able to view this particular board and to go inside the particular board and see all the different threads in the particular board, but when they click on any of the threads, they will be asked to login/register.

Remember, only one of the boards.

Thanks :)

Offline thetzfreak

  • Semi-Newbie
  • *
  • Posts: 99
Re: Allowing guests to see all Boards but not entering
« Reply #96 on: October 25, 2005, 01:36:47 PM »
Anyone?

Offline mrandall131

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
    • Killing Authority
Re: Allowing guests to see all Boards but not entering
« Reply #97 on: October 25, 2005, 01:49:44 PM »
I think that is the "normal" operation for SMF.  I mean, without a mod, guests can't post in my forum.  Look in permissions for guests.  Might be way off base, but I bet you can make it so they can't post in the forum.

Offline thetzfreak

  • Semi-Newbie
  • *
  • Posts: 99
Re: Allowing guests to see all Boards but not entering
« Reply #98 on: October 25, 2005, 02:41:49 PM »
I think that is the "normal" operation for SMF.  I mean, without a mod, guests can't post in my forum.  Look in permissions for guests.  Might be way off base, but I bet you can make it so they can't post in the forum.
I don't think you understood what I meant. I meant that people can't view the threads themselves in a board. If they click on one of the threads in one particular section, they will be taken to the login page.

Offline huijaa

  • Jr. Member
  • **
  • Posts: 119
  • Gender: Male
  • ~Jaap Huijsman~
    • Dovenforum Nederland
Re: Allowing guests to see all Boards but not entering
« Reply #99 on: October 25, 2005, 04:44:48 PM »
Right...

An example...

If guest see...
+---------
| MemberBoard                 4 topics     By name
| For members only           and           at today, 10:42
| Moderator: name           10 posts
+---------
When that guest clicks into, he gets a login page, but if he was a member, he gets a index of this board. i'm looking for a mod...
Dovenforum Nederland -- a forum for deaf people in the Netherlands --