PDA

View Full Version : ColoredOnlineUserHack


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 (http://www.dd-board.de/forum/index.php) 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...


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


<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
07-12-2001, 01:24 PM
ya...cool...:D :D :D

rmusic
07-12-2001, 01:43 PM
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
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
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
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:


$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
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
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?

TheComputerGuy
10-02-2001, 03:11 PM
Nicely done...thanks for the hack

jamie
10-27-2001, 10:59 AM
arrggggg!


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

Afterburner
10-27-2001, 11:26 AM
Originally posted by Jamie
arrggggg!


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

what do you mean ?

jamie
10-27-2001, 05:51 PM
Americanization, Coloured is the correct spelling.:p

Afterburner
10-27-2001, 06:13 PM
sorry next time I use a German title *g*

jamie
10-28-2001, 11:37 AM
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
12-05-2001, 07:19 PM
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?