PDA

View Full Version : ColoredOnlineUserHack


Afterburner
11 Jul 2001, 14:07
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
11 Jul 2001, 14:36
Is it possible to see an example of this so we can get a better idea of what it is/looks like? Thanks.

Afterburner
11 Jul 2001, 15:52
yes of course

go to my homepage:

www.the-afterburner.com

GameCrash
11 Jul 2001, 16:29
Please post releases in the forum 'Releases: Version 2.x' ;)

Afterburner
11 Jul 2001, 16:37
@ Ed Sullivan, wluke

please move the topic to the correct forum

Sarge
11 Jul 2001, 17:36
worked great!

Afterburner
11 Jul 2001, 17:51
@ Sarge

wow 110393 posts in your board

DeusDeorum
11 Jul 2001, 21:22
Netter Hack :) Hab ihn bei meinem (http://www.dd-board.de/forum/index.php) Board gleich mal einbegaut!

maverick1236
12 Jul 2001, 00:58
how do you know what a certain usergroups-usergroup ID is?

Steve Machol
12 Jul 2001, 01:05
Originally posted by Maverick1236
how do you know what a certain usergroups-usergroup ID is?

If you go into:

Admin CP -> User Groups and Permissions -> Modify

...and place your cursor over 'edit' you'll see the userid in the link window.

maverick1236
12 Jul 2001, 01:26
You just saved me a lot of work!!
TX for the swift response!!!!!!!!

TWTCommish
12 Jul 2001, 05:52
This can be made more efficient. Example: change this 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...


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
12 Jul 2001, 05:55
Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed :(

Afterburner
12 Jul 2001, 09:27
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
12 Jul 2001, 09:37
he means how do you get your cells to highlight when the cursor is over them. Prob DHTML, right?

Afterburner
12 Jul 2001, 10:43
you have do mofify e.g.

Forum Display Templates
--> forumdisplay_forumbit_level1_post

to:


<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:



<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,MoreTV, Pubs, PCTV</b></font></a>
<br><font face="verdana,arial,helvetica" size="1" >Hier könnt ihr alles posten was mit FreeTV, MoreTV, Pubs 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:


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


below the <td> tag this:



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


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


</layer></ilayer>


thats all
replace:

#AEDEFF
#EEEEEE

with your own color

I hope I don´t forgot anything

Chin San
12 Jul 2001, 14:24
ya...cool...:D :D :D

rmusic
12 Jul 2001, 14:43
Originally posted by Afterburner
you have do mofify e.g.

Forum Display Templates
--> forumdisplay_forumbit_level1_post

to:


<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:



<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,MoreTV, Pubs, PCTV</b></font></a>
<br><font face="verdana,arial,helvetica" size="1" >Hier könnt ihr alles posten was mit FreeTV, MoreTV, Pubs 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:


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


below the <td> tag this:



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


infront of the </td> tag insert this 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
12 Jul 2001, 15:34
Hey, Afterburner, es scheint dass mehr und mehr EX-UB2K Benutzer zu vBulletin wechseln ;). Bin seit 2 Monaten auch hier :).

ThomasP
13 Jul 2001, 10:07
Coole Sache, das :D
Weiter so,
-Tom

Pie'oh'pah
23 Jul 2001, 19:14
Yo danke für den netten hack :)

SirSteve
10 Aug 2001, 14:36
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
15 Aug 2001, 13:12
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
15 Aug 2001, 19:07
Looking forward to it!

Afterburner
15 Aug 2001, 20:19
Maybe it lasts some days because I havn´t enough time at the moment.

philliplewis
19 Aug 2001, 20:42
All i say is your site is popup hell.

Afterburner
19 Aug 2001, 21:11
Originally posted by philliplewis
All i say is your site is popup hell.

Sorry I am from Germany, what do you mean ?

almighty one
19 Aug 2001, 21:59
he means all the pop up windows that ya get when ya visit and leave ;)

Afterburner
21 Aug 2001, 20:04
just for info:
this hack works also with vB 2.0.3

SirSteve
22 Aug 2001, 19:14
So when is that next version going to be available?

:)

Afterburner
23 Aug 2001, 06:34
I dont know
I 'm currently working on the PasswordHack

Sarge
08 Sep 2001, 06:22
I want to make my mod usergroup get < i > italicised
Can this be done?
Thanks
Sarge

Afterburner
08 Sep 2001, 09:24
yes you can do this, look for:


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

and replace it with:

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

2 times in the code

SirSteve
08 Sep 2001, 13:04
So how about making the groups not show up unless someone from that group is actually online?

Sarge
08 Sep 2001, 18:14
thanks dude!

heero koi
09 Sep 2001, 03:58
to be honest with you I have not read the whole thing, but it would be better to get an example in english.

Dalius
19 Sep 2001, 17:33
Works for me!
Thanks

SirSteve
19 Sep 2001, 18:49
Originally posted by SirSteve
So how about making the groups not show up unless someone from that group is actually online?

Anyone? Anyone?

Dunny
22 Sep 2001, 13:39
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
02 Oct 2001, 14:26
This is really cool. I installed the coloredOnlineUserHack. How can I have the same colors for the names that appear in Last Post also?

TheComputerGuy
02 Oct 2001, 16:11
Nicely done...thanks for the hack

jamie
27 Oct 2001, 11:59
arrggggg!


took just too long to find this thread, damn misuse of the Englsh language! ;)

Afterburner
27 Oct 2001, 12:26
Originally posted by Jamie
arrggggg!


took just too long to find this thread, damn misuse of the Englsh language! ;)

what do you mean ?

jamie
27 Oct 2001, 18:51
Americanization, Coloured is the correct spelling.:p

Afterburner
27 Oct 2001, 19:13
sorry next time I use a German title *g*

jamie
28 Oct 2001, 12:37
tehehe! now i think i should haven kept it shut, German would indeed add a whole new level of difficulty in finding this thread;)

VolsReport
05 Dec 2001, 20:19
I did that but there was an error saying "Parse error: parse error in /home/bryan/public_html/emceevisionz/index.php on line 345."
How can i fix it? I need help...Or can u post ur index.php text here?