| Topic: | Avatar in a block |
|---|---|
|
stormdesign
Freshman
Posts: 27 Posted: |
Please!!!! I would like to put a block with the user avatar and a Welcome message. Each user could see his/her avatar and this would incentive they to choose an avatar. Help me please!!!! |
|
markwest
Moderator
Posts: 7720 Posted: |
This is only the basics - you'll need to add a little to lay this out as you wish but if you add a PHP block and add the following code you'll get your avatar image display. Then format this as you wish.Code-Mark |
|
stormdesign
Freshman
Posts: 27 Posted: |
Thank you very much!!! But I would like toi put the a avatar in center of block. Im not so good with the php.php script. With theme.php I do everything I want it. Other thing. I would to put a condition in the avatar. If user avatar is 000.gif (no avatar) the link is Change Info. If the user avatar is ok the link is User Account. Please, one more time, help me!!!! :P |
|
markwest
Moderator
Posts: 7720 Posted: |
With PHP all your doing is echoing out HTML so code the relevant HTML as you need. This is what I meant by you needing to lay this out as you wish. To code the logic it would be Codeif (pnUserGetVar('user_avatar') != '000.gif') { echo '<img src ="images/avatar/' . pnUserGetVar('user_avatar') . '">'; } Add the needed HTML to the echo statements as you'd modify any theme. Now's the time for you to learn a bit more ;). -Mark |