Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Color Tags
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Matt8109
New Member

64 Posts

Posted - 01 November 2003 :  20:53:36  Show Profile  Visit Matt8109's Homepage
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  Show Profile  Visit Ez4arab's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 November 2003 :  14:08:48  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 November 2003 :  16:32:34  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Matt8109
New Member

64 Posts

Posted - 02 November 2003 :  18:52:58  Show Profile  Visit Matt8109's Homepage
Thank you very much dayve and Ez, the code worked.

Matt
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 November 2003 :  19:27:28  Show Profile  Visit dayve's Homepage
you're welcome and enjoy.

Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 04 November 2003 :  17:49:45  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07