Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting Icons to Work for Social XProfile Field Links

  • Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    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)
  • Avatar of Nm
    nm
    Participant

    @nahummadrid

    `

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

    `

    This is how I’ve done exactly this.

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    Thanks!

    Avatar of Alan
    Alan
    Member

    @uloga

    `

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

    `

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

    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

    Avatar of tangpage
    tangpage
    Participant

    @tangpage

    where.. to place these code… ?

    Avatar of dromy
    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.

    Avatar of 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.

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.