Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Forum News, Suggestions and Discussion (http://zelaron.com/forum/forumdisplay.php?f=2)
-   -   New version chatbox (http://zelaron.com/forum/showthread.php?t=44582)

Demosthenes 2008-02-16 05:35 PM

Once I close the chatbox or shoutbox, is there any way to open it back up without having to restart Mozilla?

WetWired 2008-02-16 05:36 PM

No, since it would be Mozilla that is running it.

WetWired 2008-02-17 03:22 PM

The new log page is in place. I'm still working out what kind of stats I'm going to do.
The new corner chatbox is in place.

You can now personalize the color of your name in the chatbox (Click here, scroll down). Don't abuse it.

Lenny 2008-02-17 03:34 PM

Just something about the name colour which I said in the Chatbox, but you might have missed:

When the standard colour is selected, if you hover over the name, it turns white, as links are prone to do. If the user has a colour selected, however, and you hover over their name in the Chatbox, there is no change.

I don't know whether this is intentional or not. The cursor still turns into the hand, by the way, it's just that the link doesn't turn white on mouse hover.

WetWired 2008-02-17 03:53 PM

Nothing I can do about that. Really, I'd rather the names be the normal text color, but since that varies, it's a pain to fix it up that way.

Lenny 2008-02-17 03:55 PM

Can I ask how things like that work with the Chatbox?

And a question that's slightly off-topic, but still relevant - can PHP variables (I think would be the right name for them) be used in CSS documents?

WetWired 2008-02-17 04:24 PM

Quote:

Can I ask how things like that work with the Chatbox?
Not sure what you mean.

You can use PHP variables in CSS if the CSS is being output by PHP

Lenny 2008-02-17 04:34 PM

Sorry. What I mean is the name colour, mostly, and how it works as a link. What type of scripting is used to achieve that within the Chatbox?

The relation of CSS to this is that... in fact, I'll post some CSS code I use on my sites for menus:

Quote:

A.menu:link {
color: #000000;
text-decoration: none
}

A.menu:visited {
color: #000000;
text-decoration: none
}

A.menu:active {
color: #FFFFFF;
text-decoration: none
}

A.menu:hover {
color: #FFFFFF;
text-decoration: none
}
I don't need to explain it to you.

My thoughts were that, if the Chatbox makes use of stylesheets for it's style, code such as that above could be used to set the links - for the first two (:link and :visited), the colour code could be replaced by a PHP variable, whilst the bottom two (:active and :hover) could have the #FFFFFF colour code to make them white.

Just to go to the PHP variable - I have very little knowledge of PHP, so I'm probably wrong, but is it possible to send what the user chooses as their name colour in their user options as a PHP variable, which can then be placed into something like that above?

---

I have doubts that above would work, but they're my thoughts on the link hover =/= white matter. A lot of fuss for a tiny... well, it's not even a problem. :p

WetWired 2008-02-17 05:04 PM

The issue is that the PHP code doesn't have access to the default color and that the set color overrides the color for all states of the link, including hover.

Lenny 2008-02-17 05:13 PM

Ah, fair enough. So to try and 'solve' it would mean re-writing a lot of the code? A hell of a lot of work for something that's purely aesthetic. :p

WetWired 2008-02-17 07:29 PM

To prevent confusion, which was the true point of the colored names in the first place, I've put in place a system where colors are first-come, first-serve. If someone else is already in the chatbox with a name length close to yours and your selected color, you will be assigned the closest alternate.

For example, if Chruser (length 7, profile color red) is already in the chatbox, and Lenny (length 5, profile color red) joins, Lenny's name will be in orange instead of red.

Demosthenes 2008-02-18 12:42 AM

Any way to still check shoutbox stats?

WetWired 2008-02-18 07:39 AM

The old archive page is still up, though not for long.

WetWired 2008-02-29 09:11 PM

And recent threads is live!

Asamin 2008-03-02 03:29 AM

So whoever has the longest name gets to keep their color?

WetWired 2008-03-02 02:17 PM

No, whoever is already using it gets to keep it. If there's someone already in the chatbox with a name of similar length using your color, your color gets changed for the session (not permenantly). This is so you can keep up with who's saying what without having to read the names, which was the whole point of adding the colors in the first place.

WetWired 2008-03-02 03:01 PM

Opening the Chatbox no longer disables the Recent Chatbox Messages window. Instead, the Recent Chatbox Messages window is disabled as long as the Chatbox is open; once your Chatbox session expires, the Recent Chatbox Messages window will reappear on the next page load.

Also, I'm working out a technology in my head that will allow you to open the chatbox in the same window/tab as you're browsing in. I'm not sure if I can make it work, or how well it will work, ATM.

On the Recent Threads display in the chatbox, you can now clear the list and only threads with new posts since the last time you cleared it (during the session) will appear; this makes it easier to "bookmark" your spot.

WetWired 2008-03-07 08:29 PM

Mini chatbox first stage is live. Right now it doesn't stay open between page loads. That's part of its second stage. In the meantime, feedback on the rest is welcome.

Grav 2008-03-08 09:25 AM

It's a lot less annoying than a popup when I type.

WetWired 2008-03-08 01:05 PM

I also attempted to fix your z-order issue. Does it still appear under avatars?


All times are GMT -6. The time now is 07:06 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.