The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Avatar/Image Reflection Effect Details »» | |||||||||||||||||||||||||
This modification dynamically adds a subtle "reflection" effect underneath avatars and/or images on your forums. The reflection will automatically fade into your forum's background color, whatever it might be. You can also offer this effect as an option for your members' uploaded images via a BB Code. This effect uses unobtrusive javascript to keep your code clean. It doesn't require additional server work. It works in all the major browsers - Internet Explorer 5.5+, Mozilla Firefox 1.5+, Opera 9+ and Safari. On older browsers, it'll degrade and your visitors won't notice a thing. Best of all, it's under 5KB! "Simple. Unique. Classy. Thank you!" - Forum admininstrator, JoeSixPack "This mod gives my forum a slick, almost 3-D look!" - Forum administrator, Tralala Details: 1 file upload ("reflection.js") to forum's clientscript directory 1 template edit to "header" template Optional edit: 1 for avatars in thread view ("postbit_legacy" template) Optional edit: 1 for avatars in thread view ("postbit" template) Optional edit: 1 for avatars in member profile ("MEMBERINFO" template) Optional edit: 1 for profile picture in member profile ("MEMBERINFO" template) Optional edit: 1 for avatars in Members List ("memberlist_resultsbit" template) Optional edit: 1 for new BBcode (AdminCP -> Custom BB Codes -> BB Code Manager) Optional edit, not recommended: 1 for ALL images posted inline via standard IMG BBCode ("includes/class_bbcode.php" file) (All of the above optional edits involve simply inserting class="reflect" to the image HTML code, which adds the reflections. The code to replace for each edit is included in the .zip archive.) See screenshots to see it in action... My very first vBulletin hack! Kudos to the fine coders at vBulletin.org whose work inspires me. Special thanks to Cow's Blog for the reflection.js code. Shared and distributed freely under MIT-style License. Enjoy!! Show Your Support
|
Comments |
#52
|
|||
|
|||
Nice
|
#53
|
|||
|
|||
I think my forum uses postbit not postbit legacy.. ?
i tried editing postbit legacy but I didn't work in in thread.. please help |
#54
|
||||
|
||||
Quote:
|
#55
|
|||
|
|||
Quote:
Thanks! You are so sweet!:banana: |
#56
|
||||
|
||||
icare:
To add the reflection effect underneath avatars in thread view, FIND in "postbit" template: 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> <td nowrap="nowrap"> Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" class="reflect" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> <td nowrap="nowrap"> |
#57
|
||||
|
||||
Updated to version 1.5
-Added ability to vary height and the opacity of the reflections -Fixed issue with Safari and landscape images -Made reflection of images with specified dimensions better -Removed wholeimage class -Added scriptable reflections - Reflection.add(), Reflection.remove() - allowing for interactivity and flexibility. Reflections can respond to user actions (e.g. changing the reflection opacity when the image is hovered over or clicked.) For more information, see info and files at http://cow.neondragon.net/stuff/reflection/ -Added instructions for postbit template. To upgrade, simply overwrite reflection.js in your forum's clientscript folder. |
#58
|
||||
|
||||
The jaggies are still visible using Firefox..
|
#59
|
||||
|
||||
Quote:
|
#60
|
||||
|
||||
Your update didn't mention to read the readme.
(I see it there now.. ahh well, waiting on Mozilla to release a fixed one.) |
#61
|
|||
|
|||
VERY nice hack. simple and easy to install, and hardly any server load. one thing you can do is clean up the readme.txt file, for some reason it's really messy (bunch of square symbols).
also, how do you go about changing the opacity and height settings? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|