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/Code)
 HTML formatting MOD
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

yossik
Starting Member

Israel
14 Posts

Posted - 11 September 2002 :  05:24:16  Show Profile  Visit yossik's Homepage
Even though no one really asked for it, I needed it and it was so simple that I though it would be a shame not to post it. So here goes.

Title:
HTML formatting buttons in posts

By:
- Author: Yossi Konijn (yossik)
- HomePage: http://www.comics-sale.com
- Download: http://www.comics-sale.com/forums/inc_html.zip

Please read everything before proceeding!!

Compatibility:
Snitz Forums (v3.4.02)

Version History:

v1.00, 11 September 2002
This is the first release of this Mod.
It is very easy to implement, and it isn't really sophisticated.

Ease of Installation (1 - Hard - 10 Easy): 10

Description:
If you wish to allow HTML in posts instead of just forum code then you know that your users will have to type all
the HTML code from memory. No more. Now turning on HTML code will also give your users the button panel for easy
formatting that up until now was for forum code only.

Installation:
1. First of all make a backup of your current forum files.

The archive file should contain the following structure:

Additional Files:
inc_html.js

This new file needs to be copied to your main forum directory

2. Only files will alter, not your Database.

Note:
The line numbers provided below are from the original forum file.
A line number is only an indication where to look. Please Compare the code.

Apply the following changes:

File: post.asp
------------------------------------------
'1: Around line #264 find this code:
------------------------------------------
Response.Write	"    <script language=""JavaScript"" type=""text/javascript"" src=""inc_code.js""></script>" & vbNewLine & _
  "    <script language=""JavaScript"" type=""text/javascript"" src=""selectbox.js""></script>" & vbNewLine


----------------------
'2: Change it to this:
----------------------

if strAllowForumCode = "1" then
		Response.Write	"    <script language=""JavaScript"" type=""text/javascript"" src=""inc_code.js""></script>" & vbNewLine
elseif strAllowHTML = "1" then
		Response.Write	"    <script language=""JavaScript"" type=""text/javascript"" src=""inc_html.js""></script>" & vbNewLine
end if
Response.Write "    <script language=""JavaScript"" type=""text/javascript"" src=""selectbox.js""></script>" & vbNewLine

-------------------------------------
'3: Around line #555 find this:
-------------------------------------
if strAllowForumCode = "1" and strShowFormatButtons = "1" then

---------------------------------------------------
'4: Change it to this:
---------------------------------------------------
if (strAllowForumCode = "1" or strAllowHTML = "1") and strShowFormatButtons = "1" then


4. That's it! Easy as pie.

Good luck with this Mod and please, do not email me, post all bugs and requests at snitz forum MOD_Add-On_Forum_(W/Code)


Edited by - yossik on 11 September 2002 10:22:19

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 11 September 2002 :  05:44:34  Show Profile
yossik,

Maybe you could put the download as a zip, as some of us do not use a rar extractor.

For those wishing to try this, here is an FYI: although a great idea, there is security flaws with allowing HTML in your forum.

Cheers,

David Greening
Go to Top of Page

yossik
Starting Member

Israel
14 Posts

Posted - 11 September 2002 :  06:12:30  Show Profile  Visit yossik's Homepage
Done - converted RAR to ZIP
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 September 2002 :  06:29:18  Show Profile
What is the difference between the inc_html.js file you have in the .zip file, and the inc_code.js file that is included in the forum? I looked in the inc_html.js file and didn't really see anything different.
Go to Top of Page

yossik
Starting Member

Israel
14 Posts

Posted - 11 September 2002 :  06:57:39  Show Profile  Visit yossik's Homepage
Good catch. I posted the wrong file. Corrected now. Thanks.
Go to Top of Page

samyot
Junior Member

Canada
242 Posts

Posted - 11 September 2002 :  10:20:17  Show Profile  Visit samyot's Homepage  Send samyot a Yahoo! Message
Great idea! One thing your "Ease of Installation" states this MOD is "Hard", shouldn't it be "Easy"!

Sylvain Amyot
Forum | Home

MY OTHER SITES:
http://www.mypcsecurity.ca
http://www.mynature.ca
http://www.myworkshop.ca
http://www.toptechsites.com
http://www.topsportsites.com
http://www.mysportsforums.net
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07