Author |
Topic |
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 07 November 2003 : 15:35:15
|
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
|
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
|
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 08 November 2003 : 06:11:30
|
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? |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 08 November 2003 : 06:21:23
|
Check my changes to post_info You're basically doing a mod to my MOD |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 08 November 2003 : 11:04:40
|
no joy laser i've tried it every which way but it won't populate the finished reply ? |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 08 November 2003 : 16:39:30
|
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) |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 09 November 2003 : 09:28:07
|
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 |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 09 November 2003 : 13:35:22
|
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 ? |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 09 November 2003 : 16:33:00
|
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.
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 09 November 2003 : 16:45:45
|
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 |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 09 November 2003 : 16:55:51
|
brilliant mate it works thanks a bunch hopefully i can help you the same way you have helped me recently someday kind regards uraken |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 09 November 2003 : 17:19:45
|
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. |
|
|
s80ts0465
Junior Member
Italy
290 Posts |
Posted - 02 February 2004 : 10:42:36
|
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 |
|
|
s80ts0465
Junior Member
Italy
290 Posts |
Posted - 03 February 2004 : 17:40:36
|
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?
|
|
|
|
Topic |
|