Forum Replies Created
-
In reply to: Create/add forum from frontend
Hi,
Please replace the previous code with this code if you want a tab and not the previous one:
function ps_profile_forum_creation() { if(current_user_can('moderate')){ global $bp; bp_core_new_subnav_item( array( 'name' => 'Create Forum', 'slug' => 'create-forum', 'screen_function' => 'ps_create_forum_screen', 'position' => 200, 'parent_url' => bp_loggedin_user_domain() . '/forums/', 'parent_slug' => 'forums', 'default_subnav_slug' => 'create-forum' ) ); } } add_action( 'bp_setup_nav', 'ps_profile_forum_creation' ); function ps_create_forum_screen() { add_action( 'bp_template_content', 'ps_create_forum_screen_content' ); bp_core_load_template( 'buddypress/members/single/plugins' ); } function ps_create_forum_screen_content() { echo do_shortcode(''); }- You must be logged in to create new forums.
Hopefully, it will help you.
ThanksIn reply to: Wrong count showsHi Inderpreet,
Try repairing the count from Tools->BuddyPress, if it does not fix the issue then it seems like your members have not yet logged-in on the site. As soon as they all will log in on the site the count will be fixed. Because BuddyPress shows the count of the active members(at least they logged in once).
Thanks
In reply to: Registration activation page takes too long to loadHi,
You can do it manually then. Please check this https://wordpress.org/plugins/bp-registration-options/
Using this plugin you can restrict members to their profile only and then can easily approve them one by one.
Thanks
In reply to: Translation of Cover PhotoPlease install this plugin https://wordpress.org/plugins/string-locator/ and try searching the string if it is anywhere in files then you will find it or else you have to go for database search.
Thanks
In reply to: Theme for BuddyPress onlyHi,
The article has mentioned everything there. Please take a backup before doing so. The theme depends on your need, compare the features and buy one. Kleo, BuddyBoss is one of the best BuddyPress themes.
Thanks
In reply to: Theme for BuddyPress onlyHi,
Please check this article: https://www.wpbeginner.com/wp-themes/how-to-use-multiple-themes-for-pages-in-wordpress/
Thanks
In reply to: Translation of Cover PhotoHi,
Instead of the plugin, have you checked in your active theme? This might be there as well if you have BuddyPress based theme.
The last option we can try is CSS. I can give you a code that will hide that button for all the members except admins.
Hi,
Please let me know if you are logged in as an administrator or not if yes then certainly the button will be visible to you but if not then you will not be able to see the button after wrapping the code.
Your code seems fine to me and it should work for sure. Also please make sure that there are no ajax requests going on that creates the HTML there.
Let’s debug it more. Please remember we are wrapping code for currently logged in user, not the user from which profile you are creating notifications.
Thanks
Hi,
It’s because that is not a normal text area. it’s TinyMCE editor and we have to do something else there https://wordpress.stackexchange.com/questions/166077/keyup-events-in-tinymce-editor-not-working
Thanks
Glad to know that it worked for you 🙂
Thanks
add_filter( 'get_footer', 'ps_fill_user_name' ); function ps_fill_user_name(){ if (bp_is_messages_compose_screen()) { ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#send-to-input').val('@test'); jQuery('#send-to-input').attr('readonly','readonly'); }); </script> <?php } if (current_user_can('manage_options')) { ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#send-to-input').removeAttr('readonly'); }); </script> <?php } }In reply to: Improve Comments in Activity StreamIn reply to: who clicked on my linkHi,
That will require custom coding. You can check these https://wordpress.org/plugins/tags/click-tracking/
Thanks
In reply to: How to add ClassName to am avatarThanks 🙂
In reply to: How to remove “replies”I like your new profile photo:)
Thanks 🙂
You have noticed both ‘bbp-replies’ and my profile pic, thanks again 🙂
In reply to: Online members statusYes, that’s the only problem but you can test if it is working for you.
Thanks
In reply to: How to display the FollowingUser’s activityHi,
Please try with legacy template pack. Maybe it is not working with nouveau template pack.
Thanks
Hi,
Please try with the legacy template pack and in terms of version if it is not compatible with the latest version then please request in plugin’s support forum to make it compatible. Try any version of BuddyPress less than 3.0 to check the compatibility.
Thanks
In reply to: Translation of Cover PhotoHi,
Please install https://wordpress.org/plugins/loco-translate/ plugin and then go to plugins menu of this plugin’s setting and find BuddyPress there and there you need to search this string and translate.
Thanks
In reply to: Renaming Group tabsGlad to know that it worked for you 🙂
Hi,
You need to wrap those lines in this code <?php if(current_user_can(‘manage_options’)){?> //Your button code goes here <?php }?> and that is the only way you can make that button visible to admins only.
Thanks
In reply to: Create/add forum from frontendOk, got it now.
The above code will show the forum form on bbpress user profile, not BuddyPress.
Please try this code:
add_action('bbp_template_after_user_topics_created', 'ps_show_forum_form'); function ps_show_forum_form(){ if(bbp_is_user_home() && current_user_can('moderate')){ echo do_shortcode(''); } }- You must be logged in to create new forums.
Thanks
In reply to: Online members statusPlease check this one https://wordpress.org/plugins/status-buddy/
Thanks
Hi,
The first thing now we need to do is to check if that box is coming from this file or not. So try writing anything in the file and check if that gets printed on that screen if yes then certainly we are on the right file otherwise have to check which file is that from where that box is coming.
Thanks