Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 11,876 through 11,900 (of 69,016 total)
  • Author
    Search Results
  • #244934
    danbp
    Participant
    #244930
    Henry Wright
    Moderator

    You could try the BuddyPress Ideas forum:

    Ideas

    #244917
    pandreas
    Participant

    Thank you for your answers and recommendations!

    The custom function that I have written before, I suppose it does what I want very well. Am I right?

    Here it is again.

    function filter_bp_get_total_group_count()
    {
    global $wpdb;
    $hidden_sql = "WHERE slug not in ('health', 'social', 'cultury')";
    $bp = buddypress();
    return $wpdb->get_var( "SELECT COUNT(id) FROM {$bp->groups->table_name} {$hidden_sql}" );
    };
    #244914
    @mcuk
    Participant

    Hi,

    Maybe using this would help stop users who aren’t logged in seeing things you don’t want them to in the first place (and therefore they won’t be able to try and access it). Not really the redirect solution you are after but it may be of use. Works with BuddyPress (I don’t use bbPress).

    //Prevents non logged in users seeing pages other than those permitted
    function bpcustom_restrict_bp_pages() {
    	global $bp;
    	
    	//These pages are permitted to logged out users
    	if( bp_is_blog_page() || bp_is_register_page() || bp_is_activation_page() ) {
    		return;
    	}
    	
    	if( !is_user_logged_in() ) {
    		bp_core_redirect( $bp->root_domain );
    	}	
    }
    add_action( 'get_header', 'bpcustom_restrict_bp_pages' );
    #244913
    @mcuk
    Participant

    Hi @danbp thanks for reply.

    Tried the code you wrote in the link above and it works fine. But as with the one referenced in my first post it reduces the string length upon display rather than preventing the user typing in a large number of characters in the first place (and the data being stored in database).

    So moved onto looking at the code snippet by @henrywright for the sign up page. Would be suitable if i could convert it to work with profile fields. Got to this stage with a few q’s:

    function my_textarea_validation() {
        $custom_field_id = bp_get_member_profile_data( 'field=Mini Bio' );	
    	//is the use of $_POST['field_' . $custom_field_id] correct to access desired profile field?
    	if ( strlen( $_POST['field_' .$custom_field_id] ) > 5 ) { 
            global $bp;
            //which $bp->... error message to use?
    	$bp->signup->errors['field_'] = __( 'CUSTOM ERROR MESSAGE', 'buddypress' ); 
        }
    }
    //which hook to use? (to affect the textarea on Profile > Edit navigation tab)
    add_action( '???', 'my_textarea_validation' );
    #244910
    ggsalas
    Participant

    Hi @danbp

    I think I have done the same configuration as you, but don’t work for me. Could be possible thar your code not work with the new version of Buddypress?

    This are my posts:
    all the posts

    This is that I see with 'posts_per_page' => 2, :
    only 2 posts, without navigation

    Before, I have tested with Twenty Thirteen, Now I’m testing with Twenty Fifteen theme.

    I have created a bp-custom.php file on plugins/ folder and deleted my previous plugin.

    The only plugin I have active is Buddypress:
    plugins actived


    I would like to display only one tab with the posts of the displayed user, without subtabs. My goal is remove “My posts” and “My Comments”. I would like to display the posts inside the “Contributions” tab

    #244909
    caesarhills
    Participant

    Thanks for your reply, after reading it I’ve seen is the most adviced plugin for that aim.
    Is there any live demo working or a live showcase of it?
    I didn’t get if as the admin of the website I could create a page for mediapress grid album in which I’m the only one allowed to upload pics and letting all the registered members commenting on the pics, but at the same time as I said, not allowing anyone to upload their pics in that grid.
    It should work like instagram but just with the buddypress accounts

    #244902
    ggsalas
    Participant

    Hi @danbp

    I have added your code as plugin on my new test site. On this site have activated only 2 plugins: buddypress and your code.

    This is what I see on the “My posts” tab (there is no navigation): no navigation

    I would like to display only one tab with the posts of the displayed user, without subtabs.

    #244896
    nautinz
    Participant

    Sorry missed these

    1. Which version of WordPress are you running?
    4.3.1

    2. Did you install WordPress as a directory or subdomain install?
    root dir

    3. If a directory install, is it in root or in a subdirectory?
    root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    no

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes

    6. Which version of BP are you running?
    2.3.3

    7. Did you upgraded from a previous version of BP? If so, from which version?
    no

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Can I submit this to you privately?

    9. Are you using the standard WordPress theme or customized theme?
    http://themeforest.net/item/porto-responsive-html5-template/4106987

    10. Have you modified the core files in any way?
    no

    11. Do you have any custom functions in bp-custom.php?
    not yet

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    WP 4.3.1

    13. Please provide a list of any errors in your server’s log files.
    actually none!

    14. Which company provides your hosting?
    digitalcoean/cloudflare

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    nginx

    #244894
    danbp
    Participant
    #244882
    jbakuk
    Participant

    Hi @modemlooper, thanks for getting in touch.

    Yes I have site tracking active and I’m not using custom post types, thanks for the code though it will come in handy if and when I do.

    There was no problems before moving url, I’ve double checked and there is no entries of the old url in the database.

    Is there a buddypress php file that might not have updated the url? That’s all I can think of but I can’t find anything.

    Right now it’s looking like I might just have to delete everything and start over 🙁

    #244873
    modemlooper
    Moderator

    do you have site tracking option on in the BuddyPress settings? Also custom post types do not show by default and you have to add them.

    add_post_type_support( 'custom-post-type-name', 'buddypress-activity' );

    Post Types Activities

    #244872
    modemlooper
    Moderator

    Doubt there is a plugin this specific. I’m not sure the specifics but are you saying anyone can review a woo product if they are not logged in?

    BuddyPress doesn’t have a specific method for logging in its the same login as WP.

    You might try this http://stackoverflow.com/questions/24747095/woocommerce-require-registration-to-buy

    #244871
    modemlooper
    Moderator

    Read this on overriding BP templates in your theme. https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    Basically you’d copy single.php to your theme/buddypress/members/single/messages/single.php keeping the same folder structure

    modemlooper
    Moderator

    hook into the filter bp_core_signup_send_activation_key and send a different email message linking them to the form you want them to fill out. On your form submission you can then do the activation link

    		/**
    		 * Filters if BuddyPress should send an activation key for a new signup.
    		 *
    		 * @since BuddyPress (1.2.3)
    		 *
    		 * @param bool   $value          Whether or not to send the activation key.
    		 * @param int    $user_id        User ID to send activation key to.
    		 * @param string $user_email     User email to send activation key to.
    		 * @param string $activation_key Activation key to be sent.
    		 * @param array  $usermeta       Miscellaneous metadata about the user (blog-specific
    		 *                               signup data, xprofile data, etc).
    		 */
    		if ( apply_filters( 'bp_core_signup_send_activation_key', true, $user_id, $user_email, $activation_key, $usermeta ) ) {
    			bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key );
    		}
    
    #244863
    danbp
    Participant

    Hi,

    try BP auto group join

    This question was asked many times in the past. Search the forum. Ie.

    Auto join group based on role

    how to add new members to groups automatically?

    #244861
    sharmavishal
    Participant

    @danbp thanks for your reply. its highly appreciated. I understand its bit unnecessary.

    Am using a custom home page via BuddyPress Groups Extras. So on my site the home page for groups is gpages which doesnt have a slug in the URL which is great.

    now my second tab is “Home” which i renamed to “Activity”. This is also fine. But the slug of Activity page is “home”. so when i click on the activity tab the URL in the broswer shows group/name/home.

    I believe the previous versions of BP the home page was actually named as Activity right?

    the only way i can fix this is via hacking the core BP file bp-groups-loader.php

    // Add the "Home" subnav item, as this will always be present
    			$sub_nav[] = array(
    				'name'            =>  _x( 'Activity', 'Group screen navigation title', 'buddypress' ),
    				'slug'            => 'activity',
    

    Thanks once again

    #244857
    Henry Wright
    Moderator

    Whilst notifications is a BuddyPress component, it’s actually bbPress that handles this particular notification via their bbp_buddypress_add_notification() function. If you pass the following link to the bbPress guys, they should be able to take it from here.

    Ref: https://github.com/ntwb/bbPress/blob/master/src/includes/extend/buddypress/notifications.php#L98

    If you need anything else just shout.

    #244855
    Henry Wright
    Moderator

    3 reports in 3 weeks sounds as though there could be an issue here. Can you open a ticket on Trac?

    https://buddypress.trac.wordpress.org/

    You can use the same username and password that you use here in the forum to log in. Please provide as much background info as you can regarding your setup.

    #244852
    VeeLow
    Participant

    According to bbpress, this is a BuddyPress thing. They don’t think notifications hooks up with bbpress subscriptions.

    In case it wasn’t clear, I’m talking about “Notifications,” the BuddyPress feature. The little pop-up number balloons. Not emails (to which one can subscribe). When I search support forums I see that people use these terms very loosely, but I was trying not to do that!

    #244845
    deadbeat007
    Participant

    B) new activity items going forward

    The premise of my client’s site is basically Twitter, but for quotes. A user can enter a quote that their friend said, then tag their friend (assuming the friend has an account) and attribute the quote to them.

    The quote will then appear in the activity stream, along with the tagged user’s avatar and username.

    I figured BuddyPress would be my best bet for this, since it allows users to add friends and @mention other users, but now I’m a bit lost as to how to manage what my client it looking for.

    #244834
    Henry Wright
    Moderator

    There’s currently also 29 themes in the WordPress Theme Dir tagged “BuddyPress”. See here. I’m not sure if any of these will be different to the themes you’ve seen already at BP Inspire, but it’s worth taking a look 🙂

    #244831
    Henry Wright
    Moderator

    Hi @julia_b

    http://www.bpinspire.com/ might be useful to you. It showcases lots of popular BuddyPress websites and themes.

    #244824
    danbp
    Participant

    Check for group_creator.

    bp_is_group_creator

    #244823
    danbp
    Participant

    IMO, you’re strugling with something unnecessary.
    The group home tab shows the group activity by default and URL when on this page is domain.com/groups/groupname/

    Groups

    Your function is ok and it is not necessary to add /activity/ to the original slug. The action name for group activity page is home. If you add it manually to ‘domain.com/groups/groupname/home’, home will be stripped by default. And if you change home to xyz, you’ll get a 404 error.

    Renaming the tab to a more accurate string is possible of course. Changing the group activity URL isn’t.

    function my_bp_groups_default_tab() {
    global $bp;
    
    $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'Group Activity';
    }
    add_action('bp_groups_setup_nav', 'my_bp_groups_default_tab');
Viewing 25 results - 11,876 through 11,900 (of 69,016 total)
Skip to toolbar