The Arcive of vBulletin Modifications Site. |
|
Add image fade effect to attached thumbnails Details »»
|
|||||||||||||||||||||||||||
|
Add image fade effect to attached thumbnails
Developer Last Online: Jan 2010
This will add a pretty image fade effect to attached thumbnails, and will also let you add the effect to any image you want simply using the class="fade" tag.
*Confirmed working on FireFox and Internet Explorer Only* For Opera see this postSafari see this post 1. open AdminCP -> Styles And templates, then Main CSS, Scroll down to Additional CSS and enter this in the box Code:
.fade img {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
-moz-opacity: 0.5;
opacity: .50;
-khtml-opacity: 0.5;
}
.fade:hover img {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
-khtml-opacity: 1;
}
3. Go To Postibit Templates -> postbit_attachmentthumbnail. After the first <a add Code:
class="fade" End refult of postbit_attachmentthumbnail should look similar to this Code:
<a class="fade" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a> <if condition="$show['br']"><br /><br /></if> Working demo:Will have to scroll a little to get to the attached thumbnails http://www.fightrice.com/forums/showthread.php?t=8635 Dont forget to click install, and if you really like it, making a nice link back to me in your footer would be lovely ![]() Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
First ...
Thanks I'll try
|
|
#3
|
|||
|
|||
|
great hack, doesnt work with Opera but looks fine in Mozilla and IE
|
|
#4
|
||||
|
||||
|
It's sort of a "rollover" effect? Thumbnails are faded, until you put your cursor over them in which case they unfade.
Quote:
|
|
#5
|
||||
|
||||
|
Does it work fine on Firefox?
|
|
#6
|
|||
|
|||
|
works on FireFox and IE for sure,
Reports say it doesnt work in Safari, or Opera, but it shouldnt mess anything up if it doesnt work |
|
#7
|
|||
|
|||
|
Quote:
Add... HTML Code:
opacity: .50; HTML Code:
opacity: 1; |
|
#8
|
|||
|
|||
|
Not sure about this one, but add...
HTML Code:
-khtml-opacity: 0.5; HTML Code:
-khtml-opacity: 1; |
|
#9
|
|||
|
|||
|
Thanks, soon as someone can confirm that i'll be glad to update install instructions
|
|
#10
|
|||
|
|||
|
Well, I can confirm the first one I posted as I'm using Opera 9 myself and opacity works like a charm. It is the second one I'm not sure about since I have no access to a Mac - but the khtml-opacity property is reported to work in Safari.
|
![]() |
|
|