bbPress is a plugin for WordPress and will only use the WordPress database.
If your WordPress instances, instance “A” and instanace “B” are sharing databases already bbPress will use whatever database you have WordPress setup with.
I think if you had a look at configuring WordPress to use multisite
https://codex.wordpress.org/Create_A_Network
You should have this file on your server /public_html/smf/Settings.php
Open up that file in a text editor
########## Database Info ##########
$db_server = 'localhost';
$db_name = 'db_smf';
$db_user = 'db_user';
$db_passwd = 'abcdefghigh';
$db_prefix = 'smf_';
They are the settings you need to use for your import.
JParticipant
add_action( 'init', 'nicenames_to_display_name' );
function nicenames_to_display_name() {
foreach ( get_users() as $user ) {
if ( $user->data->user_status == 0 && $user->data->user_nicename != $user->data->display_name ) {
$user_ids[] = $user->ID;
}
}
foreach( $user_ids as $uid ) {
$info = get_userdata( $uid );
$display_name = $info->data->display_name;
if ($display_name) {
$args = array(
'ID' => $uid,
'user_nicename' => strtolower(str_replace(" ", "_", $display_name))
);
wp_update_user( $args );
}
}
}
Just uploaded a new version of SMF.php, the core changes of the forum import have not changed. The main changes are the regex (regular expressions) to convert SMF’s BBCode.
It is a start and only a few tweaks are left to do, alas it’s 10pm Friday night and I’m done for the night 😉
https://bbpress.trac.wordpress.org/attachment/ticket/2380/SMF.3.php
https://bbpress.trac.wordpress.org/ticket/2380#comment:7
Ok, so my understanding is shortcode-generated content does not follow the style of the page templates.
To fix this, I have defined a global style in my style.css – this applies to all content which is not addressed by page templates.
For example:
* {
font-family: Arial, Helvetica, Verdana, 'sans-serif';
}
Hope this helps.
hey thank’s a lot for your help. I’ve added the code but it doesn’t look like it worked.
this is the file I had to modify
/wordpress/wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
That color is set by your parament theme css
wp-content/themes/parament/style.css
Line 81 sets this color, the code wrapping it is
a {
color: #989EAE;
text-decoration: none;
}
change the color line to
color: #000000;
You can :
edit this file to change it, but any theme updates will overwrite it, so you’ll need to keep a record of what you changed.
or create a child theme to overwrite this
or use a plugin such as jetpack to add it using their css editor
For child themes google “creating a child theme video” to see lots on how to do this.
Hi,
I would like to automate the use of the feature in the topic title. Would someone point me to where in the bbPress code I should look to get assistance? Is there some tool already available to do this?
By way of background, I am going to write and external program to WordPress that adds new posts periodically to an existing forum. I then need to somehow trigger automatically the forum repair process.
thanks,
mike
Hi .. As a volunteer, I’ve created and run a website for a local dental charity http://www.dentaid.org which uses WordPress and a custom theme. The charity have asked me whether its possible to add a forum within the existing site to allow the dental volunteers who go on organized trips to developing countries to get together before the expeditions and discuss topics, ask questions of the organizer etc. Clearly bbPress is a natural candidate for this but having spent a few hours searching the web, I’m not 100% sure of the right way to proceed (and of what I’ve read, there seems to be several different ways to implement bbPress .. maybe depending upon the level). I would like the forum to work as a self-contained subsystem within the existing web site with one entry URL (www.dentaid.org/forums) which can be added to the nav bar and maintaining the existing header/nav bar and footer, so using the one column full screen width content for bbPress. I think that bbPress will need it’s own styling as I’m sure that the existing style.css won’t be optimal for forums.
I’ve tried putting bbpress shortcodes into new pages as recommended in some of the web articles but although it appears to work, the styling is not ideal and functionally it seems very basic. What I’m aiming for is to put something like the bbPress forum page that I’m using right now into the content of a page on our website while keeping the rest of the website exactly asis. (I would also like to allow new folks to register and/or existing users retrieve their lost passwords from within the bbPress ‘subsystem’ i.e. provide complete forum functionality from within the bbp system.
Any help as to how I go about this would be much appreciated as the charity have decided that this is an urgent requirement for a trip to Uganda coming up soon and I don’t want to go off at a tangent and waste a whole load of time climbing the learning curve. At the moment, I’m confused as to whether I should be using widgets, creating child themes, using shortcodes with my own pages or anything else.
Pointers to web pages, documents, videos or just some good old-fashioned advice will be very welcome.
Thanks in anticipation.
Ron
Again, you can extend bbPress with custom views.
One of the sites in that link list has 4 views:
Most popular topics
Topics with no replies
Topics with most replies
Latest topics
That doesn’t mean they are part of bbPress, check your themes functions.php file for something like this:
function wphc_register_custom_views() {
bbp_register_view( 'popular-topics', __( 'Popular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ), false );
bbp_register_view( 'unpopular-topics', __( 'Unpopular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num', 'order' => 'asc' ), false );
bbp_register_view( 'random-topic', __( 'Random Topic' ), array( 'orderby' => 'rand' ), false );
bbp_register_view( 'closed', __( 'Recently Closed' ), array( 'post_status' => 'closed' ), false );
}
add_action( 'bbp_register_views', 'wphc_register_custom_views' );
Check your forum settings, anonymous posting may be enabled.
https://codex.bbpress.org/forum-settings/
Anonymous posting
Any site visitor can post a new topic or reply without the need of logging into your site. They will still be required to enter a name and email to post, but will not be required to create a username or password and will not be shown in the list of WordPress Users.
You can give it a shot, time permitting I’ll try to help where I can, there is a lot of info in those links I shared above and in the codex I linked to also.
It might be worth that being explained somewhere as I can’t be the only person whom that’s confused.
I made a note of this at https://codex.bbpress.org/import-forums/vanilla/
A CSV import will work perfectly, it is just a matter of matching the to & from fields in the dataset, good data = good import.
You could just make the data anonymous, if there is username, emails etc after your export just normalize the data,
Eg. Username: Donta -> user1
Email donta@mydomain.com -> user1@example.com
The same for IP addresses, topic title, or any other data you can just change this ‘recognizable’ data to some generic text, the sql you export will be in plain text so you can edit this in any text editor.
The key information needed is:
* 3-5 rows from the forum table
* 3-5 rows from the thread table that are listed in the above forums sql
* 10-15 rows from the post table that show replies from the above topics sql
* 1-3 rows from the user table that shows users from the above topics & replies sql
bbPress only includes two views ‘out of the box’ and they are both translatable.
Most popular topics – https://bbpress.trac.wordpress.org/browser/tags/2.4.1/languages/bbpress.pot#L301
&
Topics with no replies – https://bbpress.trac.wordpress.org/browser/tags/2.4.1/languages/bbpress.pot#L305
Check if you have these in a custom function or another plugin.
ok.
In 99% of cases this file will not have changed in the update, but all bbpress update plugins will overwrite this file, so you’ll lose your change.
Therefore you can have two strategies.
1. do the update – this will overwrite the code. Then go back in to this file and just put your two lines of code back. You might need to check that the file hasn’t altered around line 24, so might need to alter where you put it.
2. Copy the file using FTP to your PC. Following an update, inspect the new content-single-topic to see if the file has been altered. Very high chance it hasn’t. If not, then just FTP back the file on your PC. If it has altered, you’ll need to copy the two ,lines fo code and put them back in the right place.
Thank you!
This works, but how can I save the code before an update?
To moderators: please, remove the blog links and images from my post! My server is under heavy load 🙁
nicoblue: I checked your website and – as far as I can see – you solved the problem. I’ve the same issue now; could you help me with the solution?
Wordpress version: 3.5.1
BBpress version: 2.3.2
Theme: Default Twenty-eleven (from earlier WP) with my own minor modifications
The problem is the same: the bbpress forum style on the full-width pages are working flawless. But when I use the shortcode, the floating elements are broken, for example the pagination is messed up. The styling was okay a year ago, but I updated bbpress not so long ago, after I did not checked the shortcode pages (my bad…), and yesterday I faced with the problem.
I show you the difference:
On full-width page, without shortcode (perfect):

Link: http://www.radu.hu/forum/f/kerdesek-a-pontos-adatokkal-kapcsolatban/
With shortcode, pagination and other styles are broken:

Link: http://www.radu.hu/hasznos-eszkozok/jo-minosegu-backteszt-adatok/adatok-letoltese/
At the bottom of the page, the new topic box (the border) is wrong:

Link: http://www.radu.hu/hasznos-eszkozok/jo-minosegu-backteszt-adatok/adatok-letoltese/
If anyone could give me a hint… 🙂
I was right. There was a file missing.
I took archive-forum.php and renamed it search-forum.php. Then I changed this line:
<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
to this:
<?php bbp_get_template_part( 'content', 'search' ); ?>
Then I copied it into my theme folder. And voila. Search now works.
I get the gold start today.
This will take you several stages but should get you where you want to be
1. For your forum page
Create a page called forum or forums. In the body of the page type the following code
[bbp-forum-index]
And save
If your menu auto-creates then this will appear, if not go into dashboard>appearance>menus
2. Create a register form
Download contact form 7
https://wordpress.org/plugins/contact-form-7/
set up a page called ‘register’, and put a registration for in there
3. Download bbpress WP tweaks
https://wordpress.org/plugins/bbpress-wp-tweaks/
This will give you a bbpress sidebar that your forum page will use
Go into dashboard>appearance>widgets and populate this with
(bbpress) login widget
The url for register will be the page you set up under 2 – so populate this with “/register”, and the lost password url will be “/lost-password”
(bbpress) forums list
(bbpress) recent topics
(bbpress) recent replies
And anything else you want to add
4. When someone sends in a form (it’ll be emailed to you) then you can set them up, and ensure that they don’t get the toolbar. They will have “no role for this site” for wordpress, and “participant” form bbpress.
That should be enough to get you going, but come back if you need more !
I have tried to install bbPress, but am having issues with the Forum Index page.
This is the forum index: Forums. However, the actual forums work fine, as you can see on a test forum I created called Suggestions.
Any ideas as to why it’s doing this? I’ve followed the few instructions I could find, including the page about Theme Compatibility. I added the bbPress theme files to my own theme, as suggested in those intructions.
Also, is there a way for the link to just be ‘http://thewhitesharks.co.uk/forums/suggestions/’ instead of ‘http://thewhitesharks.co.uk/forums/forum/suggestions/’? Seems a bit long to me…
It’s as if there is a php file missing in pugins\bbpress\templates\default\extras that displays the search results. Where can I find that?
That’s a great tutorial. And close to what I did yesterday, just without the child theme. I used this: https://codex.bbpress.org/theme-compatibility/
However this had no effect on the search page and I can’t find what page to edit.