Custom Color Command Rascii | 2/25/2014 | 5 | Thanks to a suggestion from Grendel Man, I have added a new custom color command! This may be useful for those of you who want to customize your signatures more, and especially for those of you enjoy roleplaying with your Creatchi and want it to have it's own unique text color. The command is:
[ color ] XXXXXX [ text ] This is text. [ /color ]
|
You just need to remove the spaces between the brackets to use it. Please note that this syntax is a bit different from the normal color commands, because you have to add the six digit hex color and then a [ text ] command. If you're unfamiliar with hex colors, please use this handy HTML Color Picker or go to colorpicker.com to select the color you want to use. You do not need to include a # before the numbers/letters. Enjoy! |
|
|
Yay, Creatures Caves in Technicolor. Don't forget to add the command to the Commands box!
|
|
|
I think the system works fine as it is. It's taken some getting used to but it's still pretty intuitive once you get used to it. Besides, it's been years since I last worked with PHP.
I could see if I still have the files on my computer. I'll send you a message if I can figure out how I did it.
|
|
|
Nah, don't go out of your way just for me. I just wanted to know if it would mess up the code or not if i added them.
|
|
|
Kezune is right. I just use the str_replace function in PHP to change CC.com commands into HMTL. Maybe you can help me improve them, Kezune?
I don't think there is a [ /text ] or [ /title ] command, but I could consider adding them for you, spykkie.
|
|
|
Will adding the closing part mess up the code? I have the compulsion to close every script i open right as i write them XD;
|
|
|
Maybe it's based on the html?
Like the [ color ] tag is like < font color="
and then [ text ] is "/ >
I've written bbcode similar to this for forums in the past, so I wouldn't be surprised if this was the case.
|
|
|
The HTML that's been generated is fine, so it's probably just to make it a bit easier for us end users.
|
|
|
In terms of syntax, you're right, it should be closed and nested within the color tags. Ideally I would like it to be [ color=FF0000 ] text [ /color ] like it is on most websites, but since that seems to elude by knowledge of PHP I have to throw another tag in there to make it work. And it seems silly to force people to type more just for the sake of being syntactically correct.
|
|
|
Yeah, I've never understood why you don't close that either... normally any code that is open needs proper closure to encapsulate it and prevent glitches and bugs down the line. o_o
|
|
|
I'm not exactly sure how it works, but it's a bit like adding a title in the url command.
|