The shortcode uses the same setting as ‘Topics per page’ setting.
https://codex.bbpress.org/forum-settings/#per-rss-page
Can you open the bbPress ‘Settings’ -> ‘Forums’ panel in your WordPress dashboard:
eg. http://example.com/wp-admin/options-general.php?page=bbpress
Change a setting eg. Topics from 15 per page to 14 per page click ‘Save Changes’
(It doesn’t really matter what is changed here as we are just forcing bbPress to update its setting in the wp_options table)
Go check your site at eg. http://example.com/forums
Is the issue fixed?
If Yes, go back and change the setting back to its original setting
If not, now go to the ‘Tools’ -> ‘Forums’ panel in your WordPress dashboard:
eg. http://example.com/wp-admin/tools.php?page=bbp-repair
Run each of these individually:
- Recalculate the parent topic for each post
- Recalculate the parent forum for each post
- Recalculate private and hidden forums
- Recalculate last activity in each topic and forum
- Recalculate the sticky relationship of each topic
- Count topics in each forum
- Count replies in each forum
- Count replies in each topic
- Count voices in each topic
- Count spammed & trashed replies in each topic
- Count topics for each user
- Count replies for each user
Again go check your site at eg. http://example.com/forums
Is the issue fixed?
See https://codex.bbpress.org/bbpress-in-your-language/
It looks like %96 of bbPress is already translated to Italian 🙂
Hi, most simple way is to find this line in your bbpress css and add display:none like this:
li.bbp-topic-voice-count {
display: none;
float: left;
text-align: center;
width: 12%;
}
Hi all, and thanks to @koebdb for tricks, but i have a little question, read this:
<?php
echo '<br>Messages: '.bbp_get_user_post_count(bbp_get_reply_author_id());
?>
This function exist in includes/users/options.php, is written to show all messages from one users, but if you use it return 0…. WHY?
This is the function:
/**
* Output a users total post count
*
* @since bbPress (r3632)
*
* @param int $user_id
* @param boolean $integer Optional. Whether or not to format the result
* @uses bbp_get_user_post_count()
* @return string
*/
function bbp_user_post_count( $user_id = 0, $integer = false ) {
echo bbp_get_user_post_count( $user_id, $integer );
}
/**
* Return a users total post count
*
* @since bbPress (r3632)
*
* @param int $user_id
* @param boolean $integer Optional. Whether or not to format the result
* @uses bbp_get_user_id()
* @uses get_user_option()
* @uses apply_filters()
* @return string
*/
function bbp_get_user_post_count( $user_id = 0, $integer = false ) {
// Validate user id
$user_id = bbp_get_user_id( $user_id );
if ( empty( $user_id ) )
return false;
$topics = bbp_get_user_topic_count( $user_id, true );
$replies = bbp_get_user_reply_count( $user_id, true );
$count = (int) $topics + $replies;
$filter = ( true === $integer ) ? 'bbp_get_user_post_count_int' : 'bbp_get_user_post_count';
return apply_filters( $filter, $count, $user_id );
}
Now i have used the second of koendb and it works fine…
<?php
echo '<br>Replies: '.bbp_get_user_reply_count_raw(bbp_get_reply_author_id());
echo '<br>Topics: '. bbp_get_user_topic_count_raw(bbp_get_reply_author_id());
?>
Output:
Replies: 3
Topics: 2
or use
echo 'Messages: ';
echo bbp_get_user_reply_count_raw(bbp_get_reply_author_id()) + bbp_get_user_topic_count_raw(bbp_get_reply_author_id());
Output:
Messages 5
I’m looking fo something that will give me Topic Formats, like Post Formats. I’d like a topic post to be Image, or Audio, etc.
I’ve hunted around and didn’t find anything, is there something I’m missing?
Else, where would I look to code this in?
Hey,
I found the same issue. In my case I patched bbPress to bail if the page isn’t a bbpress page. so in bbpress/includes/common/template.php line 2504 (include bbp_title() function, bbpress 2.4):
if (!is_bbpress()) {
return $title;
}
This must be a bug. Where can I submit a patch for this, or check if it’s a known bug?
Thanks,
Matt
Cool… One day we will get a codex page ourselves 🙂
You’d have to adjust the standard loop output, you can do this in your bbpress theme.
Line 32 of content-single-topic contains:
bbp_has_replies()
Turn it into:
bbp_has_replies('order=DESC')
Havent tried this though, but it should work.
You can change it in your bbpress theme.
Line 29 of form-reply.php: <legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
New guy here, done the research yesterday and today but I’m at a loss. I did the workaround where you add in the bbpress code to a page and make it your home page but if you wouldn’t mind taking a look at my homepage: http://www.lakexeno.com you’ll notice there’s just a big white box on top of the forum coding?
Any help would be *greatly* appreciated.
Thanks so much!
I have a solution… thi is a correct code.. it work fine…
function bbpress_title_duplicates($title, $sep, $seplocation){
$usrurl = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($usrurl,'users')) {
if (false !== strpos($usrurl,'topics')) {
$title = str_replace('Il profilo di', 'Argomenti aperti da', $title);
} elseif (false !== strpos($usrurl,'replies')) {
$title = str_replace('Il profilo di', 'Risposte create da', $title);
} elseif (false !== strpos($usrurl,'subscriptions')) {
$title = str_replace('Il profilo di', 'Discussioni sottoscritte da', $title);
} elseif (false !== strpos($usrurl,'favorites')) {
$title = str_replace('Il profilo di', 'Topic preferiti da', $title);
} else {
$title = str_replace('Il profilo di', 'Il Profilo di', $title);
}
}
return $title;
}
add_filter('bbp_title', 'bbpress_title_duplicates');
FreeWPress,
My sincere apologies. I forgot one line of code on the blog post. I’ve added it and corrected the blog post to reflect the forgotten line.
Above all of the code that you have add this:
add_filter('wp_title', 'bbpress_title_duplicates', 20, 3 );
Again, my apologies for the oversight.
This is a print screen of my code:
<title> Il profilo di sole38</title>
I have written exactly this in function and not working!! Incredible!!
Is too sensitive.. eheheheh…..
function bbpress_title_duplicates($title, $sep, $seplocation){
$usrurl = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($usrurl,'users')) {
if (false !== strpos($usrurl,'topics')) {
$title = str_replace('il profilo di', 'Argomenti aperti - test', $title);
} elseif (false !== strpos($usrurl,'replies')) {
$title = str_replace('il profilo di', 'Risposte create - test', $title);
} elseif (false !== strpos($usrurl,'subscriptions')) {
$title = str_replace('il profilo di', 'Discussioni sottoscritte - test', $title);
} elseif (false !== strpos($usrurl,'favorites')) {
$title = str_replace('il profilo di', 'Topic preferiti - test', $title);
} else {
$title = str_replace('il profilo di', 'Profilo - p', $title);
}
}
return $title;
}
Nothing changed… show only: “Il profilo di nickname” Do not replace nothing.. This is impossible! :/
FreeWPress,
What using this assumes:
1 – That you are using BBPress version 2.4
2 – That you don’t have anything else modifying these titles
3 – That you haven’t changed the structure of the titles via the core files.
4 – Your user slugs are as follows:
User Base :users
Topics Started :topics
Replies Created :replies
Favorite Topics :favorites
Topic Subscriptions :subscriptions
Following the above I have no clue why you would see “Profile Of”. The way that BBPress generates this Title is clearly shown on line 2563 of /wp-content/plugins/bbpress/includes/common/template.php which shows:
} elseif ( bbp_is_single_user() ) {
// Current users profile
if ( bbp_is_user_home() ) {
$new_title['text'] = esc_attr__( 'Your Profile', 'bbpress' );
// Other users profile
} else {
$new_title['text'] = get_userdata( bbp_get_user_id() )->display_name;
$new_title['format'] = esc_attr__( "%s's Profile", 'bbpress' );
}
(Note that your file may contain $title in lieu of $new_title, this is because we are using a forked version, but that doesn’t change anything.)
Therefore, the output of this should be either “Your Profile” or “Username’s ($s’s) Profile”. No where in that is “Profile of”. If you click on your profile here on bbpress.org you’ll see that it says “Your Profile” as well.
Please check that everything in 1-4 is correct. This is the default way that BBPress is setup.
Hope that helps. I have also added these requirements to my blog post to help clarify.
Yes i understand this problem, in effect, user title for, favorite, reply created and topic started is egual… Now i have put your code:
function bbpress_title_duplicates($title, $sep, $seplocation){
$usrurl = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($usrurl,'users')) {
if (false !== strpos($usrurl,'topics')) {
$title = str_replace('Profile', 'Topics Started - TSCADFX', $title);
} elseif (false !== strpos($usrurl,'replies')) {
$title = str_replace('Profile', 'Replies Created - TSCADFX', $title);
} elseif (false !== strpos($usrurl,'subscriptions')) {
$title = str_replace('Profile', 'Subscribed Threads - TSCADFX', $title);
} elseif (false !== strpos($usrurl,'favorites')) {
$title = str_replace('Profile', 'Favorite Threads - TSCADFX', $title);
} else {
$title = str_replace('Profile', 'Profile - TSCADFX', $title);
}
}
return $title;
}
But don’t change title page, it only sho profile of… and nothing.. 🙁
Hi, I want to edit the way the subforums on the homepage is displayed, so that it looks sort of like an ipb/phpbb forum. I have been able to edit the css and move the code around. But I want to know, is there a way to get the subforum’s description & freshness displayed on the homepage?
I’ve googled A LOT and seems like everyone is looking for this. I found this post, but the solution on there doesn’t seem to be working anymore…
http://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/page/2/#post-137229
Recommend a plugin?
Hi, I’m using the latest Buddypress 1.8 & BBpress 2.4 with usergroups & sitewide forums setup. Everything seems great but is it possible to keep sitewide forums separated from group forums; like displaying them on different pages. Also how to view only 10 forums per page. Im not that BP or BBpress code savy so it would be a great help if someone gives me clear instructions. Struggling for a long time and I seem to be hitting a dead end. Any help would be much appreciated.
Recommend a plugin?
Hi, I’m using the latest Buddypress 1.8 & BBpress 2.4 with usergroups & sitewide forums setup. Everything seems great but is it possible to keep sitewide forums separated from group forums; like displaying them on different pages. Also how to view only 10 forums per page. Im not that BP or BBpress code savy so it would be a great help if someone gives me clear instructions. Struggling for a long time and I seem to be hitting a dead end. Any help would be much appreciated.
Hi, I’m using the latest Buddypress 1.8 & BBpress 2.4 with usergroups & sitewide forums setup. Everything seems great but is it possible to keep sitewide forums separated from group forums; like displaying them on different pages. Also how to view only 10 forums per page. Im not that BP or BBpress code savy so it would be a great help if someone gives me clear instructions. Struggling for a long time and I seem to be hitting a dead end. Any help would be much appreciated. PJ
I just had a quick read of those links you mentioned and I like what I read.
I wondered if there was a setup of this using Vagrant as I have been playing with this recently.
I had a read of this and then cloned this GitHub repo to my local machine.
Copied the Vagrantfile.redis file to Vagrantfile. and made a couple of network chances to the Vagrantfile to suit my local setup.
Ran Vagrant Up from the console and made a coffee.
Configured WordPress’ 5 minute install and everything was up and running in under 10 minutes 🙂
Sadly I’ve hit a brick wall trying to install bbPress (or any plugin for that matter) that I will most definitely look further into tomorrow.
Thanks for you reply.
I am not getting the following error:
WordPress database error: [Table 'insomnia_tccjoomla.tvc4d_user' doesn't exist]
SELECT convert(user.userid USING "utf8") AS userid,convert(user.password USING "utf8") AS password,convert(user.salt USING "utf8") AS salt,convert(user.username USING "utf8") AS username,convert(user.email USING "utf8") AS email,convert(user.homepage USING "utf8") AS homepage,convert(user.joindate USING "utf8") AS joindate,convert(user.aim USING "utf8") AS aim,convert(user.yahoo USING "utf8") AS yahoo,convert(user.icq USING "utf8") AS icq,convert(user.msn USING "utf8") AS msn,convert(user.skype USING "utf8") AS skype FROM tvc4d_user AS user LIMIT 0, 100
I believe the table it should be looking for is: tccjoomla.tvc4d_users not user
Yes, that’s already the code I’m using, but I am looking now to add two columns. Please look through thread.
Thank you.