This is a potentially useful plugin, and makes nice use of WP functions.
However, I’ve reviewed this code and I don’t believe that it works.
Unless I’m missing something it doesn’t update the various necessary _bb_press metakeys.
It just simplistically changes the post types for the posts to “topic” and stores the comments as replies.
Possible that I’m missing something, but the documentation for the insert post function includes no indication that it will maintain the necessary bbpress fields.
See https://codex.wordpress.org/Function_Reference/wp_insert_post
Although I haven’t run the code, I don’t actually believe that it will even insert the posts into the selected bbpress forum. It will, however, create the topics which can then be moved around manually.
Just a lay person’s read.
Thank you for taking the time to put this together Stephen. I’ve read the codex a few times over but it’s still a bit over my head. Hopefully over the weekend I will have some more time to make sense of things, but I do appreciate the prompt and very helpful response 🙂
When I upgrade bbPress 2.1 to 2.2, all logged in users cannot connect to any forums(bbPress) but super-admins. ( 404 not found page )
I’ve searched this support forum and they say “It’s related to Role Plugins…”
But I don’t have any Role Plugins 🙁
Did a hard back trace for this error and found capabilities of bbPress dynamic roles applied after ‘bbp_template_redirect’ so bbp_forum_enforce_blocked() blocked any users not having ‘spectate’ cap – maybe all users.
Then… we should manualy apply capabilities of bbPress role to current user.
Here’s a temporary patch for this error.
(Make a plugin or put these codes to your theme’s functions.php)
`
function bbp_fix_dynamic_role_cap() {
$current_user = wp_get_current_user();
$current_user->get_role_caps();
}
add_action( ‘bbp_template_redirect’, ‘bbp_fix_dynamic_role_cap’, -2 );// before bbp_forum_enforce_blocked()
`
Ahmmm… OK… A couple of things to get started with…
I created a new page under Import Forums called Custom Import where we can start documenting how to go about actually customizing this file.
I also created a ticket #2134 as an update for Example.php is really needed to help improve the inline docs and code formatting to line up with the current bbPress1.php, phpBB.php and SimplePress5.php converters for improved readability will also help things along.
Now onto doing this… If we keep the discussion about Mingle here and update the codex as we go with any relevant information, steps and whatever else we bump into hopefully we will end up with some docs for customizing the included example importer.
I have the first few bits on the codex now, so go check that out 🙂
ps. Anyone anyone can edit the codex docs pages using your bbpress.org credentials.
this code highlighter based on highlight.js seems to work well with wordpress 3.5 & bbpress 2.2, also ignores angle and square brackets etc
https://wordpress.org/extend/plugins/sunburst-code-prettify/
http://softwaremaniacs.org/soft/highlight/en/
sam
Hello,
I am a new user of Bbpress. Currently I have the latest version of WordPress as well as Bbpress. But I am facing an irritating problem. I have created a forum for my site: http://realestateconnectionplace.com/forums/forum/forum/ .I like the url to be http://realestateconnectionplace.com/forum/ . I searched everywhere and found that many a one tried to provide a solution. They made plugins and code for .htaccess file. But all of them make some issues like admin link’s working issue and extra slash in the url.
In a nutshell I am very depressed. Because I am not an expert and found no perfect help anywhere. So I would like to request to John James Jacoby, please consider spending a little time to give us instruction about how to stop Archive Slugs and Single Slugs appearing in the url.
Looking forward to hearing from you.
I had the same problem, i resoved it by adding this code in the style.css of my twenty eleven child theme
.forum #primary{
width:70%;
}
.forum .entry-content{
width:100%;
}
And then also:
.topic #primary{
width:70%;
}
.topic .entry-content{
width:100%;
}
And finaly,
.bbp-user-page #primary{
width:70%;
}
.bbp-user-page .entry-content{
width:100%;
}
That solved my problem. I run WP 3.5. and bbpress 2.2. Hope this helps.
I also figured out how to change the page title and remove some space at the top. Let me knof if you are interrested.
Hi Lynq.
I’m trying to run your code but seems to not work. I have wordpress 3.5 and CatchBox Theme. I copied the contents of “bbPress-starter-theme-epicwebs-master” folder to “/public/www/wp-content/themes/catch-box/bbpress/” but it seems not working yet.
Because forums lists the topics as:
FORUM1
Topic1(0,0), Topic2(0,0)
FORUM2
Topic1(0,0), Topic2(0,0)
But want to make changes to do as:
FORUM1
Topic1 (0,0),
Topic2 (0,0)
FORUM2
Topic1 (0,0)
Topic2 (0,0)
Please, can you help ?
Thanks in advance.
You can also use https://codex.bbpress.org/bbp_show_lead_topic/ as used here on bbpress.org to use a different template for the ‘lead topic’.
An alternative to your str_replace method is to make your own language translation. https://codex.buddypress.org/developer/extending-buddypress/customizing-labels-messages-and-urls/
Download links for v1.2 are over here https://bbpress.org/download/legacy/
(v1.2 is the same as v1.1 with a fix for BackPress pomo language support)
I also updated https://codex.bbpress.org/import-forums/
WordPress employs some code that limits HTML tags to specific user capabilities, so that only trusted users are allowed to post specific tags. This prevents us from needing to use bbCode or Markdown, just to convert to HTML anyways.
John James Jacoby said: You’ll want to update to bbPress 1.1 first; the schematic changed from 1.0 to 1.1.
Where can we download 1.1 then? Its not at the legacy page. I got 1.0.2 too and are trying to upgrade to latest 2.x.
You might want to update the Import Forums Codex because it says that bbPress v1.x is supported, but its not as you said yourself.
https://codex.bbpress.org/import-forums/
Hi
I have a wordpress(3.4.1) installation adb bbpress 2.2.2 plugin.
For some reason whenever any tag like , , , etc… are put in the content of a topic, it get removed while saving the topic. Even the tags allowed by default are removed while saving.
So basically a line like
I am going to and will need
will become
I am going to and will need
after saving.
I have tried putting and surrounding the content, but it does not help.
I have also tried “bbpress post toolbar” plugin but that kind of messes of with my theme
and too many things start breaking so I removed this.
I have already spent few days on this issue. Can someone help ?
thx
-Suresh
Hi @rkarel,
Welcome to the forums. If I understand correctly, to do what you want, you’ll likely need to dive into the templates and start writing some custom code.
bbPress comes with a very basic set of templates to get you started, so that you can quickly get started using it. Once you want to customize the look and feel, it’s very similar to WordPress, where you’ll need custom code to do it.
Check out the documentation to get started. There are lots of hints and tips in there.
Yes, a vBulletin importer is included with bbPress.
See https://codex.bbpress.org/import-forums/ to help get you started.
If you go into pages and add a new page called, forum-registration or whatever. Then add the shortcode – [bbp-register] – this will create a page for you containing the forum registration. Then you can link to that page anywhere in your bbPress or WordPress theme.
Good luck!
How about a break
inline?
Can we deal with all “ kinds “ of “ breaks?
Edit: Use backticks not an apostrophe!
Try bbp_insert_topic(), bbp_insert_forum(), and bbp_stick_topic()
Let’s test some code formatting.
`backticks`
How about some code tags inline in sentences?
What about pre tags:
tags
are
neat
I think I figured out a cleaner way: I just wanted a list of links to the forums, not the whole loop with all the columns, so I searched for the code of the Forums list plugin in bbpress.php and used its name in the the_widget() function, like this:
the_widget('BBP_Forums_Widget');
It’s working well for me.
I cannot for the life of me figure out what CSS code is causing the text to be grey on the body section of a new forum post.
Any help would be appreciated.
http://troythunderbaseball.com/forums/forum/8u/