WarLion
09-02-2007, 10:00 PM
The new Online/Offline avatar?s opacity
************************************
this is working on vb 3.6.8 must work in all vbulletin versions
Works on Firefox and IE, i dont have another browser you can tell me if is working in others
remenber if you like this mod please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=156903)
************************************
the first idea come from this mod
Avatar's opacity according to user's status (online/offline) (https://vborg.vbsupport.ru/showthread.php?t=64606)
************************************************** ***********
i try to istall this mod but in 3..6.8 is not working an then i try to do something diferent but the same idea
first of all you need to make a custom css
go to your admincp => styles & templates => main css => aditional css
and add in the end.
.fade img {
filter:progid:DXImageTransform.Microsoft.Alpha(opa city=10);
-moz-opacity: 0.1;
opacity: .10;
-khtml-opacity: 0.1;
}
.fade:hover img {
filter:progid:DXImageTransform.Microsoft.Alpha(opa city=100);
-moz-opacity: 1;
opacity: 1;
-khtml-opacity: 1;
}
you can play with the opacity changing the red ones
the next step
you need to edit 4 templates
postbit_onlinestatus
postbit
postbit_legacy
MEMBERINFO
files to upload
one xml product
one image
go to your posbit_onlinestatus and change everithing whit this
<if condition="$onlinestatus==0"> class="fade"</if>
<if condition="$onlinestatus==1"></if>
<if condition="$onlinestatus==2"> class="fade"</if>
and save it
go to you posbit template
search for
$post[onlinestatus]
remplace with
<!--$userinfo[onlinestatus]-->
find this
<a href="member.php?$session[sessionurl]u=$post[userid]">and remplace whit this
<a $post[onlinestatus] href="member.php?$session[sessionurl]u=$post[userid]">
on postbit_legacy template
find
$post[onlinestatus]
and remplace with
<!--$post[onlinestatus] -->
find
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"
and remplace whit this
<a $post[onlinestatus] href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"
in MEMBERINFO
find
$userinfo[onlinestatus]
remplace with
<!--$userinfo[onlinestatus]-->
find
<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" />
remplace
<span $post[onlinestatus]><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" /></span>
save it
on the zip file is a xml product to make the memberlist and forum leaders and the instruccion too.
you need to import via admin cp=> plugins & products => add new product
now look your board and enjoy :)
if you see the screen shot you will understand this better
i hope you like it
Screenshot (http://img180.imageshack.us/img180/7269/onlineofflinese3.gif)
dont forget to ckick Install
************************************
this is working on vb 3.6.8 must work in all vbulletin versions
Works on Firefox and IE, i dont have another browser you can tell me if is working in others
remenber if you like this mod please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=156903)
************************************
the first idea come from this mod
Avatar's opacity according to user's status (online/offline) (https://vborg.vbsupport.ru/showthread.php?t=64606)
************************************************** ***********
i try to istall this mod but in 3..6.8 is not working an then i try to do something diferent but the same idea
first of all you need to make a custom css
go to your admincp => styles & templates => main css => aditional css
and add in the end.
.fade img {
filter:progid:DXImageTransform.Microsoft.Alpha(opa city=10);
-moz-opacity: 0.1;
opacity: .10;
-khtml-opacity: 0.1;
}
.fade:hover img {
filter:progid:DXImageTransform.Microsoft.Alpha(opa city=100);
-moz-opacity: 1;
opacity: 1;
-khtml-opacity: 1;
}
you can play with the opacity changing the red ones
the next step
you need to edit 4 templates
postbit_onlinestatus
postbit
postbit_legacy
MEMBERINFO
files to upload
one xml product
one image
go to your posbit_onlinestatus and change everithing whit this
<if condition="$onlinestatus==0"> class="fade"</if>
<if condition="$onlinestatus==1"></if>
<if condition="$onlinestatus==2"> class="fade"</if>
and save it
go to you posbit template
search for
$post[onlinestatus]
remplace with
<!--$userinfo[onlinestatus]-->
find this
<a href="member.php?$session[sessionurl]u=$post[userid]">and remplace whit this
<a $post[onlinestatus] href="member.php?$session[sessionurl]u=$post[userid]">
on postbit_legacy template
find
$post[onlinestatus]
and remplace with
<!--$post[onlinestatus] -->
find
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"
and remplace whit this
<a $post[onlinestatus] href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"
in MEMBERINFO
find
$userinfo[onlinestatus]
remplace with
<!--$userinfo[onlinestatus]-->
find
<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" />
remplace
<span $post[onlinestatus]><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" /></span>
save it
on the zip file is a xml product to make the memberlist and forum leaders and the instruccion too.
you need to import via admin cp=> plugins & products => add new product
now look your board and enjoy :)
if you see the screen shot you will understand this better
i hope you like it
Screenshot (http://img180.imageshack.us/img180/7269/onlineofflinese3.gif)
dont forget to ckick Install