WordPress.org

Ready to get started?Download WordPress

Forums

WP Bulletin Board
[resolved] Permission Denied? (29 posts)

  1. CaylorMe
    Member
    Posted 1 year ago #

    I am running WordPress 3.4.2 with Multi-Sites (SubDirectory). I have successfully installed and activated this plugin. I have also successfully created a category, forums, and a topic for testing. The problem lies when I attempt to view the forums. The forum page will load up appropriately, but when I attempt to actually enter the forums, I get this message:

    You do not have the required permissions to access this forum!

    Now, I noticed that when I modify wp-bulletin-board/php/wpbb-view-forum.php on line 9 and comment out the following:

    // Third parameter is 'view' by default
    	$view_permissions = wpbb_user_has_permission($user_id, $forum);
    	if ($view_permissions === false) {
    		wpbb_goback1('forum-index', NULL);
    		?>
    		<div class="wpbb-message-failure">
    			<?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?>
    		</div>
    		<?php
    		wpbb_exit();
    	}

    The forum loads properly. However, when I actually click on the topic, it gives me the same message. I know I could modify the view-topic code in the same manner as the view-forum code above and allow all users to bypass the permission system, but I don't want to do that. I like the permissions system.

    Is this plugin not compatible with the Multi-Site system?

    http://wordpress.org/extend/plugins/wp-bulletin-board/

  2. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    I've not written any code that is multi site specific and haven't tested the plugin in a multi site environment so although some things may work I wouldn't recommend running it.

    That said you shouldn't have to edit any code to do stuff like that. You can set/change the permissions for all roles (including custom roles) when creating/editing a forum/sub forum (I assumed you've already done that in which case it is an issue with multisite)

    I may delay the next update and test this on multi site and "officially" have it supported, will see what I can do. Thank you for reporting this, will mark this as resolved for now but feel free to open another topic at any time.

  3. empire592149
    Member
    Posted 1 year ago #

    Hi I'm new to wordpress and wpbb, I'm having the exact same problem, plugin installed fine, set up category and forum, created a topic but when I visit the forum and click on the topic I get
    "You do not have the required permissions to view this forum!"
    I have given all permissions to all roles and still have the same problem and I'm not running multisites.
    My website
    Any ideas would be much appreciated.
    Thankyou
    Angela

  4. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    Hey empire592149,

    Did you get it working? I registered at your website and can view the topic in question.

  5. empire592149
    Member
    Posted 1 year ago #

    Hi thanks very much for the extremely quick reply.I'm sorry if i have repeated my post but I realized that this was a 'resolved' item and was'nt sure if it would get looked at again.
    I have just made up a new user and your right I can view the topic, however I still can't view it with the users that were registered before I installed the plugin, including me the administrator. I could try re- registering myself and the other users as I really would like to keep WPBB, I've tried no end of plugins and this one for a beginner has been great, not overdone yet still very effective, and easy to understand.
    Can you suggest any other way of correcting the problem before I attempt re-registering my members.
    Thanks again
    Angela

  6. CaylorMe
    Member
    Posted 1 year ago #

    Thanks for the response. I am aware that I do not need to make modifications to the code for proper permission configuration, however I could not access the created forums with my administrator account nor while logged out. If you could look further into this issue I'd greatly appreciate it. I currently do not consider the case as resolved if it doesn't support Multi-Sites, but it seems as if Angela(empire592149) is having the same issue without using Multi-Sites.

  7. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    Do either of you have any other plugins installed that may be interfering with the plugin? When you view one of your users profiles, what role are they set to and what roles are available to you? When you create or edit a forum/sub forum, are those same roles also available and if so are they ticked as necessary?

    To save you waiting any longer please also take any screenshots if you can or if possible create me a temporary admin account and email me the details (me@codebycarter.com).

    Thanks.

  8. CaylorMe
    Member
    Posted 1 year ago #

    codebycarter, I have re-enabled wpBB on my website. I will e-mail you your username and password along with my site's login page. This problem still persists, and there are no conflicting plugins. However, my site is on a MultiSite Network

  9. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for that I did login and indeed have trouble viewing a topic when I should have access to it, very odd. Still looking into this issue and awaiting replies from other people about this as one persons website I looked at worked fine for me (one other question was why they couldn't view locked topics when they didn't have locked permission) so excluding multisite it may be down to user misunderstanding of how it works.

    Will be releasing an update tomorrow and will then make it my priority to make it compatible with multisite.

    Thanks for your patience.

  10. CaylorMe
    Member
    Posted 1 year ago #

    Thank you for your prompt responses and quality support!

  11. heidy7
    Member
    Posted 1 year ago #

    Hello codebycarter,

    Firstly, let me thank you, that I finally found a perfect plugin. I installed it and it was perfect. It is great that my members can write reply in the same page with TinyMCE like me in wordpress. And I like that the forum is able to organize according to my page width.

    But I have also the same problem as previous people mentioned. I cannot access to my forum as an administrator. It writes "You do not have the required permissions to access this forum! ".

    Are you able to solve it, because definitely I would like to use your plugin on my website.

    Thank you.

  12. heidy7
    Member
    Posted 1 year ago #

    I wanted to add that I registered as a member (in my case subscriber) and added for it the same permisions as administrator(me) except "lock" and it has functionality. As subscriber I can create topic, view the forum and everything.

    It is rely interesting that administrator is denied and member not.

    There must me any error....

    I hope that it will be solved because this is a very good plugin :))

  13. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    Hey heidy7,

    Will be releasing an update tomorrow that fixes this issue, I already know what is causing it and managed to fix it for somebody already just need to make sure it is the same thing on somebody else's site before releasing it and of course making sure everything else that has been fixed / added works as it should.

    Thanks for your patience.

  14. heidy7
    Member
    Posted 1 year ago #

    Hello codebycarter,

    Thank you for your time and help.

    I just wanted to add new news. I tried to fix this problem by myself and I have found this solution. It is definitely temporaly, but it helps for those who want to have access to their forum. I try to describe it step by step in my case.

    1. with my admin I can create forums, topics, subforums and other staff in my dashboard, but I cannot it access on my website in spite of the fact I ticked in permissions all except lock.

    2. Therefore I registered as a subscriber on my website and I can view under other name my forum and topics. But interesting is that my subscriber account has in permissions (view, read, post, reply and sticky). And when I login under this subscriber account I can also edit, but only my topics what is goood, in spite of fact I did not tick this permission. Thanks to the God, I cannot edit other posts!!! Also what is bad is that if I tick delete and lock permissions, I can also delete and lock other topics, what will be not good. If it would be possible it would be great to add to delete and lock only my post not others...

    3. I was also trying to create new role which could has the same capabilities as administrator - me, but it denied me my permissions to the forum - strange...

    4. I also created new role super admin and registered as subscriber and afterthat tried to change it to super admin, and it also did not give me any acccess to the forum.

    5.
    - If I can add what would be great to add on this plugin, if members could add except of topics, also maybe forums, subforums, categories...
    - upload their avatar
    - isn`t it possible to change fonts and colors of forums according to the theme? I know that there are 2 options: dark and light, but in many case more themes will need more changes...

    Thank you once again for your help and I hope that this explanation helps.

  15. heidy7
    Member
    Posted 1 year ago #

    And a 1 thing more. Now I have found that member who created an account in my case subscriber cannot upload photo and it was before possible. That icon which is on the left up corner when you open the wordpress page and is located above writing panel is not there any more...when I click to create new topic or reply....

  16. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    - WPBB doesn't and never has offered the ability to upload avatars I'm afraid. It just relies on WordPress to display the avatar for that user if one exists. I had used a plugin for the avatars but now after viewing it on the WordPress plugin directory I can see it hasn't been updated in over a year so I won't include a link for it. Still there are many avatar plugins out there. May add this in a future version however!

    - There will be some kind of "theme editor" for WPBB available in the dashboard in the future.

    - The "moderator links" e.g. edit, lock, delete etc should only now be displayed if you have permissions to do the action e.g. "delete" appears if you have delete permissions within that forum/subforum/topic/post etc!

    - Will be adding extra permissions for roles like you suggested, e.g. "can this user edit their own posts"? but still thinking about the best way to approach this without making all the settings overwhelming.

    - New permissions like move will be added. I do like your idea of allowing users to create their own forums, categories etc without giving them access to the administration dashboard. May add this as an individual plugin as not everyone may want this but who knows.

    Thanks for your suggestions, keep 'em coming! :)

  17. CaylorMe
    Member
    Posted 1 year ago #

    I am still receiving this issue on 1.0.3!

  18. heidy7
    Member
    Posted 1 year ago #

    Hello codebycarter,

    Thank you for your reply. Have you already updated the plugin, or are you still working on it? Because I checked it and it still has the same error!!!

  19. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    It's updated so it will fix the problem for some people but for others it doesn't seem to be working. Please read my last post here: http://wordpress.org/support/topic/plugin-wp-bulletin-board-v103?replies=3#post-3244102 about what I think the problem is and if anyone could post their findings that'd be great.

  20. kiran4wp
    Member
    Posted 1 year ago #

    Hi friends,

    Even me also getting the same issue like the below line when i tried to open a forum...

    "You do not have the required permissions to access this forum!"

    Can anybody please help in this issue asap...

    Thanks in advance....

  21. CaylorMe
    Member
    Posted 1 year ago #

    I'm pretty certain that it is considering my administrator account as a Guest account.

    Scenario 1 (FAIL):
    - I'm logged in as administrator.
    - Guest Posting is not permitted.
    - Administrator Posting is permitted.
    Problem: Cannot post as administrator.

    Scenario 2 (SUCCEED):
    - I'm logged in as administrator.
    - Guest Posting is enabled.
    - Administrator Posting is permitted.
    I can now post a new topic. It posts it as my administrator login username, not as guest.

    I do not wish to allow my guests to post topics.

  22. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    Well if someone is logged out xx_capabilities wouldn't exist so it would know the current user is a guest otherwise it exists and contains some value. If WPBB fails to get a value from xx_capabilities then it returns an empty string which doesn't count you as a guest.

    So that shouldn't of happened but I can't help but think it had something to do with the bug that I've now fixed or the fact you're using multi sites. I will work on making it compatible by v1.0.5.

    I've just released an update, v1.0.4 I released so that people are aware changes have been made and can update and no longer encounter that bug.

    Thanks again for your patience.

  23. kiran4wp
    Member
    Posted 1 year ago #

    This is a worst plugin.....
    If there is no solution what the need of plugin....

  24. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    I think you misunderstood my post kiran4wordpress.

    The problem you have is fixed in v1.0.4 which has been available since I made that post and I'm working on making it multisite compatible in v1.0.5.

  25. kiran4wp
    Member
    Posted 1 year ago #

    Hi,

    Thanks for your reply and i have checked the version of WPBB and i found that i have installed v1.0.4 only. So problem is still there.

    So can you please help me in solving this issue..

  26. kiran4wp
    Member
    Posted 1 year ago #

    Finally got solution. But i have a doubt in the plugin. Actually a subscribed user can delete/edit other topics who posted by other subscribed users. I am asking like this because this is happening in the plugin which you are created.

    Can you please find out this.

  27. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    Yes that's how it's supposed to work. Those permissions allow a roles users to perform those actions across the entire forum. Useful for admin/moderator-like roles without access to the admin dashboard.

    I've already said however that I will add extra permissions for individual roles such as "can edit own topics/posts" and then you would need to make sure that that roles edit permission in the forum(s) is unchecked. This will be in the next version.

  28. kiran4wp
    Member
    Posted 1 year ago #

    But how can i delete others topic post. If i see a discussion board there is a list of topics. It is also giving an option to edit/delete. Is it correct to delete others topics. Because admin given an option for subscriber to delet/edit from admin side. But this should imply only for the subscribed user who posted that topic not all others who are subscribers....

    Are you understood what i mean to say.... If you need any clarification please let me know...

  29. codebycarter
    Member
    Plugin Author

    Posted 1 year ago #

    If you have edit/delete/sticky/lock permissions you will be able to edit/delete/sticky/lock any topic and edit/delete any post. If you edit or delete the post you're only affecting the post and not the topic. This is correct yes, currently those permissions give you that permission over all topics/post within the forum but as I say will work on adding more individual custom permissions in the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic