This was exactly, what I needed –
but unfortunately it does not completely work for me.
I have 4 categories with subforum (some even sub-subforums) each.
The code displays now 4 times the WHOLE forum the usual way, just with the 4 different categories as headlines. Any idea? See here: http://deppheads.johnny-depp.org/forums/all-forums/
Do you have any idea? I copied your code 1:1. Somehow it doesn’t seem to catch the “new” parent forum for the subforums display. I guess.
I made the author and content one larger div in my single-loop-reply template. I wanted to span the author name/link and the content into one paragraph but was stymied by the added div id “d4p-bbp-quote-222” now that I paste that, it looks like a plugin added that. Isn’t that typically what the “d4p-….” is in the id/class name? a plugin?
So to answer the question, you are saying that there is nothing in the bbpress code itself that adds a “div” tag to the author or reply sections? If that is true, then I am off and running.
I don’t have any extra div in my content inside <div class="bbp-reply-content"> with normal filters.
The divs are not added by the bbp_reply_content, they are in the template file. The way you changed the template file, there’s no more div between author and content.
I think what may cause your issue are the paragraphs that are block elements. They are added by a filter but a lot of filters are used on bbp_reply_content and a lot of them are useful, you shouldn’t take all of them off. You can disable the one that adds the paragraphs by using this code in your functions.php :
remove_filter('bbp_get_reply_content','wpautop',40);
But keep in mind that you will not have any paragraph in your replies. You may want to make your own filter to edit only the first paragraph. Search the codex for the add_filter function and php doc for the preg_replace function.
Well, here are some ideas.
[glow=red,2,300]Glow[/glow] – What do we want to translate this to?
This is obviously a CSS Text-shadow without offset and with a little blur so the only thing that comes to my mind would be to convert this to a SHORTCODE and add in the documentation of the converter how to add it manually to the user’s wordpress install and to the theme CSS, since I can’t think of another way for this to work.
[shadow=red,left]shadow[/shadow] – What do we want to translate this to?
Same as the above but with a little offset to the 4 sides being able to pick a side in the shortcode and without blur.
[move]marquee[/move] – What do we want to translate this to?
JUST REMOVE IT, it’s ugly and old
[tt] – teletype? should this be a monospaced font?
YEP
And as for the smileys (extra space added so these render in code block)
;D 😉 ; - )
>:( 😡 : x
8) 😎 8 - ) unless a glasses smiley is added to WP
??? ❓ : ? :
::) 🙂 : ) I didn’t find what this smiley is supposed to be
:-[ 🙁 : - (
-X 😡 : - x
:-\ 😕 : - ? unless a skeptical smiley is added to WP
:-* 😉 ; - ) unless a kiss smiley is added to WP
:';( 😥 : cry :
So i’m setting up a site that will have a few different forums. I noticed that the forum-title (permalink) urls on the forum index directs to the forum and not the page that the forum is on.
A little less confusing, if you follow the set-up guide… create your forums and then the corresponding pages, and then post the forum shortcode on that page. So you’re left with two different urls. One for the forum you created and one for the shortcoded page.
Ideally, it would just be one forum page and one url. But then the problem you run into is that the forum post type is limited. You can’t use shortcodes and any textual content you add is shown inside the forum-info on the index.
Now I could just redirect the forum-title(index) url to the shortcoded page, which isn’t a big deal. I just wanted to see if anyone else did something a bit different.
WP 3.6.1
BBP 2.4
(buddypress 1.8.1 if that’s relevant)
I am trying to style my loop-single-reply template.
I am working on a copy placed in my wp_theme/bbpress directory…it is a copy of the default.
The problem is in the bbp reply DIV (that contains the author div and the content div). I need to get the content function to stop automatically adding “div” tags around the content (I want to use span tags).
I have tried to follow the rabbit trail through the files to figure out where these DIV tags are getting added, and the best I can figure is that there is a filter putting them in there.
I only need the actual content and so I have commented out the filter applied in includes/replies/template.php around line 525, and simple replaced it with return $content
That worked, but now bbcode is not working. Is there a way to stop this behavior without altering the bbpress plugin files (which will get destroyed during an upgrade)?
My forum is private, but I can set a public test one up if that will help…
Hi,
I upgrated bbpress to 2.4 and I see that quicktags-toolbar div is empty, no buttons
<div id="qt_bbp_reply_content_toolbar" class="quicktags-toolbar"></div>
It’s working fine with all other themes. Why it’s not visible only on 1 theme? Where it’s loaded?
The new WordPress 3.6.1 doesn’t have this option anymore. I know there are a few code hacks out there for changing the embed size, but those affect all the embeds on the site (including embeds on regular posts).
I was wondering: Is there a way to change the embed size for bbpress posts only?
Since I believe only the first rel=me link on a page counts there would be best to use topic lead:
add_filter( 'bbp_show_lead_topic', '__return_true' );
…by doing so each page will be considered authored by the topic creator even if its paged.
@martin_c You didn’t specify exactly where to put that.
Looks like the last thing needed now for SMF v2.x is converting any custom HTML/BBCodes for topic/reply content.
From my tests the following BBCodes are converting fine:
[url]
[img]
[email]
[b] – bold
[i] – italic
[u] – underline
[s] – strikethrough
[left]– left aligned
[center] – centre aligned
[right] – right align
[font=fontname] – fonts
[color=colorname] – color name
[color=#FFFFFF] – color hex value
[sup] – superscript
[sub] – subscript
[quote] – quote
The following need to be converted by regex strings during import:
[quote author=SMF Admin link=topic=9.msg30#msg30 date=1380330453] – Quoting a post, username, post id & date support needs to be added.
[pre] – pre formatted text
[code] – partially working
[size=x] – font size
[glow=red,2,300]Glow[/glow] – What do we want to translate this to?
[shadow=red,left]shadow[/shadow] – What do we want to translate this to?
[move]marquee[/move] – What do we want to translate this to?
[tt] – teletype? should this be a monospaced font?
[table], [tr] & [td] – tables and closing tags
[list] – unordered list
[list=decimal] – ordered list
[li] – list item
[hr] – horizonal rule
SMF Smilies Working (extra space added so these render in code block)
- 🙂
: )
- 😉
; )
- 😀
: D
- 🙁
: (
- 😮
: o
- 😛
: P
SMF Smilies not working
- ;D
;D
- >:(
>:(
- 8)
8)
- ???
???
- ::)
::)
- :-[
:-[
- -X
:-X
- :-\
:-\
- :-*
:-*
- :’;(
:'(
What should the above be converted to with the smilies included with WordPress?
https://codex.wordpress.org/Using_Smilies
Have I missed any BBCode and/or other ‘stuff’ that isn’t getting converted correctly during the SMF import?
Glad it helped 🙂
With the dropdown list, even though it is slow you can type the username to get you there quicker without relying on the mouse for 100%, once the dropdown is showing start typing the name, you have to type fast to get more than two or three characters but it is helpful.
The other option you have is to modify the entries directly in phpMyAdmin
UPDATE wp_posts SET post_author = 123 WHERE post_author = 789;
Where 123 is the new user id you want to attribute to the old user id 789
is_bbpress() is what your looking for.
I have installed bbPress forums into my Genesis/Dynamik Website Builder parent/child theme and it works nicely. However I have some confusion on how to alter the CSS of the bbPress forums.
The general site settings have a black background with white font used. The white font is displaying on the bbPress forum pages, but not the black background.
This will be a question for those who are familiar with Genesis/Dynamik Website Builder.
I have put the following code into the Genesis/Dynamik Custom CSS field but it still displays with the default light background colors in bbPress posts.
#bbpress-forums div.odd, #bbpress-forums ul.odd {
background-color: #222222;
}
#bbpress-forums div.even, #bbpress-forums ul.even {
background-color: #444444;
}
Any assistance would be greatly appreciated.
Thanks,
Jason Davis
I have a theme-specific issue affecting the Skeleton WordPress theme. Basically, the front-end topic/reply editor loads the entire source code of the page.

Any ideas?
Found out –
you can simply use Widgets inside your template.
I also installed the tehnik-bbpress-permissions plugin to not show the hidden forums topics and put this into my template:
<?php the_widget( 'Tehnik_BBP_Replies_Widget', $instance, $args ); ?>
This should work with the default BBP Replies Widget, too (just need to find out the name of it)
Will try a bit more customization today with an eye on https://codex.wordpress.org/Function_Reference/the_widget
Another possibility is manually:
<?php do_action( 'bbp_template_before_topics_index' ); ?>
<?php if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) ) : ?>
<?php bbp_get_template_part( 'bbpress/loop', 'recent-topics' ); ?>
<?php else : ?>
<?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_template_after_topics_index' ); ?>
Sage words? Nope 😉
I had a quick look around https://wordpress.org/plugins/search.php?q=bulk+users and nothing really stood out.
The most users I have played around with is ~4,000 and that was too many also for the WordPress admin dashboard. I ended up doing everything I needed directly in phpMyAdmin with SQL queries.
A way to delete users an reattribute their posts/topics/replies to another user (mainly for a handful of folks who already had accounts on the WordPress side before migrating vBulletin over)
With only a handful of these use WordPress’ built in user delete tool, when you select to delete a user you have the option to delete all posts (including topics & replies) or keep them an attribute them to another user.
A way to “nuke” users who have spammed the forums. This would delete the user as well as all of their topics and replies.
First you are going to have to find the spam and record each user id associated and this is painful indeed! I am not to sure on the specifics but there probably is a way to get Akismet to check all of this for you.
A way to purge all users with no forum topics or replies (or posts, for that matter).
I think the quickest way for this would be in phpMyAdmin directly using an SQL query.
The query (Good to verify this stuff before you delete them)
SELECT ID FROM wp_users
WHERE ID NOT IN (SELECT DISTINCT post_author FROM wp_posts);
The delete queries (Any user without a post gets deleted)
DELETE FROM wp_usermeta WHERE user_id NOT IN (SELECT DISTINCT post_author FROM wp_posts);
DELETE FROM wp_users WHERE ID NOT IN (SELECT DISTINCT post_author FROM wp_posts);
Is bbPress really loading bunch of jQuery UI files?
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.10.3"></script>
<script type="text/javascript" src="http://localdollars.ge/wp-includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.10.3"></script>
I only see them loaded on bbPress boards.
Can somebody confirm this? Or do I need to continiue searching for this dependances in my theme?
Because bbPress now does not really have anything fancy and jQuery style to load so many libraries.
In fact everything is done with PHP.
If this is true, can somebody also point me to places where it uses one.
@diggories
I edited the file plugin file called tabbed-login.php.
At line 176 edit the <div class=”userinfo”> so that it now reads…
<div class="userinfo">
<p><?php _e('You are logged in as ', 'tabbed-login'); ?> <strong><?php echo $user_identity; ?></strong></p>
<p>
<a href="<?php echo wp_logout_url($current_url); ?>"><?php _e('Log out', 'tabbed-login'); ?></a> |
<?php if (current_user_can('manage_options')) {
echo '<a href="' . admin_url() . '">' . __('Admin', 'tabbed-login') . '</a>'; } else {
echo '<a href="' . bbp_get_user_profile_url( get_current_user_id() ) . '">' . __('Profile', 'tabbed-login') . '</a>'; }
// Updated using bbp_get_user_profile_url( get_current_user_id() to link to BBPress profile page instead of the WP profile page
?>
</p>
</div>
Hope this helps!
You shouldn’t have any as ‘anonymous’ unless for some reason the importer couldn’t convert a user for some reason, maybe because no email address with their old forum profile. This really shouldn’t be happening and if it is we need to have a look as to why this is happening and fix it.
I also presume you ran the repair tools after importing?
https://codex.bbpress.org/repair-forums/
@lwyndham thanks for the heads up, where did you place this code?
Just create a page in your menu system called forums wherever you want it, and add the following shortcode
[bbp-forum-index]
I’m afraid that doesn’t work either. I think it would look better if it could get removed in the source and not hidden with CSS.
I asked the theme developer and he told me it is a core-function, nothing to do with the theme Im using. I have my developing site under the following URL http://dala.se/forum – where you could see the “Reply To”.
I have tracked it down to the following files:
/wp-content/plugins/bbpress/includes/topics/template.php
Row: 1789-1806
function bbp_topic_last_reply_title( $topic_id = 0 ) {
echo bbp_get_topic_last_reply_title( $topic_id );
}
/**
* Return the title of the last reply inside a topic
*
* @param int $topic_id Optional. Topic id
* @uses bbp_get_topic_id() To get the topic id
* @uses bbp_get_topic_last_reply_id() To get the topic last reply id
* @uses bbp_get_reply_title() To get the reply title
* @uses apply_filters() Calls 'bbp_get_topic_last_topic_title' with
* the reply title and topic id
* @return string Topic last reply title
*/
function bbp_get_topic_last_reply_title( $topic_id = 0 ) {
$topic_id = bbp_get_topic_id( $topic_id );
return apply_filters( 'bbp_get_topic_last_topic_title', bbp_get_reply_title( bbp_get_topic_last_reply_id( $topic_id ) ), $topic_id );
}
/wp-content/plugins/bbpress/includes/replies/template.php
Row: 471-491
function bbp_reply_title( $reply_id = 0 ) {
echo bbp_get_reply_title( $reply_id );
}
/**
* Return the title of the reply
*
* @since bbPress (r2553)
*
* @param int $reply_id Optional. Reply id
* @uses bbp_get_reply_id() To get the reply id
* @uses get_the_title() To get the reply title
* @uses apply_filters() Calls 'bbp_get_reply_title' with the title and
* reply id
* @return string Title of reply
*/
function bbp_get_reply_title( $reply_id = 0 ) {
$reply_id = bbp_get_reply_id( $reply_id );
return apply_filters( 'bbp_get_reply_title', get_the_title( $reply_id ), $reply_id );
}
But tracking it further just lead me to a WP core file and function:
/wp-includes/post-template.php
Row: 102
Go in your css and find and add this display none!!
#bbpress-forums fieldset.bbp-form legend {
display: none;
}
I want to style the bbpress colors, but I am not seeing my changes when I add custom CSS to my Genesis child theme (Dynamik Website Builder).
It is odd because I am using Firebug to isolate which parameters need to be changed, I can alter them within the firebug window and see them change to what I’d like to happen… then when I put that code in Genesis>Dynamik Custom>CSS (my child theme’s area to add to the CSS) it does not display.
Things like this have no effect:
#bbpress-forums div.odd, #bbpress-forums ul.odd {
background-color: #222222;
}
#bbpress-forums div.even, #bbpress-forums ul.even {
background-color: #444444;
}
Any advice?
Hi all,
I am currently trying to put together a home page that consists of the 20/30/50 recent posts in all forums (paginated).
I know that I can use the topic short code [bbp-topic-index], but this lists the whole topic rather than individual (single) posts.
The reason that I want to do this is that if someone posts a topic with images in I want those images to show on the home page to make it more interesting.
Can this be done with bbpress? I know that I can be done with IPS boards but not keen on their layouts.
Cheers,
Jayce