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 additional feilds to "reply " only
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

uraken
New Member

United Kingdom
75 Posts

Posted - 07 November 2003 :  15:35:15  Show Profile
i wish to add an additional field to the reply box i have the code sorted but don't know where to insert in the post.asp i have tried it just about everywhere but no joy
any help as always greatly recieved, thanks in advance.

laser
Advanced Member

Australia
3859 Posts

Posted - 07 November 2003 :  16:25:53  Show Profile
uraken, use my "Inject Message Text" MOD as a guide ... at the changes at line 530 change :

If strRqMethod = "Topic" then

to ...

If strRqMethod = "Reply" then
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 08 November 2003 :  06:11:30  Show Profile
thanks laser that worked the drop down now appears in my reply post.asp however the info is not being populated to the finished reply do i need to ad someting to post_info.asp?
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 08 November 2003 :  06:21:23  Show Profile
Check my changes to post_info You're basically doing a mod to my MOD
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 08 November 2003 :  11:04:40  Show Profile
no joy laser i've tried it every which way but it won't populate the finished reply ?
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 08 November 2003 :  16:39:30  Show Profile
Any chance of a URL or an example of what you have done ?

Or even just what you want to do (what sort of text)
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 09 November 2003 :  09:28:07  Show Profile
using your inject mod code i have added strRqMethod = "Reply" so that the mod appears in the reply as well.The only problem is that whilst i can see the drop down menu
in the reply it does give this information in the completed reply post

'#######################################Inject Message text MOD - start
If strRqMethod = "Topic"or strRqMethod = "Reply" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Action:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""Injection4"" size=""1"" tabindex=""-10"" >" & vbnewline & _
" <option value=""" & """>Action</option>" & vbNewLine & _
" <option value=""Detention"">Detention</option>" & vbNewLine & _
" <option value=""Exclusion"">Exclusion</option>" & vbNewLine & _
" <option value=""Referall"">Referall</option>"
Response.Write " </select>" & vbNewLine & _
" </font></td>" & vbNewLine & _
" </tr>" & vbNewLine
End If
'###########################################Inject Message MOD - end
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 09 November 2003 :  13:35:22  Show Profile
quote:
The only problem is that whilst i can see the drop down menu
in the reply it does give this information in the completed reply post

It does or it doesn't ?

What changes did you make to post_info.asp ?
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 09 November 2003 :  16:33:00  Show Profile
sorry, it doesn't populate and i imagine thats because i havn't made any changes to post_info.asp as i'm not sure what to change or where. i have tried various code changes in post_info.asp (for the last two days) with no luck the thing is driving me crazy i have been careful to put back any changes i made i even looked at the hey you lite mod which does something similar to what i'm after
any help, ideas, code greatfully recieved.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 09 November 2003 :  16:45:45  Show Profile
no probs uraken,

Around line 939 in post_info.asp you will find :


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


Replace that line with :


'#Inject Message text MOD - start
	txtMessage = "Action: " & ChkString(Request.Form("form field name goes here"),"message") & vbNewline
	txtMessage = txtMessage & ChkString(Request.Form("Message"),"message")
'	txtMessage = ChkString(Request.Form("Message"),"message")
'#Inject Message text MOD - end

(you need to match the red text with post.asp (Injection4 I would say )

If you can't find line 939 look for this :


if MethodType = "Reply" or MethodType = "ReplyQuote" or MethodType = "TopicQuote" then


around line 902 (there is only one line like this), then scroll down from there to locate the line that starts txtMessage = ....



Edited by - laser on 09 November 2003 16:47:15
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 09 November 2003 :  16:55:51  Show Profile
brilliant mate it works thanks a bunch hopefully i can help you the same way you have helped me recently someday
kind regards
uraken
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 09 November 2003 :  17:19:45  Show Profile
np's mate, hang around to help someone else Plenty of people helped me when I first started, so I help where I can in return ... it just makes Snitz better.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 02 February 2004 :  10:42:36  Show Profile  Send s80ts0465 an ICQ Message
But when i wanna change the subject with this mod, instead the original message opr reply??? what have i to change??
so i wanna that the selection of the drop list at the new topic change the subject.
I think i've to change using the inject mod, but on which line???

thanks ste

Edited by - s80ts0465 on 03 February 2004 15:31:10
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 03 February 2004 :  17:40:36  Show Profile  Send s80ts0465 an ICQ Message
i've found out something....i've to change the forum.asp. I've also found the correct line, but i don't know what to write, infact when i use the
ChkString(Request.Form("form field name goes here"),"message")
nothing happend :-(
why?
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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07