I’ve seen a lot of talk since the changes in permissions and not being a coder myself, am limited insofar as what I can do to get around the various constraints. I’m also relatively new to bbPress.
Basically, I need functionality that this plugin provides for older versions of bbPress: http://wordpress.org/extend/plugins/forum-restrict/ – Deciding what users get access to which private forums.
Are there any good or reasonably reliable solutions anyone can recommend? I have Justin Tadlock’s members, I’ve had the user role editor, but honestly I’m hesitant to try a whole lot with them based on my limited understanding of how the capabilities are done and/or what changes to expect.
Suggestions very much appreciated.
function bm_bbp_no_breadcrumb ($param) {
return true;
}
add_filter (‘bbp_no_breadcrumb’, ‘bm_bbp_no_breadcrumb’);
Could any tell me how do I need to use this code? Thank You!
Monica,
Sorry nothing new to report on a fix yet…
Btw, I’ve set this as private b/c I didn’t see a way to have people log in, so this would only be available to members. Don’t know if this is part of the issue.
With that above from your first post in mind, is it important your forums stay private or having them publicly accessible would not be an issue? If public is not a problem, try this:
If you leave the ‘category’ set as ‘private’ but change the two forums you have under this category from ‘private’ to ‘public’, I just tested this and it appears to be working.
(You can also change the parent category to public also and it won’t trigger the bug)
Back to the quote above you can use the `[bbp-login]` shortcode ona page or the login widget in your sidebar.
Right now I have a script that connects to an external db outside of WordPress and authenticates a user’s “Customer ID” before showing the bbPress login form, but logging in redirects me to WordPress. This is the process.
1. When they enter the Customer ID, I pass a parameter to the URL like “website.com/?cid=1234” — the “cid” represents the customer id.
2. Then it shows the bbPress login form populated using “add_shortcode([‘bbp-login’]);” which then logs in correctly.
3. For some reason, it redirects them to the WordPress admin panel directly after so… “website.com/wp-login.php” — this then takes me backdoor to “/wp-admin/” because it knows I’ve already logged in.
This only happens when I enter the website with the “cid” parameter already passed in. So if I enter the website with “website.com/?cid=1234”. I do this to bypass the first authentication so the user doesn’t always have to. SO WEIRD!!
Any help would be greatly appreciated. Thanks.
You can forums to existing WordPress pages using bbPress various shortcodes.
You can hide it with CSS. Try adding the following code to your theme’s style.css file.
`.bbp-template-notice.info {
visibility: hidden;
height: 0px;
}`
You can edit the following to your functions.php (for example)
<code>
function no_edit_lock($retval, $cur_time, $lock_time, $post_date_gmt){
return false;
}
add_filter( ‘bbp_past_edit_lock’, ‘no_edit_lock’, 1, 4);
</code>
This will overwrite the default edit_lock behavior.
At this stage I haven’t seen anyone mention anything about converting to BuddyPress ‘Group Forums’
With some theme customization you could make it appear that you have two lots of forums by putting each into their own ‘parent category’ and using shortcodes to only display each ‘category’ in specific areas of your site.
https://codex.bbpress.org/shortcodes/
The other way is to go WordPress Multisite and have a separate site for your ‘support’ side of things.
To customize bbPress as a support forum check this great tutorial by @mordauk http://wp.tutsplus.com/tutorials/plugins/using-bbpress-as-a-support-forum/
I figured it out…. Well the theme dev had to help me out. The theme wasn’t ready for BBP out of the box… Had to remove some code. Far too much to explain here but I would recommend that you talk to your theme’s dev if this happens.
Cool….
bbPress does not create any tables of its own, it uses WordPress custom post types for forums, topics, topic tags and replies.
I cleaned up the code layout of Example.php in #2134 so it now matches the coding style of the other importers. If you use SVN you can apply that patch directly or download it directly from here.
I am slowly getting updated and more docs in the codex starting here:
https://codex.bbpress.org/import-forums/
To customize the Example.php importer I have started this doc which follows this topic on building a new custom importer for the Mingle forums.
https://codex.bbpress.org/import-forums/custom-import/
This is all a work in progress and has a few moving targets so any questions ask away 🙂
Hi!
What I need to do is show all the forums, sub forums and sub-…-sub forums on the same page (main page). I took a look in some of the loop files (loop-forums.php, loop-single-forum.php) and I see that these same files are used to show different levels of forums.
Also bbp_list_forums() and the shortcode only show level 1 with sublevel 2 forums and then you click on the level 2 forums and you get a list with level 3 forums and so on.
Hope this makes sense, basically my question is:
Is there a way to show all existing forums on the first forum page?
Thanks a lot!
This is now in bbPress trac https://bbpress.trac.wordpress.org/ticket/2163
(All updates will be posted at the above URL from now on i.e. download from trac NOT GitHub)
The docs will be on the codex at https://codex.bbpress.org/import-forums/mingle/
Using the older version was successful, but the new file gives me this error when importing with or without the users box checked.
`
WordPress database error: [Table ‘str1210409063589.wp_forums’ doesn’t exist]
SELECT convert(forums.id USING “utf8”) AS id,convert(forums.parent_id USING “utf8”) AS parent_id,convert(forums.name USING “utf8”) AS name,convert(forums.description USING “utf8”) AS description,convert(forums.sort USING “utf8”) AS sort FROM wp_forums AS forums LIMIT 0, 100
`
Before anything appeared on the site I ran a complete repair with all option checked. After this was done and the wp_users table was exported/imported through phpMyAdmin everything is showing up. Before the users were imported it still worked but all except the admin posts were Anonymous.
Working:
- All forums that contained posts are present
- Forum descriptions
- The timestamps
- User account links and info (Forum Role,Topics Started, Replies Created)
- Topic/Voice counts
- bbcode is working for text formatting
- Started By and Freshness authors
- HTML code was imported and is displaying correctly
Not working:
- Parent forums are missing (everything was imported under ‘Forum’)
- There is a blank post by the original author at the start of each topic causing false count
- Custom Smileys “
- Closed Topics are open again.
- Stick Topics are normal topics
What’s next? What works and doesn’t work?
- Is the imported forum hierarchy and order correct?
- Sticky topics, eg ‘sticky’ and/or ‘global sticky’ topics?
- Open or closed topics?
- Does Mingle use BBCodes eg [b]blod[/b] and do we need to convert them from custom HTML to WordPress/bbPress friendly HTML? If so what BBCodes does Mingle use?
Are there any other forums, topics or replies behaviour that has not been imported?
Ahhh… Yes, if you are importing to the existing install of WordPress that Mingle is using you do not need to import the users as the existing users will have the same mappings.
If you want to import to a separate WordPress install you will need to import the users.
That was the reason I originally had each field as `’forum_forums’` and I have switched all the fields back to this so now and you should use the table prefix `wp_` on the import settings. I also updated user mappings, I just copied them in from the bbPress1.php importer as this is in the same boat.
I also added some extra phpdoc’s to the code and cleaned up some whitespace and changed the code layout style to match the other importers.
You should be able to use the same links above to download and compare the revisions.
Hey guys!
Hope everyone’s well!
I’m starting to have some serious load time issues posting replies when a topic has more than a few subscribers.
I have an introduction topic for example.
When I post a reply now, it must take 10 seconds plus to actually be assigned a post number in the URL.
I actually receive the email notification quicker than the post actually bring pushed to the forum and appearing on the front end.
This is only going to grow exponentially.
I’m not a coder so this might be hard work, but is there any way we could get the reply to post THEN queue the emails?
What do you reckon JJ? Do you see this as an issue? Perhaps we could set individual topics to not allow subscribers also. Maybe an admin option?
Would love any suggestions!
Thanks!
Ross 🙂
For all users who couldn’t fix the issue that basic users can not reply or create a new topic, I found at least where is my problem.
It is located in the functions.php file in the line 216. This is for the version 2.2.3. I’m using bbpress as plugin in WordPress 3.5.
File located at bbpress plugin folder -> includes/replies/functions.php
The code that does not allow me to post as a Participant is this:
if ( !bbp_check_for_blacklist( $anonymous_data, $reply_author, $reply_title, $reply_content ) )
bbp_add_error( ‘bbp_reply_blacklist’, __( ‘ERROR: Your reply cannot be created at this time.’, ‘bbpress’ ) );
So it looks some blacklist check is working on. And the question is, where in the setup of WordPress, is located the blacklisted information, to verify why this is happening.
By the way, if that function only does what it looks to do by its name, I commented it.
Everything works now.
Can you give me further info about this?
Thanks.
Can you upload a copy of your Mingle.php https://gist.github.com/ (or pastebin.com)
(Its much easier for me to look at the code directly)
I’m not getting anything to work to add TinyMCE buttons in my bbPress. I pasted Sunriseweb’s code in my functions.php. Nothing. I have updated WP and bbPress.
How do I force TinyMCE into “teeny” mode?
If you have the same slug (forums) for your BP Group forums and Sitewide forums then the Group forums will prevail over the forums/ page. Either change the slug by creating a new Page with different name for the BP Group Forums and associate new Page in Setttings > BuddyPress > Pages plus remove the bbPress shortcode from Forums Page or change the slug for the Sitewide Forums and create a new Page with the new slug and add the bbPress shortcode.
Thanks for the kind reply @lynq.
As you suggested, I changed some bbp template codes in my custom theme, removing all the author data and user-id class in the reply loop template so that one specific public forum could look like it’s working as anonymous one for logged in users…
It looked as if it’s working fine as an intended anonymous forum.. and just found the biggest problem is that all those posts are shown in activity stream.
(I’m also using Buddypress as other users do.)
I tried to fix the buddypress activity template to not display the anonymous forum’s contents, but it doesn’t seem buddypress activity template is controlled by bbp_forum_id or bbp_topic_id.. can someone give a clue about solving this problem?
Hi
New to Buddypress/Bbpress and trying to test it on a localhost installation
I have all the latests versions and the installation seemed to work smoothly
I have enabled both group forums and site wide forums (even though my problem is consistant even when disabling the group forums)
The problem:
I’be opened several forums from the admin panel but can’t find them on the site!
when I get on my Forums page (http://localhost:29138/forums/) I reach to a “Forums Directory” page with an ability to add new topic, and a list of topics (from the groups forums!?) but no track to the list of my desired site-wide forums.
I tried to edit the forums page and insert the forum index shortcode but it had no effect
any help would be appreciated
Create a WordPress page called ‘Support’ and use the [bbp-forum-index] shortcode on that page.
https://codex.bbpress.org/shortcodes