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)
-   -   ColoredOnlineUserHack (https://vborg.vbsupport.ru/showthread.php?t=22539)

Afterburner 07-10-2001 10:00 PM

Deutsch:
Ich bin zur?ck mit meinem ersten Hack f?rs VB (in der Vergangenheit habe ich nur die Hacks f?rs UB2K geschrieben)
Dieser Hack zeigt die Usernamen von Administratoren (ID:6) Supermoderatoren (ID:5) Moderatoren (ID:7) und registrierten Membern (ID:2) in der Onlineliste farbig an.

English:
I am back with my first VB Hack. (I wrote only hacks for the UB2K in the past )
If you use this hack you have colored usernames of Administrators (ID:6) Supermoderators (ID:5) Moderators (ID:7) and Members (ID:2) in your Onlinelist.

RobAC 07-11-2001 01:36 PM

Is it possible to see an example of this so we can get a better idea of what it is/looks like? Thanks.

Afterburner 07-11-2001 02:52 PM

yes of course

go to my homepage:

www.the-afterburner.com

GameCrash 07-11-2001 03:29 PM

Please post releases in the forum 'Releases: Version 2.x' ;)

Afterburner 07-11-2001 03:37 PM

@ Ed Sullivan, wluke

please move the topic to the correct forum

Sarge 07-11-2001 04:36 PM

worked great!

Afterburner 07-11-2001 04:51 PM

@ Sarge

wow 110393 posts in your board

DeusDeorum 07-11-2001 08:22 PM

Netter Hack :) Hab ihn bei meinem Board gleich mal einbegaut!

maverick1236 07-11-2001 11:58 PM

how do you know what a certain usergroups-usergroup ID is?

Steve Machol 07-12-2001 12:05 AM

[QUOTE]Originally posted by Maverick1236
how do you know what a certain usergroups-usergroup ID is?

maverick1236 07-12-2001 12:26 AM

You just saved me a lot of work!!
TX for the swift response!!!!!!!!

TWTCommish 07-12-2001 04:52 AM

This can be made more efficient. Example: change this code...

Code:

if ($farbe == 2 ) {
        $username = "<font color=blue>".$username."</font>"; // Color for Member
 }
 if ($farbe == 5 ) {
        $username = "<font color=darkred>".$username."</font>"; // Color for Supermoderator
 }
 if ($farbe == 6 ) {
        $username = "<font color=red>".$username."</font>"; // Color for Administrator
 }
 if ($farbe == 7 ) {
        $username = "<font color=green>".$username."</font>"; // Color for Moderator
 }

...into this...

Code:

  switch ($farbe) {
    case 2:
      $color = "blue";
      break;
    case 5:
      $color = "darkred";
      break;
    case 6:
      $color = "red";
      break;
    case 7:
      $color = "green";
      break;
  }

  $username = "<font color=\"$color\">$username</font>";

I didn't look at the code in significant detail, but I think this can be used in both instances...both times you use that if/else code above, that is. At the very least, you can put it in a function to save some space. :)

