Search Results for 'bbpress'
-
AuthorSearch Results
-
September 29, 2015 at 5:44 pm #167206
Robkk
ModeratorIt is possible to add custom statuses with this plugin.
https://wordpress.org/plugins/buddy-bbpress-support-topic/
Here is an example gist file.
https://gist.github.com/imath/9e69b8139ff6f7a4120a
Here is example for Urgent.
function your_custom_status( $allstatus = array() ) { $allstatus['topic-working-on-it'] = array( 'sb-caption' => __( 'Urgent', 'buddy-bbpress-support-topic' ), 'value' => 3, 'prefix-title' => __( '[Urgent] ', 'buddy-bbpress-support-topic' ), 'admin_class' => 'urgent', 'dashicon' => array( 'class' => 'bpbbpst-dashicons-warning', 'content' => '"\f534"' ), ); return $allstatus; } add_filter( 'bpbbpst_get_support_status', 'your_custom_status', 10, 1 );September 29, 2015 at 4:34 pm #167203Robkk
ModeratorI am not going to lie but this chinese username thing is tough to find a fix for since I think most of the work does need to be done for WordPress itself.
You can try going here and posting a topic aobut this issue to see if anyone has a good suggestion/workaround.
https://zh-cn.forums.wordpress.org/
Other than that I guess you might want to look in users keeping english characters in their usernames. I even found a bbPress chinese forum in the wild and they all seem to just be using english characters for their usernames some even numbers which is interesting, because using the users id instead of their username will definitely help you.
cos.name/cn
The forums topics using the id looks like they might be using this.
https://wordpress.org/plugins/bbpress-permalinks-with-id/
But since you seem to be getting the users to at least register with the characters now. Do you know what each user profile url is in the topic/reply post. Can you check it out in your browsers dev tools so I can see what the url is. I am expecting a url with some chinese characters and maybe some of these %%% in the url which would be leading to a 404.
September 29, 2015 at 4:28 pm #167202In reply to: Login, Register, Lost Password links
Robkk
ModeratorYou did try it like this right??
if(is_bbpress() && $args->menu->slug == 'sub_header_menu')If it still doesn’t work you can try finding the menu location in your theme, which might most likely be in the functions.php file, but it could be different depending on the theme. You would spot by the register nav menu function like what is listed in this page.
https://codex.wordpress.org/Function_Reference/register_nav_menus
If you have a free theme I could check it out and get the arguments you need.
September 29, 2015 at 3:21 pm #167199In reply to: Css image error in BBpress
Robkk
ModeratorThis is the CSS causing the issue. You are stretching a 14px image to 40px, that is why it is so blurry.
#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 { border: none; width: 40px; }See if the PHP code snippet in this topic can help you resize the 14px avatars better.
September 29, 2015 at 3:15 pm #167198In reply to: Divi theme and reply threading issue
Robkk
ModeratorI guess you can try this code instead to see if it works any. I guess I can can also just check out to see if the custom script file name changed. I am using an older version of Divi 2.4 for testing so it could be a possibility.
You can contact me here if you want me to check it out on your site later.
Contactadd_action( 'wp_print_scripts', 'rkk_reply_threading_divi' ); function rkk_reply_threading_divi() { if( is_bbpress() && bbp_is_single_topic() ) { wp_dequeue_script( 'divi-custom-script' ); } }September 29, 2015 at 2:50 pm #167197In reply to: Login, Register, Lost Password links
mica123
ParticipantWhen I use this code without the
if(is_bbpress() && $args->theme_location == 'sub-header-menu')it works but I get the links on both menus. Below is the code I tried to use for the second menu only – the second menu is called Logins – I tried to use both sub-header-menu or logins.
I tried your suggestion with both as well.add_filter( 'wp_nav_menu_items', 'my_nav_menu_login_link' ); function my_nav_menu_login_link($menu) { //uncomment the next line if you only want login on bbpress pages if(is_bbpress() && $args->theme_location == 'sub-header-menu') if (is_user_logged_in()) { //set the $url on the next line to the page you want users to go back to when they logout $url = '$url = 'http://www.mysite.com/forums'; $url2=wp_logout_url($url) ; $loginlink = '<li><a title="Logout" href="'.$url2.'">Logout</a></li>'; } else { $current_user = wp_get_current_user(); $user=$current_user->user_login ; //set $page on the next line = the permalink for your login page $page=''login' ; $loginlink = '<li><a href="/'.$page.'/">Login</a></li>'; } //uncomment out the next lines if you only want login on bbpress pages } else { $loginlink="" ; } $menu = $menu . $loginlink; return $menu; }September 29, 2015 at 2:46 pm #167195In reply to: Divi theme and reply threading issue
klink
ParticipantThank you @robkk It didn’t work, but I only have a basic understanding, so I’m not exactly sure if I put the code in the right place in the file. Here is what my functions.php file looks like with the code you provided.
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); register_nav_menus( array( 'primary-menu' => __( 'Primary Menu', 'Divi' ), 'profile-menu' => __( 'Profile Menu', 'Divi' ), 'secondary-menu' => __( 'Secondary Menu', 'Divi' ), 'footer-menu' => __( 'Footer Menu', 'Divi' ), ) ); add_action( 'wp_print_scripts', 'rkk_reply_threading_divi' ); function rkk_reply_threading_divi() { if( function_exists( 'is_bbpress' ) && bbp_is_single_topic() && bbp_thread_replies() ) { wp_dequeue_script( 'divi-custom-script' ); } } ?>September 29, 2015 at 1:55 pm #167193Topic: Css image error in BBpress
in forum TroubleshootingDavid13_13
ParticipantHello to all!
Could someone explain me why the images of the users are so pixelated in my BBpress forum?
fatERASETHISfitfunDOTcom/forums/foro/presentaciones/
The ramdon images are pixelated but the uploaded images not. Strange eh?
Thanks in advance!
September 29, 2015 at 1:22 pm #167191In reply to: Admins and Users cannot edit their Posts
Robkk
ModeratorbbPress probably doesn’t support many permalink structures other than default and post name. There are a plan to support more in the future though.
If it works on post name permalink structure it is fine.
In some cases it could be a theme issue, and that is if it still does not work with the post name permalink structure, and you would need to just copy the bbPress templates into your theme to fix it. An example of this is the default theme Twenty Fifteen. It could also be an issue related to some theme compatibility in bbPress too.
September 29, 2015 at 1:04 pm #167190In reply to: Designing Forum
Robkk
ModeratorThere should be forum for each company name.
Just create a new forum for each company.
All threads specific to that company needs to be created there.
You can create group forums with the help of buddyPress or bbPress private groups to enforce this. Other than that just tell users to post there.
Now on searching city, state, region or holding company related forums/threads should come in results. I want to create menu where in he can click on city and find related company names available in that city.
Not sure where the city, state, region, holding company data is kept. I am guessing since each company has a forum, that each company’s data could be the city, state, region. I guess create a forum taxonomy for each?
Then make the bbPress forum search or whatever search you are using for the site to be able to search forum taxonomies?
I want to create menu where in he can click on city and find related company names available in that city.
I guess create a custom query?? bbPress has
if_has_forums()to be able to do this I guess.https://codex.wordpress.org/Class_Reference/WP_Query
I can’t really help any more since this is custom development.
September 29, 2015 at 12:29 pm #167186In reply to: Simple adding a Login/Logout to the menu
Robkk
ModeratorClosing this in favor of your other topic.
September 29, 2015 at 12:11 pm #167182In reply to: Stopping spam and front end sign up?
Robkk
ModeratorUse wanguard for a question captcha. Manually approving users can be done with a plugin listed in this guide or if you use BuddyPress too, a plugin listed in their guide possibly. Approving based on a certain field, I am not sure.
Theme my login is probably the best to use for frontend forms. bbPress has some form shortcodes you can use but they might not work as great because there is functionality missing.
September 29, 2015 at 4:45 am #167177Ingridlin
ParticipantHi, I just add the bbpress search code posted above by robkk, and it works too fine Some private topics are also show up. How could I use this search function but not include the private topic. Or maybe it could only shows the topic name but not content. Thanks
September 29, 2015 at 2:43 am #167171In reply to: Admins and Users cannot edit their Posts
mln83
ParticipantI experience a similar problem when permalinks are setup as:
”/index.php/%year%/%monthnum%/%day%/%postname%/”When changing to a simpler format such as:
”/%postname%/”After using this permalink setup I no longer have this problem. Is this a bbPress issue or a theme issue?
Running bbPress (2.5.8) with BuddyBoss Social Learner Theme (1.0.3)September 28, 2015 at 10:49 pm #167165artstellars.com
ParticipantAlright. I downloaded an plugin called “Chinese-username” and it works right now which is great! The code is:
<?php
/*
Plugin Name: Chinese UserName
Plugin URI: http://www.01on.com/?p=654
Description: 允许用a-z0-9_.-@和汉字作为用户名
Author: 白云山
Version: 1.0
Author URI: http://www.01on.com/
*/
add_filter( ‘sanitize_user’, ‘ys_sanitize_user’,3,3);
function ys_sanitize_user($username, $raw_username, $strict){
$username = $raw_username;
$username = strip_tags($username);
// Kill octets
$username = preg_replace(‘|%([a-fA-F0-9][a-fA-F0-9])|’, ”, $username);
$username = preg_replace(‘/&.+?;/’, ”, $username); // Kill entities// If strict, reduce to ASCII and chinese for max portability.
if ( $strict )
$username = preg_replace(‘|[^a-z0-9 _.\-@\x80-\xFF]|i’, ”, $username);// Consolidate contiguous whitespace
$username = preg_replace(‘|\s+|’, ‘ ‘, $username);return $username;
}
?>The only problem I found is the Chinese username owner can’t update his info. by clicking on his username in the forum page. Whenever clicking on the hyperlink of the Chinese username, it just redirects to http://artstellars.co.nz/forums/users and displaying a message saying “Not Found – Sorry, but the page you were trying to view does not exist. It looks like this was the result of either a mishtyped address or an out-of-date link”.
But while registering as an English username there’s no such trouble. Hope WordPress or bbpress can consider support Chinese username in the near future. Thanks.
September 28, 2015 at 12:02 pm #167154In reply to: How do I remove the (0,0)
Anonymous User 13893444
Inactiveadd_filter('bbp_before_list_forums_parse_args', 'ntwb_bbpress_list_forums' ); function ntwb_bbpress_list_forums() { $args['show_topic_count'] = false; $args['show_reply_count'] = false; return $args; }where to copy this code?
someone please guide me.September 28, 2015 at 7:54 am #167153In reply to: Login, Register, Lost Password links
mica123
ParticipantHello
After experimenting with all your suggestions I think I would like to use the code from
https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ #11.This redirects both logged in and not logged in users to specific pages which is what I want.
This works partially – I am trying to attach it to my second menu – not the primary menu but whathever I try it doesn’t work. If I leave the code as it is, it displays the links on both menus. I tried to use
if ($args->theme_location == 'sub-header-menu')
in various places such as:
if(is_bbpress() && $args->theme_location == 'sub-header-menu')I would need this for both logged in and not logged in users.
Thank you very much for your patience. I hope you can help.September 28, 2015 at 7:45 am #167152Topic: Import from bbPress2 to bbPress2
in forum InstallationDanny
ParticipantI know there’s an Export option for Forums in WordPress’s default Export menu.
But when I viewed the Import options under Tools > Import Forums, there was only bbPress1.
Which brings me here to ask, how do you import a forum from a bbPress2 to another bbPress2 ?
September 28, 2015 at 4:25 am #167139Topic: Custom table
in forum Showcaseavantsi
ParticipantHello.
Does anyone know if it’s possible to specify table to which BBpress would use for posts?
I would like to share BBpress across multi-sites and this is the only option that came to my mind.
Thank you for any info.
September 27, 2015 at 7:47 pm #167126In reply to: Problem with forum reply notifications
Henry Wright
ParticipantHey @robkk
This is related to the bbPress function
bbp_buddypress_add_notification()which fires onbbp_new_reply.Ref: https://github.com/ntwb/bbPress/blob/master/src/includes/extend/buddypress/notifications.php#L98
September 27, 2015 at 7:28 pm #167125In reply to: Problem with forum reply notifications
Robkk
ModeratorOkay well what you are seeing the notification I guess is somewhat similar to this message.

