• I have searched the forums quite a bout for help with this but I cannot find a solve as yet.

    If have a site where there are multiple authors and each author has it’s own author page. Some authors have an aim name, others have a yahoo name and others have both.

    I wuld like to autodisplay and image that is clickable to the each or all of the messenger links depending in whether or not an author has the aim and / or yahoo info entered into their profile.

    I can construct the html needed that would be outputted by I cannot seem to get the results so that if the person has AIM – a certain chunk of html code is used, if a person has Yahoo – a certain chunk of html code is used or if they have both, then a 3rd resulting chunk of html code is used.

    I am not even sure if I am using the if else statements correctly

    ‘<?php if (the_author_aim()==””) : ?>
    [get html code for an image that is click able to the aim name]
    <?php elseif (the_author_yim()==””) : ?>
    [get html code for an image that is click able to the yahoo name]
    <?php else : ?>
    [get html code for an image that is click able to the aim and yahoo name]
    <?php endif; ?>’

    Any suggestions for this?

Viewing 1 replies (of 1 total)
  • Thread Starter vince2006

    (@vince2006)

    To explain further, I actually want that if the aim or yahoo field is filled in (in the profile) that my sidebar will output an image I have designed (one for aim and one for yahoo) that will allow the visitor to click the image button to activate the messenger programs (I do not need the code to actibate the messenger programs – I know how to do this.) _ I am just rrying to automate the sidebar so that IF a user has an AIM or Yahoo screenname that the sidebar wil then show the needed buttons for same.

Viewing 1 replies (of 1 total)
  • The topic ‘if else and the_author_aim’ is closed to new replies.