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.
Gosh the fix sounds complicated. I’ll wait for the official bug fix 🙂
Hello,
I have searched a lot and digged in the code on how to remove the “Reply To:” in the freshness block for forum. Take a look at this example: where you eg can se “Reply To: 80’s dresses”.
So how, do I remove this?
I want to display in WordPress search results page – 10 or less found results from BBPress (plugin) forums. I know that BBPress use custom post types (forum, topic, reply) but I don’t know how to do it. I try with WP Query, but it didn’t show nothing. I don’t want to override BBPress search page and functions, I just want to show some results in WordPress search page. Is this possible?
Thank you all in advance.
Here is the query I try:
<?php
// The Query
$the_query = new WP_Query( array (
'post_type' => array('topic', 'reply'),
'posts_per_page' => 10,
's'=> $s
));
// The Loop
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) { $the_query->the_post();
echo '<li>' . get_the_title() . '</li>';
}
} else {
// no posts found
}
/* Restore original Post Data */
wp_reset_postdata();
?>
Hello,
if a problem. If a group is Private and a visitor press FORUM tab is redirected to the ADMIN login.
I need to avoid this.
Please try to go here ->
http://fashionbleeker.com/groups/fashion-pioneers/ and press FORUM under avatar.
Do you know the name of file and the exact code that I need to change to avoid this redirect for NON logged users?
Thanks
Simone
There is no codex page for bbPress conditionals at this stage but take a look at this and see if any bbp_is_ meet your requirements.
http://phpdoc.ftwr.co.uk/bbpress-plugin/
I installed BBPress created a few forums, used the shortcode to display the forums and they work fine. I added the BBPress Login Widget to my site and when I try to login I’m re-directed to mysite.com/wp-login.php but with a completely blank screen and one single period mark in the top left corner. If I login through my default login page I’m able to login fine but the BBPress login widget has this problem. It does this with or without a username or password being entered in its forms when you press login.
It is not taking me to my 404 page, this is something different because it’s not actually taking me to mysite.com/wp-login.php either, even though that’s what the browser reads. It’s as though it is being interrupted mid process and then producing this blank screen with a single dot.
I disabled all plugins (excluding bbpress). Did not fix the problem.
Disabled my theme and activated default 2013 theme. Same problem.
I read on another post, five years old I think, that someone was having a similar issue where BBPress was putting a period before the www part of his site. Other information I read seemed to point to trouble with WP secrete keys in the php being ajar from BBPress php keys or config files, but I found no such files in my plugin folder, I guess those methods are outdated.
My site error logs are recording no issue directly regarding the plugin either. Anyone know what the deal is? Thanks.