Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 16 replies - 1 through 16 (of 16 total)

  • dromy
    Participant

    @dromy

    I have typed this and now it works without the image, can someone tell me why there is no image:

    <?php $Usr_Url = bp_member_profile_data('field=facebook' );
         if ( !empty( $Usr_Url )) { ?>
    
            <a href="<?php $Usr_Url; ?>" title="My facebook">
            <img src="/wp-content/themes/formation-child/images/facebook.png" alt="facebook" /></a>
          
           <?php } ?>

    output is only the text in the field. missing the image. why?


    dromy
    Participant

    @dromy

    also tried:

    <?php $social_usr_URL = bp_member_profile_data( 'field=gplus' );
            
    if ( !empty( $social_usr_URL ) { ?>
           
    <a href="<?php bp_member_profile_data( 'field=gplus' ); ?>" title="My gplus"><img src="/images/gplus.png" alt="gplus" /></a>
            
    <?php } endif; ?>

    not working.


    dromy
    Participant

    @dromy

    I also tried:

          <?php 
            $social_usr_URL = bp_member_profile_data( 'field=gplus' );
            
            if ( !empty($social_usr_URL ) { 
           
            echo  "<a href='" + $bp_member_profile_data( 'field=gplus' ) + "' title='My google plus'><img src='/wp-content/themes/formation-child/images/gplus.png' alt='gplus' /></a>";
            }
            
           <?php endif; ?>

    still nothing..


    dromy
    Participant

    @dromy

    Sorry friends but it is not seems to work fine.
    the condition I insert gives always an empty case.

    if someone will be kind to check the code and give me an advice I will be very thankfull, (although this is not the best way to do so.)

    dromy


    dromy
    Participant

    @dromy

    did anyone worked it out?

    as recommended i added dynamic link as follow but it is still not working:
    <a href="<?php bp_member_profile_data( 'facebook' ); ?>" title="facebook"><img src="images/Facebook.png" alt="facebook" /></a>

    the outcome is always:

    <a title="facebook" href=""><img alt="facebook" src="images/Facebook.png"></a>
    

    the href is blank.


    dromy
    Participant

    @dromy

    can you say how can I determine in the if function if the field is a link or not so only links will be without the bp directory.


    dromy
    Participant

    @dromy

    I agree, can you add option to create a field with a custom link not relating to the search?
    like on the wp profile but on the bp edit profile fields selection.


    dromy
    Participant

    @dromy

    just to add buddypress member link to the members page URL the #main encore.

    instead of http://www.website.com/members/username/
    a like with ancore http://www.website.com/members/username/#main

    BTW, trying this, removing the <?php before the script and ?> after creates the line as text on page boxy.


    dromy
    Participant

    @dromy

    after tring it.. not working.
    the path is always ../members/[username]/

    missing the #main at the end.


    dromy
    Participant

    @dromy

    don’t know what happened to this page.

    can you read my reply?


    dromy
    Participant

    @dromy


    dromy
    Participant

    @dromy

    so, just to make this clearer to me:
    I add to the [theme]/buddypress/function.php this:

        function bpfr_my_directory_setup_nav() {
           echo’#main‘; // link to what you want
        }
        add_action( ‘bp_members_directory_member_types’, ‘bpfr_my_directory_setup_nav’ );

    or any thing I want on the echo field between the two ‘.

    Did I get it right?


    dromy
    Participant

    @dromy

    Thanks a lot 🙂


    dromy
    Participant

    @dromy

    this is the link. I am not a painter 🙂
    link


    dromy
    Participant

    @dromy

    Thank you for the quick response.

    when adding groups and more fields the groups and fields are displayed on the member page as a table.
    I would like to create a tabs display to the member information (my created fields and group) when each group of (ex.wp-widget base) div\table is displayed on a different tab.

    hope I am clear.
    on the admin or edit cases I do not want to touch for now. This relate only for the view buddypress member profile as a member or as anonymous.

    (and sorry, I meant how on topic and not hot)


    dromy
    Participant

    @dromy

    Did you succeeded?

    I would like to hide the admin option panel (profile and view) when the user is not the owner of the profile.

    can you advice?

Viewing 16 replies - 1 through 16 (of 16 total)
Skip to toolbar