If you are going to make changes use a custom bbpress.css file in your theme so updates don’t override your changes 🙂
https://codex.bbpress.org/theme-compatibility/
Try running the ‘Remap existing users to default forum roles’ repair tool.
https://codex.bbpress.org/repair-forums/
It also looks like you are using another plugin to control access to bbPress forums.
What is this plugin and does it work with bbPress’ roles?
That said one of the strings ‘You must be logged in to create new topics’ IS translated here so it might be the case of updating your translations.
Details to update your translations are here https://codex.bbpress.org/bbpress-in-your-language/
I would also look at the 115 of 1034 strings yet to be translated looking at the details here and get those translated and then contact your local Hebrew translation team via https://he.wordpress.org/contact/ to get the strings approved.
Follow the steps to copy the template files that you need to customize as per this:
https://codex.bbpress.org/theme-compatibility/
Primarily it will be loop-single-reply.php but you will need to look at a few of the other templates also.
Before Line #45:
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
After Line #45:
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false ) ); ?>
Around that same area in that file you will want call whatever WooCommerce function you need to display the users group.
eg. <div><?php woo_user_group( userid() ); ?></div>
(I have no idea what functions WooCommerce use)
To style the widget use this, I did it to mine and now is just a background with text and lines.
Title stripped, border stripped, ect.
Adjust it as needed.
#bbp_replies_widget-2 {width: 400px ! important; height: 500px ! important; float:right;}
#bbp_replies_widget-2 .widget-title { display:none ! important }
#bbp_replies_widget-2 { border: none ! important; box-shadow: none ! important; background-color: #DDE8F4 ! important; }
It could be that yours has a different number #bbp_replies_widget-2, so maybe 1 or 3 or 4
You can find it in the Page Source of your forum or use Firebug
I use the ID instead of the class, incase of using the widget more then once. Then you can style them separate.
What version of Xenforo are you importing from?
Do you see anything like ‘Starting Conversion’, ‘Converting Forums’, ‘Converting Topics’ etc?
If you don’t see the above confirm your Xenforo database configs to use with bbPress importer via your Xenforo config.php file.
/public_html/xenforo/library/config.php
ok, I’ve cut justsayno1’s code into a plugin, which you can download from here
This will then override any user choice, and enforce only username as the display
bbpress username plugin
Download this to your PC, and then using dashboard>plugins>add new and select upload files and upload the zipped file to your site
Let me know what works and doesn’t
Three things :
1. As justsayno1 says – the avatar will display the “display name” as the “alt” choice.
2. The profile page still appears to have the “display name”
3. I haven’t yet worked out how to take out the user choice to edit what is displayed, even though of course that is now redundant ie doesn’t work
@Mr-B – give it a go and let me know what works and what doesn’t – I basically just nicked Justsayno’s code.
@Justsayno1 on No. 1 above, can you point me to where the get-avatar function is in main wordpress (the file name would be great) and I’ll amend and cut that code into the plugin as well
@Justsayno1 on No.s 2 & 3 – have you fixed these, and if so can you point me to the solutions, and again I’ll add then to the plugin.
Hi, I have page navi installed on the WP side in the footer, just gives page numbers 1, 2, 3, …
Problem is it also shows on the forum index (forums list page) as just 1 page.
I tried the <?php if ( !is_singular('bbpress') ) : ?>, but that does not work, with or without the ‘bbpress’
Any idea’s on how to exclude the php from on the forum/bbpress side?
You could use this plugin https://wordpress.org/plugins/bbpress-string-swap/
Or you can use this plugin https://gist.github.com/ntwb/7864894
Or just add the code from the plugin to your themes functions.php or bbpress-functions.php file.
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
function ntwb_bbpress_custom_role_names() {
return array(
// Keymaster
bbp_get_keymaster_role() => array(
'name' => 'My Custom Keymaster Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
),
// Moderator
bbp_get_moderator_role() => array(
'name' => 'My Custom Moderator Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
),
// Participant
bbp_get_participant_role() => array(
'name' => 'My Custom Participant Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
),
// Spectator
bbp_get_spectator_role() => array(
'name' => 'My Custom Spectator Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
),
// Blocked
bbp_get_blocked_role() => array(
'name' => 'My Custom Blocked Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
)
);
}
You could create a new role for your users based on the participant role without the publish_topics role.
https://codex.bbpress.org/bbpress-user-roles-and-capabilities/#participant
Is there a way to add cutoms fileds to the profile in an other way than changing the code? Because after an update those changes I will make will be deleted anyway. Maybe someone knows a plugin, or maybe this should be a feature for bbpress?
Hey!
Adding an image based on user rank is relatively easy to achieve…
Inside your theme files there is a file called loop-single-reply.php, you can find the author ID of the current reply and then from there get all the data for that user.
$userdata = get_user_meta( bbp_get_reply_author_id ( bbp_get_reply_id() ) );
This will fetch the user data then you can just use an if statement to check the current role and output an image tag.
For your second question I do something similar to the user legend on teamoverpowered.com – I am using Wp-UserOnline and I just add the shortcode to my template files.
Good luck!
In the core files there is a file called widgets.php inside /plugins/bbpress/includes/common
If you look at line 677 (in my version) there is a topics widget class (class BBP_Topics_Widget), you could create your own plugin and copy the class across (renaming it) and then create your own bbPress widget, without altering the core code.
Good luck!
If your theme supports blank pages (Page Attributes), use that to give the “illusion” that it is not a redirect.
The above link+php is for the edit page.
If you look at the link after URL you see: partial_url/php_code/last_part_of_the_URL
The last part of the URL is what you have to change for the topics, replies, favorites, subscriptions or edit
I just added to my menu all forum links from a user:
topics, replies, favorites, subscriptions, edit
all under 1 main “Your Forum Settings & Stats” Dropdown, but just call it anything you want.
Get the plugin “WP exec PHP” : https://wordpress.org/plugins/wp-exec-php/
No security risk, since you can set the permission for who can add php to pages and such.
Create pages for any links to the profile you want and add the following REDIRECT with php-code in it (adjust to your own domain)
<meta http-equiv="refresh" content="0;URL=http://domain.com/forums/users/<?php global $current_user;
get_currentuserinfo();
echo $current_user->user_login . "";
?>/edit/">
You could delay the refresh and add a little text to the page, or anything you want.
With many thanks to Diggories (above somewhere) for the php code to get the username in a URL
I need a way to find out what a replies parent forum is.
Reason is because I have created members only forums in a specific way by integrating DAP (Digital Access Pass) conditional functions. All of this is working great but my problem is with the search function of bbpress.
I need to filter the search so it doesn’t display replies that are under members only forums.
So like, IF REPLY_ID IS CHILD OF FORUM_NAME-OR-ID, REPLY = MEMBERS-ONLY-REPLY.
I don’t mind if it displays topics but I do not want people to see replies that are under members only forums if they are not a member.
So I think the file I need to play with is loop-search-reply.php but I need some help with figuring out the code to do this.
Thanks in advance to anyone who can help
on the forums a post includes username, role (like keymaster, participant, etc.). I want to be able to change the role to something i decide, like for example the “group” the user is a member of. Where file can I get at that in, what filter do I use, what function do I override, what action do I take. I’m assuming i don;t have to hard code the change.
you can see what I’m talking about on this. I need to change Key Master, participant, etc.
http://thelightningpath.com/forum/forums/topic/wave-two-moon-card-question/#post-1838
thanks in advance
Mr-B,
If I get a moment in the next few days, I’ll fork all that code into a plugin for you/others.
Hi. Since I updated, the shortcode is no longer working.
The forum root slug is forums.
The single forum slug is forum ( No s)
Which one are you talking about – the forum root slug or the single forum slug?
I created a page – forums
I add text and the shortcode it still doesn’t show a list of the forums with links.
http://massagepracticebuilder.com/forums/
Thanks very much!
If you page’s URL is “xx/forums” and the forum slug is “forum” it won’t appear without the shortcode as they don’t match (one plural, one singular). Also if you add any text to the page (as you have done) then again you’ll need the shortcode. But it should work with the shortcode.
Can you confirm that the site currently has
[bbp-forum-index]
at the bottom, including the square brackets.
Yes, you are right, they do move to the right. Guess was to busy with the numbering that I didn’t noticed that.
To change the background color of reply to reply posts add this to the bbpress.css
.bbp-threaded-replies div { background-color: #ccc ! important; }
Color #ccc is a little dark, but just change it to what you want
I’m using the Pagelines theme [before DMS] and they have a selector at the bottom of each page or post that you can select to make the page full width.
On forum pages, and individual threads, this option isn’t available. I know I can create a bbpress.php template which bbPress will look for, but I’m not sure how to deconstruct my theme, or set it up to be my default page, but minus the sidebar.
Help here would be much appreciated.
My page.php code doesn’t give me much indication as to how to craft this…
<?php
/**
* PAGE
*
* This file meets the WordPress template requirements for 'page.php'
*
* @package PageLines Framework
* @since ...
*
* @link http://www.pagelines.com/
* @link http://www.pagelines.com/tour
*
* @author PageLines http://www.pagelines.com/
* @copyright Copyright (c) 2008-2012, PageLines hello@pagelines.com
*
* @internal last revised January 20, 2012
* @version ...
*
* @todo Define version
*/
setup_pagelines_template();
Try putting it as important:
display: hidden ! important;