P.S. It is possible to achive the output I want by hacking the common/widgets.php file, (not that I am suggesting this is good, as will be overwritten on upgrades!)
in widgets.php, changing the Topics widget query on lines 743 and 764 as below does what I want! Maybe not too hard for author to add customise this properly?
HACK:
// Order by most recent replies
case 'freshness' :
$topics_query = array(
'post_type' => array(bbp_get_topic_post_type(),bbp_get_reply_post_type() ), //HACKED!
// 'post_type' => bbp_get_topic_post_type(),
Hi, I am using bbPress as part of a wordpress site. I would like to show “recent activity” in a sidebar widget without using too much screen space. In other words a combination of the “recent topics” and “recent replies” widgets, e.g. as below (1 topic, 1 reply, but able to set number would be good also)
“Recent Forum Activity”
Latest Topic…
Latest Reply…
Is that possible with shortcodes? else maybe a way to combine the output of the two current widgets?
Thanks
I moved your reply in this topic to a new topic as they are separate issues.
You shouldn’t have a problem with your setup if you follow the docs:
https://codex.bbpress.org/import-forums/
Currently the phpBB import script only supports phpBB v3
https://codex.bbpress.org/import-forums/phpbb/
You could upgrade phpBB v2 to phpBB v3 and then import to bbPress.
You will still have issues with user passwords though and each user would need there password manually changed. This is due to different password algorithms between phpBB v2 & v3.
@Karloy I have the same issue. please can you describe how you fixed this issue? What file did you edit and what code exactly was edited. Thanks in advance
1. can more than 110 000 users be imported
This should not be a problem.
2. My website runs a specific version of phpbb SEO for allowing permalinks for every forum – will this be imported ? (so that there is not a lot of redirect)
No, these will NOT be imported and you will need to manually set your permalinks and make some redirects using .htaccess
3. My website stores custom profile fields for every user (more than just ICQ, but also custom ones). How could I have the same kind of functionalities using bbpress ?
Currently when importing from phpBB we are importing and storing the default phpBB user fields as outlined here. You could modify the import script to include any of your custom user profile fields so they also get stored in wp_usermeta.
After that you would need to find a WordPress plugin that supports extended user profile fields to utilize that data. I am not sure of any specific plugin that can really do that out of the box with bbPress at the moment but at least you ‘would’ have all of your users advanced profile data stored.
4. What about performance – will it be better than phpbb. I know bbpress is very powerful for small forums, but I have no idea regarding huge ones. Can wp caching plugins work for bbpress as well ?
There are some large sites running bbPress and I would suggest you setup a test site to see how it works for yourself personally.
As to caching it appears that ‘WP Super Cache’and ‘W3 Total Cache’ do not work well with bbPress as discussed in this topic though there is ‘Lite Cache’ which appears to work with bbPress as per this topic.
5. Is the entire UI translated in French – it doesn’t seem to me, but maybe I’m wrong.
The current status of the French translation is at 11% translated with 879 strings untranslated though 734 of those strings have been translated and are waiting for the fr_FR translation validator to validate the translations.
https://codex.bbpress.org/bbpress-in-your-language/
6. Can I use any plugins writter for wp for bbpress ?
I am not sure what you mean for this question
Any more questions please ask away…
The strings you mention from what I can see are all currently able to be translated.
Take a look at this to get started with bbPress Translation files
https://codex.bbpress.org/bbpress-in-your-language/
Hi.
I am having the blank page issue. I tried adding a shortcode to it, but it stayed blank.
I am using Widezine theme with a BBpress Child theme.
website: westcoastnomads.com
Can someone help, please?
I’m a coding newbie, so please dumb it down. 🙂
Jill
Before the upgrade I was using a TinyMCE plugin on my forum that was recommended by other BBpress users.
Using that, the members could post videos and change font colour etc via the visual editor, but since the upgrade, when they do this, it just shows the html code and doesn’t display well.
Is there any way to fix this? it’s highly frustrating as it was working perfectly before this upgrade.
Thanks! 🙂
My theme uses index.php in the main directory for most pages, by the way. (In other words, my theme does not have page.php, single.php, etc.) So you can sorta see what happened, it got overridden as in a subtheme.
I added a bbpress subdirectory to my theme and got a blank screen. I was using a “silence is golden” index.php file in the subdir and removing that fixed it. I guess the subdir acts as a subtheme or something (though it has no style.css file).
Interesting thing is I could also fix it by dropping in the files from plugins/bbpress/templates/default/extras to my main theme directory, following the instructions here: `http://codex.bbpress.org/theme-compatibility/
Posting this in case it helps anyone else.
As of ~2.3, the “allowed tags” are filterable within bbPress.
Look for the filter bbp_kses_allowed_tags. It’s in includes/common/formatting.php.
I’m wondering how I can make the 14×14 avatar images that are in the loop of topics on a forum landing page. I know I could just go into loop-single-topic.php and change the 'size' => 14. But I’m wondering if/how I could use an add_filter? in my functions.php (so it’s not blown away with an update) to make this change.
I have a pretty basic understanding of add_filter but I’m not able to figure out how to get this working. Any help is appreciated
Ah, ok, I understand what you want (I think). I have a page like that where I use the [all-recent-topics] shortcode : https://codex.bbpress.org/shortcodes/ . I’m going to try using it in a text widget* but when that doesn’t look like I want, will copy / paste / edit and make a new shortcode to use. (I like shortcodes.) I’ll probably get to it sometime this week and can post it if you’d like, with the caveat that you’ll need to adjust the styling for your site.
*if you want to use shortcodes in text widgets add
// Use shortcodes in text widgets.
add_filter('widget_text', 'do_shortcode');
to your functions.php file.
hi everyone,
I didn’t used to have this problem, but upon upgrading to bbPress 2.3.2, it manifested. The [bbp-topic-form] shortcode now no longer allows un-privileged users to post. Seems like this bug hasn’t been fixed.
Is there any update to this situation?
Kind regards,
Renai
I came across your post while searching for a solution to the same issue. Also found this suggestion from a year ago and gave it a try: https://bbpress.org/forums/topic/how-to-remove-avatar-from-do_action-bbp_template_notices-in-bbpress-2-0/#post-110255
It worked! Here’s what I added to the BBPress stylesheet:
.avatar-14 {
display: none;
}
Hope this helps.
I have added a new input line to the form-user-edit.php I plan to add more and have these either via functions.php or a plugin when I have got it working, but for the moment am changing the .php itself.
So for now I have put in new line, copying the syntax of another one :`<label for=”town”><?php _e( 'Town', 'bbpress' ); ?></label>
<input type=”text” name=”town” id=”town” value=”<?php echo esc_attr( bbp_get_displayed_user_field( 'town' ) ); ?>” class=”regular-text” tabindex=”<?php bbp_tab_index(); ?>” />`
This works fine, except how do I get this to save the info? It lets me change it, but doesn’t let me save it.
However if I set a row in phpmyadmin, then this code displays it, but again doesn’t not save a change.
What bit of logic am I missing?
I don’t think people need access to /wp-admin to browse the site.
I keep everyone except logged-in admins from accessing wp-admin (popping them back to the homepage) by using the following in my functions.php
//don't allow users to go wp-admin
add_action( 'init', 'blockusers_init' );
function blockusers_init() {
if ( is_admin() && ! current_user_can( 'administrator' ) &&
! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}
Hi! I think this should work – if it doesn’t, just delete the page and you’ll be back where you started.
1- make a Page with the permalink “forums” – it can have whatever title you’d like, but if it’s something different than Forums, change the permalink to “forums”.
2- write your welcome text just like you would on a normal page
3- after your welcome text, put the shortcode [bbp-forum-index] – so your page will look like this:
===
Hi! Welcome to the forums. Grab yourself a cup of tea, pull up a chair and have a chat with us.
[bbp-forum-index]
===
So that should work – I have pretty heavily modified templates, so if it looks weird, let me know and I’ll try to figure out what I did! It’s one of those times where I know I did *something* to this page but can’t quite remember what.
Do you mean an anchor to the form on the bottom of the page, like this one (I mean, the one I’m typing in right now to reply to you and that you will use if you reply to me 🙂 ).
If that’s it, then add in an anchor to form-reply.php* after the new reply div, like so:
<div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
<a id="the-reply-form"></a>
If that’s not it, then if you post a link, I’ll tell you which template it’s on – there’s form-topic.php as well – that one’s for topics.
*this should be in a child bbpress theme – instructions are here: https://codex.bbpress.org/theme-compatibility/ — apols if you already know this, am adding for completeness!
ok, i fixed mine in a different way. Since I was using the default bbpress template, there was no folder for it in the directory listed in the bbpress codex page you linked to.
What i did, was open the CSS editor under theme editor and pasted your line into the pretty much empty box.
Links to your forums are not relative to where you use the forum shortcode. When you think about it, how could they be? You’re free to use the shortcodes anywhere you wish, even on multiple pages.
If you want to change the permalinks for your forums, visit Dashboard > Settings > Forums > Permalinks and change them there. 🙂
Hi, I know this post is quite old, but just in case you didn’t find it, heres the solution:
change bbp_dashboard_right_now and write bbp-dashboard-right-now
Ok, so I have writen and got working my first plugin, I am adding some user info to the reply display
BBpress has the following lines in loop-single-reply
<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true) ); ?>
[...other lines of code here]
<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
I worked out how to get a plugin to put the other stuff I need before ‘bbp_theme_before_reply_author_admin_details’ so it’s working fine
BUT I want to change the line
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true) ); ?>
to
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false) ); ?>
I think I do this with a “remove action” in my plugin, and then add the code line as I want it back into my plugin – in effect deleting all the code between the two “do actions” and replacing this with what I want.
But I cannot fathom from the codex and other googles quite how you do this
1) is my understanding correct?
2) what would the code line be in my plugin?