Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'change buddypress menu'

Viewing 25 results - 151 through 175 (of 515 total)
  • Author
    Search Results
  • #185093
    @mercime
    Participant

    username appearing twice on registration form


    @jaciando1
    Change the “User Name” profile field name in the “Profile Details” box -> go to admin menu
    Users > Profile Fields and click on the “edit” button under that profile field name.

    I also appear to have two different register forms???

    You can add the following to your theme’s functions.php page:

    /* If BuddyPress is active */
    if ( class_exists('BuddyPress') ) {
    	add_action('init','mme_redirect_register');
    	function mme_redirect_register(){
    		global $pagenow;
    		if( 'wp-login.php?action=register' == $pagenow ) {
    			wp_redirect('http://buddypress.dev/join-us');
    			exit();
    		}
    	}
    }

    Change http://buddypress.dev/join-us to your site’s register page.

    DarkElement1987
    Participant

    Well if i deactivate the widget, the announcement shouldn’t be there. And if i deactivate buddypress from the plugins menu the message is gone so i don’t think it’s theme related.

    Could you tell me in simple english what i can do (Step by step) cause i’m not that good a English speaker.

    If i drag the Widget to the sidebar from the admin panel the only thing i can fill in is a title for the widget. A new message is impossible, so somethings messed up, but when i apply changes the old notification is there again.

    Screenshots of how it is right now:
    http://i62.tinypic.com/2zfilbm.png
    http://i58.tinypic.com/2mwe70k.png

    #182237

    In reply to: Page Hierarchy Pain

    Mathieu Viet
    Moderator

    Hi @localiseorg

    Socialise (sitewide activity assigned to this)
    – Members (members directory assigned to this)
    – Groups (groups directory assigned to this)
    – Forums (bbPress forum root assigned to this)

    Have you tried using a wp_nav_menu instead ?

    I think, if i was in your situation, i’d make a wp_nav_menu with your different pages.. It could be “home”, “blog”, “socialise” for instance. And from the wp_nav_menu WordPress UI, i’d attach the Members/Groups and forums as submenus of Socialise.

    Then concerning the Socialise title that is “Sitewide Activity”, i’ll begin to edit the activity page changing the title from Activity to Socialise and use a little code like the following:

    function change_activity_directory_title() {
    	buddypress()->activity->directory_title = buddypress()->pages->activity->title;
    }
    add_action( 'bp_activity_setup_globals', 'change_activity_directory_title' );
    #180314

    In reply to: Display Profile

    hepar
    Participant

    Hi,

    unfortunately I still have the same problem.
    I have buddy press just uninstalled and reinstalled. It changes nothing. I have disabled all plugins and activated BuddyPress. The problem arises immediately. So it can have nothing to do with the other plugins.

    The problems:
    When I click on the navigation bar on profile, the error message 404 appears.
    In the menus, no choice point for BuddyPress appears.

    Please help me as soon as possible. The site should go online these days.

    Many thanks and best regards

    #179760
    mcpeanut
    Participant

    @matthewhout Hmm, buddypress settings are located in the settings submenu in wordpress dashboard, make sure you turn on all the options you need in there, also make sure your pages are setup in there as you want them to, also dont forget to go to settings and permalinks too, and select which permalinks you prefare, hopefully everything should be fine for you then, well if i understand correctly that the issues you where having was due to having a windows server and now you have changed to a linux server? i cant see there being any problems with a fresh install.

    #179077
    Renato Alves
    Moderator

    You can edit the code on the BuddyPress pages and change it to the left. Clearly only some of the BP pages have the Menu on top, you change in those pages and you’ll be good.

    #177578
    xjamesb
    Participant

    Dear Judith,

    see here

    http://premium.wpmudev.org/forums/topic/how-do-i-change-a-buddypress-group-avatar?replies=3#post-595293

    You can update it through the Group Admin menu in WordPress site itself but you must have upload Avatars ticked in the dashboard.

    Tim2376
    Participant

    Yes, I know you can edit all the field from the back end. However, I am trying to get it to allow you to show and edit the fields from the front end. Here were the steps I am thinking about using:

    1) Use BuddyPress Custom Profile Menu plugin to create new tabs on the profile page like, “about”
    2) make a function in function.php of my theme that would display the content for a user and allow them to edit it if it was their profile.
    3) create a shortcode function that linked to the function in step 2.
    4) Add the shortcode in the new page created with BuddyPress Custom Profile Menu plugin in step 1.

    I know how to do step 1, 3, and 4. I have an idea of how to do step 2, but I am a little fuzzy on it. Here is what I was thinking(I don’t really know php):

    function ProfileAboutPageContent(){
        if(bp_loggedin_user_id() == $GLOBALS['bp']->displayed_user->userdata->user_login)
        {
        echo "<p>'"bp_profile_field_data( 'field=User Bio' )"'</p>";
        //Allow user to edit the content(not sure how)
        } elseif {
        echo "<p>'"bp_profile_field_data( 'field=User Bio' )"'</p>";
        {
    }
    add_shortcode('AboutContent', 'ProfileAboutPageContent');

    Are there any errors in this code? I am not sure how to allow users to edit the content if they are the right user. Any ideas on how I could change this code? I am planning on putting this code in the function.php of my current theme.

    The idea is that after I get this function and short code right I can add the shortcode to the new page I can create with the BuddyPress Custom Profile Menu plugin.

    If anyone would be willing to help me figure this out I would greatly appreciate it. Thanks!

    nextstep
    Participant

    OK RESOLVED.

    Thanks NM, Yes it was the BuddyPress Album component that I had disabled while trying to sort out the group avatars and not reactivated while trying to fix this error.

    When I reactivated the BP Album plugin the error message disappeared.

    So it was specific to the theme I set that menu item on – it did go away when I changed the theme – thanks Hugo.

    And thanks again NM

    Cheers!

    brinkingyellows
    Participant

    Hi @r-a-y. Here are the plugins I am currently using on the site.

    Network Activated:

    Advanced Responsive Video Embedder
    Anti-Splog
    Are You a Human
    bbPress
    bbPress – Report Content
    bbPress Enable TinyMCE Visual Tab
    bbpress Simple View Counts
    BP Profile Search
    BuddyPress Activity Plus – (I did deactivate this after the 1.9.1 update but nothing changed)
    BuddyPress Avatar Bubble
    BuddyPress Follow
    BuddyPress Group Calendar
    BuddyPress Groups Extras
    Buddypress Social
    BuddyPress Toolbar
    BuddyPress Twitter
    Buddypress Xprofile Custom Fields Type
    GD bbPress Toolbox
    Group Forum Crumbs
    rtMedia for WordPress, BuddyPress and bbPress
    User Activity
    WP User Avatar

    —-

    Single Site Actived

    Amazon Product In a Post Plugin
    BuddyMenu
    BuddyPress Notifications Widget
    Really simple Facebook Twitter share buttons

    That’s about all the plugins that I have active that play a heavy part in Buddypress or are loosely connected to it.

    chibichiii
    Participant

    I’m also looking for a similar solution to this, it’s just so unlogical to have such a fine working BuddyBar “My Accounts” but in such a place where it simply gets burried.
    I am using mostly widgets together with the main navigation. And I would so desperately just want to add THAT menu, into my own excisting menu’s if I only knew how. Or add it to a widget I would settle for that as well. It’s too bad this isn’t a standard function from Buddypress cause I really don’t like letting people into my wordpress backend. So I would prefer to disable the Admin bar for my members. But now I can’t because then they don’t have a menu.
    I also tested the new Buddypress componants in wordpress custom menu’s this is a good step in the right direction. But you don’t have links like to someone’s forum topics, favorites, subscribed etc. Like you have in the buddybar. Or going to the Change avatar link, just too many goodies to miss to leave out the admin bar now.
    Can someone help out here?

    #175772
    Shmoo
    Participant

    It’s my theme and I code WordPress themes for like 5 years now but I don’t see myself as a Developer it’s more a hobby 🙂

    I’m solid at HTML-CSS and can read PHP when I see it happen but I can’t write PHP it out of the box.

    This error shows up when I try to hide a complete xProfile-group-ID or just an unique xProfile-field-ID from the loop.

    This is what I did.
    Inside: my-theme/buddypress/members/single/profile/profile-loop.php
    I found the start of the loop

    
    <?php if ( bp_has_profile() ) : ?>
    ....
    

    My first thought was, maybe there are default options here to control the output of which ID’s will be visible so I started the search how the bp_has_profile() was build and looked into plugins/buddypress/bp-xprofile/bp-xprofile-template.php and found this at line 150:

    
    ....
    
    $defaults = array(
    	'user_id'             => bp_displayed_user_id(),
    	'profile_group_id'    => false,
    	'hide_empty_groups'   => true,
    	'hide_empty_fields'   => $hide_empty_fields_default,
    	'fetch_fields'        => true,
    	'fetch_field_data'    => true,
    	'fetch_visibility_level' => $fetch_visibility_level_default,
    	'exclude_groups'      => false, // Comma-separated list of profile field group IDs to exclude
    	'exclude_fields'      => false  // Comma-separated list of profile field IDs to exclude
    );
    

    This looks very familiar to bbPress so my first thoughts was lets try to add one of those Array’s to the loop and overwrite the default value.
    Just like this.

    
    <?php if ( bp_has_profile( array ( 'exclude_groups' => 1 ) ) ) : ?>
    ...
    

    This works perfect, it hides all xProfile-fields from the first Base primary Tab (back-end). Just like I wanted it because I didn’t want all the fields to show up front-end, I’ve got a few xProfile-fields that I use for user-customization of the profile-page. Each user can add color-codes to change the default menu-color and add background-images to their profile-page to make each profile a little more unique.
    Those field-ID’s are just urls or color-codes and don’t have to be visable to the public, thats why I try to hide them front-end.

    buddypress member pofile tab

    #175207
    Cassey’s Designs
    Participant

    Hi,

    I am not sure about how many users buddypress can handle, I doubt they have any built in restrictions. You will need to find out your host limitations rather than the plugins.

    To switch your menu options you will need to add the following php function to your child-theme’s function.php file…

    function bbg_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav[‘profile’][‘position’] = 60;
    $bp->bp_nav[‘activity’][‘position’] = 50;
    $bp->bp_nav[‘friends’][‘position’] = 40;
    $bp->bp_nav[‘groups’][‘position’] = 30;
    $bp->bp_nav[‘settings’][‘position’] = 10;
    $bp->bp_nav[‘forum’][‘position’] = 20;
    }
    add_action(‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );
    ?>

    *Note : The increments of 10 determine the position order of the menu item. The higher numbers are to the left and read lowering to the right.

    Hope this helps 🙂

    #173474

    In reply to: Profile and Settings

    @mercime
    Participant

    @robg48 BuddyPress links in Appearance > Menus will be default in BP 1.9. So if you’re adventurous …
    https://buddypress.trac.wordpress.org/changeset/7427

    resistoyen
    Participant

    @mercime

    Thx a lot for you help here. There is some change but it’s not working yet.
    Though, this is encouraging as it have now an effect, but not the good one.

    Here’s the screenshots of 2 tests

    The code of my style.css of child theme

    /* Theme Name: Oxygen Child Theme
    Author: Self-Help WordPress User
    Template: oxygen */
    @import url("../oxygen/style.css");
    
    .bp-full-width {
    width: 100% !important;  }

    The effect is different: the bar go to left just under the main menu, which is the right place where it should be ! But the bar remains too little. I got the same effect with a 940 px width, which is the normal px of the full-width of oxygene.

    with 100% or 940 px

    Then i tryed to put 1500 px, or 200% to see if the bar go longer :

    1500px

    I searched for like one hour or two by now on google to find the right thing & still trying. I also tryed on main theme, changing the stylesheet. Same effect.

    Here’s the codes of all this documents.

    buddypress.php : http://pastebin.com/xs8BUN14

    Again, thanks for your help

    #170025
    4ella
    Participant

    This is my working new tab in bp-custom.php if this helps

    // Set up Custom BP navigation
    function my_setup_nav() {   
       if ( user_can( bp_displayed_user_id(), 'job_applicant' ) ) {  
       global $bp;
          bp_core_new_nav_item( array(
                'name' => __( 'Portfolio', 'buddypress' ),
                'slug' => 'portfolio',
                'position' => 20,
                'screen_function' => 'profile_screen_portfolio' 
          ) );
    
          // Change the order of menu items
          $bp->bp_nav['messages']['position'] = 100;
      }
    }
    
    add_action( 'bp_setup_nav', 'my_setup_nav' );
    
    // show portfolio when 'Portfolio' tab is clicked
    function profile_screen_portfolio() {
    add_action( 'bp_template_content', 'profile_screen_portfolio_show' );
    bp_core_load_template( 'members/single/plugins' );
    }
    
    function profile_screen_portfolio_show() {
    
    // call your stats template
    locate_template( array( 'portfolio-profile.php' ), true );
    
    }
    Brice Capobianco
    Participant

    Hi,
    I’m not sure if it can help you but the following may resolve your problem :

    function my_bp_nav_adder()
    {
        bp_core_new_nav_item(
            array(
                'name' => __('New Tab Button', 'buddypress'),
                'slug' => 'all-conversations',
                'position' => 75,
                'show_for_displayed_user' => true,
                'screen_function' => 'all_conversations_link',
                'item_css_id' => 'all-conversations'
            ));
            print_r($wp_filter);
    }
    function all_conversations_link () {
        //add title and content here - last is to call the members plugin.php template
        add_action( 'bp_template_title', 'my_groups_page_function_to_show_screen_title' );
        add_action( 'bp_template_content', 'my_groups_page_function_to_show_screen_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function my_groups_page_function_to_show_screen_title() {
        echo 'My new Page Title';
    }
    function my_groups_page_function_to_show_screen_content() {
        echo 'My Tab content here';
    
    }
    add_action( 'bp_setup_nav', 'my_bp_nav_adder' );

    source: http://codex.themedelta.com/how-to-create-a-new-tab-in-buddypress-member-page/

    You have to change “members/single/plugins” by the path to your new template file without the .php extention.

    If you need to check if the action already existe for different purpose (I already need to do something similar) you can use something like this:

    if(has_action('name_of_action_to_check_for')) {
    	// action exists so execute it
    	do_action('name_of_action_to_check_for');
    } else {
    	// action has not been registered
    }

    Hope this help 😉

    #168334
    jetkappu
    Participant

    so many error when i try it..

     function custom_bp_adminbar_login_menu() { global $bp; global $wp; remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2); if (is_user_logged_in()) return false; echo '•' . __('Log In', 'buddypress') . '
    '; // Show "Sign Up" link if user registrations are allowed if (bp_get_signup_allowed()) { echo '•' . __('Sign Up', 'buddypress') . '
    '; } } add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);
    Warning: Cannot modify header information - headers already sent by (output started at /home/...../public_html/wp/wp-content/plugins/bp-custom.php:14) in /home/....../public_html/wp/wp-login.php on line 368
    #168332
    lenasterg
    Participant

    You can try the following.
    Into your /plugins folder create a file bp-custom.php.
    Into the file put the following code:

    
    function custom_bp_adminbar_login_menu() {
        global $bp;
        global $wp;
        remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2);
        if (is_user_logged_in())
            return false;
        echo '<li class="bp-login no-arrow"><a href="NEW_LOGIN_URL">' . __('Log In', 'buddypress') . '</a></li>';
        // Show "Sign Up" link if user registrations are allowed
        if (bp_get_signup_allowed()) {
            echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __('Sign Up', 'buddypress') . '</a></li>';
        }
    }
    
    add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);
    

    Bests,
    Lena

    #167814

    In reply to: change menu font color

    @mercime
    Participant

    Not quite sure what you mean. Look at the navigation style https://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-themes/bp-default/_inc/css/default.css#L505 and override or use Firefox add-on Firebug to identify what you need to change

    #167416

    In reply to: BuddyPress Group Page

    disqusnow
    Participant

    @mgrmn
    I have emptied the trash and changed the parmalink from groups-2 to groups but non of my edit of Groups via the page menu isn’t showing on the Group page when view from a browser.

    mcpeanut
    Participant

    i cant do this as mentioned above…my header is a unique feature of all the pages…..ive integrated the main nav bar for my website into the header so it looks like part of the header….basically my site has 2 seperate content area one for the buddypress side of things and one for the orther pages if i remove the header i destroy the whole look of my theme as this section is crucial for navigation to the other areas…i refuse to believe that someone on these forums that have been using buddypress for years dont know where i would find where the links to the activity/profile/messages/ can be changed…i only need to locate these links in buddypress really to point them to under the header as henry said above (if it works) …surely someone knows how i can do this….im new to the buddypress plugin and nthis is why i need help to do this…basiclly its only location of where the links are in budypress files so i can edit them that i really need help with.

    #165806
    bp-help
    Participant

    @jhinzo @hgstephengreenberg
    You can try this plugin which also has a premium version with more features. Not sure if it will meet your requirements but you can give it a try. Get it here:
    https://wordpress.org/plugins/buddypress-custom-profile-menu/

    Or try this method if your adventurous which I haven’t tested:
    http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item

    #165654
    P
    Participant

    The problem is I need to modify the core files and add a plugin at the same time so a user can change the Throttling settings in his WordPress backend.

    I really tried to simple write a plugin and skip the core files modifications, but it’s just not working out. Maybe you can help out here, I will post the 3 core file functions which I modified as well as the plugin code which I wrote. If you can figure out a way for me to not modify the core files and still get Throttling to work, share your code.

    Modified files:

    1- bp-activity\bp-activity-functions.php

    function bp_activity_post_update( $args = '' ) {
    	global $bp;
    
    	$defaults = array(
    		'content' => false,
    		'user_id' => bp_loggedin_user_id()
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r, EXTR_SKIP );
    
    	if ( empty( $content ) || !strlen( trim( $content ) ) )
    		return false;
    
    	if ( bp_is_user_inactive( $user_id ) )
    		return false;
    
    	<strong>$floodTest = bp_core_check_for_flood ($user_id);
    	
    	if (!$floodTest)
    		return "flood";</strong>
    
    	// Record this on the user's profile
    	$from_user_link   = bp_core_get_userlink( $user_id );
    	$activity_action  = sprintf( __( '%s posted an update', 'buddypress' ), $from_user_link );
    	$activity_content = $content;
    	$primary_link     = bp_core_get_userlink( $user_id, false, true );
    
    	// Now write the values
    	$activity_id = bp_activity_add( array(
    		'user_id'      => $user_id,
    		'action'       => apply_filters( 'bp_activity_new_update_action', $activity_action ),
    		'content'      => apply_filters( 'bp_activity_new_update_content', $activity_content ),
    		'primary_link' => apply_filters( 'bp_activity_new_update_primary_link', $primary_link ),
    		'component'    => $bp->activity->id,
    		'type'         => 'activity_update'
    	) );
    
    	$activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
    
    	// Add this update to the "latest update" usermeta so it can be fetched anywhere.
    	bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $content ) );
    
    	do_action( 'bp_activity_posted_update', $content, $user_id, $activity_id );
    
    	return $activity_id;
    }
    

    2- bp-core\bp-core-moderation.php

    function bp_core_check_for_flood( $user_id = 0 )
    {	
    	<strong>// Option disabled. No flood checks.
    	if ( !$throttle_time = bp_get_option( 'bt_activity_time' ) )
    		return false;
    	
    	// Bail if no user ID passed
    	if ( !$user_id )
    		return false;
    
    	$last_posted = get_user_meta( $user_id, '_bp_last_posted', true );
    	
    	if ( !$last_posted )
    	{		
    		$last_posted = time();
    		add_user_meta( $user_id, '_bp_last_posted', $last_posted);
    		return true;
    	}
    	else
    	{	
    		if ( ( time() < ( $last_posted + $throttle_time ) ) && !current_user_can( 'throttle' ) )
    		{
    			update_user_meta($user_id,'_bp_last_posted',time());
    			return false;
    		}
    		else
    		{
    			update_user_meta($user_id,'_bp_last_posted',time());
    			return true;
    		}
    	}</strong>
    }

    3- bp-themes\bp-default\_inc\ajax.php

    function bp_dtheme_post_update() {
    	// Bail if not a POST action
    	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    		return;
    
    	// Check the nonce
    	check_admin_referer( 'post_update', '_wpnonce_post_update' );
    
    	if ( ! is_user_logged_in() )
    		exit( '-1' );
    
    	if ( empty( $_POST['content'] ) )
    		exit( '-1<div id="message" class="error"><p>' . __( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' );
    
    	$activity_id = 0;
    	if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) {
    		$activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) );
    
    	} elseif ( $_POST['object'] == 'groups' ) {
    		if ( ! empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) )
    			$activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) );
    
    	} else {
    		$activity_id = apply_filters( 'bp_activity_custom_update', $_POST['object'], $_POST['item_id'], $_POST['content'] );
    	}
    
    	if ($activity_id == "flood")
    	{
    		$bt_activity_throttle_time = bp_get_option ('bt_activity_time');
    		$bt_activity_message = bp_get_option( "bt_activity_message" );
    		
    		$msg = ( $bt_activity_message ) ? $bt_activity_message : "You have to wait to post again";
    		
    		exit( '-1<div id="message" class="error"><p>' . __( $msg, 'buddypress' ) . '</p></div>' );
    	}
    
    	if ( empty( $activity_id ) )
    		exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    
    	if ( bp_has_activities ( 'include=' . $activity_id ) ) {
    		while ( bp_activities() ) {
    			bp_the_activity();
    			locate_template( array( 'activity/entry.php' ), true );
    		}
    	}
    
    	exit;
    }

    4- The Buddypress Throttling Plugin Code

    <?php
    add_action( 'admin_menu', 'plugin_menu' );
    
    function plugin_menu() {
    	// add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function);
    	add_options_page( 'Buddypress Throttling | Settings', 'Buddypress Throttling', 'manage_options', 'buddypress_throttling', 'buddypress_throttling_options' );
    }
    
    function buddypress_throttling_options() {
    
        //must check that the user has the required capability 
        if (!current_user_can('manage_options')) {
         	WP_die( __('You do not have sufficient permissions to access this page.') );
        }
    
        // variables for the field and option names 
        $hidden_field_name = 'submit_hidden';
    
        // See if the user has posted us some information
        // If they did, this hidden field will be set to 'Y'
        if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) 
    	{
    		// Activity
    		$bp_activity_time_val =  ( intval($_POST["bt_activity_time"]) <= 0 ) ? 0 : $_POST ["bt_activity_time"];
    		update_option( "bt_activity_time", $bp_activity_time_val );
    		
    		$bp_activity_message_val =  ( isset($_POST["bt_activity_message"]) && $_POST["bt_activity_message"] != "" ) ? $_POST["bt_activity_message"] : "Please wait before posting again";
    		update_option( "bt_activity_message", $bp_activity_message_val );
    		?>
    		
    		<div class="updated"><p><strong><?php _e('Settings saved.', 'menu-test' ); ?></strong></p></div>
    		<?php
    	}
    	
    	// Activity read values
    	$bt_activity_time = get_option( "bt_activity_time" );
    	$bt_activity_time = (intval($bt_activity_time) <= 0) ? 0 : $bt_activity_time;
    	$bt_activity_message = get_option( "bt_activity_message" );
    	$bt_activity_message = ($bt_activity_message) ? $bt_activity_message : "Please wait before posting again";
    	
    	echo '<div class="wrap">';
    		echo "<h2>" . __( 'Buddypress Throttling Settings', 'menu-test' ) . "</h2>";
    		?>
    	
    		<form name="form1" method="post" action="">
    			<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">	
    			<div class="bt-plugin">
    				<style>
    					.bt-plugin span { display: inline-block; width: 120px; margin-left: 20px }
    					.bt-plugin textarea {width: 400px}
    				</style>
    				<h3><?php _e("On Activity Page: ", 'menu-test' ); ?></h3>
    				<p><span>Throttling Time:</span><input type="text" name="bt_activity_time" value="<?php echo $bt_activity_time; ?>" size="20"> (in seconds)</p>
    				<p><span>Message:</span><textarea name="bt_activity_message" rows="3"><?php echo $bt_activity_message; ?></textarea></p>
    			</div>
    			<p class="submit">
    			<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
    			</p>
    		</form>
    	</div>
    <?php
    }

    Test it out locally, just replace the specified functions in these files with the functions I wrote, add the plugin code in a php file and save it under your Plugins directory (and activate it in the backend). The Plugin code will allow you to set the number of seconds for throttling as well as the message the user will see when he’s flooding.

    Put this puzzle pieces together and you got Flooding control (for the activity page for now), which can easily be done for friend requests @bphelp).

    #164712
    @mercime
    Participant

    @caspergrimaldi go to admin dashboard menu Users > Profile Fields
    Click on Edit Group Link
    change “Base” name to what you want
    https://codex.buddypress.org/user/buddypress-components-and-features/extended-profiles/

Viewing 25 results - 151 through 175 (of 515 total)
Skip to toolbar