vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Avatar Opacity For Online/Offline Members (https://vborg.vbsupport.ru/showthread.php?t=63940)

Loyalty4Life 04-16-2004 02:55 AM

Avatar Opacity For Online/Offline Members
 
I think there is a vB2 hack that shows a person's avatar slightly shaded if the person is offline. But if the person's online, his/her avatar is at 100% opacity.

Can this be done for vB3? Thoughts on the idea?

Loyalty4Life 04-16-2004 09:40 PM

Anyone?

Loyalty4Life 04-18-2004 03:25 AM

bump

Zachery 04-18-2004 03:26 AM

its a template mod with some code that cna be found at vBT :)

lasto 04-18-2004 05:56 AM

u got a direct link Zach ?

Im disabled :)

Loyalty4Life 04-18-2004 06:58 AM

I didn't find the link on vBT. Do you know where it is?

lasto 04-18-2004 07:21 AM

I looked but i never seen it either - spent 27m and 33 secs looking then gave up

Loyalty4Life 04-18-2004 11:11 PM

Zach?

TouchingVirus 04-19-2004 12:11 AM

From vbulletintemplates.com ...using search "Opacity" in all forums..and did a little quick writeup..

Code:

                <if condition="$onlinestatus==0">
                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="filter:alpha(opacity=10) /></a></td></if>
                        <else />
                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                </if>

For some reason, it wont work..but the opacity bit works..figure out the if statements and your away :D

djnoz 04-19-2004 09:09 AM

Oooh, I think I'm gonna implement this one. What a brilliant idea :D

Hmm, I expect that the variable $onlinestatus might be only specific for the template postbit_onlinestatus, i'll try and figure this out when I get home.

Slappy Nutz 04-19-2004 10:45 AM

I had everything to do with the avatar in postbit_onlinestatus, then in postbit I yook out the avatar stuff and user $post[onlinestatus], the image opasity worked with no avatar's getting loaded. prolly have to be coded in

Curll 04-19-2004 12:11 PM

Quote:

Originally Posted by Slappy Nutz
I had everything to do with the avatar in postbit_onlinestatus, then in postbit I yook out the avatar stuff and user $post[onlinestatus], the image opasity worked with no avatar's getting loaded. prolly have to be coded in

Same at our site. Our lead programmer was up all night trying to figure it out, which I was reloading an old VB2 database. That poor bastard.

lasto 04-19-2004 12:53 PM

u noticed how the simpliest of hacks dont work so good on vb3 and if they do u have to go about it the hard way - and yeah i hate phrases who ever invented them wants locking up :)

rant over :)

Slappy Nutz 04-19-2004 06:27 PM

Quote:

Originally Posted by Curll
Same at our site. Our lead programmer was up all night trying to figure it out, which I was reloading an old VB2 database. That poor bastard.

Gimmpy waves a to Curll :squareeyed:

Curll 04-19-2004 08:44 PM

Quote:

Originally Posted by Slappy Nutz
Gimmpy waves a to Curll :squareeyed:

Hey buuuuhhdy

lasto 04-19-2004 09:47 PM

[high]* lasto puts both hands up so Curll and Slappy Nutz cant wave to one another.
[/high]

There is channels for that sort of banter and it aint here :)

Loyalty4Life 04-19-2004 10:28 PM

Does anyone have an answer to how to make this work?

Slappy Nutz 04-20-2004 07:12 AM

I will tonight, dammit!

Slappy Nutz 04-23-2004 10:40 AM

1 Attachment(s)
Heres the new problem I have, if I put this code
PHP Code:

<if condition="$onlinestatus==0">
<
div class="smallfont">
                    <
br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="filter:alpha(opacity=10)" /></a>
                </
div></if>        
<if 
condition="$onlinestatus==1">    
<
div class="smallfont">
                    <
br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="filter:alpha(opacity=100)" /></a>
                </
div></if> 

in postbit_online status,remove the $post[onlinestatus] from below and put that in place of the avatar code the shading part works but none of the avatars get loaded and mouse over just brings up 's Avatar insted of Username's Avatar. Someones gotta know what to do here.


Enjoy my kick ass photoshop

Slappy Nutz 04-26-2004 10:43 AM

bumppy


All times are GMT. The time now is 04:43 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.01218 seconds
  • Memory Usage 1,762KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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