PDA

View Full Version : Mini Mods - The new Online/Offline avatar?s opacity


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

Pc 1203
09-03-2007, 03:13 AM
Cool release. :D

- Pc1203

rayphua
09-03-2007, 04:19 AM
Doesn't work, I see alot of fade remarks at the avatar area now in postbit.

WarLion
09-03-2007, 04:30 AM
try changing the opacity values

filter:progid:DXImageTransform.Microsoft.Alpha(opa city=10);
-moz-opacity: 0.1;
opacity: .10;
-khtml-opacity: 0.1;

tell me wich vb do you have

i guess try to find $post[onlinestatus] on your postbit and legacy
and delete, not the one you just add

rayphua
09-03-2007, 07:22 AM
I'm using 3.6.7 PL1. Thanks.

WarLion
09-03-2007, 06:37 PM
i make a few changes for member and the correct change for postbit_legacy

Magnumutz
09-03-2007, 07:26 PM
I'm guessing this is another IE only effect... Am I right?

WarLion
09-03-2007, 07:35 PM
is working on firefox , and ie.
i didnt try with another browser i only use firefox and i have ie7 but this is CSS is not java

masterweb
09-09-2007, 09:02 AM
Installed but doesn't work. i made all template's modifications but it doesn't work on my site (www.onlinewebmarket.net). Pls help

masterweb
09-09-2007, 09:16 AM
Attached here you have the templates. Pls help me

yoyoyoyo
09-09-2007, 12:49 PM
the info indicated is not found in the postbit_legacy template for 3.6.8

masterweb
09-09-2007, 01:15 PM
the info indicated is not found in the postbit_legacy template for 3.6.8

So it means that doesn't work with 3.6.8 or i must to edit something else on the templates?

WarLion
09-09-2007, 03:39 PM
So it means that doesn't work with 3.6.8 or i must to edit something else on the templates?

it work on 3.6.8 cuz i have it
i made a few changes in your postbit and postbit_legacy try this

masterweb
09-09-2007, 04:15 PM
GREAT!!!!, thanks man for your fast and usefull help. Nice mod and nice person.-

Thanks again:D

Allan
09-09-2007, 06:07 PM
Nice hack but more modifications :p

citroenar
09-09-2007, 06:46 PM
Works great on 3.6.8. Install.

citroenar
09-09-2007, 08:29 PM
I just found out that postbit_onlinestatus make problem in forum leaders

<if condition="$onlinestatus==0"> class="fade"</if>
<if condition="$onlinestatus==1"></if>
<if condition="$onlinestatus==2"> class="fade"</if>

See picture

WarLion
09-10-2007, 12:34 AM
I just found out that postbit_onlinestatus make problem in forum leaders

<if condition="$onlinestatus==0"> class="fade"</if>
<if condition="$onlinestatus==1"></if>
<if condition="$onlinestatus==2"> class="fade"</if>

See picture

o thats true leet me chek that and find a fix it

edit:
i upload a xml to fix that
download the zip file and only run de product and upload the image
and also give to the memberlist the opacity opction

citroenar
09-10-2007, 09:52 AM
Memberlist is now ok,but forum leaders still have problem.

MDK-Indy
09-10-2007, 11:46 AM
Salü,

i have a error on the Staffside...

See Picture...

greetings Indy

siriuxs
09-10-2007, 03:29 PM
Tanks for your hack, but I would that the icon status is visible... how do I do?

Excuse me for my bad english but I'am italian. Tanks!

WarLion
09-10-2007, 04:50 PM
Sal?,

i have a error on the Staffside...

See Picture...

greetings Indy
Memberlist is now ok,but forum leaders still have problem.




when a was making the xml i have this problem sorry for that try overwrite this xml is the same but i fix one more time that sorry for that

WarLion
09-10-2007, 04:54 PM
Tanks for your hack, but I would that the icon status is visible... how do I do?

Excuse me for my bad english but I'am italian. Tanks!

but where do you like the icon status visible in wich template?

MDK-Indy
09-10-2007, 08:25 PM
Thanks for the fast Bugfix...

But i have still another error.

I have install the "Chief First Post - Every Page - 3.6.x" https://vborg.vbsupport.ru/showthread.php?t=156141

See Picture...

greeting Indy

citroenar
09-10-2007, 11:04 PM
For me is ok now. thanks

WarLion
09-11-2007, 12:52 AM
Thanks for the fast Bugfix...

But i have still another error.

I have install the "Chief First Post - Every Page - 3.6.x" https://vborg.vbsupport.ru/showthread.php?t=156141

See Picture...

greeting Indy

thats great cuz i install too letmee make a fix for that

this templates modifications is only for those that install the "Chief First Post - Every Page - 3.6.x" https://vborg.vbsupport.ru/showthread.php?t=156141

go to teemplates and change this
postbit_article
find
$post[onlinestatus]
remplace for
<!--$post[onlinestatus] -->

find

<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>
remplace

<a $post[onlinestatus] 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>

*****************
postbit_flipped
find
$post[onlinestatus]
remplace
<!--$post[onlinestatus]-->

find
<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>
remplace
<a $post[onlinestatus] 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>
*****************

MDK-Indy
09-11-2007, 08:16 AM
Thanks for Fix...

Now all errors are eliminated i think ;)


greeting Indy

siriuxs
09-11-2007, 09:59 AM
but where do you like the icon status visible in wich template?

In postbit. On the right of the username...

WarLion
09-11-2007, 04:45 PM
In postbit. On the right of the username...


let me work on that

siriuxs
09-11-2007, 09:16 PM
let me work on that

Excuse me... I don't understood... I would set to visible the iconstatus on the right of username... how doI do?

MDK-Indy
11-23-2007, 03:13 AM
Salü,

how i make the effect for the Avatar on the vBulletin project Tools posts?

greeting Indy

justchil
05-02-2008, 08:52 AM
Anyone tried this on 3.7? I had this mod on my 3.6.9 working but I'm not even sure whos mod/template edit I used now :(