Continuing on….
In my themes function.php file I have the following which creates my thumbnail:
// /bbpress/templates/default/content-single-forum
add_action('bbp_template_before_single_forum', 'pym_print_featured_image_single_forum', 11);
add_action('bbp_template_before_single_forum', 'pym_print_forum_description', 12);
function pym_print_featured_image_single_forum() {
if (has_post_thumbnail()) {
echo '<div class="pym-bbp-topic-thumbnail">';
echo get_the_post_thumbnail(null, 'thumbnail' );
echo '</div>';
}
}
I have been calling this elsewhere in my template using ”
<?php do_action( 'bbp_template_before_single_forum' ); ?>
I am now trying to edit content-single-forum.php to call this thumbnail using the following:
<?php bbp_get_template_part( 'loop', 'topics' ); ?>
How do I go about getting the thumbnail to be called in the loop?
Thanks, Malcolm
Thanks @robkk I added that css and it ended up removing the entire bbpress topic widget. I’ll have to keep thinking of way ๐
Maybe try deleting any bbpress-es_ES.po files, and then get new translations by going to http://example.com/wp-admin/update-core.php and click “Update Translations”
I think your looking for an unread posts plugin. There are quite a few you can use for bbPress.
bbPress Pencil Unread
bbPress Mark as Read
bbPress New Topics
bbPress unread Posts v2
bbPress go to first unread post
I personally like bbPress Pencil Unread, because with a few lines of custom css I can either have the new label or a custom image before the forum/topic title like in the other plugins. And because it has a template tag to include a mark all as read button somewhere. Other users like mark as read as it is close to vBull functionality and the go to first unread post plugin as its close to phpbb functionality. You probably would just need to use Unread Posts v2.
Ok i see but I still don’t know how to be able to change it.
in the forum index it appears:
FORO TEMAS ENTRADAS REFRESCAR
but when you click on a forum topic then it works fine:
DEBATE USUARIOS PUBLICACIONES รLTIMO MENSAJE
รltimo mensaje is the correct! but not refrescar…maybe i will wait for bbpress 2.6 ๐
Anonymous User 15109858Inactive
Hey there.
I’m trying to figure out if it possible to make a forum application with tables to fill information in, and then later on proceeded into the forums within a post created.
As in a post created by a user in which he fells the tables with the needed information.
I would be greatly appreciated with any help!
Hi Eric,
This issue is already reported in https://bbpress.trac.wordpress.org/ticket/2677. A first patch is available so people are working on it to get it fixed in one of the next versions.
Pascal.
I import an SMF forum BBPress but imports still hangs, I have read that the matter must go line by line to identify the line that has an error but what is the line?
— 255 -256 topics
This is the topic that crashes import 256 or 256 is the line of the table topics SQL
Thank you in advance and sorry for the English
Hello everybody, I am looking for information to redesign my website.
I look for an option that is found on many message but I do not find this one in bbpress.
This option allows to display a small icon in front of the topics when new mail response is a kind of visual notification on the forum.
This option is available on bbpress it?
Thank you in advance and sorry for the English
Hi Eric,
Best pratice is never to edit existing files ๐ It gets overwritten with the next release.
Have a look if you find something in my response here: https://bbpress.org/forums/topic/setup-login-for-private-forum/
Pascal.
I don’t think you have to download the files anymore. I think all you have to do is change your language in Settings > General now.
Here is the list of translations. German seems to be at 100%.
I guess try what I said above, because a WordPress update possibly changed the language directory for each plugin.
https://translate.wordpress.org/projects/wp-plugins/bbpress
The “by” is printed in php, as displayed in this code here.
https://github.com/ntwb/bbPress/blob/master/src/includes/common/widgets.php#L822
There is a way to use CSS to hide the “by” though. It will look like the topic title has a little margin away from the topic authors name.
Here is a custom CSS example.
.widget_display_topics li {
visibility: hidden;
}
.widget_display_topics li > * {
visibility: visible;
}
There might be a way to use a plugin like Loco translate to just translate “by” to nothing also, but I have never tried that plugin before, and I am not 100% if that would even work. But it could be another possibly easy solution.
Robin might be on to something with the url thing. Robins suggestion works fine, but I usually suggest looking into using the Reveal IDs plugin, as it really makes it easier by just adding a column in posts like Forums > All Forums list and users list in the WordPress backend.
https://codex.bbpress.org/getting-started/faq/#findpostid
@rateyourway
Its a custom bbPress template file in your theme. I suggest you contact your theme developer. Maybe they can make the custom bbPress layout translatable by a few code tweaks.
@aviazz
You already should have a way to view topics with no replies. By default bbPress has a feature called Views. It allows you to display topics with various different arguments. Topics with no replies should be one of the 2 default views which are Most popular topics and Topics with no replies
You can link to the existing page using the Topic Views widget in your sidebar, or you can use a shortcode already provided by bbPress to display a view shortcode in a page and add it to a menu. You can also also instead add a custom link to a menu in the menus section in Appearance > Menus if you do not need to use a shortcode in a page.
The widget is called the Topic Views widget that you will be able to see in Appearance > Widgets or you can manage your sidebars using the Customizer API in Appearance > Customize in the WordPress backend.
https://codex.bbpress.org/features/widgets/
The shortcode you would want to use is [bbp-single-view id='no-replies']
https://codex.bbpress.org/features/shortcodes/#views
If for some reason you may not already have the default view. See if its related to a theme/plugin function removing the default view by troubleshooting.
Plugin Troubleshooting
https://codex.bbpress.org/getting-started/troubleshooting/#plugins
Theme Troubleshooting
https://codex.bbpress.org/getting-started/troubleshooting/#themes
If its not a theme/plugin issue we can check to see if its a possible bug causing an issue.
@rateyourway The “freshness” term has been removed from bbPress 2.6 (/dev) so you will not see it in the translation files, it is still there for the current bbPress 2.5.x see:
https://translate.wordpress.org/projects/wp-plugins/bbpress/stable/es/default?filters%5Bterm%5D=freshness&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc#
Edit: The string may also be coming from your theme, switch themes to one of the included “Twenty” themes to double check.
I’m not sure that this is in bbpress – it may be that it is in your theme, or your theme is amending bbpress.
Try the following to see if it disappears and to work out what is creating this
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
Hi @netweb thanks for your reply.
However, I still have the same problem. The bbpress translation doesn’t contain any word called “refrescar” with would be “freshness” in english.
I can’t find how to change those words…
[mod edit – moved to a new topic]
I have made many attempts to import my xenforo into bbpress. Import will stop in the middle / all posts will be made by anonymous users etc.
So today I used bbpress alpa version (2.6) to import my xenforo forum. Everything came through except users.
Their names are appearing in the topics and replies but they are not found in the list of users. I think they are being considered as anonymous users. So the number of voices in a thread is zero even though the thread has 14 replies.
I took screenshots of the entire process. I am also willing to give access to moderators here.
If this issue is fixed, I can import bbpress to my live wordpress site.
Thank you.
Hi folks,
I’m having some trouble trying to remove the “by” part in the bbpress latest topics widget. I’ve inspected the css and html and can’t figure it out. Any help would be great.
Hi,
I created a forum, his id is 3569159-2 and it contains one topic.
in this page of my website http://radiotounsi.com/?page_id=4862
I tried to display this forum by using the shortcode [bbp-single-forum id=$3569159-2] but nothing is displayed, but other bbpress shortcodes work just fine like [bbp-forum-index] and [bbp-login]
I switched the theme to twenty sixteen for testing purpose, same problem
Hello together
I have the bbpress version 2.5.10 installed on my wordpress site:
http://www.physioarena.ch/hsg/forum/
and i want it translated i german, but it doesnt work!!
I have downloaded the files: bbpress-pt_DE.mo and bbpress-pt_DE.po and put These files in the Folder wp-content/languages/bbpress
can you help me?? thxxxxxx!!! sorry for my english!
This may be easier than I’d thought:
[root@cp bbpress]# grep -r 'You must be logged in' *
languages/bbpress.pot:msgid "You must be logged in to create new forums."
languages/bbpress.pot:msgid "You must be logged in to reply to this topic."
languages/bbpress.pot:msgid "You must be logged in to create new topics."
templates/default/bbpress/form-forum.php: <p><?php is_user_logged_in() ? _e( 'You cannot create new forums.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></p>
templates/default/bbpress/form-topic.php: <p><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
templates/default/bbpress/form-reply.php: <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
What’s the “best practice” for modifying the languages file? Is that something that I can achieve with a child theme?
TIA,
Eric Pretorious
Portland, OR
> Thanks, Pascal: That worked perfectly!
One, very important correction: If visitors to the site aren’t logged in, they see nothing – not even the warning that “You must be logged in to…” ๐
There must be an easy way to do away with that “Oh bother!…” bit of text without leaving visitors in the dark. ๐
Maybe I should just manually change the source:
[root@cp bbpress]# grep -r bother *
languages/bbpress.pot:msgid "Oh bother! No forums were found here!"
languages/bbpress.pot:msgid "Oh bother! No replies were found here!"
languages/bbpress.pot:msgid "Oh bother! No search results were found here!"
languages/bbpress.pot:msgid "Oh bother! No topics were found here!"
templates/default/bbpress/feedback-no-topics.php: <p><?php _e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></p>
templates/default/bbpress/feedback-no-replies.php: <p><?php _e( 'Oh bother! No replies were found here!', 'bbpress' ); ?></p>
templates/default/bbpress/feedback-no-search.php: <p><?php _e( 'Oh bother! No search results were found here!', 'bbpress' ); ?></p>
templates/default/bbpress/feedback-no-forums.php: <p><?php _e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></p>
Eric Pretorious
Portland, OR
I’m really surprised to see that bbPress warns visitors to the forums that “You must be logged in to create new topics.” but does not provide a link to the login page. e.g.,
<a href='/login.php'>Login</a> to create new topics and/or to reply to topics.
Is there some way to correct that?
TIA,
Eric Pretorious
Portland, OR