Did not work… the forums now appear on the bbpress page, but no topics or replies. looking at the data base and a couple sample entries, it appears that the post_parent IDs for all the topic are wrong which would be consistent with no topics being listed.
will try recounting, cleaning, and re doing the conversion.
joe
Anonymous User 8347663Inactive
Hi there forum!
Thanks for the extensive help last time.
My new issue is that i have translated bbPress to danish (the frontend stuff). And a single word cannot be found in the language file, so it is still in english. I want to know how to change this single word (ago) to danish. I already changed the
%s ago
to
%s siden
But it does not work.
Here is a screenshot: http://min.us/lldwdq8bs97xS
As you can see it is translated from “days” to “dage”. And then the english word “ago” comes in, wich should have been “siden”.
Can you help me, please?
big progress!
I found that in the original bbpress 1.x tables that had been created by the smf converter plugin, depnding on an option selected, each forum’s forum_parent was either set to 0 or all set to 1. Using phpmyadmin, I left all top level forums with forum_parent = 0 and changed the forum_parent for sub-forums to the correct ID,
The bbconvert plugin is now proceeding “according to plan” and has gotten through conversion of forums, topics, and is making its way through posts. It has several thousand to get through so it’s taking a while.
Will report back on results.
joe
I’ve figured out how to change the bread crumb separator:
<br /><br />
// Change bbPress bread crumb separator.
function filter_bbPress_breadcrumb_separator() {
//$sep = ' » ';
$sep = is_rtl() ? __( ' « ', 'bbpress' ) : __( ' » ', 'bbpress' );
return $sep;
}
add_filter('bbp_breadcrumb_separator', 'filter_bbPress_breadcrumb_separator');
I have not yet figured out how to add “You are here: ” at the start of the bread crumbs:
I’ve tried this…
<br /><br />
function my_breadcrumb_trail_args( $trail ) {<br /><br />
$args = '<div class="bbp-breadcrumb"><p>You are here: ';<br /><br />
return $args;<br /><br />
};<br /><br />
add_filter( 'breadcrumb_trail_args', 'my_breadcrumb_trail_args' );<br /><br />
…and this…
<br /><br />
function test($defaults) {<br /><br />
$defaults = array(<br /><br />
'before' => '<div class="bbp-breadcrumb"><p>You are here: ',<br /><br />
);<br /><br />
return $defaults;<br /><br />
}<br /><br />
add_filter('bbp_breadcrumb','test_args');<br /><br />
Neither work.
For now I’ve taken the hacky approach and just edited my bbPress files directly. You can see it in action here: http://www.directsponsor.org/forums/
Any assistance with the filter would be greatly appreciated.
Are there options for short code [bbp-topic-index]?
e.g.
[bbp-topic-index max=7 pagination=off breadcrumbs=off]
Hi,
im using worpdress 3.2.1 de_DE with bbpress plugin 2.0.
I found a way to display the reply author’s role below its avatar/name url link.
i’m using the following funtions:
function get_the_author_role() {
global $wpdb, $wp_roles, $authordata;
if ( !isset($wp_roles) )
$wp_roles = new WP_Roles();
foreach($wp_roles->role_names as $role => $Role) {
$caps = $wpdb->prefix . ‘capabilities’;
if (array_key_exists($role, $authordata->$caps))
return $Role;
}
}
function the_author_role() {
echo get_the_author_role();
}
My problem is, that the translation takes no effect here.
Anyone with a workaround?
I decided this does seem like a bug, or at least a feature that needs change so I added it to Trac:
https://bbpress.trac.wordpress.org/ticket/1663
In bbp-common-template.php I found:
// Allow the separator of the breadcrumb to be easily changed
$sep = apply_filters( 'bbp_breadcrumb_separator', $sep );
I attempted to apply a filter…
$sep = 'x';
add_filter('bbp_breadcrumb_separator', $sep);
…but it resulted in:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'x' was given in
I’ve found a list of hooks and filters for bbPress at:
/wp-content/plugins/bbpress/bbp-includes/bbp-core-hooks.php
I’ve also found the bbPress bread crumb function(s) at:
/wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php
By combining code from the two, I’ve attempted adding a filter but it’s being ignored:
function test_args($args) {
$args = array(
'sep' => ' x ',
);
return $args;
}
add_filter('bbp_title','test_args');
fyi, looking at the database it appears that new posts were created for all the forums and a single topic type post had been created. The forum is actually fairly mature and there is a lot more content than that.
Also of note, when it gets into this spin, spin, spin mode clicking the “stop” button does nothing.
joe
should have said 1.x bbpress tables…sorry for the confusion.
I am trying to convert 1.x bbforum tables from a buddypress forum install.
The buddypress bbpress tables in the database were actually created, polulated, and upgradded using the buddypress smf conversion plugin just fyi.
so, bbconverter seems to have started OK but once it gets to “Convert forum parents (0-99)’, it just seems to spin and spin and spin and I cannot tell if anything is happening. I suspect something is just hung up since to process 100 rows I would think would happen pretty quickly.
Again, while I am using the Standalone bbPress setting, I am actually trying to apply it to a version of BuddyPress bbPress tables.
Any ideas?
Thanks,
joe
@Andre, the amount of time that’s passed is arguable, at best, but I’d think a month would’ve been enough time to open the documentation back up to be a wiki…
Which leads to your second point about helping to create documentation: it’s actually impossible to do so right now since the documentation area isn’t a wiki.
I beleive it’s /bbp-themes/bbp-twentyten/css/bbpress.css.
I am also interested in the ability to migrate group forums to bbpress 2.0 plugin (and out of the groups).
I have managed to set up bp groups so they each have their own forum without having their forum contents displayed at the top level menu by deleting the bp forums page (and removing it from trash).
I then created a site-forums page for the bbpress site-wide forum by creating a “Site-Forums” page in WP and using the bbpress shortcode bbp-forum-index to list the available forums. I may add other shortcodes later.
Unfortunately, I am still left with a lot of content under “groups” that were only created to form quasi forums under buddypress internal groups version of bbpress.
Personally, I really like the idea of having both types of forums available!
joe
Using buddpress 1.5.1, bbpress 2.0 plugins for wordpress 3.2.1.
I am moving from an SMF forum. I want to move the smf content to a bbpress site-wide forum.
I tried the Buddypress SMF Forum import plugin. It worked great, but it results in the SMF Forums creating new BuddyPress groups and group forums with the SMF forum posts under the group forums.
Is there a way to move BP group forum content over to a bbPress forum?
Thanks,
joe
I have come across an example of a filter to change the bread crumb separators but I can’t seem to get it to work:
add_filter( 'breadcrumb_trail_args', 'my_breadcrumb_trail_args' );
function my_breadcrumb_trail_args( $args ) {
$args = ‘ → ‘;
return $args;
}
Source: http://themehybrid.com/support/topic/change-separator-breadcrumb#post-22852
What I want to achieve:
I’ve installed bbPress as a plugin for WordPress. I want to make a few simple changes to the bbPress bread crumb function:
bbp_breadcrumb();
I need the bread crumb separator to be double right arrows rather than the default single arrow:
I want to replace > with ».
I also want to add “You are here:”
Why I need this:
I need to match the styling and position the Yoast Breadcrumbs. Yoast Breadcrumbs is installed as a plugin for WordPress. It breaks on bbPress pages.
What I’ve tried:
Using conditions and CSS, I disabled the Yoast bread crumbs on bbPress pages. I also disabled the default bbPress bread crumbs but called it just beneath my primary navigation. Effectively, I’ve “moved” the bbPress bread crumbs.
To change the bread crumb separator I’ve researched JavaScript and jQuery string replacements but I’ve been advised that this is “hacky”.
My question:
What’s the conventional way of changing the output of bbPress function?
I can provide additional JavaScript, PHP and CSS code if required.
Live demo:
These two live examples highlights the two types of bread crumbs:
Yoast bread crumbs: http://www.directsponsor.org/forums/
bbPress bread crumbs: http://www.directsponsor.org/news/
mjpg, i just checked and it looks like i’m seeing the same thing you are (with wp 3.21, bbpress 2.1, buddypress 1.5): forum participant user is not able to access either hidden and private forums (although forum moderator works fine).
hmmm…. is this actually working (forum participants can access hidden forums?) for everyone else/
Couldn’t find the file
Im using the default theme that comes along with the plug-in. Do you by any chance know what it is called?
Sorry about the hassle but im kind of noob on coding!
The decision was made to wait until the bbpress 2.0 was released before spending a lot of time documenting everything. Not much time has passed since 2.0 was released so there hasn’t been much time dedicated to documenting everything. If you would like to speed up the process feel free to help document.
Your bbPress theme css if they are separate.
I really see a good future for bbPress but I have to say, is really a lack of documentation, too poor. It avoids an adequate documentation. Although attempts to adapt to the blog template does not have a good explanation to create a childtheme, something too important to correct the mistakes css well. I will keep trying to understand bbpress but for now although it has good prospects, is disappointed right now.