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)
 MOD : Inject Message Text v.1.0 (for Snitz3403)
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

laser
Advanced Member

Australia
3859 Posts

Posted - 04 November 2003 :  21:29:57  Show Profile

Title: Inject Message Text
Version: v1.0 for Snitz Forums v3.4
Author: laser
Last Update: November 5, 2003

Description:
The Inject Message Text MOD enables your visitors to choose certain drop-down values to be added to the normal message text. This only affects the initial post (i.e. creation of a new topic), but could easily be modified to work with replies as well.

Features:
- New drop-down when creating a topic so the user can choose a severity level (or other similar "top line" message)
- Easy installation : 1 (1-easy, 10-difficult )
- All code done in response.write for Snitz v3.4 compatability

Demo:
http://www.v8central.com/forum/ (for this MOD and the Auto-locking topics MOD)

Installation Instructions:

Three files to maintain:

- post_info.asp

(Step 1)

approx line 760, you will find :


	txtMessage = ChkString(Request.Form("Message"),"message")


replace it with this :


'#Inject Message text MOD - start
	txtMessage = "Severity : " & ChkString(Request.Form("Injection1"),"message") & vbNewline
	txtMessage = txtMessage & ChkString(Request.Form("Message"),"message")
'	txtMessage = ChkString(Request.Form("Message"),"message")
'#Inject Message text MOD - end

(I just commented out the original line for future reference


- post.asp

(Step 2)

approx line 534, you will find :


if mlev = 4 or _


before that line add :


'#Inject Message text MOD - start
If strRqMethod = "Topic" then
	Response.Write	"              <tr>" & vbNewLine & _
		"                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Severity:</b></font></td>" & vbNewLine & _
		"                <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
		"                <select name=""Injection1"" size=""1"" tabindex=""-1"" >" & vbNewLine & _
		"                	<option value=""" & """>no value</option>" & vbNewLine & _
		"                	<option value=""1"">1 - High</option>" & vbNewLine & _
		"                	<option value=""2"">2 - Medium</option>" & vbNewLine & _
		"                	<option value=""3"">3 - Low</option>"
	Response.Write	"                </select>" & vbNewLine & _
			"                </font></td>" & vbNewLine & _
			"              </tr>" & vbNewLine
End If
'#Inject Message MOD - end


(Step 3)

That's it !

- upload the 2 files
- check it out

Support:
If you have problems installing this MOD, either post your questions in the Help: MOD Implementation forum or here.

Feedback:
Suggestions, comments, questions and bug reports are always greatly appreciated! This is my second (published) MOD, it took less than an hour to do.

Test Environment:
I have only tested this with Access so I would love feedback from other database environments. The only thing I envisage being wrong is the dbs file

Donations:
- Donations are always welcome for support & mod implementations (PayPal : webmaster@v8central.com)

uraken
New Member

United Kingdom
75 Posts

Posted - 05 November 2003 :  05:39:32  Show Profile
laser i can't find/do not have the line if mlev = 4 or _ in my post.asp ? any ideas
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 05 November 2003 :  06:28:38  Show Profile  Visit D3mon's Homepage
Nice idea! Just what I need to easily add a standard 'welcome' line for new members.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 05 November 2003 :  12:06:07  Show Profile
all working fine and dandy now mate many thanks for this great mod, although you have now opened up a whole list of possibiltys for example what about tracking those severity codes if a user posts 3 messages at sev 3 then thats 9 his threshold is ten so he can now only post a level 1 sev code message? any ideas.

P.S this was truly great work for those who didn't follow this message laser came up with mod for me in a about an hour of requesting thank god for people like you mate willing to help others.
Go to Top of Page

soxc
New Member

53 Posts

Posted - 05 November 2003 :  14:39:11  Show Profile
Did you create this mod to use Snitz as an Bug-Tracker?
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 05 November 2003 :  15:32:52  Show Profile
no mate i'm creating an online referall form for my college.
The basic idea being that staff can inform others of bad behaviour by students and can rate that ofence bad =3 not so bad = 1.
The next thing i want to try and do is track the offence via a threshold.
Example johnny misbehaves and has a referall written its rated 3 his threshold is 9 so when he gets 3 bads or a collection that reaches 9 it flags up somewhere and we can resteer his direction.

hope this makes sense
Go to Top of Page

soxc
New Member

53 Posts

Posted - 05 November 2003 :  15:50:20  Show Profile
Makes sense. Being a developer I was thinking that people would post a bug. It would be an easy way to manage testing via the web and with some other mods could be useful.

To make the tracking easy you would need to add a field to the topics table and set this to the level and then add a field to the user table for the threshold (not sure if you have done this in the mod or not).
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 05 November 2003 :  18:03:56  Show Profile
soxc, you're right. I wrote this for uraken without really knowing what he was going to use it for. A more extensive MOD would see something that better fits this :

quote:
Example johnny misbehaves and has a referall written its rated 3 his threshold is 9 so when he gets 3 bads or a collection that reaches 9 it flags up somewhere and we can resteer his direction.



If you assumed that johnny was a forum member you could track this number and add and subtract (when does johnny's score drop back to zero ?) as needed.

quote:
P.S this was truly great work for those who didn't follow this message laser came up with mod for me in a about an hour of requesting thank god for people like you mate willing to help others.

Thanks for that, it's was a simple MOD, largely because it re-used much of my work from the Auto-Locking Topics mod. At the moment, it's easier to give time because money is quite tight.
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 06 November 2003 :  11:22:50  Show Profile
are you guys saying that this tracking thing is possible? if so i would be very interested to find out how to move it forward.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 01 February 2004 :  13:50:06  Show Profile  Send s80ts0465 an ICQ Message
It's fantastic, but just a question.

would be possible to use the security level as a parameter for the search ?????

and when i wanna send the data of security level to the database, how to do???????

Edited by - s80ts0465 on 01 February 2004 14:19:42
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 February 2004 :  14:52:11  Show Profile
s80ts0465, I think we're getting pretty off-topic and I don't quite understand your post. Could you start a new thread and completely explain what you want to do ?
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 01 February 2004 :  15:04:22  Show Profile  Send s80ts0465 an ICQ Message
Actually the security level that you choose is simply pasted in the message body. Instead i'd love to send the security level to the access database in a new column.

do you still want me to open a new topic???

Edited by - s80ts0465 on 01 February 2004 15:11:25
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 February 2004 :  15:28:22  Show Profile
quote:
Instead i'd love to send the security level to the access database in a new column.
Sure, but that wasn't the original brief for this MOD - it is doable though.
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 01 February 2004 :  15:40:07  Show Profile  Visit Gargoyle's Homepage
Laser could you post some of the surrounding code for these changes...
My line numbers aren't even close to yours... Thanks!!

Here is a link to my Snitz powered Drag Racing site.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 01 February 2004 :  15:48:34  Show Profile  Send s80ts0465 an ICQ Message
quote:
Originally posted by laser

[quote]Sure, but that wasn't the original brief for this MOD - it is doable though.



how to do??? any suggest .....please
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 February 2004 :  16:13:42  Show Profile
Gargoyle, have a look at http://www.v8central.com/forum/post_info.txt that might help, but there are 2 MODs in there - proceed with caution.

s80ts0465, sorry mate, I don't have the time at the moment. I'm trying to even think of a MOD I've seen that changes that form
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07