Hi there
Using bbPress Version 2.3.2
We’ve got Premise member access module installed. It manages access to posts by adding meta tags to the wp_postmeta table. We then check member access levels against these meta tags to see if the user can access a post.
We also use these member access levels to restrict access to our forums. Unfortunately the member access tags are only added to the forum categories and parents, and not to the individual replies and posts.
This means that restricted posts turn up in search results, and have to be excluded by checking the user access level against that of the forum category or parent.
I’ve managed to exclude the posts from the search results, by adding the following lines of code I found in these forums to the loop in loop-search.php just before get_template_part is called:
$parent = array_reverse(get_post_ancestors($post->ID)); // get an array of all the parent pages in order from most distant to closest.
$first_parent = get_page($parent[0]); //get the first page in the array, which is the most distant parent
$int = apply_filters(‘the_ID’, $first_parent->ID); //filter the $first_parent to get only the wordpress page/post ID, which is an integer like 49 or 565. store it as a variable $int
//Skip post if user can't access it.
if (!IQS_can_user_access_post($int)) {
continue;
}
This code works, however the pagination results still show for all the excluded posts.
I’ve been trying to figure out how to modify the bbpress()->search_query results but I’m not very good with PHP.
Any advice on how I can exclude posts from a search query or fix my pagination?
You should have all your customizations as per this document
https://codex.bbpress.org/theme-compatibility/
Once you have your customizations per that doc you can upgrade bbPress anytime without having to worry about these things.
Hi,
I got version 2.5.0 and could update and should.
I made some little changes in design, css and a few templates.
I looked at this page: http://bbpress.trac.wordpress.org/browser/branches#2.5
and if I understand correctly, only the bbpress.php has changed (and readme.txt).
Would it be enough to just download that file and replace it or must it be done the official way, by installed plugins/update?
Regards, Ron
That is a pretty awesome forum design, shame it’s not bbPress but for certain with a bit of work in that can be achieved 😉
can somebody tell me where to copy the template files so I can customize bbpress. the information here
https://codex.bbpress.org/theme-compatibility/
As to extending profile information take a look at how the ‘signature’ is implemented in GD bbPress Tools as a good starting point.
Here are some themes in the WordPress Theme repo that specifically include bbPress out of the box.
As others have already mentioned you can use any theme you want and typically it will just work and if you want to style up your forums to match your theme then you can do that do as per the links already mentioned above.
FYI https://bbpress.trac.wordpress.org/ticket/1958 Is where we are tracking and getting feedback on implementation, ideas, feedback and so forth for this feature in bbPress Core.
Hi all,
I am the author of the permissions plugin. Sorry for coming into the discussion this late in, but got the topic link from matrixino. I have not done much with bbPress (or WordPress) in a very long time (.NET shop), so please excuse while I refresh my memory.
I will look into this as soon as I can.
John, yes the HTML editor works extremely well as HTML editor, but the HTML editor works extremely badly as web editor for end users. If you had read my post, then you would have noticed that I already mentioned how the visual editor can be enabled. The point is that it is a extremely bad visual editor. Show me one successful social media site that doesn’t support the upload of media. The truth is that the end user interface of bbpress is extremely old fashioned and extremely outdated.
Another thing. A forum moderator should never ever patronize users and send them to Google.
@3tonine, thank you so much! I finally took the time to look into this and I had a different Tinymce plugin installed, changed it to the Tinymce Advanced. I also had the BBpress Enable, but it needed to be updated. Between the two, now everything works and I am a happy camper!
I appreciate you taking the time to help out!
Rachel
The HTML editor does work extremely well, as an HTML editor. If you want to enable the visual editor, a Google search should reveal this page as the top hit:
Enable Visual Editor
Discuss bbPress 2.5.1 here.
Check the milestone for a list of fixes: http://bbpress.trac.wordpress.org/milestone/2.5.1
Thanks @inspirationnally for sharing your solution. Hope it will get fixed in a future release of the plugin, or in a future release of bbpress.
Kaliceos posted already above an answer to my – the same – problem:
Forums index in the same layout as other bb software
but I did write Adam yet regarding that problem.
I simply commented out
#add_filter('bbp_has_forums', 'tehnik_bpp_filter_forums_by_permissions', 10, 2);
in tehnik_bbp_forum.php –
that way the forums still show up, but they cannot be entered without permissions.
If they are not visible would be better, of course.
I also commented out
#if (current_user_can('read_hidden_forums'))
#$post_stati[] = bbp_get_hidden_status_id();
btw, because I did not want the moderators to enter the hidden forums. Just because they can move threads doesn’t mean they should take a look at the crew forum for the main site.
It is in the widgets.php file
located at
wp-content/plugins/bbpress/includes/common/widgets.php
start at line 1064
you should be able to find the time in there somewhere
NOTE : this file will be overwritten by bbPress updates. You might do better to fork the code into your own plugin to prevent overwrites.
I think (but am not sure) the styling comes from other wordpres & bbPress elements and has no direct bbpress.css elements
I think you have the same problem as me. Are you also using this mod https://bbpress.org/forums/topic/forums-index-in-the-same-layout-as-other-bb-software/ ?
Look I posted there too.
I was using this and everything worked fine… until I had the need of a “per forum permission” system. Then I tried this plugin https://github.com/ZanderAdam/Tehnik-bbPress-Permissions (the only one I found actually). Now I just get the default listing repeated for each “section” instead of the subforums.
Seems like I have no other way to restrict single forums to different roles/groups other than this+Members plugin. I wonder why bbPress don’t have a better permission system…
Can you please look this plugin code and help me fix it?
Thanks
Holly,
bbPress will work out of the box for most implementations. How much you then customise it is up to you.
Typically you might want to change a little of the styling – that depends on how much styling your existing site has – There wasn’t a link to your existing site in your original post.
Then you might wish to alter some layout – although the default is pretty standard
The documentation
Codex
will show you what you need to do to set up, and if you already have wordpress, then you could see how well bbPress would suit you in a couple of hours by following the set up guide and creating some test forums.
Hi, this is a little bug of 2.5 version.. you can add this patch: https://bbpress.trac.wordpress.org/ticket/2481 or wait for 2.5.1 version..
Hello, I installed the plugin bbpress, adding a forum page, inserted the shortcode, but my forum is a vertical list, I would like to appear as a horizontal blocking like normal forums. Anyone know how to do this? I use the responsive theme, but i tested with other themes and it does the same exact thing. a little assistance would be cool, for i am thoroughly frustrated.
My website = places2bee.com
I’m not sure but I’m guessing this is not an intended effect or am I wrong? The voice count works as expected until one uses the forum repair tool and performs a Count voices in each topic which then excludes the guest topics and replies from the voice count. Also tested on a new bbPress install with other plugins disabled.
I’m using WordPress 3.7.1. and bbPress 2.5
I’m not sure but I think this only came up around the time I upgraded to bbPress 2.5
@mitesh-patel Could I have some help on how to do this with my website? It’s a membership site so right now there’s nothing to see, but can you connect with me and I can give you access?
I’m trying to adapt the code you’ve given here but this isn’t working.
body.bbPress #nav > menu-item menu-item-type-post_type menu-item-object-page menu-item-158 sfhover > a {background: none repeat scroll 0 0 #F2F2F2;}
The site is at http://dev.itarsenal.com right now
quite easy see
Codex
where there are step by step guides, and layout examples
As Stephen says move the bbpress.css into your theme and you can mod it withoutn overwriting
see
Step by step guide to setting up a bbPress forum – part 2
for details of how to do this