The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#41
|
|||
|
|||
Quote:
Quote:
|
#42
|
||||
|
||||
Ok, now to get complicated. I THINK this can be done with some CSS and DIVs, not sure.
Having the badge.png overlay the avatar so that you keep the rounded edges of the inside box (assuming that's what people use when they create their own badges). Either way the overlay can help hide the fact that some avatars are different sizes (or at least help you from making a badge for EVERY avatar size). That would also allow for better positioning, as for right now, it's not REALLY in position. You could use some creative table and cell creation to force it there, but with multiple usergroups and avatar sizes that'd quickly become a pain in the side. |
#43
|
|||
|
|||
Thanks Kerry-Anne:
I was thinking of the javascript structure: Code:
<script type="text/javascript"> var d = new Date() var time = d.getHours() if (time<10) { document.write("<b>Good morning</b>") } else if (time>=10 && time<16) { document.write("<b>Good day</b>") } else { document.write("<b>Hello World!</b>") } </script> <p> This example demonstrates the if..else if...else statement. </p> Regards, |
#44
|
||||
|
||||
FYI I've made a post at WDF for help for potential CSS solutions to my new question concerning CSS layers and the like:
http://www.webdesignforums.net/showthread.php?t=24578 Now for this hack we've all worked on to kick some booty, some type of backend that would easily allow you to assign badges to usergroups would rock, w/ some dynamic code that'd create some/all of the conditionals. AdminCP stuff. Yes, this is way out of my forte |
#45
|
||||
|
||||
For you if you want ^^ :
Code:
<!-- START - TEST FOR AVATAR HACK --> <if condition="$show['avatar']"> <!-- ADMIN --> <if condition="$post[usergroupid]==6"> <!-- I am an admin so do this --> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge6.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td> </tr> </table> </td> <!-- ADMIN --> <else /> <!-- MODERATOR --> <if condition="$post[usergroupid]==7 "> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge7.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td> </tr> </table> </td> <!-- MODERATOR --> <else /> <!-- SUPER MODERATOR --> <if condition="$post[usergroupid]==5 "> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge5.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td> </tr> </table> </td> <!-- SUPER MODERATOR --> <else /> <!-- CODER --> <if condition="$post[usergroupid]==10 "> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge10.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td> </tr> </table> </td> <!-- CODER --> <else /> <!-- TRANSLATOR --> <if condition="$post[usergroupid]==9 "> <td class="alt2"> <table cellpadding="5" cellspacing="0" border="0" width="150" height="70" align="center"> <tr> <td background="$stylevar[imgdir_misc]/badge9.png" nowrap="nowrap" no-repeat><img src="$post[avatarurl]" height="56" width="56" align="right"></td> </tr> </table> </td> <!-- TRANSLATOR --> <else /> <!-- NO GROUP --> <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> <!-- NO GROUP --> </if> </if> </if> </if> </if> </if> <!-- END - TEST FOR AVATAR HACK --> |
#46
|
||||
|
||||
Quote:
dont care to much about it being out of postition, but i just dont see why the no repeat isnt working. |
#47
|
|||
|
|||
You need to adjust the height and width settings for the size of the badge that you are using.
|
#48
|
||||
|
||||
Quote:
|
#49
|
|||
|
|||
Yes but the table height and width need to match the images.
|
#50
|
||||
|
||||
Gotta love that we've got an admin that is the ONLY person on the board who has a large avatar, 125x125. Yep, it's an animated gif. No, can't make them change it. Bastid.
One guy @ WDF said this: Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|