Rune1027 07-12-2001 04:55 AM

Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed :(

Afterburner 07-12-2001 08:27 AM

Quote:

Originally posted by Rune1027
Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed :(
what do you mean with hypercells ?

mojotim 07-12-2001 08:37 AM

he means how do you get your cells to highlight when the cursor is over them. Prob DHTML, right?

Afterburner 07-12-2001 09:43 AM

you have do mofify e.g.

Forum Display Templates
--> forumdisplay_forumbit_level1_post

to:

PHP Code:

<tr align="center">
    <
td bgcolor="{firstaltcolor}" align="left" valign="top" colspan="2">
    <
table cellpadding="0" cellspacing="0" border="0">
    <
tr>
        <
td valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
        <
td><img src="images/clear.gif" width="9" height="1" alt=""></td>
        <
td><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
        <
smallfont>$forum[description]</smallfont></td>
    </
tr>
    </
table>
    </
td>
    <
td bgcolor="{secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="{secondaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
    <
td bgcolor="{firstaltcolor}"><smallfont>$forum[moderators]</smallfont></td>
</
tr

that means the table looks like:

PHP Code:


    
<td bgcolor="#F1F1F1" align="left" onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"><ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"><a href="forumdisplay.php?s=&forumid=4"><font face="verdana, arial, helvetica" size="2" ><b>FreeTV,MoreTVPubsPCTV</b></font></a>
    <
br><font face="verdana,arial,helvetica" size="1" >Hier k?nnt ihr alles posten was mit FreeTVMoreTVPubs und PCTV zu tun hat</font></layer></ilayer></td

If the HTML Site of your board is generated


the important code
in the <td> tag you have to insert:

PHP Code:

 onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"

below the <td> tag this:

PHP Code:


<ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"

infront of the </td> tag insert this code:

PHP Code:

</layer></ilayer

thats all
replace:

#AEDEFF
#EEEEEE

with your own color

I hope I don?t forgot anything

Chin San 07-12-2001 01:24 PM

ya...cool...:D :D :D

rmusic 07-12-2001 01:43 PM

Quote:

Originally posted by Afterburner
you have do mofify e.g.

Forum Display Templates
--> forumdisplay_forumbit_level1_post

to:

PHP Code:

<tr align="center">
    <
td bgcolor="#F1F1F1" align="left" valign="top" colspan="2">
    <
table cellpadding="0" cellspacing="0" border="0">
    <
tr>
        <
td valign="top"><img src="images/$forum[onoff].gif" border="0" alt=""></td>
        <
td><img src="images/clear.gif" width="9" height="1" alt=""></td>
        <
td><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
        <
smallfont>$forum[description]</smallfont></td>
    </
tr>
    </
table>
    </
td>
    <
td bgcolor="#DFDFDF"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="#F1F1F1"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="#DFDFDF"><smallfont>$forum[lastpostinfo]</smallfont></td>
    <
td bgcolor="#F1F1F1"><smallfont>$forum[moderators]</smallfont></td>
</
tr

that means the table looks like:

PHP Code:


    
<td bgcolor="#F1F1F1" align="left" onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"><ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"><a href="forumdisplay.php?s=&forumid=4"><font face="verdana, arial, helvetica" size="2" ><b>FreeTV,MoreTVPubsPCTV</b></font></a>
    <
br><font face="verdana,arial,helvetica" size="1" >Hier k?nnt ihr alles posten was mit FreeTVMoreTVPubs und PCTV zu tun hat</font></layer></ilayer></td

If the HTML Site of your board is generated


the important code
in the <td> tag you have to insert:

PHP Code:

 onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"

below the <td> tag this:

PHP Code:


<ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"

infront of the </td> tag insert this code:

PHP Code:

</layer></ilayer

thats all
replace:

#AEDEFF
#EEEEEE

with your own color

I hope I don?t forgot anything


forgive me but i dont understand this
because i would also loike to have this if you dont mind

orca 07-12-2001 02:34 PM

Hey, Afterburner, es scheint dass mehr und mehr EX-UB2K Benutzer zu vBulletin wechseln ;). Bin seit 2 Monaten auch hier :).

ThomasP 07-13-2001 09:07 AM

Coole Sache, das :D
Weiter so,
-Tom

Pie'oh'pah 07-23-2001 06:14 PM

Yo danke f?r den netten hack :)

SirSteve 08-10-2001 01:36 PM

It would be nice if the forumshome page did not display:

• Administrator • Supermoderator • Moderator
• Member

unless an actual admin, super mod, mod, or member are actual online...

Afterburner 08-15-2001 12:12 PM

Quote:

Originally posted by SirSteve
It would be nice if the forumshome page did not display:

? Administrator ? Supermoderator ? Moderator
? Member

unless an actual admin, super mod, mod, or member are actual online...

OK I will insert this feature in the next version

SirSteve 08-15-2001 06:07 PM

Looking forward to it!

Afterburner 08-15-2001 07:19 PM

Maybe it lasts some days because I havn´t enough time at the moment.

philliplewis 08-19-2001 07:42 PM

All i say is your site is popup hell.

Afterburner 08-19-2001 08:11 PM

Quote:

Originally posted by philliplewis
All i say is your site is popup hell.
Sorry I am from Germany, what do you mean ?

almighty one 08-19-2001 08:59 PM

he means all the pop up windows that ya get when ya visit and leave ;)

Afterburner 08-21-2001 07:04 PM

just for info:
this hack works also with vB 2.0.3

SirSteve 08-22-2001 06:14 PM

So when is that next version going to be available?

:)

Afterburner 08-23-2001 05:34 AM

I dont know
I 'm currently working on the PasswordHack

Sarge 09-08-2001 05:22 AM

I want to make my mod usergroup get < i > italicised
Can this be done?
Thanks
Sarge

Afterburner 09-08-2001 08:24 AM

yes you can do this, look for:


PHP Code:

 $username "<font color=green>".$username."</font>"// Color for Moderator 

and replace it with:

PHP Code:

 $username "<font color=green><i>".$username."</i></font>"// Color for Moderator 

2 times in the code

SirSteve 09-08-2001 12:04 PM

So how about making the groups not show up unless someone from that group is actually online?

Sarge 09-08-2001 05:14 PM

thanks dude!

heero koi 09-09-2001 02:58 AM

to be honest with you I have not read the whole thing, but it would be better to get an example in english.

Dalius 09-19-2001 04:33 PM

Works for me!
Thanks

SirSteve 09-19-2001 05:49 PM

Quote:

Originally posted by SirSteve
So how about making the groups not show up unless someone from that group is actually online?
Anyone? Anyone?

Dunny 09-22-2001 12:39 PM

I had a problem, the online users make my page stretch as they wont go onto new lines, can anyone give me a quick fix for this?

cheers

hacker 10-02-2001 01:26 PM

This is really cool. I installed the coloredOnlineUserHack. How can I have the same colors for the names that appear in Last Post also?


All times are GMT. The time now is 02:45 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.01478 seconds
  • Memory Usage 1,866KB
  • 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
  • (2)bbcode_code_printable
  • (12)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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