Roster of players online : redone.

Applications/Tools written to make running DarkStar easier for the rest of us.
Post Reply
whitevamp
Posts: 52
Joined: Sun Dec 09, 2012 12:19 pm

Roster of players online : redone.

Post by whitevamp » Mon Mar 04, 2013 3:50 pm

first off thx to whasf for posting this little tool. http://forums.dspt.info/viewtopic.php?f=16&t=368
and credit to whom ever created it.
i have redone the player roster so it now has icons for the gm's and all players have a sword icon next to there nick's, also i have added css styling to it.
if you dont want the sword icons they can be removed by edititing line 50 of pagebuild2.js or line 49 of pagebuild.js.
change this line

Code: Select all

playerRows += '  <img src="icons/Campaign-icon.png" alt="SWORD" title="SWORD">' + playerData[i].player + '</img></td>';
to

Code: Select all

playerRows += ' playerData[i].player + '</td>';
Be sure to edit include\config.inc with your database login information so it can connect. If your DB is on a different machine than this is running on then you need to edit getPlayerData.php and change the hostname at the top of that script (you'll see it).

also be sure to add in your logo to line 18 of roster.php, and add it to the images folder.
it will look like this.

Code: Select all

<image src="images/logo.png" alt="DSP Logo" title="DSP Logo">
Image

EDIT :
found a mess-up in the GM icons.
sorry to all that have down loaded this and had issues with the icons.
Attachments
roster.rar
found a mess-up in the icons.
its fixed now.
(1.62 MiB) Downloaded 275 times
Last edited by whitevamp on Tue Mar 19, 2013 3:02 am, edited 1 time in total.

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Roster of players online : redone.

Post by PrBlahBlahtson » Mon Mar 04, 2013 6:13 pm

Something I've noticed with whasf's roster is that GM + Linkshell = no GM flag. Did you encounter that issue as well?

whitevamp
Posts: 52
Joined: Sun Dec 09, 2012 12:19 pm

Re: Roster of players online : redone.

Post by whitevamp » Mon Mar 04, 2013 6:30 pm

PrBlahBlahtson wrote:Something I've noticed with whasf's roster is that GM + Linkshell = no GM flag. Did you encounter that issue as well?
yes i did , and then with a lot of research( im not verry good with java.) i added in a hex code check for the gm flag.

Code: Select all

if (playerData[i].nameflags & 0x0400000) //GM
and from my testing it fixed the issue.

xoleras20099
Posts: 6
Joined: Tue Jul 31, 2012 10:12 am

Re: Roster of players online : redone.

Post by xoleras20099 » Tue Mar 05, 2013 1:48 am

Way to yoink the appearance from a certain other server.
[GM]Sabriel of the SinisterSkies Private Server.

Image

whitevamp
Posts: 52
Joined: Sun Dec 09, 2012 12:19 pm

Re: Roster of players online : redone.

Post by whitevamp » Tue Mar 05, 2013 10:33 am

xoleras20099 wrote:Way to yoink the appearance from a certain other server.
i created this for sinisterskies.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Roster of players online : redone.

Post by whasf » Tue Mar 05, 2013 12:01 pm

Yeah I never did any math on the nameflag, so if youi had bazzar up or a linkshell then my code would fail.


Looks great, thanks!
-- Whasf

Strikers
Posts: 4
Joined: Tue Aug 07, 2012 10:53 pm

Re: Roster of players online : redone.

Post by Strikers » Fri May 31, 2013 9:55 pm

It looks amazing, can I just suggest one little thing? Can you change the font effects? It's kind of hard to read.

whitevamp
Posts: 52
Joined: Sun Dec 09, 2012 12:19 pm

Re: Roster of players online : redone.

Post by whitevamp » Sun Jun 02, 2013 12:51 am

Strikers wrote:It looks amazing, can I just suggest one little thing? Can you change the font effects? It's kind of hard to read.
i created it so that all the type font is easily changeable.
you can find in the folder a file called roster.css and inside it look for font-family: and change it to a different font-family
heres a list of the different fonts. http://cssfontstack.com/
also there's is 5 different sections for the font-family.
HTML, BODY section is for the text out side of the table where the players are located at. ( not really used. )
h1, h2 , and h3 are for the header sections EG: " who's on line. "
and Finley there is the TABLE section where all the players are listed at.

so if i wanted to change the font-famly for the table section, to say Courier New
the way it is now.
font-family: Arial;
the way it is now that i changed it.
font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;

Post Reply