![]() |
Quote:
Quote:
|
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. |
Thanks Kerry-Anne:
I was thinking of the javascript structure: Code:
<script type="text/javascript"> Regards, |
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 :) |
For you if you want ^^ :
https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/
Code:
<!-- START - TEST FOR AVATAR HACK --> |
Quote:
http://img55.imageshack.us/img55/156...orepeat6bq.jpg dont care to much about it being out of postition, but i just dont see why the no repeat isnt working. |
You need to adjust the height and width settings for the size of the badge that you are using.
|
Quote:
|
Yes but the table height and width need to match the images.
|
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:
|
Another problem, the avatar to members don't show :surprised:
|
odd, I was testing w/ a local user, worked fine for me.
|
Do you have same code to me ? (post top)
can you put your code here which I compare ? |
it's pretty much like what slappy posted, except I don't have an extra space after the groupid # like he does:
Code:
<if condition="$post[usergroupid]==X "> |
Oops. That space was just because I took out a groupid number and replaced it with an "X". The space should not be there. The original was:
<if condition="$post[usergroupid]==6"> I'll fix my example code now. Regards, |
Quote:
Same problem, avatar members don't show Quote:
One was missing an <else /> at the end, before no usergroup :banana: |
What is it that you guys are trying to do? Posting a background image per usergroup is already a hack :bunny:
|
Reading from the top would enlighten you that this thread is about using the vbulletin staff avatar, with the cutout for a photo or private avatar image added, or with just the staff title of the appropriate usergroup, at the choice of the staff member.
Various options and code to accomplish placement and alignment of the staff avatars, as used here with inserts, were discussed, as was custom vbulletin staff avatars and the code to display them correctly by usergroup. Regards, |
so, does anyone have any improvements to make on this?
|
This is the version that I have working on my site. It's still done with tables, but it works perfectly and each staff member has their own badge too.
I made a couple of adjustments to get the alignment right with my badges though. If anyone needs a plain PSD template to work with these instructions, then just let me know and I'll fix it up for you. Code:
<if condition="$show['avatar']"> |
PSD would be great.
Why not use $post[avwidth] $post[avheight] in the staff avatar though? My only gripe with what we've come up so far is with avatars of varing size. Mine's 47x50, another guy's got 48x50, etc. Gotta make a big one for the guy who has a 125x125 somehow though :) Isn't there a way through PHP GD to do image manipulation? |
1 Attachment(s)
Thats why I specified the size in there. It adjusts the size of the avatar to fit the badge.
If you want to take a look at them in use on my site, you will see that they have been shrunk significantly to fit the badges. FYI, the original size avatars in use by me and my co-admin are attached. My moderator does not have an avatar so his badge does not show. I'll sort the basic PSD file out later and post it up as a release with everyone who has contributed as co-authors. |
Hello Allan,
great, can you post the psd and Font ???? Greets :D Quote:
|
Quote:
|
I'll get it sorted out shortly.
Just need to tidy up the PSD I'm using. |
Here we go: Staff avatars
|
Quote:
|
Quote:
Allan, Can you upload the PSD file and the fonts please? Thanks... |
Hello all.
Am new about this and like this mod alot and can someone provide us newbies with a How to and final code for this wonderful hack ... Thanks " "Hat off"Ladies and gentlemen"Well done" |
All times are GMT. The time now is 06:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|