vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - The new Online/Offline avatar?s opacity (https://vborg.vbsupport.ru/showthread.php?t=156903)

WarLion 09-02-2007 10:00 PM

The new Online/Offline avatar?s opacity
 
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
************************************

the first idea come from this mod
Avatar's opacity according to user's status (online/offline)

************************************************** ***********
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.

Code:

.fade img {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=10);
-moz-opacity: 0.1;
opacity: .10;
-khtml-opacity: 0.1;
}
.fade:hover img {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=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

Code:

<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
Code:

$post[onlinestatus]
remplace with
Code:

<!--$userinfo[onlinestatus]-->
find this
Code:

<a href="member.php?$session[sessionurl]u=$post[userid]">
and remplace whit this
Code:

<a $post[onlinestatus] href="member.php?$session[sessionurl]u=$post[userid]">
on postbit_legacy template
find
Code:

$post[onlinestatus]
and remplace with
Code:

<!--$post[onlinestatus] -->
find
Code:

<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"
and remplace whit this
Code:

<a $post[onlinestatus]  href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]"

in MEMBERINFO

find
Code:

$userinfo[onlinestatus]
remplace with
Code:

<!--$userinfo[onlinestatus]-->


find
Code:

<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
Code:

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

Code:

filter:progid:DXImageTransform.Microsoft.Alpha(opacity=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

Quote:

Originally Posted by yoyoyoyo (Post 1335411)
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

Quote:

Originally Posted by masterweb (Post 1335424)
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

Code:

<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

Quote:

Originally Posted by citroenar (Post 1335694)
I just found out that postbit_onlinestatus make problem in forum leaders

Code:

<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

Quote:

Originally Posted by MDK-Indy (Post 1336149)
Sal?,

i have a error on the Staffside...

See Picture...

greetings Indy

Quote:

Originally Posted by citroenar (Post 1336097)
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

Quote:

Originally Posted by siriuxs (Post 1336267)
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

Quote:

Originally Posted by MDK-Indy (Post 1336487)
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
Code:

$post[onlinestatus]
remplace for
Code:

<!--$post[onlinestatus] -->
find

Code:

<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

Code:

<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
Code:

$post[onlinestatus]
remplace
Code:

<!--$post[onlinestatus]-->
find
Code:

<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
Code:

<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

Quote:

Originally Posted by WarLion (Post 1336327)
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

Quote:

Originally Posted by siriuxs (Post 1336885)
In postbit. On the right of the username...


let me work on that

siriuxs 09-11-2007 09:16 PM

Quote:

Originally Posted by WarLion (Post 1337110)
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 :(


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01323 seconds
  • Memory Usage 1,814KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (25)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete