jakerobbins and Robkk, thanks for the reply.
I understand it can be hidden with template customize or css customize.
however for maintenance reason (bbpress update etc.) I would like to know the way by filter.
some customize has already done by add_filter except bbp_anonymous_website.
thank you.
Hi there!
I’m using Enfold theme and I recently downloaded BBPress to use it on my site.
However, BBPress doesn’t seem to be working properly. Whenever I create a new topic, the page gives me a 404 error. Then its title appears listed in the parent forum, but the content of the topic (the main content of the topic) does not appear. I only get the box to reply the topic.
Could you guys please give me a hand? Thanks in advance!
This is a new current installation of WordPress, Buddypress and bbPress
I’ve created two forums. one group forum and one non-group forum. Both show up on the forum index at *.com/forums/
The non-group test forum works fine. Clicking on the index test forum link goes to *.com/forums/forum/test-forum/ the topic link goes to *.com/forums/topic/test-topic/
The group forum isn’t working. Clicking on the index group forum link just returns to *.com/forums/
However when I mouseover the link it shows *.com/groups/accessible-woodworking/forum/
I can go directly to the topic in the group forum at *.com/groups/accessible-woodworking/forum/topic/accessible-woodworking-test-topic/
I’m thinking it has something to do with the setting for the Group Forum root, but I don’t know how to change it.
Any and all suggestions welcome. Thank you in advance.
the bbcodes notice i think you can turn that off in the plugin your using, i think its gd bbpress tools.
you can remove the unrestricted html notice with some CSS if you want its only displayed to Admins/Keymasters only, so its not that big of a deal.
you can use this PHP code to remove the notice above the topics/forums
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
function ja_return_blank() {
return '';
}
Figured out the avatar issue itself.
Basically used the following code (though this may not work for everyone – not sure if it’s based on theme):
#bbpress-forums div.bbp-forum-author img.avatar, #bbpress-forums div.bbp-topic-author img.avatar, #bbpress-forums div.bbp-reply-author img.avatar {
border: none;
max-width: 100%;
padding: 0;
margin: 12px auto 0 auto;
float: none;
}
#bbpress-forums p.bbp-topic-meta img.avatar, #bbpress-forums ul.bbp-reply-revision-log img.avatar, #bbpress-forums ul.bbp-topic-revision-log img.avatar, #bbpress-forums div.bbp-template-notice img.avatar, #bbpress-forums .widget_display_topics img.avatar, #bbpress-forums .widget_display_replies img.avatar {
float: none;
margin-bottom: -7px;
border: 3px double #ddd;
width: 15px;
height: 15px;
}
i creep BuddyPress forums here and there , but yeah i read that topic
i think someone brought this up awhile ago on the #bbpress slack channel too. Specifically the Pimp your Press forum.
i don’t think its really a hierarchy issue and more about people not knowing exactly what a forum is for and how they interpret it to be.
For example one user could think that Pimp your Press could be to “show off your bbPress installation” to another it could be “How could i tweak/design my bbPress installation?”
i think they should just bring back the descriptions of the forums and place them sort of like they did in 2011 in the link i posted above, so that users know what exactly the forum is for.
As for bbpress.org changing the forum archive to a different layout, who knows. It does look real nice how it is now and like i said i don’t hierarchy is not really a problem, but if they did change it i think they would because they had the same layout for a couple of years.
oh and the epicwebs theme hierarchy is not part of core , the developer just did a cool function to use bbPress’s code to look that way. There is i think 2-3 ways to do that type of hierarchy, and the other two ways are in a bbpress trac ticket scheduled to be in a future version of bbPress.
Wordpress version: 4.1.1
bbPress version: 2.5.4
phpBB forum version: 3.1.3
I’m running into an issue trying to import a phpBB forum into bbPress. I’ve checked and rechecked my database information/login. I have the correct table prefix for what the old database is using. I’m getting the following error when I press start:
WordPress database error: [Unknown column ‘users.user_website’ in ‘field list’]
SELECT convert(users.user_id USING “utf8”) AS user_id,convert(users.user_password USING “utf8”) AS user_password,convert(users.user_form_salt USING “utf8”) AS user_form_salt,convert(users.username USING “utf8”) AS username,convert(users.user_email USING “utf8”) AS user_email,convert(users.user_website USING “utf8”) AS user_website,convert(users.user_regdate USING “utf8”) AS user_regdate,convert(users.user_aim USING “utf8”) AS user_aim,convert(users.user_yim USING “utf8”) AS user_yim,convert(users.user_icq USING “utf8”) AS user_icq,convert(users.user_msnm USING “utf8”) AS user_msnm,convert(users.user_jabber USING “utf8”) AS user_jabber,convert(users.user_occ USING “utf8”) AS user_occ,convert(users.user_interests USING “utf8”) AS user_interests,convert(users.user_sig USING “utf8”) AS user_sig,convert(users.user_from USING “utf8”) AS user_from,convert(users.user_avatar USING “utf8”) AS user_avatar FROM phpbb_users AS users LIMIT 0, 100
Any help would be greatly appreciated!
try this
@media only screen and (max-width: 480px) {
#bbpress-forums div.bbp-reply-author img.avatar {
position: relative;
width: 60px;
height: auto;
}
}
Hello,
I need to edit “Search Results” text on /view/search/?s= from my bbpress search topics widget. bbPress is not translated well in my language (czech), so I need to edit core files.
Can anybody help?
Thanks
Hey @robin-w,
Along the same vein as this, I just signed up one of my friends as a user to test privileges and make sure it’s all working as it should be. When I signed him up, he was not automatically assigned a forum role. Is that due to the changes I’ve made or is this normal?
I want to make sure that I didn’t make a mistake somewhere in all of this. I’d like the base user role to be “Apprentice” so that when they sign up on the site, they have the lowest role.
If this is something that has to be set for each user, that isn’t a problem, again, I just want to make sure I didn’t muck it up.
Thanks! ๐
Edit: I see that there is an option, of course, in the Settings ยป Forum, it was set to Advisor (since the others didn’t exist earlier). But it didn’t set him as Advisor. It just set him to None for forum role.
2nd Edit: (Firstly, I know that I’m nuts, I just keep thinking of other things). I installed a plugin called BuddyPress Registration and I’m wondering since that locks down the entire BuddyPress/bbPress system until users are approved, if maybe that’s why it’s set to none initially, so that they have zero access to the forums. -ponders-
now, I removed bbpress and set up again … but again same problem… you can try
http://www.nadirkitaplar.net/forums/
Dont know if you spend time on Buddypress forums, where they explained the need for the red category blocks (green here) which was down to people posting mostly in he wrong category, and all the non pimping posts in the pimp-it category show that there might be a hierarchy issue, perhaps due to growth.
Is there any plans for a change in he bbpress forums to have a different layout, more like with the epicwebs function now part of the core that allows to separate forums by category?
It’s really great to know that you’ve learned this much in two years. I have hope for me yet of understanding this!
What I see that you did was move return $bbp_roles; from the middle of the code, down to the bottom, while also removing the secondary and unnecessary function and filter, keeping only the 'add_custom_role' portion of the function/filter.
I am definitely curious as to how it’s working without the 'ntwb_bbpress_custom_role_names' filter, for the renaming of the roles? As I write this, I’m not even sure how to explain the question I have. Haha.
But I thank you for all of your help. You’ve been absolutely fantastic and I appreciate all of the information.
This was actually a ton of fun, despite my code not working out without your help. As someone who has a deep interest in web design (I do it for a living, without the code-end of things), I think this has fueled me into wanting to learn more about how this works and delve deeper! ๐
So basically, am I to understand correctly that you simply removed:
/* bbPress Custom Role Names */
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
function ntwb_bbpress_custom_role_names() {
return array(
Which then left you with one function and one filter, but due to the way the code is written for the base three roles (keymaster, moderator and participants), that code is changing their name, regardless of the function and filter?
Hope I’m grasping that correctly.
ok, so the following combines what the first does with what the second does and achieves what you want
/* bbPress Custom Roles */
function add_custom_role( $bbp_roles ) {
$bbp_roles['my_custom_role2'] = array(
'name' => 'Craftsman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role3'] = array(
'name' => 'Journeyman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role4'] = array(
'name' => 'Adept',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role5'] = array(
'name' => 'Artisan',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as keymaster
);
$moderator = bbp_get_moderator_role() ;
$bbp_roles[$moderator] = array(
'name' => 'Councilman',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as keymaster
);
$keymaster = bbp_get_keymaster_role() ;
$bbp_roles[$keymaster] = array(
'name' => 'Advisor',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
);
$apprentice = bbp_get_participant_role() ;
$bbp_roles[$apprentice] = array(
'name' => 'Apprentice',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
ok, quick answers and I’ll come back in a short while
a filter is a way to alter core code without having to change the core files. In effect if a function on the core is called ‘fred’ and writes the word ‘fred’ to your screen, then (as long as the function author has left the right code in there) you can write a filter to change ‘fred’ to ‘bert’ by adding a function (say a function called Bert) that writes ‘bert’ and then ‘add filter(‘fred’,’bert’) tells the system to ignore the fred function and put in the bert function, so it writes bert.
Now you have two filters which are overwriting what the core code in ‘bbp_get_dynamic_roles’ does, so in your original code you only had one filter so was fine.
In your second version, the first filter did the new roles, but the second filter to the same code overwrites the first (thus nullifying it) , so you were just left with the second one working.
bit like
original says write Fred
First filter says write Bert
Second filter says write Harry
So the code writes only Harry
BUT simply combining the two won’t work either as a filter has to return something and only one thing, so the code will quite as soon as it encounters a ‘return’ command.
Since the first half has ‘return $bbp_roles; ‘ it quits at that point and the second half isn’t exectuted.
So we need one function with one return and one filter (you actually can have more than one filter, but that’s more advanced!) – I’ll now go and look at it
see also
Step by step guide to setting up a bbPress forum – part 5
Okay, so I tried to modify the function, to merge the two and that didn’t work, so I have a few questions:
From this:
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
To this:
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 'ntwb_bbpress_custom_role_names' 1 );
But that didn’t work at all, wound up immediately getting an error.
Should I perhaps be placing the renaming of the base three roles, before the creation of the new four roles? The filter for the creation of the roles comes after all of them are created but the filter for the role name change comes before the changes, so I wonder if the two filters would still conflict if I moved them around?
These are really newbie questions, I know, but I am not 100% sure as to how to change these to work in tandem.
Thanks in advance for any help you can provide!
WordPress 4.1.1 running Divi Child Theme theme.
BBPress Version 2.5.4
http://oxfordukchapter.co.uk
We have the above version of BBpress and when the members use the forum they leave lines between their posts
as so
and then the post will not show when you close the lines up everything is visible.
Thanks
Pretty strange one imho. I’ve been working on porting an existing site from phpbb
over to wordpress/bbpress. While going through a final test of the port I’ve come across the following problem. Namely when in forums where you can see the latest post (along side the forum name), the name of the latest post plus its time/date are totally incorrect, however the url actually links to the correct latest post.
See: wp.photographyireland.net/forums to see.
I’ve retried all the usual recalculates etc… I have tested the port in the past and didn’t have this issue. Can anyone advise or at worst provide me with a sql updates statement to correct?
I don’t want to do the port for real if I’m going to run into this again. Tbh I do find that the import from phpbb can be a tad bit flaky at time…
Cheers
Same problem for me as for@iamnotadoll :/ But rewriting .php just made my site blank.
BBpress 2.5.4 version tho
@jaydd
was bbPress working fine for awhile then this error came out of nowhere??
did this error come after you imported forums into bbPress??
do you have a large number of topics/replies??
have you followed these two guides for developing your child theme for bbPress??
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
https://codex.bbpress.org/theme-compatibility/
are your permalinks set to post-name??
also could you paste an example url of the original topic url and the url you get when you have a 404 error.
Update – I managed to get it to work and managed to change the name of the defaults, to make things easier.
This is the code in case anyone needs it for reference in the future:
/* bbPress Custom Roles */
function add_custom_role( $bbp_roles ) {
$bbp_roles['bbp_craftsman'] = array(
'name' => 'Craftsman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['bbp_journeyman'] = array(
'name' => 'Journeyman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['bbp_adept'] = array(
'name' => 'Adept',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['bbp_artisan'] = array(
'name' => 'Artisan',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
/* bbPress Custom Roles */
/* bbPress Custom Role Names */
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
function ntwb_bbpress_custom_role_names() {
return array(
// Keymaster - Advisor
bbp_get_keymaster_role() => array(
'name' => 'Advisor',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
),
// Moderator - Moderator
bbp_get_moderator_role() => array(
'name' => 'Councilman',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
),
// Participant - Apprentice
bbp_get_participant_role() => array(
'name' => 'Apprentice',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
),
);
}
/* bbPress Custom Role Names */
Hi everyone,
I’m working on creating some custom user roles and I was wondering if I could get assistance with it, because the code I modified kind of killed my site (so I took it out and it’s working fine again).
I’m running a guild website, so we have specific titles (in order from left to right for hierarchy):
Advisor (Keymaster) > Councilman (Moderator) > Artisan (Moderator) > Adept (Participant) > Journeyman (Participant) > Craftsman (Participant) > Apprentice (Participant)
I was trying to follow this guide: http://codex.bbpress.org/custom-capabilities/
/* bbPress Custom Roles */
function add_custom_role( $bbp_roles ) {
$bbp_roles['my_custom_role1'] = array(
'name' => 'Apprentice',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role2'] = array(
'name' => 'Craftsman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role3'] = array(
'name' => 'Journeyman',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role4'] = array(
'name' => 'Adept',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles['my_custom_role5'] = array(
'name' => 'Artisan',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as keymaster
);
$bbp_roles['my_custom_role6'] = array(
'name' => 'Councilman',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as keymaster
);
$bbp_roles['my_custom_role7'] = array(
'name' => 'Advisor',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
/* bbPress Custom Roles */
Can someone tell me where I might have gone wrong?
Thanks in advance! ๐
ok, try
https://wordpress.org/plugins/widget-logic/
use
is_bbpress()where you want a widget displayed on bbpress pages and
!is_bbpress() where you don’t
going off of this
http://web.archive.org/web/20110114060936/https://bbpress.org/forums
Pimp your Press
A place to show off how awesome you and bbPress are