vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Colored Online Users Hack (https://vborg.vbsupport.ru/showthread.php?t=32149)

Zalbard 01-03-2003 05:07 PM

Edit: I put a brea kin on accident, sorry! Never mind this post please!

digitalJE5U5 01-28-2003 04:27 AM

Its a nice idea man. I really appreciate the effort, but I just wish there was an easier way to change the colors. Sucks having to edit index.php and reup it every time you try and tweak the colors to match skin.

/DJ

Blue Moose Aaron 01-30-2003 12:02 AM

I have different styles on my board and on one the active users looks good but the other it's really hard to read. How can I modify it for both styles?

digitalJE5U5 01-30-2003 12:32 PM

You can't. If the coding was done in templates, yes. But the colors are hard-coded into the php.
:(

Blue Moose Aaron 01-30-2003 08:09 PM

Son of a...there has to be a way to use CSS

Graphics 02-10-2003 05:04 AM

This hack works on 2.2.9 ;)
Thnx for the great hack :)

Mr. Brian 02-22-2003 01:28 PM

It works fine with all other colured groups, but just encountered problems with my S.Mod as it shown in green instead of darkred.

Hope someone can help.

Thanx

timo_copts 03-20-2003 10:12 AM

Quote:

11-05-01 at 11:47 AM Afterburner said this in Post #1
Code:

With this hack you have colored usernames of: - Administratoren (ID:6)
                                              - Supermoderatoren (ID:5)
                                              - Moderatoren (ID:7) und
                                              - registred Members (ID:2)
in your Onlinelist on the mainpage.
You have to enable "Highlight Admin" in your CP, if not all is shown like the registrated members (blue)

Orginal settings of this hack:

Administrator:  "red" 
Supermoderator:  "darkred"
Moderator:      "green"
Member:          "blue"

You can change the color in the Index.php(3) (there is a remark)



it will work with vb 2.3 ????

timo_copts 03-20-2003 04:30 PM

