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


All times are GMT. The time now is 12:50 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.01083 seconds
  • Memory Usage 1,748KB
  • 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
  • (15)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete