Author |
Topic |
|
Matt8109
New Member
64 Posts |
Posted - 01 November 2003 : 20:53:36
|
How can I edit/add a new color tag that users can use in their posts? What file would that be in?
Thanks, Matt |
|
Ez4arab
Junior Member
479 Posts |
Posted - 02 November 2003 : 13:57:22
|
look to inc_func_posting.asp ,inc_func_common.asp and inc_post_buttons.asp
|
Ez4arab web site Ez4arab | |
Edited by - Ez4arab on 02 November 2003 13:59:38 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 02 November 2003 : 14:08:48
|
I built a mod for 3.1SR4 where you could enter a hex value in a custom color tag. something like this:
[color=840000]Dark Red[/color]
I think I will bring that back for 3.4 if you are interested. I fairly remember this being an easy add-on. |
|
Edited by - dayve on 02 November 2003 14:09:10 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 02 November 2003 : 16:32:34
|
Okay, a real quick hack. You can open up inc_func_common and add these lines to the extratags function.
Search for function extratags(fString)
Add these lines:
fString = replace(fString, "[color", "<font color=""", 1, -1, 1) fString = replace(fString, "#]", """>", 1, -1, 1) fString = replace(fString, "[/color]", "</font>", 1, -1, 1)
That's it. The syntax to use this is:
[color#840000#]This is a dark red[/color]
This is the quickest solution, not the best mind you, but it does work.
Demo: http://www.burningsoulsforum.com/topic.asp?TOPIC_ID=7726 |
|
Edited by - dayve on 02 November 2003 17:41:32 |
|
|
Matt8109
New Member
64 Posts |
Posted - 02 November 2003 : 18:52:58
|
Thank you very much dayve and Ez, the code worked.
Matt |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 02 November 2003 : 19:27:28
|
you're welcome and enjoy. |
|
|
|
altisdesign
Junior Member
United Kingdom
357 Posts |
Posted - 04 November 2003 : 17:49:45
|
Just wanted to thank you for this code snippet.. something one of my users has just asked for and I've installed.. very quick and easy, thanks |
Altis Design offers all manner of web design services to a variety of commercial and personal clients |
|
|
|
Topic |
|