vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Avatar's opacity according to user's status (online/offline) (https://vborg.vbsupport.ru/showthread.php?t=64606)

VBDev 04-30-2004 10:00 PM

Avatar's opacity according to user's status (online/offline)
 
Avatar's opacity according to user's status (online/offline)

Total hack's description : http://www.vbulletindev.net/forums/h...hack&hackid=72

http://www.vbulletindev.net

Please click https://vborg.vbsupport.ru/ if you like this hack


Requested here, some people said it could be found on vBT, but it requires code modification to work, it was requested on our forum too, that's why I created it and release it here

With this small hack, in postbit, if the user is connected, his avatar will be displayed normally, else it will be less visible

New modifications :
- Avaible in memberlist too
- Browser detection (mozilla)


SC (still can't attach them)

http://www.gd3n.firstream.net/online.gif

http://www.gd3n.firstream.net/offline.gif

http://www.gd3n.firstream.net/memberlist.gif

M1th 05-01-2004 02:32 PM

You will need to set the -moz-opacity as well, otherwise, it'll only work in IE.

Boofo 05-01-2004 02:35 PM

Quote:

Originally Posted by M1th
You will need to set the -moz-opacity as well, otherwise, it'll only work in IE.

How do you do that?

VBDev -- Great hack. Clicked install! ;) Any way we can do this for the memberlist also?

VBDev 05-01-2004 02:38 PM

I'll think about that Boofo, I have to go now and I'm really busy in this moment, I'll look for it this night ;)

Boofo 05-01-2004 02:50 PM

Quote:

Originally Posted by VBDev
I'll think about that Boofo, I have to go now and I'm really busy in this moment, I'll look for it this night ;)

That's ok, no worry. I'll figure it out. ;)

Red Blaze 05-01-2004 04:26 PM

Works great, thank you. :)

[high]* Red Blaze clicks install[/high]

Diva 05-01-2004 04:32 PM

Quote:

Originally Posted by Boofo
That's ok, no worry. I'll figure it out. ;)

So... did you? ;)

MrNase 05-01-2004 04:32 PM

filter:alpha(opacity=50);

becomes

-moz-opacity:0.5;

in Mozilla :)

Zachery 05-01-2004 04:43 PM

another template edit turned hack :)

Fluous 05-01-2004 05:08 PM

So is this all updated to work with mozilla now?

Boofo 05-01-2004 05:47 PM

Quote:

Originally Posted by MrNase
filter:alpha(opacity=50);

becomes

-moz-opacity:0.5;

in Mozilla :)

Do we change it or add that? I run IE.

Boofo 05-01-2004 05:49 PM

Quote:

Originally Posted by Diva
So... did you? ;)

Check out my memberlist. While you're at it, check out the Edit Avatar and let me know what you think. ;)

Boofo 05-01-2004 05:51 PM

Quote:

Originally Posted by Zachery
another template edit turned hack :)

Ok, Zach, buddy, pm me the code that will work for the postbit and the memberlist, if you would. I'd like to see it. ;)

VBDev 05-01-2004 06:04 PM

Boofo, I'll dot if for memberlist I said ;)

I'll check for Mozilla too with an automatic detection according to user's browser

Boofo 05-01-2004 06:53 PM

Quote:

Originally Posted by VBDev
Boofo, I'll dot if for memberlist I said ;)

I'll check for Mozilla too with an automatic detection according to user's browser

Already got the memberlist done. Took me all of 2 minutes after I left that message. Your code was excellent and easy to adapt for the memberlist. ;)

I will be interested in the mozilla and browser detection part though. ;)

VBDev 05-01-2004 07:00 PM

Yes, with the code it's not hard ;)
But not easy for everybody, to place it at a good place ...

I go out now, I do it this night

Pseudomizer 05-01-2004 07:02 PM

Please tell us when you have finished this for all browsers. My members are using IE, Mozilla and Opera. As soon as you can provide this hack for all these browser i will be the first one to install it. Good job so far. Respect.

