WordPress.org

Forums

Buddypress Friend of a Friend (FOAF)
[resolved] Want to place it in profile header in custom location (5 posts)

  1. Kalmax
    Member
    Posted 1 year ago #

    I want to show it in my custom member header. Can you please tell me what code should be change/placed and where to show it under member-header.php

    This is the sample of my member-header.php

    <div id="item-header-content">
    
    	<?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bp_before_member_header_meta' ); ?>
    
    	<div id="item-meta">
    
    		<?php if ( bp_is_active( 'activity' ) ) : ?>
    
    			<div id="latest-update">
    
    			</div>
    
    		<?php endif; ?>
    
    		<div id="item-buttons">
    
    			<?php do_action( 'bp_member_header_actions' ); ?>
                    </div><!-- #item-buttons -->
    
    		<?php
                     /***
                     * I want to place FOAF here.
    		 */
    		 bp_member_profile_data( 'field=About Me' );
                     do_action( 'bp_profile_header_meta' );
    		 ?>
    
    	</div><!-- #item-meta -->
    
    </div><!-- #item-header-content -->

    Thanks for the help in advance. :)

    https://wordpress.org/plugins/buddypress-foaf/

  2. quan_flo
    Member
    Plugin Author

    Posted 1 year ago #

    This might help:

    http://plugins.svn.wordpress.org/buddypress-foaf/trunk/buddypress-foaf.php

    Change bp_before_member_header in
    add_action('bp_before_member_header', 'buddypressfoaf_action');

    to the action you need.

    Maybe
    bp_member_header_actions
    or
    bp_profile_header_meta
    will be the one you need.

    Otherwise modify the template and move the bp_before_member_header action to the place where you need it.

    If this helped you, please make a short reply and mark the topic as resolved. Thanks.

  3. Kalmax
    Member
    Posted 1 year ago #

    Thanks for a quick answer, will let you know with the update.

  4. Kalmax
    Member
    Posted 1 year ago #

    Thanks for the great support and reviewing this plugin with 5 star. God bless you and keep it up! You can mark this topic as resolved.

  5. quan_flo
    Member
    Plugin Author

    Posted 1 year ago #

    Great - I'll mark this question as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Buddypress Friend of a Friend (FOAF)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic