Advertisement:

Author Topic: Hide Board - Permission protect boards  (Read 48274 times)

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Hide Board - Permission protect boards
« on: December 16, 2005, 01:21:32 AM »
Link to Mod

Written By: Xiaoqing Zhou (Leaf)
Email: leaf88@gmail.com
URL: http://www.anetcity.com/bbs/index.php?board=125.0

This mod adds a 'enter_board' permission to control whether user can enter a board or not.

It checks this 'enter_board' permission when user clicks on a board link, view recent posts or view user posts in user profile.

If user doesn't have this permission, he can not enter the board that he can see.

Steps to use the mod on smf 1.1:

1. Apply the mod
2. Enable advanced by-board permissions under "Admin Panel > Permissions > Settings".
3. Switch the desired board to "Local" under "Admin Panel > Permissions > Permissions By Board".
4. Click on "Local" for the board to open the Permissions by board page for that board.
5. Click on "Modify" for the user group to open the Local permssions page for that group on that board.
6. Check/Uncheck "Enter board" option in "General" category to allow/disallow that group to enter the board.
« Last Edit: December 26, 2006, 11:00:53 PM by Leaf »

Offline Anakin_holland

  • Jr. Member
  • **
  • Posts: 237
  • Gender: Male
  • universe malfunction, restart reality.sys ?
Re: Hide Board
« Reply #1 on: December 16, 2005, 09:02:51 AM »
Hmz,

If used properly, it would render the forum-password mod rather useless?

I mean, when you use a password on a forum, you need to change it regularly? So then you need to do a query using certain data, most probably a user-group. Then you're better of using this mod, because you only need to make the setting once, and there's no need for maintenance and mailings?

off-topic, don't think the topic-title is right.

Greetz!

Offline Prasad007

  • SMF Hero
  • ******
  • Posts: 1,557
  • Gender: Male
  • JOOMLA AND SMF FAN!!
Re: Hide Board
« Reply #2 on: December 16, 2005, 09:16:17 AM »
This is a cool mod! Thank you for this! :)

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Re: Hide Board - Permission to enter board
« Reply #3 on: December 16, 2005, 10:56:48 AM »
If you use a password to control who can enter a board, you have to maintain it. With this mod, you just need one-time permission settings. That's why I created this mod. :)

The mod name may not be correct. I just added some explanation to the tiltle of this topic.


Offline Aly

  • Semi-Newbie
  • *
  • Posts: 11
Re: Hide Board - Permission protect boards
« Reply #4 on: December 19, 2005, 05:05:22 PM »
oh i was wondering how i could set the forums so that its viewable by all but you'd have to have a certain status to go in the board ... so this mod is perfect for my needs thank you again leaf ^-^

btw... where do you go to set the permissions? I can't seem to find where it is.
« Last Edit: December 19, 2005, 05:18:49 PM by Aly »

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Re: Hide Board - Permission protect boards
« Reply #5 on: December 21, 2005, 09:39:07 PM »
Admin->Member Controls->Edit Permissions->Global Board Permissions->General->Enter Board

The permission name is called "Enter Board".

Offline Aly

  • Semi-Newbie
  • *
  • Posts: 11
Re: Hide Board - Permission protect boards
« Reply #6 on: December 22, 2005, 12:06:57 AM »
Admin->Member Controls->Edit Permissions->Global Board Permissions->General->Enter Board

The permission name is called "Enter Board".

Hmmm is that for SMF 1.05?
I have 1.1RC1... the admin control panel is different then the 1.05... I don't have a "Global Board Permissions->General->Enter Board" I've looked in all the catagories for the enter board but i can't find it .-.;

this is what my admin panel looks like:
http://img464.imageshack.us/img464/9065/adminpanel9lg.jpg [nofollow]

and when i go under Permissions and edit by board i see this:
http://img464.imageshack.us/img464/9080/adminpanel15al.jpg [nofollow]

« Last Edit: December 22, 2005, 12:09:22 AM by Aly »

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Re: Hide Board - Permission protect boards
« Reply #7 on: December 22, 2005, 06:46:34 PM »
In 1.1, you can find it when you modify any group: Global Board Permissions->Global->Enter Board.

If you enable by-board permissions, you can click on the board name to open the permission page for that board if that board use local permissions.

Offline edmontonmom*com

  • Newbie
  • *
  • Posts: 9
Re: Hide Board - Permission protect boards
« Reply #8 on: December 29, 2005, 10:15:59 PM »
This mod is exactly what I need , but with my extremely limited experience, I'm not too sure where to even install these files. Can you give some basic directions for me and my fellow tech no-minds? Like which folders I need and what goes where and how to install if I actually need to install after uploading the files?

I guessed that the files would go into  / public_html / forum / HideBoard /

