Version: 1.00, by LOD-squa
Developer Last Online: Mar 2008
Version: 2.2.x
Rating:
Released: 10-25-2002
Last Update: Never
Installs: 47
No support by the author.
Well I noticed that there wasn't a hack for online.php to have colors(or I didn't look right) Well I decided to make it so other people that have the who's online on index.php with colors so it will match with the online.php If you install this hack please click install.
This is very similar to a hack that I've put in place on the boards that I help run. If I may be so bold, here's a suggestion that makes it easier to configure the colors in the admin cp. If you'd like to make it so that you can go into fonts/colors/etc for your styles and edit the colors from there (in the same manner that main colors and calendar colors are set), try this out:
// *** calendar colors ************************************************
maketableheader("Calendar Colors","calendarcolors");
makestyleeditor("calbgcolor","Background Color",1);
makestyleeditor("caltodaycolor","Today Background Color",1);
makestyleeditor("caldaycolor","Calendar Date Font Color",1);
makestyleeditor("calbirthdaycolor","Birthday Font Color",1);
makestyleeditor("calprivatecolor","Private Event Font Color",1);
makestyleeditor("calpubliccolor","Public Event Font Color",1);
restarttable();
just after that add
PHP Code:
// *** who's online colors ************************************************
maketableheader("Who's Online Colors","whoonlinecolors");
makestyleeditor("admincolor","Administrator Color",1);
makestyleeditor("supermodcolor","Super Moderator Color",1);
makestyleeditor("modcolor","Moderator Color",1);
makestyleeditor("membercolor","Regular Member Color",1);
restarttable();
Now you (and your admins) don't have to fiddle with the replacements to set the who's online colors
It also helps to insert default values for these replacements into the replacement table. That way when a new style is created, you'll have some standard colors for the who's online ready to go. I've always done this by just running the SQL statements myself in phpMyAdmin. Anything with a replacementsetid of -1 is considered a default value and will be used if the replacementset you're using doesn't have a value set for that replacement, so something like
[sql]INSERT INTO `replacement` (replacementsetid,findword,replaceword) VALUES("-1","{admincolor}","#FF0000");
INSERT INTO `replacement` (replacementsetid,findword,replaceword) VALUES("-1","{supermodcolor}","#FF9900");
INSERT INTO `replacement` (replacementsetid,findword,replaceword) VALUES("-1","{modcolor}","#FFFF00");
INSERT INTO `replacement` (replacementsetid,findword,replaceword) VALUES("-1","{membercolor}","#000000");[/sql]with the hex values for the colors you want in place of the ones I used. (Red, Orange, Yellow, Black). There's probably a way to do that all in one SQL statement but my SQL knowledge is somewhat lacking so I use four