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)
 Add More to function to the [code]
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MYLE
Starting Member

New Zealand
21 Posts

Posted - 21 March 2004 :  22:13:49  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
I want to add more function to the

[code]

[/code]

if I put ' inside the [code][/code] it will put the 'green

WHAT I THINK THE PRIVACY ACT SHOULD BE
If it's bad tell me
If it's good tell everybody


MYLE

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 March 2004 :  10:23:04  Show Profile  Visit dayve's Homepage
This should do it. In inc_func_common.asp

Find:
CodeTags(1,1,1) = "[code]"
CodeTags(1,2,1) = "[/code]"
CodeTags(1,1,2) = "<pre id=""code""><font face=""courier"" size=""" & strDefaultFontSize & """ id=""code"">"
CodeTags(1,2,2) = "</font id=""code""></pre id=""code"">"

Replace With:

CodeTags(1,1,1) = "[code]"
CodeTags(1,2,1) = "[/code]"
CodeTags(1,1,2) = "<pre id=""code""><font face=""courier"" size=""" & strDefaultFontSize & """ color=""green"" id=""code"">"
CodeTags(1,2,2) = "</font id=""code""></pre id=""code"">"

Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 23 March 2004 :  09:20:00  Show Profile
Don't forget inc_func_posting.asp .
Find this:

fString = replace(fString, "<pre id=""code""><font face=""courier"" size=""" & strDefaultFontSize & """ id=""code"">","[code]", 1, -1, 1)
			fString = replace(fString, "</font id=""code""></pre id=""code"">","[/code]", 1, -1, 1)


And change to this:

fString = replace(fString, "<pre id=""code""><font face=""courier"" size=""" & strDefaultFontSize & """ color=""green"" id=""code"">","[code]", 1, -1, 1)
			fString = replace(fString, "</font id=""code""></pre id=""code"">","[/code]", 1, -1, 1)


The replaced code has to be identical in inc_func_common and inc_func_posting or it wont work .

I seen MYLES & Dayves' bold trick with the code tags, up above and I just had to change mine .

    _-/Cripto9t\-_

Edited by - cripto9t on 23 March 2004 09:37:49
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.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07