vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Avatar Opacity for online / offline (https://vborg.vbsupport.ru/showthread.php?t=89080)

Zachery 05-03-2004 10:00 PM

Avatar Opacity for online / offline
 
https://vborg.vbsupport.ru/showthread.php?t=64606

Another template edit turned hack.

So here is the idea, when a user is online the avatar would be just like a regular avatar when they are offline the avatar would be faded
Well for the postbit its very simple as the online varible is already there

youll need to find
Code:


<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>

and replace it with

Code:

<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" <if condition="$onlinestatus !=1">style="filter:alpha(opacity=90); -moz-opacity: 0.7;"</if> /></a>
Feel free to change the code in red, this is the level of opacitiy

Next will be the online / offline avatar for the memberslist :)
well sadly i forgot somthing because from time to time i need to remember im not a php coder, at this time i have not figured out how to get this to work in the memberlist yet, however i will keep working at it ^^

Brad 05-04-2004 02:24 AM

hmmm I was doing this myself on vB 2 but it required a hack iirc, its a cool trick.

Zachery 05-04-2004 02:27 AM

Yea well the postbit status is not the hardone, but now that i think & look at it, i dont think there is a way to get it to work on the memberlist sadly :(

Tony G 05-04-2004 07:42 AM

Is indeed a cool trick.

Doesn't matter about the memberlist, doesn't have to show online/offline status for a person. They can look in the postbit. :p

Zachery 05-04-2004 07:50 AM

ME and boofo were talking about it at vB.org :) however (moves) its in the right place now :)

tccra 05-04-2004 02:44 PM

This works great except ... all avatars opacity is reduced, not just those that are offline. How can I screw up one line of text pasting? :D


??

Natch 05-04-2004 03:11 PM

I'm finding the same ... and doing some debugging, it looks like the variable $onlinestatus does not exist in postbit - it's there in the postbit_onlinestatus, but not in postbit (I tested this by adding
Code:

Online: $onlinestatus
to the postbit, and it rendered
Code:

Online:
Any ideas ?

Zachery 05-04-2004 05:58 PM

Well, that is odd O.o it should work by all means, ill go and see why its not

<wonders off>

Tradjick 05-09-2004 02:06 PM

It´s not working for me either. Should it also work on vB 3.01 ?

Ryan Ashbrook 05-09-2004 03:30 PM

I'll test it out, I've been looking for this anyway. :)

Indeed, it's not working...


All times are GMT. The time now is 12:37 AM.

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.01035 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)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