The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
||||
|
||||
Quote:
Quote:
|
#32
|
|||
|
|||
Ok, I got it
Code:
<if condition="$show['avatar']"> <!-- check for admin --> <if condition="$post[usergroupid]==6"> <!-- I am an admin so do this --> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="124" height="82" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="64" width="59" align="right"></td> </tr> </table> </td> <else /> <!-- I am not an admin so do this --> <td class="alt2"> <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </td> </if> </if> |
#33
|
||||
|
||||
Quote:
But, if i want add other images for other usergroup, How may I make ? |
#34
|
|||
|
|||
As many as you want. You can nest the if statements by having it in the format:
if admin else if super mod else if mod else if custom group else normal end if end if end if end if Basically just keep nesting them. If you want two or more groups to use the same image, then you can use an array in the conditional to specify which groups that conditional applies to. |
#35
|
||||
|
||||
Schweet Going to try tweaking it w/ standard vBulletin code so that if different usergroups have different avatar dimensions the hole will stretch. currently it'll smush the avatar.
Example: http://www.houseofhelp.com/forums/sh...ad.php?t=52133 |
#36
|
|||
|
|||
you can do that by using conditional nesting and using different dimensions in the code from there
|
#37
|
|||
|
|||
Something like this?
Code:
<if condition="$show['avatar']"> <!-- check for admin --> <if condition="$post[usergroupid]==6"> <!-- I am an admin so do this --> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="124" height="82" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="64" width="59" align="right"></td> </tr> </table> </td> <else /> <if condition="$post[usergroupid]==X"> <!-- I am in this usergroup so do this --> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="124" height="82" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge2.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="64" width="59" align="right"></td> </tr> </table> </td> <else /> <!-- I am not in either of those groups so do this --> <td class="alt2"> <a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </td> </if> </if> </if> |
#38
|
|||
|
|||
Quote:
|
#39
|
|||
|
|||
Yep. I was adding it while you were correcting my omission.
Thanks. Is the use of the else / if considered better formatting? Regards, |
#40
|
||||
|
||||
lol I love it, total chaos!
How many designers and coders does it take to come up with a tiny piece of functional code lol. It's really starting to shape up, but I thought about having the small avatar in behind the background image as was mentioned... it's frying my brain.... you have a table --------------------------table--------------------------| tablerow top---------------------------------------TR-| | |............................columntop -------------------TD|.| | |...........................................|..... ........................|.| | |...........................................|..... ........................|.| | |...........................................|---------------------|.| | tablerowbottom-----------------------------------</tr>| | --------------------------table--------------------------| How the hell would you be able to pull it off? I mean, you can't have the column without a table to hold it and you can't add a table because then the 2nd table will not overlap the 1st but instead be to the right or below it.... BRAIN FRYING! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|