i do it in 2.30
all work good but Moderator its show blue names?????? :( :(
what errer ??in it
Quote:

if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=green>$loggedin[username]</font></b>"; // Color for Mod
} else {
$username = "<font color=blue>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";" );
}

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=green>$loggedin[username]</font></b>"; // Color for Mod
} else {
$username = "<font color=blue>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}

BlackDeath 03-22-2003 09:35 PM

i don't know if this has been said yet, but the color you have for mods is only when that person is a local mod and not part of the user group mod. below is a change i made to it so both mods of specific forums and user group mods show the same color. this will also explain how to add different user groups if you look at the original code and compare it to mine.

if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=lightblue>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=yellow>$loggedin[username]</font></b>"; // Color for Mod Local
} else if (($loggedin['usergroupid'] == 7) and $highlightadmin) {
$username = "<b><font color=purple>$loggedin[username]</font></b>"; // Color for Mod Group
} else {
$username = "<font color=lightgrey>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
// Afterburners Colored OnlineUserHack End

timo_copts 03-23-2003 04:21 AM

thank u.... i fixed it

magna 03-25-2003 05:55 PM

Nice Job

Can this be modified to be used with "Number of Active users today" It would be very nice there because there are usually many more names to decifer.

Thanks

magna 03-26-2003 06:27 AM

Also can we make the "Currently active users" visable to admins only?

Thanks

bgray 04-20-2003 04:12 AM

I'd love to get this hack working but for some reason when I install it ONlY the 1st and last member on my online users list show up.

It doesn't matter how many are online only the 1st and last are visible when I have this installed.

Anyone know why?

xs1 05-04-2003 06:48 AM

plz iam newbie

i installed this hack but how do i give color to diffrent usergroup

ex: V.I.P

if i add a member to vip group and if they come online it dosend show them as in V.I.P color it shows as normal member

where should i insert the group id ?


plz someone explain me how to do it ! :(

Killa2002 06-18-2003 02:53 AM

hmm, i'm really hvaing a problem, when i installed this hack it tells me i am getting a parse error on like XXX, but that line is ?>

how can that be so?

using 2.2.6

iCE[F]EVER 06-24-2003 03:33 AM

Hmm
this hack is giving me troubles on 2.2.8
I installed it all right.. but when i have more than one admin on at once.. it doesnt have the same colour..
im not sure if it will be on any other user groups..

Pyromate 07-18-2003 03:49 PM

thx installed right now !! :)

The Realist 03-29-2004 03:54 PM

Now this is doing my head in. I have setup this and it works 99%. I have added a new usergroup and also added the hack to my who has been online today and it works in that fine (see pic a)

But for some reason this dont work.

My new usergroup VIP works in the bottom online colour but not in the top?

Any ideas why?

http://www.tech-tronix.com/pic1.JPG

timo_copts 03-31-2004 06:35 PM

it work with vb 3.0.0.0 gold ?

FlyBoy73 04-22-2004 03:06 PM

Has a new version been made available for vb3 gold+?

ajk 04-29-2004 08:52 PM

My moderators requested this for my board.

Can you convert this to work with 3.01?

thank you!

timo_copts 05-01-2004 06:51 PM

Quote:

Originally Posted by ajk
My moderators requested this for my board.

Can you convert this to work with 3.01?

thank you!

we wait to new ver to vb 3.0.0.1

ajk 05-01-2004 09:05 PM

Quote:

Originally Posted by timo_copts
we wait to new ver to vb 3.0.0.1

Thanks, I got a work around in a user group template in the meantime.

timo_copts 05-22-2004 05:55 AM

Quote:

Originally Posted by ajk
Thanks, I got a work around in a user group template in the meantime.

thanks

Capt. GannA 06-02-2004 01:49 PM

Quote:

Originally Posted by Afterburner
to fix it use the backup of the index.php follow the instructions in the readme correctly, remember this hack is only for version 2.2.0

you mean it wont work on vb 3.0.1? :(

Sylvus 06-02-2004 02:32 PM

Obviously not, considering you're in the 2.x hack forum :)

Syl...

Logan70 07-22-2004 03:08 PM

So, is there sometihng that will work for v.3?

Behrooz_Ice 03-26-2005 03:38 PM

hello all
i want this hack code < Colored Online Users Hack > for vbulletin 3.0.x like 3.0.7
please give me this hack for this version of vbulletin. thank you.

The Realist 03-26-2005 04:41 PM

3.0.7 already has this facility and does not need a hack at all. Go into the admin panel then usergroups and choose a usergroup you want coloured.

Then where it says Username HTML Markup enter the following:

1st box: <span style="color: xxxxxxx;">
2nd box: </span>

The xxxxxxx are hex codes for what ever colour you want and thats all it is, no hack needed.

Laters


Quote:

Originally Posted by Behrooz_Ice
hello all
i want this hack code < Colored Online Users Hack > for vbulletin 3.0.x like 3.0.7
please give me this hack for this version of vbulletin. thank you.


delilah429 04-05-2005 04:05 PM

I did this and it isn't working - do i take out the semi-colon ? quotes?

The Realist 04-05-2005 04:12 PM

Try in Username HTML Markup boxes:

1st box: <span style="color: #FF0000;">
2nd box: </span>

Or

1st box: <font style="color: #FF0000;">
2nd box: </font>

#FF0000 is red can use any colour you want.

Laters

delilah429 04-05-2005 04:31 PM

this is exactly what i typed in the User HTML Markup box:

<span style="color: FF3399";>

second box: </span>

didnt change

i tried

<font="color:FF3399;">

second box: </font>

didn't change

???

delilah429 04-05-2005 08:24 PM

figured it out - i was missing the # in front of the code for the color.... oops!

The Realist 04-05-2005 08:27 PM

The # is in my post :)

But glad its working.

womensden 04-05-2005 08:36 PM

hmm... I did this by simply going into the usercp --> usergroups --> and adding a color in the Username HTML markup. Simple as that.

Does this hack do something that doing this wouldn't?

ETA: I see someone else did the same. However, I didn't use "span" code. I just used font code, italics, bold, etc...

T_Montana 04-07-2005 02:32 PM

How would i make usernames bold with color.What would i type in he first box if say i wanted the username bold and red?

The Realist 04-07-2005 03:19 PM

Simple HTML

Sample in bold, italic using arial font (do it in Frontpage):

<font style="color: FF3399; font-weight:700; font-style:italic" face="Arial"> admin </font>

1st box: <font style="color: FF3399; font-weight:700; font-style:italic" face="Arial">

2nd box: </font>

Quote:

Originally Posted by T_Montana
How would i make usernames bold with color.What would i type in he first box if say i wanted the username bold and red?


womensden 04-07-2005 08:30 PM

you dont have to put all of that. Why not just put <font color="red"><b> and the closing tags in the second box (of course). It's that easy.


All times are GMT. The time now is 04:17 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.01283 seconds
  • Memory Usage 1,819KB
  • 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
  • (8)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
  • (39)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