Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting Icons to Work for Social XProfile Field Links

  • @gregfielding

    Participant

    I’ve got links to other social sites as profile fields… Twitter, Facebook, etc. But instead of just showing the link, I’m trying to show icons. What I’m using is:

    `
    <a href="“>
    `

    But the icon links to:
    `http://housingstorm.com/gregfielding/profile/`

    What am I doing wrong?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @nahummadrid

    Participant

    `

    • <a rel="me" href="”>

    `

    This is how I’ve done exactly this.

    @gregfielding

    Participant

    Thanks!

    @uloga

    Member

    `

    <?php if(!empty($data)) :?>

    `

    in case you want to add more then one social icon!

    @jon73

    Participant

    Hi

    Just what I am looking for I think. So if I understand right I create user profile fields for Facebook, twitter and linkedin and instead of displaying the user entered link it will display the icons for each.

    Next question where do and in which file do I place the suggested code?

    thanks

    @tangpage

    Participant

    where.. to place these code… ?

    @dromy

    Participant

    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

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting Icons to Work for Social XProfile Field Links’ is closed to new replies.
Skip to toolbar