The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Rounded avatars, profile pictures and attachment thumbnails Details »» | |||||||||||||||||||||||||||
Rounded avatars, profile pictures and attachment thumbnails
Developer Last Online: Jun 2020
Description:
Rounded Avatar & Image Effects allows you to add rounded corners (and also shading and shadow) to avatars and images on your forums. It uses unobtrusive javascript to keep your code clean. It works in all the major browsers - Mozilla Firefox 1.5+, Opera 9+, Safari and IE6+. This modification is a nice addition to all of you, who want your forums to have a nice Web2.0 effect. Installation: 1. Upload the attached corner.js to your clientscript directory 2. In your header template, find: Code:
<!-- content table --> Code:
<script type="text/javascript" src="clientscript/corner.js"></script> 3. In your postbit_legacy template, find Code:
<div class="smallfont"> <br /><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> </div> Code:
<div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" class="corner iradius10" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> Note that you can alter the javascript classes to suit your needs. If you want a shadow in your avatars/profile pics you may add ishadowXX to the class, so it may become: class="corner iradius10 ishadow25". It is very flexible and you can tweak it as much as you want. v.1.01 added rounded effects for attachment thumbnails v.1.0 Initial release Credits for this modification go out to CVI Lab for the original javascript. I just made it to work for vBulletin Enjoy, Val. Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
In your postbit_legacy search for $vbphrase[xs_avatar] , because there is only one instance of this phrase and do the replace accordingly between the <div> ...... </div> tags. Same goes with other templates too where you want to tweak the avatars. For profile picture look for phrase $vbphrase[xs_picture]. I am sure it will work. It is quite easy. In my replacements, all you need to do is add the ishadowXX (XX is a number) to the javascript class. Example if you need to add shadows in postbit_legacy you would use this replacement: Code:
<div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" class="corner iradius9 ishadow38" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> The result: Cheers, Val. |
#13
|
|||
|
|||
thanks vaLdet, i understand now : )
its very nice |
#14
|
|||
|
|||
Superb find. thx.
|
#15
|
|||
|
|||
valdet,
pershendetje edhe urime per kete script... kam nevoje per ndonje script qe mund te mi zvogeloje automatikisht avataret ne 80x80 pixel, edhe pse custom avatars mund te jene te medhej, automatikisht te zvogelohen ne 80x80 |
#16
|
|||
|
|||
very nice dude
i´ll use it but i´ll edit it with a pretty rounded |
#17
|
|||
|
|||
awsome
thx |
#18
|
|||
|
|||
my forum has a probLem because of corner.js
some antivirus programs immediateLy aLert; EXP/HTML.VML.Gen virus. how can we soLve this issue? |
#19
|
||||
|
||||
Quote:
What's more, I provided the link to original author of this script and since it is widely used, I don't think it is a virus/trojan and whatsoever. I hope that helps. Regards, Val. |
#20
|
|||
|
|||
Not working for me!
Still the avatars are same, no curve or any other effect. |
#21
|
||||
|
||||
What does the shading do?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|