Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 151 through 175 (of 1,252 total)
  • Author
    Search Results
  • #273186
    glenndavis007
    Participant

    Hello those of you who are very kind to help.

    I’ve been away from my site for a few weeks and now I’ve returned to complete the setup. Current situation:
    • Domain: boazruth.com
    • Landing page: boazruth.com
    • Login page: boazruth.com/wp-login.php
    • Activity streams: boazruth.com/community
    • Using Buddypress Membes Only Pro plugin to lockdown members-only pages.

    Seeking this outcome:
    * Want boazruth.com to be the landing and login page.
    * Want members to be directed to the activity stream (boazruth.com/community) after logging in.
    * Want to customize the login page and have it on the landing page.
    * Thus, boazruth.com will be the landing & login page, and boazruth.com/community will be the activity page. All other BP components (Profile, Friends, etc) are in the top tab.

    Questions:
    1) (a) Can I customize the login page so it does NOT show the basic WP login?
    (b) Sometimes when using Incognito, the login page shows “https://boazruth.com/wp-login.php?redirect_to=https%3A%2F%2Fboazruth.com%2F”. Does this indicate an error somewhere?
    (c) Can I use the Divi theme to customize the landing page (boazruth.com) so it has the login form on it?

    2) When a member goes to the site (boazruth.com) to enter, after logging only a blank page shows. They have to select “Community” from the top menu. How can I re-direct the member to the Community page?

    3) Do you have a recommendation to secure members-only pages? I tried Buddypress Lock but it seemed not to have the functionality I need (unless I did not fully understand its capabilities).

    #273176
    panosa1973
    Participant

    Is this a bug? I’ve been trying to figure this out for days. Why does my custom member directory revert to the default when I sort it??? I load it, it works fine and outputs the filtered users. I sort it by Alphabetical order (for example) and it gives me all users again. Does anyone have an idea why this is happening?

    [members-loop-2.php]

    <?php
    /**
     * BuddyPress - Members Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    /**
     * Fires before the display of the members loop.
     *
     * @since 1.2.0
     */
    do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_get_current_member_type() ) : ?>
    	<p class="current-member-type"><?php bp_current_member_type_message() ?></p>
    <?php endif; ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) .'&include=' .get_user_matches()  ) ) : ?>
    
    	<div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php //bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    	<?php
    
    	/**
    	 * Fires before the display of the members list.
    	 *
    	 * @since 1.1.0
    	 */
    	do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list" aria-live="assertive" aria-relevant="all">
    
    	<?php while ( bp_members() ) : bp_the_member(); ?>
    		<li <?php bp_member_class(); ?>>
            
    			<div class="item-avatar">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>
    
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    
    					<?php if ( bp_get_member_latest_update() ) : ?>
    
    						<span class="update"> <?php bp_member_latest_update(); ?></span>
    
    					<?php endif; ?>
    
    				</div>
    
    				<div class="item-meta"><span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_member_last_active( array( 'relative' => false ) ) ); ?>"><?php bp_member_last_active(); ?></span></div>
    
    				<?php
    
    				/**
    				 * Fires inside the display of a directory member item.
    				 *
    				 * @since 1.1.0
    				 */
    				do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * $xGender =  bp_member_profile_data( 'field=Gender' );
    				  */
    				  
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php
    
    				/**
    				 * Fires inside the members action HTML markup to display actions.
    				 *
    				 * @since 1.1.0
    				 */
    				do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    	<?php endwhile; ?>
    
    	</ul>
    
    	<?php
    
    	/**
    	 * Fires after the display of the members list.
    	 *
    	 * @since 1.1.0
    	 */
    	do_action( 'bp_after_directory_members_list' ); ?>
    
    	<?php bp_member_hidden_fields(); ?>
    
    	<div id="pag-bottom" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-bottom">
    
    			<?php //bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-bottom">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    <?php else: ?>
    
    	<div id="message" class="info">
    		<p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php
    
    /**
     * Fires after the display of the members loop.
     *
     * @since 1.2.0
     */
    do_action( 'bp_after_members_loop' );

    [index-2.php]
    ‘<?php
    /**
    * BuddyPress – Members
    *
    * @package BuddyPress
    * @subpackage bp-legacy
    */

    /**
    * Fires at the top of the members directory template file.
    *
    * @since 1.5.0
    */
    do_action( ‘bp_before_directory_members_page’ ); ?>

    <div id=”buddypress”>

    <?php

    /**
    * Fires before the display of the members.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_before_directory_members’ ); ?>

    <?php

    /**
    * Fires before the display of the members content.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_before_directory_members_content’ ); ?>

    <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
    <?php if ( has_filter( ‘bp_directory_members_search_form’ ) ) : ?>

    <div id=”members-dir-search” class=”dir-search” role=”search”>
    <?php bp_directory_members_search_form(); ?>
    </div><!– #members-dir-search –>

    <?php else: ?>

    <?php bp_get_template_part( ‘common/search/dir-search-form’ ); ?>

    <?php endif; ?>

    <?php
    /**
    * Fires before the display of the members list tabs.
    *
    * @since 1.8.0
    */
    do_action( ‘bp_before_directory_members_tabs’ ); ?>

    <form action=”” method=”post” id=”members-directory-form” class=”dir-form”>

    <div class=”item-list-tabs” id=”subnav” aria-label=”<?php esc_attr_e( ‘Members directory secondary navigation’, ‘buddypress’ ); ?>” role=”navigation”>

      <?php

      /**
      * Fires inside the members directory member sub-types.
      *
      * @since 1.5.0
      */
      do_action( ‘bp_members_directory_member_sub_types’ ); ?>

      <li id=”members-order-select” class=”last filter”>
      <label for=”members-order-by”><?php _e( ‘Order By:’, ‘buddypress’ ); ?></label>
      <select id=”members-order-by”>
      <option value=”active”><?php _e( ‘Last Active’, ‘buddypress’ ); ?></option>
      <option value=”newest”><?php _e( ‘Newest Registered’, ‘buddypress’ ); ?></option>

      <?php if ( bp_is_active( ‘xprofile’ ) ) : ?>
      <option value=”alphabetical”><?php _e( ‘Alphabetical’, ‘buddypress’ ); ?></option>
      <?php endif; ?>

      <?php

      /**
      * Fires inside the members directory member order options.
      *
      * @since 1.2.0
      */
      do_action( ‘bp_members_directory_order_options’ ); ?>
      </select>

    </div>

    <h2 class=”bp-screen-reader-text”><?php
    /* translators: accessibility text */
    _e( ‘Members directory’, ‘buddypress’ );
    ?></h2>

    <div id=”members-dir-list” class=”members dir-list”>
    <?php bp_get_template_part( ‘members/members-loop-2’ ); ?>
    </div><!– #members-dir-list –>

    <?php

    /**
    * Fires and displays the members content.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_directory_members_content’ ); ?>

    <?php wp_nonce_field( ‘directory_members’, ‘_wpnonce-member-filter’ ); ?>

    <?php

    /**
    * Fires after the display of the members content.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_after_directory_members_content’ ); ?>

    </form><!– #members-directory-form –>

    <?php

    /**
    * Fires after the display of the members.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_after_directory_members’ ); ?>

    </div><!– #buddypress –>

    <?php

    /**
    * Fires at the bottom of the members directory template file.
    *
    * @since 1.5.0
    */
    do_action( ‘bp_after_directory_members_page’ );
    ‘

    ineedyou
    Participant

    Hi,

    Below two code, i can create buddypress activity for Book CPT (1st code) with title (2nd code) … Member A publish new “best horror book last 10 years” ( with Title)

    I have 2 question:
    1st: When anyone comment this activity : It shows Member B comment a “Book” i could not success the display post title instead of “Book (CPT)” . i need to dispaly Member B comment “best horror book last 10 years”

    2nd question If 1st can possible ‘bp_activity_new_comment’ => __( ‘%1$s commented BOOK‘, ‘custom-textdomain’ ), is possible Member B comment on the “best horror book last 10 years” by Member A (with post author name or avatar) … mİLLİON Thanks

    cODE1
    // allow tracking of our CPT
    add_post_type_support( ‘book’, ‘buddypress-activity’ );

    // creating the dropdown filter on activity and members page
    function customize_page_tracking_args() {
    // Check if the Activity component is active before using it.
    if ( ! bp_is_active( ‘activity’ ) ) {
    return;
    }

    bp_activity_set_post_type_tracking_args( ‘book’, array(
    ‘component_id’ => ‘activity’, // unique ID
    ‘action_id’ => ‘new_book’, // new_$post_type where new_ is mandatory
    ‘comment_action_id’ => ‘new_mot_comment’,
    ‘bp_activity_comments_admin_filter’ => __( ‘Comments about book’, ‘custom-textdomain’ ), // label for the Admin dropdown filter
    ‘bp_activity_comments_front_filter’ => __( ‘Book Comments’, ‘custom-textdomain’ ), // label for the Front dropdown filter
    ‘bp_activity_new_comment’ => __( ‘%1$s commented BOOK‘, ‘custom-textdomain’ ),
    ‘bp_activity_admin_filter’ => __( ‘Published a new BOOK’, ‘text-domain’ ),
    ‘bp_activity_front_filter’ => __( ‘bOOK’, ‘text-domain’ ),
    ‘contexts’ => array( ‘activity’, ‘member’ ), // swa & member activity page
    ‘activity_comment’ => true,
    ‘bp_activity_new_post’ => __( ‘%1$s publish a new bOOK‘, ‘text-domain’ ),
    ‘position’ => 100,
    ) );
    }
    add_action( ‘init’, ‘customize_page_tracking_args’, 999 );

    code2 FOR DISPLAY NEW BOOK PUBLISHED WITH TITLE
    function monkey1980_include_post_type_title( $action, $activity ) {
    if ( empty( $activity->id ) ) {
    return $action;
    }

    if ( ‘new_book’ != $activity->type ) {
    return $action;
    }
    preg_match_all( ‘/<a.*?>([^>]*)<\/a>/’, $activity->action, $matches );

    if ( empty( $matches[1][1] ) || ‘Book’ != $matches[1][1] ) {
    return $action;
    }

    $post_type_title = bp_activity_get_meta( $activity->id, ‘post_title’ );

    if ( empty( $post_type_title ) ) {
    switch_to_blog( $activity->item_id );

    $post_type_title = get_post_field( ‘post_title’, $activity->secondary_item_id );

    // We have a title save it in activity meta to avoid switching blogs too much
    if ( ! empty( $post_type_title ) ) {
    bp_activity_update_meta( $activity->id, ‘post_title’, $post_type_title );
    }

    restore_current_blog();
    }

    return str_replace( $matches[1][1], esc_html( $post_type_title ), $activity->action );
    }
    add_filter( ‘bp_activity_custom_post_type_post_action’, ‘monkey1980_include_post_type_title’, 10, 2 );

    #272960
    Michael
    Participant

    WordPress:

    Version: 4.9.5
    Language: en_US
    Permalink Structure: /%postname%/
    Active Theme: Tempera NoLink 0.6
    Page On Front: Si Valetis, Valeo! (#62)
    Page For Posts: Blog (#133)

    — Web Server Configurations —

    PHP Version: 7.0.30
    MySQL Version: 5.6.34
    Web Server Info: Apache

    — PHP Configurations —

    PHP Memory Limit: 256M
    PHP Upload Max Size: 256M
    PHP Post Max Size: 301M
    PHP Upload Max Filesize: 256M
    PHP Time Limit: 1000
    PHP Max Input Vars: 1000
    PHP Arg Separator: &
    PHP Allow URL File Open: Yes

    — WordPress Active Plugins —

    Akismet Anti-Spam: 4.0.3
    Caldera Forms: 1.6.1.1
    Category Posts Widget: 4.8.5
    Category Sticky Post: 2.10.1
    Cryout Serious Theme Settings: 0.5.9
    Custom Login Page Templates: 1.0
    Custom Sidebars: 3.1.4
    Disable Emojis: 1.7
    Download Monitor: 4.0.8
    Google Analytics Dashboard for WP (GADWP): 5.3.3
    GTranslate: 2.8.40
    Jetpack by WordPress.com: 6.1
    Plugins Garbage Collector: 0.10.3
    Shortcodes Ultimate: 5.0.3
    Simple:Press: 5.7.5.2
    Simple Link Directory – Pro: 4.8.0
    Team Members PRO: 4.1.1
    The Events Calendar: 4.6.15
    TinyMCE Advanced: 4.6.7
    Ultimate Member: 2.0.13
    Ultimate Member – Followers: 2.0.1
    Ultimate Member – Friends: 2.0.1
    Ultimate Member – Google reCAPTCHA: 2.0
    Ultimate Member – Instagram: 2.0.1
    Ultimate Member – MailChimp: 2.0.1
    Ultimate Member – Notices: 2.0.1
    Ultimate Member – Online Users: 2.0
    Ultimate Member – Private Messages: 2.0.2
    Ultimate Member – Profile Completeness: 2.0.1
    Ultimate Member – Real-time Notifications: 2.0.1
    Ultimate Member – Social Activity: 2.0.1
    Ultimate Member – Social Login: 2.0.1
    Ultimate Member – Terms & Conditions: 2.0
    Ultimate Member – User Reviews: 2.0.3
    Ultimate Member – User Tags: 2.0
    Ultimate Member – Verified Users: 2.0.1
    UM New Members widget: 1.0.7
    UpdraftPlus – Backup/Restore: 2.14.8.1
    VaultPress: 1.9.5
    Wise Chat Pro: 1.9
    WP-Optimize: 2.2.4
    WP Responsive Recent Post Slider: 1.4.2
    Yoast SEO Premium: 7.4.2

    Mirror Spirits
    Participant

    I am using the latest version of everything and my own custom theme, that seems to work OK elsewhere.

    When in a members’ own activity stream, there’s the button “view conversation”. It directs to the correct page, it seems, but the content area is empty. The theme works well otherwise. As if a piece of code was missing from the theme.

    You can try and see it for yourself with

    Login page: https://sebsacademy.com/in/

    User: TestUser
    Pass: 12345678

    The problem can be found for example on my profile page:

    https://sebsacademy.com/in/members/996cfeba1b145925/

    where you can see the disjointed conversation… You click on the ‘view conversation’ button, and it directs you to an empty page.

    Might come in handy one day, that button. :p

    Hope you can figure it out, as I don’t even know where to look!

    cheers,

    Sebs

    #272732
    Venutius
    Moderator

    Have you tried using BP Activity Shortcode? It’s a simple way of producing activity pages customised how you would like.

    BuddyPress Activity Shortcode

    #272679
    ma3ry
    Participant

    My coder gave me the following information. It works for me. If it doesn’t work for you, I’m sorry but I don’t know what to tell you. I’m not a coder.

    CUSTOM MENU SHORTCODES

    Create a simple shortcode by adding the following in child-theme’s functions.php file

    add_shortcode( 'bp_user_profile_link', 'bp_user_profile_link_shortcode');
    function bp_user_profile_link_shortcode( $atts ){
    	$atts = shortcode_atts( array(
    		'text'		=> 'Profile',
    		'target'  => ''
    	), $atts );
    	if( !is_user_logged_in() )
    		return '';
    	$target_link = bp_loggedin_user_domain();
    	switch( $atts['target'] ){
    		case 'settings' : $target_link .= 'settings/'; break;
    		case 'profile'  : $target_link .= 'profile/'; break;
    		case 'edit_profile'  : $target_link .= 'profile/edit/'; break;
    	}
    
    	return "<a href='" . $target_link . "'>" . $atts['text'] . "</a>";  }

    Now this gives you the chance to choose which profile link you want to target. So

    1) For the main member page (activity) use the following shortcode:
    [bp_user_profile_link text=”Profile” ]

    2) For the View Profile page
    [bp_user_profile_link text=”View My Profile” target=”profile”]

    3) For the Edit Profile page
    [bp_user_profile_link text=”Edit My Profile” target=”edit_profile”]

    CUSTOM MENU URL (this may be very specific to my website. I don’t know.

    Edit Profile: https://yourwebsite.com/members/–sububsername–/profile/edit/group/1/

    Hope this helps.

    Venutius
    Moderator

    What plugin did you use to add the option to only display a menu item to logged in users? Seems like that is what is not functioning. hiding the activity link by hiding the menu item does not hide the activity page from non logged in users, if they know the url they will still be able to view it, to prevent that you should explore the security options available to you. There a number of privacy plugins for bp with a range of features, is it only the Activity page you want to hide?

    BuddyPress uses the default WordPress login page, there’s a number of customisers for this, for example: https://wordpress.org/plugins/admin-custom-login/

    #272364
    Brendan
    Participant

    I’ll give another example, since this appears to me to be a bug.
    Buddypress requires pretty permalinks, so why is my permalink a ?p=123 type??
    Here’s the code I’m using to add a custom post type to my activity feed.

    add_post_type_support( 'community-story', 'buddypress-activity' );
     
    function customize_page_tracking_args() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
     
        bp_activity_set_post_type_tracking_args( 'community-story', array(
            'component_id'             => 'activity',
            'action_id'                => 'new_community-story',
            'bp_activity_admin_filter' => __( 'Shared a new story', 'buddypress' ),
            'bp_activity_front_filter' => __( 'Community Story', 'buddypress' ),
            'contexts'                 => array( 'activity', 'member' ),
            'activity_comment'         => true,
            'bp_activity_new_post'     => __( '%1$s shared a new <a href="%2$s">Community Story</a>', 'buddypress' ),
            'bp_activity_new_post_ms'  => __( '%1$s posted a new <a href="%2$s">Community Story</a>, on the site %3$s', 'buddypress' ),
            'position'                 => 100,
        ) );
    }
    add_action( 'init', 'customize_page_tracking_args', 1000 );
    function record_cpt_activity_content( $cpt ) {
     
        if ( 'new_community-story' === $cpt['type'] ) {
         
            $cpt['content'] = '&nbsp;';
        }
         
     
        return $cpt;
    }
    add_filter('bp_before_activity_add_parse_args', 'record_cpt_activity_content');

    And here’s the result

    
    <p>
    <a href="https://domain.online/members/thirty3/">UserName/a> shared a new <a href="https://domain.online/?p=313">Community Story</a>
    
    <a href="https://domain.online/?p=313" class="view activity-time-since bp-tooltip" data-bp-tooltip="View Discussion"><span class="time-since" data-livestamp="2018-04-23T20:07:18+0000">17 minutes ago</span></a>
    </p>
    Brendan
    Participant

    Sure thing. I want to be able to have users post in those three post-types because of how they function. A blog post (custom post type) is suited for a story, a longer-form thing. A forum post is great for Q/A, and a “Tutor Tip” for example sits somewhere between a blog post and a simple status update, so I’m thinking about a second custom post type.

    The main UX design choice for this is to have all of those options in one place, rather than sub-pages or sub-menus, etc.

    It’s also easy for our moderators to be able to “feature” a blog post.

    With buddypress, it’s my understanding that blog posts (with plugins like buddyblock, etc) show up in the activity feed, forum posts can be told to show up in the activity feed.

    My thought is either to have three fields(Story, Question, Tip) , which have buttons that toggle their respective visibility.

    Or

    Have the one field, and the buttons change the destination on submit to one of the three.

    Does that help?

    #271642
    buddyroid
    Participant

    Hello,

    I want some information on buddypress if is possible.

    I have a website with groups

    1. I want to create a page that my groups can post there, the page to look like the activity page.
    So every group can post there as a group and not as username. For example if im register in that website and have the username “buddyroid” and im register in “buddy” group, when im visit the custom page that i want to create and post there to show that the post is from the group “buddy” .

    2. I want only the administrators of each group to post in that page, for example if i have one group with 20 members and 2 administrators , only that 2 administrators to can post in that custom page
    Any ideas;
    Sorry for my bad english
    Thanks

    soph2602
    Participant

    Hi, am currently developing a buddypress website and would like to customise the activity stream layout, where the activity stream will be displayed in the middle of the page and the profile summary will be displayed on the left and wallfeed for example latest activity on the right side. Please kindly advise how to go about this? Or is there any plugins for this? Thanks.

    ngoegan
    Participant

    Actually, there was something else in there, I deleted it. Here’s the error I’m getting with just your code now:

    //redirect all users to homepage function bbg_bp_loggedin_register_page_redirect_to( $redirect_to ) { if ( bp_is_component_front_page( 'register' ) ) $redirect_to = bp_get_root_domain() . '/activity'; return $redirect_to; } add_filter( 'bp_loggedin_register_page_redirect_to', 'bbg_bp_loggedin_register_page_redirect_to' );
    Warning: Cannot modify header information - headers already sent by (output started at /home4/cgoegan/public_html/charlottemasoneducation.org/wp-content/plugins/bp-custom.php:14) in /home4/cgoegan/public_html/charlottemasoneducation.org/wp-includes/pluggable.php on line 1216
    ngoegan
    Participant

    I tried and am now getting this error on the site:

    /** * Add location to BP Member directory */ function my_directory() {	if ( bp_is_active( 'xprofile' ) ) if ( $field_7 = xprofile_get_field_data( 'Location', bp_get_member_user_id() ) ) : echo '
    ';	echo $field_7; echo '
    '; endif;	} add_filter ( 'bp_directory_members_item', 'my_directory' ); /** * */redirect all users to homepage function bbg_bp_loggedin_register_page_redirect_to( $redirect_to ) { if ( bp_is_component_front_page( 'register' ) ) $redirect_to = bp_get_root_domain() . '/activity'; return $redirect_to; } add_filter( 'bp_loggedin_register_page_redirect_to', 'bbg_bp_loggedin_register_page_redirect_to' );
    Warning: Cannot modify header information - headers already sent by (output started at /home4/cgoegan/public_html/charlottemasoneducation.org/wp-content/plugins/bp-custom.php:33) in /home4/cgoegan/public_html/charlottemasoneducation.org/wp-includes/pluggable.php on line 1216
    Shashi Kumar
    Participant

    @ngoegan the logic in the Buddypress is correct why an user would like to go to register page when he is already registered and logged in. According to your stated problem your can make register page as static homepage and add the above code in your child’s theme function file or bp-custom.php. It will redirect all your logged in user to activity page.
    To know about how to add bp-custom file read this beautiful post

    averyjleon
    Participant

    1. Which version of WordPress are you running? 4.9.2
    2. Did you install WordPress as a directory or subdomain install? directory
    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, definitely checked that, permalinks are set to “pretty urls”
    6. Which version of BP are you running? 2.9.2
    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? No, we disabled all of them, it still isn’t working
    9. Are you using the standard WordPress theme or customized theme? standard
    10. Which theme do you use ? twentyseventeen
    11. Have you modified the core files in any way? no
    12. Do you have any custom functions in bp-custom.php? no
    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? No, disabled it, still not working
    14. Please provide a list of any errors in your server’s log files.
    [Mon Jan 15 20:34:25.026815 2018] [authz_core:error] [pid 1160] [client 52.33.40.5:59040] AH01630: client denied by server configuration: /var/www/transfamilies.org/web/.user.ini, referer: https://www.transfamilies.org/.user.ini
    [Thu Jan 18 19:10:09.771753 2018] [fcgid:warn] [pid 29851] (32)Broken pipe: [client 73.221.194.79:54064] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.transfamilies.org/wp-admin/plugins.php
    [Thu Jan 18 19:45:39.653380 2018] [authz_core:error] [pid 31518] [client 52.33.40.5:60936] AH01630: client denied by server configuration: /var/www/transfamilies.org/web/.user.ini, referer: http://www.transfamilies.org/.user.ini
    15. Which company provides your hosting? Amazon
    16. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux, Ubuntu LTS, most recent version
    Running most current version of WordPress, not on a subdomain. We have tried disabling all plugins and selecting the default theme (twenty seventeen) and the same issue persists.
    BuddyPress (and bbpress) were previously installed and working. I then installed Theme-My-Login, but it disabled all login access. I removed Theme-My-Login via FTP and was able to log back in, but the Register and Login pages were no longer accessible. I deactivated and deleted BuddyPress and tried reinstalling.
    Then I got this message:
    “The following active BuddyPress Components do not have associated WordPress Pages: Members, Activity Streams, User Groups, Activate, Register. Repair”
    BuddyPress had not created these pages on install. I’ve since tried several times to reinstall it, but same problem. I can create the pages, but they’re just blank.
    That about covers it!

    #270163
    stoi2m1
    Participant

    I found the default theme was also showing issues which I missed.

    I had both Groups and Members as a Child Page to My Activity Page, named Community. This was causing both single members profiles and single groups to not work. Until I find a solution I have made them Main Pages (no parent assigned). Is there a way to set the slug? I found these deprecated constants, is there some new way?

    Deprecated Method in bp-custom.php use:

    define ( 'BP_MEMBERS_SLUG', 'community/groups' );
    define ( 'BP_GROUPS_SLUG', 'community/members' );

    From the following link:

    Changing Internal Configuration Settings

    I also found my other issue in bp-custom.php. Forgot all about that one.

    I created an aggregate feed called “My Feed” to display a more personal feed (which is working just fine). I used it on both the Activity in Profiles and the Main Activity Stream (site wide). I am using the following function to change the default sub nav for activities in profiles (Profile >> Activity >> Default Sub Nav) to “My Feed”. This works for profiles but causes the Site Activity to stop working.

    function gzp_set_default_activity_sub_nav() {
     
        bp_core_new_nav_default (
            array(
                'parent_slug'       => buddypress()->activity->id,
                'subnav_slug'       => 'my-feed',
                'screen_function'   => 'gzp_bp_my_feed_screen_activity'
            )
        );
    }
    add_action( 'bp_setup_nav', 'gzp_set_default_activity_sub_nav', 20 );
    #269844
    leog371
    Participant

    Hey Frank, I guess the best question to ask you after all this is how comfortable are you with digging into or working with html, css and basic php?

    If a pre made theme is what your looking for, how comfortable are you with taking hours and days looking thru theme demos to find your golden pony or at least making child themes or customizing code?

    And then to answer you more specifically to your “How long would it take to develop a theme like the one I described?” , I guess that just depends really. Over the years I have accumulated many libraries of code and theme snippets and I know where everything is in WP/BP core and template files. So for me, A fully custom and dressed out theme might take anywhere from 3 days to 3 weeks if I know exactly what I am working towards at the beginning and have a clear, though out, planned out idea. If I hen peck it or free hand it” like I do from time to time” It may take a day or it might take 8 months, lol.

    As a bit of comfort to your quandary, everything you asked for in your opening inquiry is all ready done for you in BuddyPress “for the most part”. A theme like the one you describe sounds like a 3 day to 1 week job to me. Keep in mind however that with me saying that, things always have a way changing and evolving into monsters, lol.

    So lets break down your theme and see how it look on paper…. He He, my favorite part…

    1. I want users to come to my site, register, and log in…… (Its all ready there) just have to set it up to your liking. It can all be customized quite a bit as well.

    2. I would love to be able to customize the way these pages look!(background image, logo, and content inside them)……… (The logo, background and most of the design items are easy breezy as long as your ok with basic html and css and not looking for flying dragons and wizards shooting lightning bolts across the screen. Alas, even those can be done with css, flash and JS, lol. )

    3. I’m not looking for a full-blown social media site (yet)…….No need to have what you dont want to use. BP has a full host of controls to limit what can be done onsite by users or what is implemented frontend in its settings. WP Dash/settings/buddypress. Select what you want to use. You also have the ability to write functions, and use hooks and actions and filters to limit or build on anything you like.

    4. I want to build a site that where users can log in, create a “blog” excerpt with media …… There are several ways to do this in buddypress, just have to plan it out and test the methods and see what works for you. Mu, Activity and Groups/Forums.

    5. They should also be able to put a location tag on it. ….. it sounds like this is what x-profile fields are good for. Just create your custom location field and add it with a template tag in the loop you want to use it in. They fill out the filed on their profile page and it will display in that loop.

    6. When they post it, the only people I want to see that are the people they added as friends or if they have their profile set to public……BuddyPress frontend “user profile area” has a settings tab, under it are quite a few privacy features, not fully comprehensive in my opinion but there are a few plugins that add on to this and you can code it in as well. either way. Easy task.

    7. And when it shows up on their friend’s news feed it should just show a featured image, title, and the beginning of their text with a like counter….. Easy enough, just write the loop that way, lol. Easy to do.

    8. When their friends click on that post it brings them to the full blog post, not just the featured image. Their friends can favorite the content or comment on it. …..The natural behavior of WP and BP posts so we are good there.

    9. On a users profile, I would like to show their recent posts, and posts they’ve favorited…. Thats what the friends tab shows but you can add custom queries, and stuff and otherwise tear it apart and pick it of the pieces you want and use them in other places to make custom loops and queries and all kinds of goodness, lol. As long as you make sure things are firing in the right places and make sure certain things are in the loops where they belong, No worries.

    10. Site homepage is basically just a file called front-page.php. Copy the page.php from the theme root and then customize the heck out it. Work it up however you like.

    As far as the themes go, I never use premade themes. I do however make full use of the libraries of code I have accumulated, (_s) and bootstrap for a lot of my work. Cheesy I know but hey, it saves me time and money and gives me freedom. I rarely find the need to actually make a complete custom theme or write much in the way of custom code from scratch anymore. And I certainly never purchase any themes. So I am not the best person to ask about themes really. I know that there are tons of themes that do all kinds of stuff available around the web. Just have to give them the litmus test and see if they fit your project.

    Let me know if you have any other questions or what have you. I will be around.

    Michael Gentry
    Participant

    Helloooooo everybody(I’m glad you’re taking the time to help me, and hey, we all start somewhere),

    So I’ve been looking into BuddyPress for about a month now, and I still can’t decide if its what I need. I love it and I respect all its glory, So let me explain what I need.

    1) The overview of my site
    – I want users to come to my site, register, and log in. I would love to be able to customize the way these pages look!(background image, logo, and content inside them). With regard to my user experience, I need everything done from the front end because the backend is too confusing for members.

    2) What users can do on my site
    – Okay, this is what I’m having trouble figuring out. I’m not looking for a full-blown social media site (yet). I want to build a site that where users can log in, create a “blog” excerpt with media and then post it.An example would be “Me and my dog” with photos, and a paragraph explaining. They should also be able to put a location tag on it. When they post it, the only people I want to see that are the people they added as friends or if they have their profile set to public. And when it shows up on their friend’s news feed it should just show a featured image, title, and the beginning of their text with a like counter.When their friends click on that post it brings them to the full blog post, not just the featured image. Their friends can favorite the content or comment on it. On a users profile, I would like to show their recent posts, and posts they’ve favorited. and that’s it. No excess information like a changed profile picture, etc. An extended bio profile would work great as well.

    – I’m not looking for messaging, groups, sitewide activity, or showcasing my own personal blog to the members. I would like this site to be customized solely for the user. I wouldn’t mind having a site homepage. Would I need to enable multi-site to allow this to happen?

    3) I would like this to look simple, and clean; so that brings me up to my final hurdle. What theme should I use? I’ve been looking at X, Divi, and Soledad. Are any of these themes able to do what I’m looking for? I would love to just be able to customize how everything looks on my site.

    Thanks & happy holidays

    #269611
    pol
    Participant

    Hi,

    I managed to customize my activity feed for a custom post type, however I’m struggling to influence the output of “standard” blog posts !

    Ideally I would like to redirect the “format_callback” parameter to the custom callback I created for my custom post type, which should handle both standard and custom types ultimately.

    I tried the following code, and the format_callback stayed desperately the same for the blog posts…

    add_action( ‘bp_register_activity_actions’, ‘customize_posts_tracking_args’ );
    function customize_posts_tracking_args() {
    // Check if the Activity component is active before using it.
    if ( ! bp_is_active( ‘activity’ ) ) return;
    bp_activity_set_post_type_tracking_args( ‘post’, array(
    ‘component_id’ => buddypress()->blogs->id,
    ‘action_id’ => ‘new_blog_post’,
    ‘format_callback’ => ‘custom_format_activity_action_post’,
    ) );
    }

    Then I also tried the filters, which I found in some web pages, but they didn’t work either for blog post type… The code below didn’t cause any change to my activity feed.

    // Customize post publication activity feed content
    add_filter(‘bp_blogs_record_activity_action’, ‘record_cpt_activity_content’);
    add_filter(‘bp_blogs_record_activity_content’, ‘record_cpt_activity_content’);
    function record_cpt_activity_content( $cpt ) {
    echo “Any text”;
    $cpt=’Any text’;
    $cpt[‘content’]=’Any text’;
    return $cpt;
    }

    Any help is very welcome here !!!

    Regards,

    Pascal.

    #269512
    Boone Gorges
    Keymaster

    Hi @billybelly – It’s difficult for us on the buddypress.org forums to provide concrete advice on a non-free product, because we don’t have access to test it. If you paid for the UX Builder project, then they ought to be the ones providing you with support.

    That being said, it’s possible that BP templates are inherently incompatible with this plugin. BP technically uses WP pages like Activity, Register, etc, but it sorta hijacks the page loading process in a way that can make it incompatible with certain kinds of “builder” plugins. If you’re looking to customize the interior portions of a BP page, it’s best to do it either using CSS (which you can access via the Customizer and a plugin like https://wordpress.org/plugins/simple-custom-css/) or by overriding the templates in a child theme. See https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/#overloading-template-compatibility-theme-files

    #269508
    peter-hamilton
    Participant

    I think you need a child-theme and change the header.php to include your custom navigation, I have created a similar menu but did require a lot of work in the header.

    Full profile functionalities added to the main navigation

    When new messages the number of messages shows in the message-icon, links to profile page, also woocommerce integrated and a dashboard link for admin only.

    The following is in my custom header.php

    First code links to profile.
    <li><a href="<?php echo bp_loggedin_user_domain(); ?>" class="activitylink" title="My Account"><span class="dashicons dashicons-admin-users"></span></a></li>

    This code deals with messages.

    <li><a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>"><span class="dashicons dashicons-admin-comments"></span><span class="commentcount"><?php if (bp_get_total_unread_messages_count( bp_loggedin_user_id() ) > 0 ) { ?> <?php bp_total_unread_messages_count( bp_loggedin_user_id() ) ?><?php } ?></span></a>
    </li>

    Since I did not want too much in my nav I only used these buddypress features, more would clog up my website too much.

    But where it comes down to is with a child-theme you can make it exactly as you like.

    Good luck
    P.H.

    astrologeeks
    Participant

    You will need to add something like this to your bp-custom.php file. If you haven’t already, create this file and place it in the wp-content/plugins/ folder. I added “aside” to the name to tell buddypress this is a custom function and not re-declare an already existing function.

    function bp_get_activity_delete_link_aside() { 
     
        $url = bp_get_activity_delete_url(); 
        $class = 'delete-activity'; 
     
        // Determine if we're on a single activity page, and customize accordingly. 
        if ( bp_is_activity_component() && is_numeric( bp_current_action() ) ) { 
            $class = 'delete-activity-single'; 
        } 
     
        $link = '<a href="' . esc_url( $url ) . '" class="item-button bp-secondary-action ' . $class . ' confirm btn white btn-xs" rel="nofollow" style="padding: .2195rem .5rem;font-size: 0.8rem;">' . __( '<i class="fa fa-fw fa-trash text-muted"></i>', 'buddypress' ) . '</a>'; 
     
        /** 
         * Filters the activity delete link. 
         * 
         * @since 1.1.0 
         * 
         * @param string $link Activity delete HTML link. 
         */ 
        return apply_filters( 'bp_get_activity_delete_link', $link ); 
    } 
    function bp_activity_delete_link_aside() { 
        echo bp_get_activity_delete_link_aside(); 
    } 
    #269073
    capnjazz
    Participant

    hi,
    i want to customize members info shown in members list page,

    in the list of all users, i want to show something more than the name and last activity online.
    i created customed fields for the inner-page of the user, but they don’t show in the members list page.

    how can i do this?
    thank you.

    #269055
    MBV
    Participant

    I tried to add some shortcode to the Activity page via Admin Dashboard > Pages > Activity > Page Edit Section, but it’s not rendering, instead it just renders the actual text for the shortcode.

    Is there a way to allow BP page to render shortcodes from the page content?

    I read on another forum to do the following but it was and old forum and I can’t find that file he referred to:

    Try replacing line 39 of content-buddypress.php
    $custom_content = wpautop( get_the_content() );
    with this:
    $custom_content = do_shortcode( get_the_content() );

    Any ideas?

Viewing 25 results - 151 through 175 (of 1,252 total)
Skip to toolbar