and then when I went to the install I got the message: Fatal error: Call to undefined function: db_query() in /home/k2e2r2r2/public_html/forum/HideBoard/install.php on line 6

Then I moved the files to the Sources folder within the forum (another wild guess)
and got the message : Fatal error: Call to undefined function: db_query() in /home/k2e2r2r2/public_html/forum/Sources/HideBoard/install.php on line 6

So obviously am doing something wrong. No idea what. Nope. None. :-\

Thx,
Kerry ::)
« Last Edit: December 29, 2005, 10:31:23 PM by edmontonmom*com »

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Hide Board - Permission protect boards
« Reply #9 on: December 30, 2005, 07:28:40 AM »
Have you tried placing the mod into the Packages (or is it Package?) folder, without uncompressing it, and use package manager instead?

Offline edmontonmom*com

  • Newbie
  • *
  • Posts: 9
Re: Hide Board - Permission protect boards
« Reply #10 on: December 31, 2005, 08:18:55 PM »
Thanks a million for your response. I will try that and let you know how it goes!  :)

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Re: Hide Board - Permission protect boards
« Reply #11 on: January 02, 2006, 09:33:08 PM »
Support 1.1 RC2.

edmontonmom, you need install mods from package manager in admin panel.
« Last Edit: January 03, 2006, 11:36:06 AM by Leaf »

Offline edmontonmom*com

  • Newbie
  • *
  • Posts: 9
Re: Hide Board - Permission protect boards
« Reply #12 on: January 03, 2006, 08:23:23 PM »
Hi Leaf, thanks for the reply. Okay, I have installed the mod, apparently successfully according to my package manager, but cannot see any difference. What am I looking for, and where???
Still a bit confused, any help would be great.

Edit after using my brain for another minute or two:   OH! Is it the enter board thing? Must be. Duh. Think I've got it now. Thanks so much Leaf for the mod and the reply, and to Sheepy!
Kerry   :D
« Last Edit: January 03, 2006, 08:27:09 PM by edmontonmom*com »

Offline Faustus

  • Jr. Member
  • **
  • Posts: 116
Re: Hide Board - Permission protect boards
« Reply #13 on: January 07, 2006, 12:06:27 PM »
Does the admin have to give the permission?

Would it be possible to let the user themselves give it?

I'm trying to find a way so that the more off color sections of my forum don't automatically show up unless the user wants them to.

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Re: Hide Board - Permission protect boards
« Reply #14 on: January 07, 2006, 01:39:28 PM »
There is another mod to let user select what boards to be shown/hidden.

Offline huijaa

  • Jr. Member
  • **
  • Posts: 119
  • Gender: Male
  • ~Jaap Huijsman~
    • Dovenforum Nederland
Re: Hide Board - Permission protect boards
« Reply #15 on: February 06, 2006, 04:26:57 PM »
It works perfectly...
Dovenforum Nederland -- a forum for deaf people in the Netherlands --

Offline stargazer_1017

  • Jr. Member
  • **
  • Posts: 123
  • Gender: Female
Re: Hide Board - Permission protect boards
« Reply #16 on: March 01, 2006, 04:01:11 PM »
Ooh, I've been waiting for something like this! Does it work for 1.0.6 too?

-Shayna

Offline MarkDalzell

  • Newbie
  • *
  • Posts: 9
  • Gender: Male
  • www.JerseyCityMusic.com
    • JerseyCityMusic.Com
Re: Hide Board - Permission protect boards
« Reply #17 on: March 14, 2006, 12:20:05 PM »

  Hi.... I know this is like the 10th post like this, but I can't figure out how to configure it either. I'm using 1.1RC2. I don't have any kind of "Global Board Permissions" or anything like that.  If anyone using 1.1RC2 figured it out, please post a detailed description of how you did it.... Thanks....

Mark.
hxxp:www.jerseycitymusic.com [nonactive]

Offline Jennifer

  • Semi-Newbie
  • *
  • Posts: 19
    • NonaNet
Re: Hide Board - Permission protect boards
« Reply #18 on: March 18, 2006, 08:26:18 AM »
Oh, good! It's not just me. :)

Offline Leaf

  • Jr. Member
  • **
  • Posts: 147
    • Oneleaf Forum(一叶论坛)
Re: Hide Board - Permission protect boards
« Reply #19 on: May 01, 2006, 11:28:46 AM »

  Hi.... I know this is like the 10th post like this, but I can't figure out how to configure it either. I'm using 1.1RC2. I don't have any kind of "Global Board Permissions" or anything like that.  If anyone using 1.1RC2 figured it out, please post a detailed description of how you did it.... Thanks....

Mark.
In smf 1.1 RC2, admin panel->Members->Permissions->Permissions by Membergroup, click on the Modify link of one of the groups, then there is a checkbox added by this mod: Global Board Permissions->General->Enter board.