DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • January 20, 2019, 09:05:54 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Adding Colors?  (Read 2667 times)
0 Members and 1 Guest are viewing this topic.
« on: November 29, 2005, 02:31:48 PM »

I found this in a locked thread and I was wondering if this was still possible to do.

Adding color is a 2 part process....the first part is to actually add the color to the style sheets....
Go into newstyle.css AND yarbrough.css...and add the following two lines to the bottom:

.colLtPink  { color: #FFCCFF; }
.colDkPink  { color: #FF80FF; }

After that, you must get the appoencode function to recognize the color....to do this, pick 2 symbols which you would like to use for light and dark pink...

For the purpose of this post I'll use '8' for dark pink and '*' for light pink.....Then go into common.php, line 351...notice the "switch" statement with all of the cases...add the following lines... between the case ')' and the case 'c' code....

case "8":
    if ($nestedtags[font]) $output.="</span>";
    else $nestedtags[font]=true;
    $output.="<span class='colDkPink'>";
case "*":
    if ($nestedtags[font]) $output.="</span>";
    else $nestedtags[font]=true;
    $output.="<span class='colLtPink'>";

Once you do that, you should be able to type `8 or `* in any formatted text and display the text in "pink"...

Apparently from looking in those files, it's not entirely the same process, but I could figure out how to do the first part in the stylesheet pages.  I just can't find the section that links the colors to the characters...

Mod God
Offline Offline

Posts: 718

Arune Vai - khatfield

View Profile WWW
« Reply #1 on: November 29, 2005, 08:24:16 PM »

Well now these changes would be made in a couple other areas...

1. lib/output.php
2. lib/commentary.php
3. whatever.css

These areas being changed will look very close to what was originally posted just the functions are seperated now.
« Last Edit: November 29, 2005, 08:31:27 PM by Arune » Logged
« Reply #2 on: December 02, 2005, 06:16:52 AM »

I'm guessing there has to be one more place to change, because that didn't do it all...

I added the colors to the keys: 89*(  and the Qq colors don't seem to want to work always either...

//edit - Answering my own question

There's some code in the "sanitize.php" that needs to be slightly altered to allow this as well.  That seems to have done it for me.
« Last Edit: December 02, 2005, 06:33:41 AM by mcargent » Logged
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
54 Guests, 1 User
Home Forums News Downloads Login Register Advanced Search