Cheers,

Boofo 05-01-2004 07:03 PM

All I did was place it below the same code you did for the postbit. And it worked the first time. ;)

VBDev 05-02-2004 01:22 AM

Ok, now avaible in memberlist and with browser detection :)

If you have already installed this hack, just replace the code in functions_showthread.php with the new one

For memberlist, add code for the memberlist.php and the modification in memberlist template

Fluous 05-02-2004 03:12 AM

When I search for avatarurl in my default memberlist template it cant even find it. Any idea?

Boofo 05-02-2004 03:13 AM

You need to sure for avatar in the memberlistbit template.

Fluous 05-02-2004 03:15 AM

Whats that mean? And now I just checked to see what it would look like in a post, and theres a clickable < next to the avatar online or off :S

edit: nevermind, I got the < out. Now the memberlist :S

Also, why I am here, is there a way to take off those stupid little online things next to a username? Whenever you add glow from the store, it makes a square around the button and makes it ugly

Boofo 05-02-2004 03:40 AM

Just look for $onlinestatus.

Fluous 05-02-2004 04:02 AM

K, i just wiped out the whole postbit_online_status and the thing doesnt show up by the names which is good. Now for the memberlist.

Pseudomizer 05-02-2004 11:20 AM

Hi @LL,

this is a nice hack but i have 2 problems with it. The first is obvious:

- Opera does not care about these settings. The pics are fully highlighted even if the user if of. Any solution for this ?

- When i click in my NAVBAR on memberlist i have to wait for about 10 seconds until i receive the first page. Every subpage runs like hell but not when i am in my forum home and when i click on memberlist. If i remove your hack my memberlist runs without any problems. Too many queries ?

By the way: I am not using Gold. I am using standard 3.0.0 and due to this i had the edit my memberlist_resultsbit. I could not find your requested replace code in any other template.

Cheers,

msimplay 05-02-2004 12:16 PM

could u make this for member info aswell please ?

member appears online even when they have set themselves to invisable

VBDev 05-02-2004 07:18 PM

@Pseudomizer : for the problem of loading of your memberlist.php, I don't think it comes from the hack. It adds no queries, the code to add is really simple and can't block the load for a so long time ... perhaps it comes from your browser (opera) which can't interpret the -moz- style setting the first time

Does someone know if filter:alpha(opacity=X) works with Opera, if yes, I have only a small mod to do in my code ;)

For the memberlist_resultsbit, you're right, I commit a mistake, the mod has to be done in this template

@msimplay : hurm, yes I'll look for it in memberinfo

Pseudomizer 05-02-2004 07:27 PM

Quote:

Originally Posted by VBDev
@Pseudomizer : for the problem of loading of your memberlist.php, I don't think it comes from the hack. It adds no queries, the code to add is really simple and can't block the load for a so long time ... perhaps it comes from your browser (opera) which can't interpret the -moz- style setting the first time

Does someone know if filter:alpha(opacity=X) works with Opera, if yes, I have only a small mod to do in my code ;)

For the memberlist_resultsbit, you're right, I commit a mistake, the mod has to be done in this template

@msimplay : hurm, yes I'll look for it in memberinfo

Hi VBDev,

it is not a problem of queries. But it seems to be a problem with your hack. When i remove your hack all works fine with IE and Opera in terms of performance. When i implement your hack the IE seems to hang for 10 seconds. The opera does not care about your hack and due to this it shows up immediately without any delay.

I know it sounds strange but this is how it occurs. If we can not find a solution for this problem i will not go for this hack.

But good job and i like this hack and i would love to have it.

Cheers,

PranK 05-03-2004 12:17 PM

bloody beautiful!!

thank you!

/me clicks install

Boofo 05-03-2004 12:41 PM

Quote:

Originally Posted by Pseudomizer
Hi VBDev,

