Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,226 through 12,250 (of 69,131 total)
  • Author
    Search Results
  • #243756
    danbp
    Participant

    @sharmavishal,
    read from here:
    https://buddypress.org/support/topic/resolved-restricting-users-to-one-group/

    See if you can do something with 2nd plugin mentionned in topic. If not able, you have to ask for on Group Hierarchy support.

    We only support BuddyPress here.

    #243751

    In reply to: Profile looks weird

    danbp
    Participant

    Hi @repterra,

    if you use a child theme with 2015, please read here about the new (since 2.3) Companion Style Sheet:

    BuddyPress Companion Stylesheets

    djsteveb
    Participant

    @jrunfitpro “there wasn’t a good answer for my question” –
    I think you should of imply replied to your previous (not dupe) thread – would keep things more tidy.
    Also you never reported back what your optimize press people had any details about the issue.

    anyhow, with your setup I wonder..
    “not pulling from certain pages ”
    – what exactly is not being pulled?
    from pages?
    posts?
    multi-site sub blogs?
    Pulled from media comments?

    If you switch to default 2014 theme – does it work then?

    If you use 2014 theme and disable all other plugins (and mu-plugins and bp-custom if you have those) aside from BP is the issue resolved?

    If “not pulling from certain pages” still does not work with 2014 and all other plugins removed, then you may find the answer on the other threads and solution hunting things posted:

    Post comments not appearing in activity stream?


    (and those items linked in comments from there)

    If “not pulling from certain pages” does work fine with 2014 as theme and other plugins disabled – then it’s an issue with your other theme or plugins (or combo of them).

    #243743
    djsteveb
    Participant

    @jrunfitpro
    Why you start new thread for exact same question as before you?!
    ( https://buddypress.org/support/topic/has-anyone-figured-out-how-to-use-optimize-press-2-and-bp-site-tracking/ )

    maybe delve into searching the forums..

    similar questions and answers 4 days ago -https://buddypress.org/support/topic/post-comments-not-appearing-in-activity-stream/

    or point your optimize press to search the forums and codex here and find the fix if you can’t figure it out.

    I don’t think you will find a lot of help here with a premium theme and it’s specific issues. Especially since there has been no new information provided.

    #243742
    Henry Wright
    Moderator

    xProfile data is a BuddyPress thing and user meta is a WordPress thing. Which one you use will depend on whether you plan to always use BuddyPress. If not then taking the user meta approach will ensure your plugin will work on all WordPress installs (even when BuddyPress is deactivated).

    #243740

    In reply to: BuddyPress Sitemap?

    Henry Wright
    Moderator

    The best advice I can give is to look at how some of the already-available plugins do it. XML Sitemaps is a good one to learn from. It might not cover BuddyPress pages but I’ve used it in the past and it worked great for me.

    danbp
    Participant

    is there an other setting ? No other setting in BP.

    Deactivate the child and use original Fifteen while testing.

    – no error message ? No JS error in console (browser tool) ?

    A similar topic here, with other advice
    https://buddypress.org/support/topic/private-message-button-only-appears-sometimes/

    #243727
    danbp
    Participant
    #243706
    danbp
    Participant
    #243701
    danbp
    Participant

    You didn’t explain what you want to do. What should Momentum and Milestone do ? Where are they living ? Are this activty types or CPT, something from a plugin ?

    As is, your second snippet do nothing from within bp-custom. Function name is missing and eventually filter or action name also.

    Insert your buttons by using the meta action filter which is avaible in entry.php

    function bfchris() {
    echo 'Button test >';
    ?>
    <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Is Milestone?', 'buddypress' ); ?>"><?php _e( 'Is Milestone?', 'buddypress' ); ?></a>
    <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( ' Is Momentum Point?', 'buddypress' ); ?>"><?php _e( 'Is Momentum Point?', 'buddypress' ); ?></a>
    <?php
    }
    add_action( 'bp_activity_entry_meta' , 'bfchris' );

    Read from here for global information:

    Posting Activity from Plugins

    Here for an example:
    https://buddypress.org/support/topic/cant-seem-to-get-bp-2-2s-post-types-activities-working/

    And here for what you have to do for your specific activities

    Add custom filters to loops and enjoy them within your plugin

    #243695
    bfchris2
    Participant

    Here’s what I have done so far:

    /activity/entry.php

    <!-- BEGIN Custom Commenting Buttons -->
    
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Is Milestone?', 'buddypress' ); ?>"><?php _e( 'Is Milestone?', 'buddypress' ); ?></a>
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( ' Is Momentum Point?', 'buddypress' ); ?>"><?php _e( 'Is Momentum Point?', 'buddypress' ); ?></a>
    
    <!-- END Custom Commenting Buttons -->

    (Just grabbed the button code for “unfavorite/favorite”, so I could have placeholders for my 2 custom buttons)

    /bp-custom.php
    (code taken from bp-activity-functions.php, well the is_spam piece).

    
    // Mark each as milestone
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as milestone
    		bp_activity_mark_as_milestone( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as milestone
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_milestone = 1 WHERE user_id = %d", $user_id ) );
    	
    		// Mark each as momentum point
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as momentum point
    		bp_activity_mark_as_momentum( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as momentum point
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_momentum_point = 1 WHERE user_id = %d", $user_id ) );
    

    Hope this helps make sense of things somewhat.

    Chris

    #243688
    danbp
    Participant

    You can use it for free, but have to customize it with your own logotype.
    See plugin repo how other plugins use it:
    https://wordpress.org/plugins/search.php?page=1&q=buddypress

    Official logos and colors for BP are here:

    Official Logos and Typeface

    BP is under same GPL license as WordPress.
    https://wordpress.org/about/license/

    #243678
    Ben Riga
    Participant

    ok I figured this out. And I was in fact missing something pretty fundamental. I was copying from the \bp-themes\bp-default\ folder instead of from \bp-templates\bp-legacy\buddypress. Once I fixed that it all came together.

    Can someone explain the difference between the two folders. FWIW, the bp-legacy name was throwing me off. The word legacy to me hinted at something that was deprecated so I had assumed I should stay away from there.

    The support topic https://buddypress.org/support/topic/how-to-create-template/ set me straight.

    Thanks,
    Ben

    #243676
    bfchris2
    Participant

    @danbp:

    Here’s what I have done so far:

    /activity/entry.php

    <!-- BEGIN Custom Commenting Buttons -->
    
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Is Milestone?', 'buddypress' ); ?>"><?php _e( 'Is Milestone?', 'buddypress' ); ?></a>
    				<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( ' Is Momentum Point?', 'buddypress' ); ?>"><?php _e( 'Is Momentum Point?', 'buddypress' ); ?></a>
    
    <!-- END Custom Commenting Buttons -->

    (Just grabbed the button code for “unfavorite/favorite”, so I could have placeholders for my 2 custom buttons)

    /bp-custom.php
    (code taken from bp-activity-functions.php, well the is_spam piece).

    
    // Mark each as milestone
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as milestone
    		bp_activity_mark_as_milestone( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as milestone
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_milestone = 1 WHERE user_id = %d", $user_id ) );
    	
    		// Mark each as momentum point
    	foreach ( (array) $activities['activities'] as $activity ) {
    
    		// Create an activity object
    		$activity_obj = new BP_Activity_Activity;
    		foreach ( $activity as $k => $v ) {
    			$activity_obj->$k = $v;
    		}
    
    		// Mark as momentum point
    		bp_activity_mark_as_momentum( $activity_obj );
    
    		// Tidy up
    		unset( $activity_obj );
    	}
    
    	// Mark all of this user's activities as momentum point
    	$wpdb->query( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET is_momentum_point = 1 WHERE user_id = %d", $user_id ) );
    

    Hope this helps make sense of things somewhat.

    Chris

    shanebp
    Moderator

    It’s a lot easier just to turn off avatars if the user is not logged in.
    Try this in your theme functions.php or in bp-custom.php.

    function fresser_turn_off_avatars() {
         $bp = buddypress();
    	
         if ( ! is_user_logged_in() )
    	$bp->avatar->show_avatars = false;
    	
    }
    add_action('bp_core_set_avatar_globals', 'fresser_turn_off_avatars' );
    #243673
    danbp
    Participant

    The easiest way would be to create your own widget, as this widget is in a core file (bp-members/bp-members-widgets.php). Then you can ignore the built in widget and use yours.

    Line 307 > 309 is a div containing what you have to modify.

    <div class="item-avatar">
       <a href="<?php bp_member_permalink(); ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>
    </div>

    Change bp_member_name() to bp_member_user_nicename()

    Code related to who’s online goes from line 247 to 390.

    – Copy/paste it to bp-custom.php
    – change class name to something unique. ie. class My_Whos_Online_Widget extends WP_Widget
    – in __construct function, in $name replace (BuddyPress by Custom)
    – modify the div content by replacing bp_member_name() by bp_member_user_nicename()

    Done !
    You have to register the new widget. In bp-custom

    function register_my_custom_widget() {
        register_widget( 'My_Whos_Online_Widget' );
    }
    add_action( 'widgets_init', 'register_my_custom_widget' );

    Go to Appearance > Widget and select (Custom) Who’s Online Widget.

    Finito ! 🙂

    WP codex reference

    #243670
    danbp
    Participant

    …euh…read through the code, find some dev comments and try to get further… ?

    I tried to answer to your question: only looking to basically take the favorites button and modify the function. Both files contain functions related to “favorite”.

    Though it would be more clear to all of us if you explain precisely what you’re trying to achive ? Instead of trying to explain (awkwardly) what you imagine may work, give details about what you try to do and code you used to do that.

    You say you create a function you want to add to favorite button. But this button should not favorite something, but either mimic is_span, but without using is_span !!!

    Sounds like if you asked for how to make beer, but without water to get a milk flavour.

    Please, make explicit questions !

    Providing Support at the BuddyPress Forums

    #243668
    Ben Riga
    Participant

    I poked around and re-read the codex and watched the BuddyCamp Brighton video with Hugo Ashmore (the video was really good btw).

    Unfortunately I am still stuck. I suspect I’m missing some little but fundamental thing but can’t figure out what that is.

    My child theme folder only includes three files:
    twentyfourteen-child\buddypress\members\single\home.php
    twentyfourteen-child\functions.php
    twentyfourteen-child\style.css

    home.php is an exact duplicate of the file at plugins\bp-themes\bp-default\members\single\home.php
    styles.css is empty (except for comments) and functions.php only contains:
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    I’m baffled. Anyone have an idea for me to try or some additional how-to docs on how to properly setup a child them for both wp and bp?

    Thanks,
    Ben

    shadow_boi
    Participant

    bbpress sitewide forum.

    oh right, forget to mention it, when i mention a member in a forum topic, i do not get mention suggestions when typing a letter or two.

    same thing here when i are typing in the buddypress.org reply editor, when i do @danbp, i dont get @ suggestions.


    @danbp
    , i have mentioned you in this reply, do you get notification saying i mentioned you?

    shadow_boi
    Participant

    Hi @danbp,

    i have tried on other default wordpress theme, the mentioned users notification does not work on any of them.
    i actually checked the notifications page, there has no notification for the mentioned action. so i dont think it might be a theme related issue. it seems like the notification event is not recorded in DB.

    so to recap of what works and what does work:

    the notification does not work if I mention someone in forum reply or in a forum topic.
    Notification works for when i mention someone in buddypress activity streams.

    danbp
    Participant

    @shubham9,

    check Activity auto-refresh in dashboard > Settings > BuddyPress > settings tab.

    If it is already done, activate Twenty Fifteen theme and see if the issue is still in.

    #243659

    In reply to: Account Activated

    danbp
    Participant

    Hi @zoe-ellison,

    the simpliest is to use the language file, even if your site is in english.

    Customizing Labels, Messages, and URLs

    #243658
    danbp
    Participant

    buddypress.css contains all styles used by BP.

    I also use a cache plugin that is not caching for logged in users.

    If i understand this correctly, it means that if i visit your site without being logged in, i get a page from the cache, right ? This means logically that you have to be logged in while testing your change. And finally, it could be possible that non logged users see (it’s an example) a black title (cached) and logged-in user see a red title (the most recent, not cached, version of the new style applied to that page). Hum…

    When you use a child-theme, and his mandatory style.css, the child has priority over the parent theme, and buddypress.css.

    Child theme is the only safe strategy to get your customization without loosing your work at each update. You add to it only what you want to modify. Even if you need to change only 2 title styles.
    In your case, you need only a style.css with a rule or two for your titles. You don’t have to add template files.

    is it possible to find somewhere already created templates with different color profiles

    A template is a structure of different HTML tags and some php code for dynamic content.
    A theme is a design applied to this armature.
    A content is what is showed inside the structure.
    HTML is used to build the structure
    CSS is used to build the layout/design
    Content is text, images, videos, etc
    PHP is a coding language to build dynamic pages between a database and a server.

    BuddyPress template files are stored in wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress

    Unfortunatly for you, the theme is a premium one for which we can’t provide support, as we have no access to his code and can’t install it to test without using a licence.

    See theme doc for information about child theming it and other advice for adding custom CSS.

    #243653
    danbp
    Participant

    @bfchris2, sorry, the file is here /bp-legacy/buddypress-functions.php

    #243648
    danbp
    Participant

    @mangelesgcl,

    consider this plugin: https://wordpress.org/plugins/auto-terms-of-service-and-privacy-policy/
    and read this plugin support topic:
    https://wordpress.org/support/topic/buddypress-integration-11?replies=4

    Other technique

    Create a new page and add your terms of service. Save.
    Add a new field to profile Base tab (the one which shows on register page).
    Field title: Terms of Service
    Field description: by checking this box you agree with our TOS. And a link to the page:
    <a href='http://my-site.com/page_name/'>Read our Terms of Services</a> Caution: use single quotes to enclose the url
    Field type: checkboxes.
    Field option: custom and only one option: TOS ! Leave it unchecked.

    On the right of the screen:

    Field requirement: required.
    Field visibility: only me and check Enforce field visibility

    Guess we’re done !

    While registering, if the checkbox is not checked, the process will stop and user will be adviced that he omited a field. Once he checked it, he can finish his subscription. This doesn’t mean he read your TOS, but you’re covered if you warned him to read TOS first. And ensure that the link is working and the page exist with content !

    Depending your country law, TOS can be more or less regulated. It’s your responsability to get informed about that before using it.

Viewing 25 results - 12,226 through 12,250 (of 69,131 total)
Skip to toolbar