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)