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
I am fairly new around here and have hardly touched the old standalone bbPress.
The following page in the docs was last updated 341 days ago, that said I don’t think there should be that many differences in upgrading from 1.0.x to 1.1/1.2 based on these docs.
Has anyone actually tried this? What breaks if you do follow these steps?
Remember: Constantly make backups of your site with FTP and your SQL Database/s with myPhpAdmin.
Updating
Legacy
Just saying it doesn’t work is not enough, give us detailed information: on what breaks, what doesn’t work, detailed specs of your site, extremely detailed error messages, steps for us and others to reproduce the problem and with this type of information we can all help each other.
If you add the code in you get a Division by zero and if you take it out you don’t get it, is that correct?
Have you tried taking it back out?
I am just wondering if it is a recently updated plugin causing the division by zero.
Hi, I’m starting this topic since I was stuck on creating anonymous forum.
First I want to thank mods and those all who are participating in this voluntary development, I’m very satisfied in using this forum plugin.
Back to the topic, I have got two issues.
One is creating an anonymous forum only logged-in members can write. I’m curious to know if this is possible in the given function of bbpress admin panel. Or should I do additional code tweaks.(guess the forum should be set private, and remove all the related username infos in my custom bbpress reply author loop.. right?)
The other issue is making a query to this private forum’s post and displaying it in the main page which visitors can all see. Is it possible to unlock this access capability after querying the topic content which is set private?
Currently, when I make a query to this private reply contents, and display them on the main page as a widget, ppl with proper capability only can see the content on the main page. Visitors cannot. I want to unlock this capability after querying the contents.
Sorry for asking too much at once. I’m stuck over days.. so asking in this support forum after searching the whole forum.
Thank you for reading!
You will need to copy over the bbPress theme files from the plugin directory and into your theme, then you can add in the get_sidebar() function into the theme although it should be there already.
Try that and see how you get on, a good reference is: https://codex.bbpress.org/theme-compatibility/
Good luck!
Well… in fact I had to do the opposite and force TinyMCE into “teeny” mode to make bbPress 2.2.3 with WP 3.5 and Ultimate TinyMCE 4.0.3 to work. The TinyMCE toolbar forced the entire editor table to be wider then the content area of my theme and it was getting hidden behind the right-hand-sidebar. This could be a theme incompatibility, but I’m guessing some issue with this combination of plugins and WP version.
At any rate I used the code in this thread to the opposite effect (I put it in my theme’s function.php file, although a plugin is the proper thing to do).
`
function marconf_bbpress_mceallow( $args = array() ) {
$args[‘teeny’] = true;
return $args;
}
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘marconf_bbpress_mceallow’ );
`
Yes figured it out. Thanks! Apparently, I had to ad a shortcode (IIRC) to the page to display the forum index. Somehow that must have been lost when I did the upgrade, I guess.
Something like this should get you going:
if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => 'false', 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) )
bbp_get_template_part( 'bbpress/loop', 'topics' );
Hello,
What is loop code for getting all forum topics?
I want to show latest post from forum in footer.
Because bbPress is using custom post types you could use: https://codex.wordpress.org/Class_Reference/WP_Query.
See the part about taxonomy parameters, you can set the post_type to whatever you want.