it is not a problem of queries. But it seems to be a problem with your hack. When i remove your hack all works fine with IE and Opera in terms of performance. When i implement your hack the IE seems to hang for 10 seconds. The opera does not care about your hack and due to this it shows up immediately without any delay.

I know it sounds strange but this is how it occurs. If we can not find a solution for this problem i will not go for this hack.

But good job and i like this hack and i would love to have it.

Cheers,

I use IE and have this installed on my site and there is no difference whatsoever in the speed the page loads now than there was before I installed the hack. You must have another hack installed or something else that doesn't like to work with this hack. ;)

Check out the memberlist on my site and you will see what I mean.

Pseudomizer 05-04-2004 12:07 AM

Quote:

Originally Posted by Boofo
I use IE and have this installed on my site and there is no difference whatsoever in the speed the page loads now than there was before I installed the hack. You must have another hack installed or something else that doesn't like to work with this hack. ;)

Check out the memberlist on my site and you will see what I mean.

Hi Boofo,

you are right. I just checked again. There was an incompatibility of javascripts which did not work in combination with this hack. It was the double-click ( you know which one i am talking about ), the smilie insert code from vb3 and this overlay. I should not load every javascript into the header. Only when i need it. ;-)

Regardless of this: Please provide this function for Opera and i will love it.

Cheers,

Boofo 05-04-2004 12:29 AM

I use the double-click and the avatar opacity just fine together. The douible-click doesn't use a javascript in the header. I guess I'm confused here. :ermm:

Zachery 05-04-2004 12:41 AM

Quote:

Originally Posted by Boofo
Ok, Zach, buddy, pm me the code that will work for the postbit and the memberlist, if you would. I'd like to see it. ;)

Its not all that hard, altho it does require a phpinclude statment :)

Boofo 05-04-2004 12:50 AM

Quote:

Originally Posted by Zachery
Its not all that hard, altho it does require a phpinclude statment :)

The please pm it to me. I want to see how this would be done. And how to do the conditional for the different browsers. ;)

Zachery 05-04-2004 01:48 AM

Quote:

Originally Posted by Boofo
The please pm it to me. I want to see how this would be done. And how to do the conditional for the different browsers. ;)

Ill start a thread on vBT about it :)

Boofo 05-04-2004 02:29 AM

Quote:

Originally Posted by Zachery
Ill start a thread on vBT about it :)

That's ok, don't go to any trouble. I don't get over there very often anymore. ;)

Zachery 05-04-2004 02:31 AM

Quote:

Originally Posted by Boofo
That's ok, don't go to any trouble. I don't get over there very often anymore. ;)

psh, ive already made one, however im not sure if i can pull off the meberlistbit

Brad 05-04-2004 02:33 AM

Quote:

Originally Posted by Boofo
The please pm it to me. I want to see how this would be done. And how to do the conditional for the different browsers. ;)

You might want to take a look at this thread, saves tons of time for me :) :

http://www.vbulletintemplates.com/mo...ead.php?t=5457

Boofo 05-04-2004 02:40 AM

Quote:

Originally Posted by Brad.loo
You might want to take a look at this thread, saves tons of time for me :) :

http://www.vbulletintemplates.com/mo...ead.php?t=5457

LOL Thanks, Brad. I have the same code in an area on my site, too. But what I woudl like to know is how to do all of the different opacity for all of the different browsers. Any ideas on how to find those out? ;)

Zachery 05-04-2004 02:41 AM

Quote:

Originally Posted by Boofo
LOL Thanks, Brad. I have the same code in an area on my site, too. But what I woudl like to know is how to do all of the different opacity for all of the different browsers. Any ideas on how to find those out? ;)

theres only two main ones, the IE and the Moz, and the moz should work on at LEAST Firefox and Mozilla


All times are GMT. The time now is 05:02 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.01375 seconds
  • Memory Usage 1,827KB
  • 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
  • (18)bbcode_quote_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
  • (40)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