Check user avatar, signature...
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Check user avatar, signature...
Hey guys, I need to check if the user have added an avatar, signature.
I have added this code to check for it:
(signature)

PHP Code:
<if $GLOBALS['mybb']->user['signature'] == '' then>
<center>This user has no signature.</center>
<else>
<center>{$signature}</center>
</if>

(avatar)

PHP Code:
1
2
3
4
5
6
7
8
9
<if $GLOBALS['mybb']->user['avatar'] == '' then>
<else>
<tr>
<td class="trow2"><center>{$avatar}</center></td>
</tr>
<tr>
<td class="thead" colspan="2"><strong></strong></td>
</tr>
</if>

But it only works if the member have made any changes to these options... Like.. If the user just registered it will no display the "This user has no signature." message, BUT if I'm a member and had a signature and I removed it for some reason it will display the message. Same for the avatar.

Thank you for the help.


[Image: 468x602b.png]
(This post was last modified: 01-21-2011 07:36 AM by Skiilz.)
01-21-2011 07:34 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Check user avatar, signature... - Skiilz - 01-21-2011 07:34 AM

 Standard Tools
Forum Jump: