![]() |
Glossy avatars,profile pictures and attachment thumbnails
Description:
Glossy Avatar & Image Effects allows you to add glossy 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 glossy.js to your clientscript directory 2. In your header template, find: Code:
<!-- content table --> Code:
<script type="text/javascript" src="clientscript/glossy.js"></script> 3. In your postbit_legacy template, find Code:
<div class="smallfont"> Code:
<div class="smallfont"> Note that you can alter the javascript classes to suit your needs. Quote:
v.1.01 added glossy 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. |
Here are the additional changes for postbit template, memberprofile, memberlist and profile picture
In your postbit template, find Code:
<if condition="$show['avatar']"><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> Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" class="glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Code:
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td> Code:
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] class="glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" /></td> Code:
<if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['avatar']"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /><else /> </if></td></if> Code:
<if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['avatar']"><img src="$avatarurl" class="glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" /><else /> </if></td></if> Code:
<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /> Code:
<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] class="cglossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" /> Code:
class="thumbnail" Code:
class="thumbnail glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" |
first post.. nice ... :) thanks
|
nice mod .... installed
Ps: does this work 3.7.x ???? |
works with animated gif?
|
Believe me... this are great but .GIF animated is a Tradition! :(
|
thanks
|
Looks cool... But I would have placed the javascript call line in the headinclude template where most vbulletin javascript calls reside. :)
|
Quote:
Believe me I tried to place in headinclude and it won't display these effects. Val. ;) |
Quote:
Nice work. :) |
will it work on bbcode images hosted on other sites?
|
Interesting mod, downloaded!
|
Quote:
Hmm, works fine for me. Added to the bottom of the headerinclude, last line. Once this is added, you can basically add it to any image. Find where the image is located in your template and add this right before the alt tag: class="glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" Doesn't matter of the size, but colors will need to be edited to look good. ;) One last note, I added this to 3.8.0. Forum version shouldn't be a concern with this simple script I don't think. |
Works in firefox but not in IE7 for me here. Just noticed. Might be something on my end.
|
Tested on IE7, FF2, FF3, Opera 9.27, Opera 9.62, Safari 3.2 - works.
My recomendation, replace last two strings in js-file (setup window.onload event) with: Code:
if (navigator.appName == "Microsoft Internet Explorer") |
And insert code:
Code:
if (isIE) { addIEGlossy(); } else { addGlossy(); } Code:
else Code:
PostBit_Init(postbit, postbits[i].getAttribute('postid')); |
All times are GMT. The time now is 10:15 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:
|