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)
 Adding new forum code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 25 July 2003 :  08:04:03  Show Profile
I'd like to add new tags (forum code) to my site, am I right in saying I need to add code in two places, using the flash mod as an example

inc_func_posting.asp
Line 116 add this 

fString = replace(fString, "<EMBED WIDTH=""","[flash ", 1, -1, 1)
fString = replace(fString, """ HEIGHT=""",":", 1, -1, 1)
fString = replace(fString, """ SRC=""","]", 1, -1, 1)
fString = replace(fString, """ HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>","[/flash]", 1, -1, 1)

inc_func_common.asp
Line 742 add this

fString = doCode(fString, "[flash ",":","<EMBED WIDTH=""",""" HEIGHT=""")
fString = doCode(fString, "]","[/flash]",""" SRC=""",""" HIDDEN=""false"" AUTOSTART=""true"" LOOP=""true"" volume=""100""></EMBED>")


I'm not too bothered about adding 'Format' buttons as only I need to use it, basically i'd like to make a tag that is an internal link, rather than the default external, something like [inturl][/inturl]

The UK MkIVs Forum

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 July 2003 :  08:12:49  Show Profile
If you just want the tags to be converted when the post is displayed, you can just add the doCode part to the extratags function in the inc_func_common.asp file. But, if you want the tags converted when the post is made, and then converted back when the post is edited, you would use the example that you posted above.
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 25 July 2003 :  08:20:36  Show Profile
ok cheers, so if I just do the doCode bit, I presume that when I go to edit I will see the HTML. Best to do both I think

Has anyone ever done a forum tag to embed movie clips?

The UK MkIVs Forum
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 July 2003 :  08:41:27  Show Profile
No, if you just do the doCode bit, the post will be saved with the tags unconverted. The only time the tags will be converted to HTML will be when the post is viewed.
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 25 July 2003 :  08:59:07  Show Profile
ok, so it's saved to the db as forum code then converted to HTML when viewed on topic.asp.
If that's right, why do you need to convert from HTML to forum code when editing, if it's already forum code in the db?

The UK MkIVs Forum
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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07