Main Menu

New Title Colours!

Started by Yonkey, February 22, 2004, 09:28:43 PM

Previous topic - Next topic

Yonkey

The forum how has different colours to go with each new level you hit when you reach another stage! :D

This was taken from a suggestion Say asked me about ages ago, but I finally got down to doing it! ;D

Instead of me listing all the colours and what they match, I'll let you guys do it. ;D

I'll start:
Administrator = orange  8)
"A wish changes nothing. A decision changes everything."

Jeysie

Great Oracle=Red
Silly Adventurer=A paler yellow
Wizard's Slave=Plain grey

Forum problem fixed. Whee! Do I get my punishment for spoiling everyone's fun, now? ;)

Peace & Luv, Liz

Yonkey

The Wizard's Slave is actually supposed to be a different colour, but it keeps screwing up. ::)
"A wish changes nothing. A decision changes everything."

Jeysie

#3
Eh, I wouldn't worry about it. Having the Wizard's Slave be the default color seems oddly appropriate. ;)

Now that I think some more about it... how did you do this, anyway? My instinct would be to somehow use a member's post data to dynamically stick a class in the post status-title-space tag of each forum member of a certain status. Like, you'd have "(P)Jeysie(/P)(P CLASS="wizard")Powerful Wizard(/P)" or however your HTML is set up. Then I'd use something like "P.wizard {color: #00ff00}" in the CSS file. I don't know enough PHP to know if that's possible, though. I'm always curious to learn how stuff works. :)

Peace & Luv, Liz

Yonkey

#4
It would be sooooo much easier if they had all the things defined in the style tag, but they don't.  

Well, I didn't exactly design this, but this is the general idea of how it works: I think it uses the <font color=blah>, but in order to figure out the colour, it has to determine your user level.  For mine it's Administrator, and Say's is Global Moderator, but for the rest of you it's based on your current post count.  

Since there are a lot more than 4 user titles on this board, I had to modify the code to use all custom titles, or the colours wouldn't get picked correctly. (Bug #1 that I had to fix).

Then it couldn't find the "Wizard's Slave" because the apostrophy in the title was confusing the SQL query.  (Bug #2 which I had to fix too).  

Now, everything should be fine. ;D
"A wish changes nothing. A decision changes everything."

Jeysie

Ah, huh, so my thought might actually be possible, if I read your first paragraph right. Cool. (takes notes)

Peace & Luv, Liz

Yonkey

The colour assigning might be possible by how you said using CSS.  But the forum itself doesn't know which user is a Wizard and which isn't, so it can't choose the specific class name without performing all the calculations for the post level. :)
"A wish changes nothing. A decision changes everything."

Say

it took a while but Im so glad neil could figure it out, I hope you all like this new feature as much as we already do :]


Say Mistage
Phoenix Online Studios

#IndieSupport <3

Yonkey

#8
The Wizard's Slave one isn't grey... :P
I'm hoping for one of them to come here and post what it really is.  ;D
"A wish changes nothing. A decision changes everything."

MangoMercury

Aw, MAN!

You coulda told me that Royal Hair was light blue...  I  <3 light blue!
~RESIDENT MANGO~
The sanest forum-dweller of all!


Countess of Tyrol and Maid of Honour to the Queen

Yonkey

lol, I mean to match the colour you had in your post for it.  :)
"A wish changes nothing. A decision changes everything."

Storm

#11
Oh. Now I'm completely lost. Wasn't it the same color? ???
"Never argue with idiots. They'll drag you down to their level and beat you with experience."

Storm

Quote from: MangoMercury on February 23, 2004, 09:14:09 AM
Aw, MAN!

You coulda told me that Royal Hair was light blue...  I  <3 light blue!

...And would that have saved us some of your posting sprees?  ;)
"Never argue with idiots. They'll drag you down to their level and beat you with experience."

Yonkey

Quote from: Storm on February 23, 2004, 09:44:57 AM
Oh. Now I'm completely lost. Wasn't it the same color? ???
Oops, maybe it was the same colour.  ;D  Red, Yellow and Green (Lime Green) I think are all the same colours as in the font tags.
"A wish changes nothing. A decision changes everything."

KatieHal


Katie Hallahan
~Designer, PR Director~

"Change is the constant, the signal for rebirth, the egg of the phoenix." Christina Baldwin

I have a blog!

outofhunk

#15
Quote from: Yonkey on February 23, 2004, 07:45:36 AM
The Wizard's Slave one isn't grey... :P
I'm hoping for one of them to come here and post what it really is.  ;D

Just call me 'Gwydion In Blue"  ;D
~ Stefanie

Say

hahahaha, you would be one colorful Gwydion then cuz now you're blue and then you'll go achieving colors! yay!

I cant get enough of this forum now, all the users online with all the colors its soo cool :)


Say Mistage
Phoenix Online Studios

#IndieSupport <3

Yonkey

I know! <3 I can't believe I'm addicted to the index page.  Hahahaha :D  
"A wish changes nothing. A decision changes everything."

MangoMercury

Quote from: Storm on February 23, 2004, 09:45:43 AM
Quote from: MangoMercury on February 23, 2004, 09:14:09 AM
Aw, MAN!

You coulda told me that Royal Hair was light blue...  I  <3 light blue!

Meanie...  Of course not :P

...And would that have saved us some of your posting sprees?  ;)
~RESIDENT MANGO~
The sanest forum-dweller of all!


Countess of Tyrol and Maid of Honour to the Queen

Louisiana Night

#19
KQ9 Groupie!'s color is gold(or a funny colored yellow).