The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Also using the <if><else /></if> structure would make the code less verbose.
|
#12
|
||||
|
||||
Didn't work either, but it's a but more concise:
Code:
<!-- START - TEST FOR AVATAR HACK --> <if condition="$show['avatar']"> <if condition="is_member_of({$vbulletin->userinfo[usergroupid]}, 79)"> <td class="alt2"> <a href="member.php?$session[sessionurl]u=$post[userid]"> <table border="0" cellpadding="0" cellspacing="0" width="200" height="200"> <tr> <td width="200" background="badge.png" height="200"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="125"> <tr> <td width="25%"> </td> <td width="50%"><img src="$post[avatarurl]" width="125" height="125" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td> <td width="25%"> </td> </tr> </table> </td> </tr> </table> $vbphrase[xs_avatar]</phrase>" border="0" /></a> </td> <else /> <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> <!-- END - TEST FOR AVATAR HACK --> |
#13
|
||||
|
||||
Quote:
Quote:
Code:
<!-- START - TEST FOR AVATAR HACK --> <if condition="$show['avatar'] AND is_member_of({$vbulletin->userinfo}, 79)"> <td class="alt2"> <a href="member.php?$session[sessionurl]u=$post[userid]"> <table border="0" cellpadding="0" cellspacing="0" width="200" height="200"> <tr> <td width="200" background="badge.png" height="200"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="125"> <tr> <td width="25%"> </td> <td width="50%"><img src="$post[avatarurl]" width="125" height="125" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td> <td width="25%"> </td> </tr> </table> </td> </tr> </table> $vbphrase[xs_avatar]</phrase>" border="0" /></a> </td> </if> <else /> <if condition="$show['avatar'] AND is_member_of({$vbulletin->userinfo[usergroupid]}, 79)"> <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> <!-- END - TEST FOR AVATAR HACK --> |
#14
|
||||
|
||||
[QUOTE=Allan]
You've still got Code:
AND is_member_of({$vbulletin->userinfo}, 79)"> Why not just do something like <if condition="$vbulletin->userinfo[usergroupid]=6"> bla bla <if condition="$vbulletin->userinfo[usergroupid]=2"> etc and make a plugin to hold the code so the template doesn't get cluttered I'm sure you could use something like <if condition="$vbulletin->userinfo[usergroupid]=6 || $vbulletin->userinfo[usergroupid]=7 || $vbulletin->userinfo[usergroupid]=11"> |
#15
|
||||
|
||||
Dont' work
Quote:
|
#16
|
||||
|
||||
Quote:
|
#17
|
||||
|
||||
With this code:
Code:
<!-- START - TEST FOR AVATAR HACK --> <if condition="$show['avatar'] AND $vbulletin->userinfo[usergroupid]=6"> <td class="alt2"> <a href="member.php?$session[sessionurl]u=$post[userid]"> <table border="0" cellpadding="0" cellspacing="0" width="122" height="80"> <tr> <td width="122" background="$stylevar[imgdir_misc]/badge.png" height="80"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="60"> <tr> <td width="25%"> </td> <td width="50%"><img src="$post[avatarurl]" width="60" height="60" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td> <td width="25%"> </td> </tr> </table> </td> </tr> </table> $vbphrase[xs_avatar]</phrase>" border="0" /></a> </td> </if> <else /> <if condition="$show['avatar'] AND $vbulletin->userinfo[usergroupid]=6"> <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> <!-- END - TEST FOR AVATAR HACK --> |
#18
|
||||
|
||||
Code:
<if condition="$show['avatar'] & $vbulletin->userinfo[usergroupid]=6"> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="122" height="80" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge.png" nowrap="nowrap" no-repeat><center><img src="$post[avatarurl]" height="60" width="60"</center></td> </tr> </table> <br /> </if> |
#19
|
||||
|
||||
Quote:
|
#20
|
||||
|
||||
Tested and don't work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|