bbPress

Simple, Fast, Elegant

bbPress plugin browser »

Forum Restriction (1.5)

Download

Version: 1.5

Other Versions

Last Updated: 2007-2-16

Requires bbPress Version: 0.73 or higher

Compatible up to: 0.75

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(9)

Your Rating

Author: David Bessler


  1. Found out it is compatible provided you add a plugin header to the plugin that must be used in conjunction with this, Display Name. Get newer version with plugin header here. Then the forum heirarchy will function properly.

    Still unable to make the admin page appear and thus cannot add/remove usernames at this point, that still needs a fix.

    Posted: 1 year ago #
  2. I was able to make the admin page appear.

    Replace the function function_restriction_adminnav() to this

    function forum_restriction_adminnav() {
    bb_admin_add_submenu(__('Forum Restriction'), 'use_keys', 'forum_restriction_admin_page');
    }

    It appears and works, but I cant seem to get the admin settings to allow me the admin to see all forums. Seems to have an old way of checking admin or something. (Also doesnt pull up old info.)
    But at least the admin page shows.

    Wilbur

    PS Following your advice. I updated Display Names and now it works. Ill look into the hierarchy when I get a chance.

    Posted: 1 year ago #
  3. Another big problem that I fixed.
    If you for some reason did not put yourself in the list of people who could see the forum, well it disappeared. I dont see any reason why a keymaster should not be able to see everything in the forum, so I added this
    && !bb_current_user_can( 'use_keys' )
    to the line 102 and 173 so now it looks like

    if ($pos === FALSE && !empty(
    $forum_restriction_allowed_in_forum
    [$forum->forum_id]) && !bb_current_user_can( 'use_keys' )) {

    basically it has to not be all three of these for you to not see the forum. The last bit just checks to make sure your not a keymaster.

    I havent seen any trouble with the hierarchy but I havent played with it much.

    Wilbur

    PS Unless you mean that if you only put the top forum restricted then the children are not restricted. It still functions on a forum per forum basis.
    Would be so much better to set as groups, but oh well.

    PSS Ok I noticed this. If you had a forum that was a child of another forum which was a child of another forum and restricted the middle forum, then the grandchild and the grandparent would show as normal with the parent missing and the format wouldnt show for the grandchild. (meaning the grandchild would not be indented.) I dont know if this is necessary a bad thing. Why would you ever restrict the parent but not the children? If you did this why would you then want the child to be indented since its parent would be missing?

    Posted: 1 year ago #
  4. 'function forum_restriction_adminnav() {
    bb_admin_add_submenu(__('Forum Restriction'), 'use_keys', 'forum_restriction_admin_page');
    }'

    Added that in and now when a topic is created anywhere the user gets this error message:

    Warning: sprintf() [function.sprintf]: Too few arguments in /***/***/public_html/forums/my-plugins/forum-restriction.php on line 214

    Warning: Cannot modify header information - headers already sent by (output started at /***/***/public_html/forums/my-plugins/forum-restriction.php:214) in /***/***/public_html/forums/bb-includes/pluggable.php on line 168

    Other than that it works beautifully. I pulled my old copy of the plugin since the plugin here has been updated already. Installing that nixed the admin page again, but at least everything else is working.

    Posted: 1 year ago #
  5. Only just now noticed that the topics of the restricted forums are listed under Recent Replies on the user profile. To have those hidden would be great, as for right now I'll have to notify people not to use sensitive info in the topic title.

    Posted: 1 year ago #
  6. Is this plugin incompatible with spaces in usernames?

    Posted: 1 year ago #
  7. oledole

    Member

    I've just installed this and made the changes suggested above. One problem I see is that I cant chose a forum when starting a new topic. There are no forums displayed in the drop-down (this happens regardless who's logged in).

    Further, when I publich a new topic while in the forum-page of the restricted forum (the only way to be able to chose forum for the topic), the topic is not published in the restricted forum, but in another.

    Posted: 1 year ago #
  8. Righto... Just upgraded BBPress and horrified myself when I realised that this plugin didn't work with the new version (as others before me have done!).

    None of the options given here for fixing it so that the admin page reappears seem worth the potential side-effects, so I'm probably going to wait and see if a plugin update is imminent. (Hint-hint... IS A PLUGIN UPDATE IMMINENT??)

    I figure that the plugin still works, I just can't make easy changes to the users that have access to certan forums.
    I've got php-myadmin access to the SQL database used, so I was wondering if anyone here knows the tables/fields that I'd need to amend if I wanted to change which users had access to where?

    Posted: 1 year ago #
  9. it didn't work for me what is the problem?
    i download it and
    active it but nothing happened no menu in admin area
    so
    help me i need this asap

    Posted: 1 year ago #
  10. purus

    Inactive

    Is this plugin no longer being supported? Is there some kind of replacement out there? When I installed and activated this plugin the first discussion board disappeared from view and when I deactivated the plugin the discussion board was back in the list...

    Posted: 10 months ago #
  11. Unfortunately, I don't have the time any more to support it. Sorry. Anybody want to take it over?

    Posted: 8 months ago #
  12. affacat

    Member

    i could really use this plug-in as well. based on recent comments it sounds like it's not compatible with 9.0.1.

    I will RSS this in hopes someone updates the plugin...

    pretty please.

    Posted: 7 months ago #
  13. I would have thought that there would be more updates over time :/
    I'm starting to regret having installed BBPress... So much work and so little payoff (all I get is the synchronized registration, and even that's sort of weird)

    Posted: 7 months ago #
  14. For those having trouble, some of the functionality of this plugin can be used via the Private Forums plugin instead:

    http://bbpress.org/plugins/topic/private-forums

    Posted: 7 months ago #
  15. affacat

    Member

    unfortunately, private-forums bases visibility on user level, and user level doesn't really work for me at all unless i could make custom user levels. forum-restriction allows me to do what i need - give a user access to a forum without necessarily upgrading them to moderator.

    Posted: 7 months ago #
  16. affacat

    Member

    i may even need to reinstall SMF over this one. i'll probably keep bbpress as the public forum, but i really need the ability to have discussions out of the public eye -- we have a lot of projects going on and private forums used to be the way we conversed about them (with only project members able to see project forums, and then only the ones they are involved with).

    Posted: 7 months ago #
  17. Let me review this plugin and see if it's easy or difficult fixes for the problems.

    It strikes me this is very much the same technique as my "ignore member" plugin which has to filter everything based on user_id, essentially it's the reverse here where all members are filter out for certain forums/topics except certain members.

    Posted: 7 months ago #
  18. Okay to get back the sub-menu in admin just change this line (17)
    $bb_submenu['site.php'][] = array(__('Forum Restriction'), 'use_keys', 'forum_restriction_admin_page');
    to this:
    bb_admin_add_submenu(__('Forum Restriction'), 'use_keys','forum_restriction_admin_page','content.php');

    I'm reviewing some more...

    Posted: 7 months ago #
  19. This plugin is actually written fairly well. A few techniques that need performance improvements like how it stores/try to search by name instead of ID and it lookups ALL id's in the admin section but that can be fixed.

    It's just a little out of date with some of the changes to bbPress. If you let me know the problems I will try to post the fixes.

    David, if you'd like, have mdawaffe add me to the SVN with permissions on this plugin and I'll post fixes directly for you?

    Posted: 7 months ago #
  20. affacat

    Member

    _ck_ you would be my hero if you got this plugin working again.

    Posted: 7 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.