I am sorry but looking over this again, I can see that it could be a possible bug.
We might need to check for a possible bug though on what you are saying. When the user in the notification is wrong.
You may not need to go back over there for this, as the bbPress plugin has some code for BuddyPress integration for components like the Notifications one. So it could be bbPress’s code for BuddyPress or something else.
It is that weird limbo of not knowing where the bug is and who to contact for this for sure though.
I might need to contact the devs as I am not entirely sure where to even look at to find a bug for this exactly.
September 27, 2015 at 6:22 pm #167122In reply to: Problem with forum reply notifications
Robkk
ModeratorI think it is BuddyPress notifications component doing that. So I presume it is normal.
bbPress subscriptions are just emails, while the BuddyPress notifications show up in the bubble in the admin bar.
September 27, 2015 at 5:28 pm #167119In reply to: User profile
Robkk
ModeratorEvery user in the forum that creates a reply or a topic their username that displays next to their post has a link that leads to their profile.
You can also use the bbPress login widget too. Once the user has logged in, their name in the widget is also a profile link.
You can just create a custom link menu item for each authentication page for your site. You can use the default WordPress Pages.
Go to Appearance > Menus in the WordPress backend. Then toward the left side you will see a menu with a list of pages/posts/forums. Right next to all those is a dropdown to add a custom link. Just manually add the URLs of the default WordPress pages below or any other frontend forms you may have already.
Register
http://yoursite.com/wp-login.php?action=registerLogin
http://yoursite.com/wp-login.phpLost Password
http://yoursite.com/wp-login.php?action=lostpasswordhttps://codex.wordpress.org/Appearance_Menus_Screen#Custom_Links
You can also do the other things I listed in your other topic for user to login/register etc.
September 27, 2015 at 5:28 pm #167117In reply to: Problem with forum reply notifications
VeeLow
ParticipantI’m not using any plugins of that sort.
Subscriptions might be the issue: I have subscribed to FORUMS, but not to any individual topics.
Does a forum subscription automatically subscribe one to each topic within that forum? Or do the two features interact in some other way?
Also, am I using terms the wrong way? I had believed that
“subscriptions”=bbpress=emails,
“notifications”=buddypress=mouseover-able numbers in balloons
Yes?September 27, 2015 at 5:05 pm #167116In reply to: Pages navigation numbers
Robkk
ModeratorI am trying to say troubleshoot an issue if it could be something else like a theme causing the issue, so switching to a default theme could test that.
Remember reply pagination does not show up if you have threaded replies enabled.
Here is a ticket to fix reply pagination in threaded replies, but for now the patch only works for forums that are not hidden or private.
-
AuthorSearch Results