Ventrilo Query Style Sheet

eLectrix
Compulsive poster
Compulsive poster
Posts: 73
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Dec 08, 2004 2:29 pm

Ventrilo Query Style Sheet

Post by eLectrix »

Troubles troubles...

What I need is a simple layout; I need the IP, the # of players on and then a list of who's on, not separated by channels. I'm close but here's where I'm at:

http://generalmayhem.ca/ventrilo_new.html

The client list is indented according to the channels and I can't seem to figure out why. Here's the style-sheet I'm using:

Code: Select all

/* used in <body> tag */
.body {
  background-color: #746E60;
  color: black;
}

/* if there are client slots free, the players is this color */
.clients-avail {
  color: #004000;
}

/* if there are no client slots free, the players is this color */
.clients-full {
  color: #3D0506;
}

/* the maximum number of clients allowed in the server */
.clients {
  color: black;
}

/* the table with information at the top */
.ktable {
  border: 0;
  border-color: #000025;
  border-style: solid;
  border-collapse: separate;
  background-color: #746E60;
  width: 150;
}

/* each row in the information table
   to make a row invisible, add "display: none" in one of these */
.row-name { display: none; }
.row-address { display: none; }
.row-ip { }
.row-players { display: none;}
.row-comment { display: none;}
.row-clients { }
.row-channels { display: none;}

/* each key in the information table under the map (on the left) */
.key-name { display: none; }

.key-address { display: none; }

.key-ip {
  padding-left: 1;
  font-family: Arial, Verdana; 
  font-size: 10; 
  color: black;
  background-color: #746E60;
}
.key-clients {
  padding-left: 1;
    font-family: Arial, Verdana; 
    font-size: 10; 
    color: black;
  background-color: #746E60;
}
.key-channels { display: none; }

.key-comment { display: none; }


/* each value in the information table under the map (on the right) */
.value-name { display: none; }

.value-address { display: none; }

.value-ip {
  padding-left: 1;
    background-color: #746E60;
    font-family: Arial, Verdana; 
    font-size: 10; 
  color: black;
}
.value-clients {
  padding-left: 1;
    background-color: #746E60;
    font-family: Arial, Verdana; 
    font-size: 10; 
  color: black;
}
.value-channels { display: none; }

.value-comment { display: none; }

/* the text before the list of channels and clients*/ 
.intro { display: none; }

/* the overall channel list */
.channel-list {
  font-family: Verdana, Arial; 
  font-size: 10; 
 }

/* the channel lines */
.channel-line { display: none; }

/* the text in the channel lines, for an unlocked server */
.channel-subline-unlocked { display: none; }

/* the text in the channel lines, for a locked server */
.channel-subline-locked { display: none; }

/* the word "Channel:" */
.channel-start {
  display: none;
}

/* the channel name */
.channel-name { display: none; }

/* the channel id */
.channel-id {
  display: none;
}

/* the client lines */
.client-line {
  font-family: Verdana, Arial; 
  font-size: 10; 
 }

/* the text in the client lines */
.client-subline {
  color: black;
}

/* the client's name */
.client-name { 
color: black;
}

/* the client's id, in () with ID: */
.client-id { 
  display: none; 
}

/* whether the client is an admin or not */
.client-admin { 
  display: none;
}

/* whether the client ping */
.client-ping { display: none;
}

/* client's time connected */
.client-time { display: none;
}
Any ideas?

Tx,

-e
Image
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

omg...friggin IE. It's even worse in IE. I show 6 but another 5 in a channel are not even shown. (I use Firefox).
Image
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

P.S. I'd like it to look like this:

IP: xxx.xxx.xxx.xxx:xxxx
Connected: 10/20

Someguy
Anotherguy
somegirl
etc
etc
etc
etc
etc

And that's it. The problem is it shows up like:

Server IP: xxx.xxx.xxx.xxx:xxxx
Connected Clients: 10/20

Someguy
Anotherguy
somegirl
etc
etc
etc
etc
etc

If you see what I mean.
Image
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

not being able to edit is a pain. A portion of the list is indented (what I don't want) because that portion of players are in a channel, although I don't want channels displayed.
Image
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

Yep, I understood from your first post.

That's an easy one. Just set the margin and padding for the channel-list class to 0.

Code: Select all

.channel-list {
  font-family: Verdana, Arial;
  font-size: 10;
  margin:0 0 0 0;
  padding:0 0 0 0;
}
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

excellent thanks! :)
Image
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

Thanks, that worked great. One other thing regarding this. More times than not ppl viewing my website get an error that the server is rate-limiting responses. This is quite frequent. Are you able to open that up a bit?

Thanks,

-e
Image
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

You have access to the complete server configuration. That's determined by "Replyinterval" in the "ini" file, or at least it was in the last version.
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

It's there but I can't change it - the value stays at 10
Image
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

As soon as more than one person logs into the server, this is when it starts happening.
Image
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

It looks like there was a bug in changing the replyinterval back, I've fixed that for you now.
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

Ok, still yutzing around with this a bit.

Two things:

1. Could you add a field for a player intro line to your query?

ie. Players currently connected:

2. I'm also having difficulty using list-style in the .client-name class to list out the names. I've tried using the old client button graphic, but am either putting it in the wrong place or doing it improperly somehow. Any suggestions?

Thanks,

-e

P.S. I'm trying to fit this into a block that should be 160px wide, but using an iframe I am having to be 190px minimum.
Image
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

Finally got around to editting replyinterval. When I edit it, it disappears completely from .ini. Back to you ;)

-e
Image
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

OT: rofl, I like your stats page.
eLectrix
Compulsive poster
Compulsive poster
Posts: 73
Joined: Wed Dec 08, 2004 2:29 pm

Post by eLectrix »

:lol:
Image
Post Reply