Ok, I’m sure I’ll be treated as a troll or whatever and maybe I’m just not an elite enough WP user and perhaps I should go home or uninstall… But I’m just wonder why in the hell bbpress doesn’t include this feature:
Select WP Theme for forums.
Is it really that hard to do? To have something built in, where you can click a drop down and make it so you can change the theme you want to have for your forums?
I’ve googled… I’ve searched the forums, and aside from people talking about mucking around with php files to change this or that (very non-WP btw), I haven’t found a simply, clean, elegant solution.
Please, for the love of all that is holy, please add an option to allow folks to be able to click a dropdown and select from one of the installed themes for your bbPress forums on your site.
Cheers.
Laurie,
Would need some code to do this
If you’re into coding, suggest you download
https://wordpress.org/plugins/bbpress-notify/
and crack open the code
It should give you a good idea on how to create your own code.
if not try putting it on wp-jobs
http://jobs.wordpress.net/
and see if someone will pick it up for you
Stephen,
Is there a quick and easy way to amend the headings other than amending the template?
eg loop-topics.php has
<ul class="forum-titles">
...
...
<li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
</ul>
“Edit: That said, has anyone tried the code in the link you posted?”
I’ve just loaded it and it seems to work fine
function wpse_77441_change_time_format( $anchor, $forum_id )
{
$last_active = get_post_meta( $forum_id, '_bbp_last_active_time', true );
if ( empty( $last_active ) ) {
$reply_id = bbp_get_forum_last_reply_id( $forum_id );
if ( !empty( $reply_id ) ) {
$last_active = get_post_field( 'post_date', $reply_id );
} else {
$topic_id = bbp_get_forum_last_topic_id( $forum_id );
if ( !empty( $topic_id ) ) {
$last_active = bbp_get_topic_last_active_time( $topic_id );
}
}
}
$date = get_post_time( get_option( 'date_format' ), $gmt, $reply_id, true );
$time = get_post_time( get_option( 'time_format' ), $gmt, $reply_id, true );
$dt = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbpress' ), $date, $time );
$time_since = bbp_get_forum_last_active_time( $forum_id );
return str_replace( "$time_since</a>", "$dt</a>", $anchor );
}
add_filter( 'bbp_get_forum_freshness_link', 'wpse_77441_change_time_format', 10, 2 );
add_filter( 'bbp_get_topic_freshness_link', 'wpse_77441_change_time_format', 10, 2 );
@synaptic It’s not always obvious but the links in your post that link to old discussions or sites (which I just edited) regarding the old ‘standalone’ bbPress and not the current bbPress v2.x plugin, circa anything over 2-3+ years of age won’t be relevant.
As to meeting some kind of demand quota, bbPress v2.x Plugin is sitting at 1,125,146 downloads as I write this, so whatever the magical formula is it would appear it has not reached tipping point.
Edit: That said, has anyone tried the code in the link you posted?
http://wordpress.stackexchange.com/questions/77441/how-to-edit-bbp-forum-freshness-link-format
Ok, you need to do the following
If you have a child theme, then do this in there
If you don’t have a child theme, then seriously consider creating one, it’s very quick and easy, and will ensure that changes you make don’t get lost on theme or bbpress upgrades. Just google wordpress child theme videos and you’ll get lots of help.
In your theme create a bbpress directory
wp-content/themes/yourthemename/bbpress
then copy
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php to this directory so that you have
wp-content/themes/yourthemename/bbpress/loop-single-topic.php
Edit this file to delete line 60 which says
<span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
and save.
bbPress will now use the file in your theme’s bbpress folder instead of the default, and you won’t lose your change on bbpress upgrades – but will it it is in your main theme, so if you don’t create a child theme, keep a note of what you changed, as if your theme updates, then you may/will lose the bbpress folder and file.
ok, then as before I’d suggest you go to yoothemes for support.
It may be as simple as changing the page template that bbpress is using
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ section 8
John, really pleased that you tracked it down, and yes I’ll add it to the styling crib when I get a moment ! Often I spend hours searching for the wrong thing, the solutions here are often easy and obvious but only after you have worked them out !
The code
#bbpress-forums ul.bbp-threaded-replies{margin-left:25px;}
is exactly the same as
#bbpress-forums ul.bbp-threaded-replies {
margin-left: 25px;
}
The computer simply ignores gaps, and coders only write it that latter way to make it easier to read.
You ought to start using a child theme if you haven’t already got one. (just google child theme video, and you’ll get lots of help). it’s very quick and simple and does not affect you main theme, just allows you to add without losing on updates. Then you would create a directory in that called
css viz wp-content/themes/yourchildthemename/css and copy your amended bbpress.css file into that. bbPress will then use that, and you won’t lose changes.
Great that you’re fixed !
there is an existing ticket but it is awaiting popular demand to be fixed:
https://bbpress.trac.wordpress.org/ticket/2031
I’m not sure exactly how ‘demand’ is measured by the dev team. There certainly has been multiple requests for help to make this change both on the forum and elsewhere on the internet.
How difficult would it be to allow for bbpress admins to toggle between a freshness date format and a date/time format? wordpress already allows for this type of dating for posts so I can’t see this as being a complicated issue.
the freshness tag shows previous conversations about this issue:
https://bbpress.org/forums/topic-tag/freshness/
Here are a few previous forum postings asking for help in changing the freshness format to a static date:
Freshness Date, Instead of ongoing Time frame
Edit or delete freshness
Change freshness to date after 24 hours
https://bbpress.org/forums/topic/how-do-you-change-the-freshness-of-post-date-format/
https://bbpress.org/forums/topic/show-exact-date-of-post-not-freshness/
https://bbpress.org/forums/topic/timestamp-posted-m-d-y-time/
there are also discussions outside of the bbpress.org forums:
http://bbshowcase.org/forums/topic/exact-timedate-in-forum-last-poster
http://wordpress.stackexchange.com/questions/77441/how-to-edit-bbp-forum-freshness-link-format
Is this enough to meet the ‘demand’ quota? most people have been searching for this going back many years without any resolution.
If this isn’t enough demand, then what would be?
Got it..!
I’t’s like going on an easter egg hunt and actually finding a real egg… 🙂
I measured the offset with a little pixel yardstick that plugs into Chrome, got 50px and searched the bbpress directory for that, and found this in the bbpress.css you pointed me to above:
#bbpress-forums ul.bbp-threaded-replies {
margin-left: 50px;
}
changed that to:
#bbpress-forums ul.bbp-threaded-replies {
margin-left: 25px;
}
Put it into the theme’s child with the other bbpress css changes I have there, and it worked… Perfectly… Hoping it might be helpful for others, or in your crib, Robin..?
Curiously, in searching also found:
in both of these-
bbpress-rtl.css
bbpress-rtl.min.css
this
#bbpress-forums ul.bbp-threaded-replies{margin-right:50px}
and in this-
bbpress.min.css
this
#bbpress-forums ul.bbp-threaded-replies{margin-left:50px}
All of which looks like no css I’ve seen, in each file one very, very, very long continuous line of code … Am wondering if there is effect from the above for other sorts of screens or browsers, or something..? If I changed these to 25px I’d likely do it directly in the files in the bbpress directory, and keep a record for bbpress updates…
Leaving it alone for now, but in case someone looks in here and has any thoughts..?
John.
Not a total new install but a new install of BBPress and we do have wishlist.
Also the page is not totally blank it still has the banner and footer but no menu or content generated. No side bar widgets.
I tried to deactivate the plugin without success.
Changing to the default template did work so its the AIR theme from Yootheme
So what next – look for something in the theme that could be causing it
I’m going bananas trying to get bbpress to put comments on the forum with the newest first instead of last and making everyone scroll to the bottom of the page. The only thing I can find is an article more than 3 years ago that has files that don’t look like what i see. Help! this surely can’t be the first time someone has brought this up. Or maybe there is some blatantly obvious setting i’m missing.
This is the article I speak of that says just change some code from ASC to DECS but i don’t see that anywhere in the current file structure.
Making the newest posts show up first
@robin-w thank you for the response & suggestion…hopefully, bbpress will incorporate some of these things sometime soon.
That’s the way it works at the moment – it annoys me as well
You could use the plugin
WP Modal Login
This has a modal (popup) login that is happy for you to get it wrong.
It has a widget that you can use. it’s not a pretty in the widebar as the bbpress one, but smarter when it’s launched.
I have just started using this linked to a menu item, will be documenting how to do the latter when I get a moment.
Just wondering if I allowed my users to upload photographs, would it slow my site down? Not sure this is a BBPress question but – well it is kinda?
Ta,
Kris
You should be looking at the bbpress.css
Suggest you look for Topic and reply content and look at padding
I’ve already run a full text search through all files includes in the bbpress plugin. No files contain a reference to ‘bbp_template_before_forums_loop’, except loop-forums.php where it is called from.
Try
Step by step guide to setting up a bbPress forum – part 4
The actions are used in the templates held in
wp-content/plugins/bbpress/templates/default/bbpress/
There’s some code in the documentation to add a Login/Logout to the menu
see
Layout and functionality – Examples you can use
item 11.
I am documenting a ‘modal’ (popup) login to add in a few days.
While I appreciate your work, this is not a viable solution.
The fact that bbPress comes out of the box with a box that says “forum” makes no sense.
Any forums I’ve seen (IPB, XenForo, phpBB, etc etc etc) have boxes for each category, and then the forum names, not a box that says forum, then the categories, then the forums underneath, bbPress’ layout makes no sense and I am not looking to download a child theme and then have to customize it because I don’t currently possess enough CSS and WordPress knowledge to do so.
I am learning, Im not sitting around or anything, but bbPress should look like the other forum layouts because it’s current layout makes 0 sense.
Are there any repositories with some example images of how to go about styling bbPress? I don’t know if it’s just me but bbPress has been around for years if I’m not mistaken and there’s a surprising lack of documentation on it for how popular it is.
bbpress has a large number of do_action() statements. I am familiar with this at the wordpress level but I am unable to locate where bbpress registers a large number of these actions. Specifically I would like to change the behaviour of:
do_action( ‘bbp_template_before_forums_loop’ );
If someone could point me in the right direction that would be greatly appreciated.