Back to vBulletin 4.x Template Modifications

Avatar Glossy Effect - Postbit_Legacy
Mod Version: 1.01, by thetechgenius

vB Version: 4.2.2 Rating: (1 vote - 5.00 average) Installs: 12
Released: 29 Jan 2015 Last Update: Never Downloads: 75
Not Supported Template Edits Re-usable Code  

I found a really cool Javascript library that automatically adds a cool Glossy Shine effect to an image. You can add the Glossy Shine to any image on your forum, but I think it looks best with user's avatars.

And the best part is, the end-user doesn't need to do anything extra. They just upload their Avatar as normal, and when they see their avatar in posts, it will have a professional looking Shine/Glossy effect.

Lets get started!

1) First download the zip at the bottom, extract the contents, and upload the "js" folder to your forum root.

2) Add this code to your headerinclude template.

Code:
<script type="text/javascript" src="js/glossy.js"></script>

3) Edit the postbit_legacy template.

Find:

Code:
<vb:if condition="$show['avatar']">
			<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
				<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
			</a>
			</vb:if>
Now since my style is very custom, that code might not be exactly like yours.

You have to basiclly put a class on the avatar "IMG" tag.

Like this:

Code:
<vb:if condition="$show['avatar']">
			<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
				<img class="glossy"  src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
			</a>
			</vb:if>
And save!

I also added a screenshot of what it will look like when its done.

EDIT
: You could also use the Javascript to make any image have the Glossy/Shine Effect. I added the code to my Postbit Legacy and the User Profile Avatars. I changed the code in the profiles so instead of the profiles showing the Profile Pictures, it only shows the User's Avatar with the Glossy/Shine Effect.

I added a screenshot of my profiles with the Avatar Shine/Glossy effect.

Download

File Type: %1$s GlossyAvatars[TTG].zip (3.9 KB, 89 downloads)

Screenshots

Click image for larger version
Name:	avatar_glossy.png
Views:	511
Size:	72.0 KB
ID:	151753   Click image for larger version
Name:	avatar_glossy_profiles.png
Views:	431
Size:	99.6 KB
ID:	151760  

Similar Mods

Show Thread Enhancements [CM] Posbit Avatar Hover (Zoom + 360 Degrees Turn Effect) vBulletin 4.x Template Modifications
Show Thread Enhancements [CM] Posbit Avatar Hover (Turns 360+ Effect) vB 3.8.x vBulletin 3.8 Template Modifications
Avatar/Image Reflection Effect vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024