|
Here we go...
Step 1: new_post.asp
Search for:
'******************************************** '*** Clean up and check in form details *** '********************************************
'If there is no subject or message then don't post the message as won't be able to link to it If strSubject = "" AND (strMode = "new" OR strMode = "poll") Then strReturnCode = "noSubject"
|
below "if strSubject = "" ..." add the following line:
if strTopicIcon = "" AND (strMode = "new" OR strMode = "poll") then strReturnCode = "noTopicIcon" ' tw-MOD: Check if a topic icon is selected
|
Step 2: not_posted.asp
Search for:
'Write the error message If strErrorCode = "posted" Then Response.Write(strTxtDoublePostingIsNotPermitted) ElseIf strErrorCode = "noSubject" Then Response.Write(strTxtYourMessageNoValidSubjectHeading) ElseIf strErrorCode = "maxS" OR strErrorCode = "maxM" Then Response.Write(strTxtSpammingIsNotPermitted & "<br />" & strTxtYouHaveExceededNumOfPostAllowed) ElseIf strErrorCode = "noPoll" Then Response.Write(strTxtYourNoValidPoll) ElseIf strErrorCode = "FLocked" Then Response.Write(strTxtThisForumIsLocked) ElseIf strErrorCode = "TClosed" Then Response.Write(strTxtThisTopicIsLocked)
|
below "Response.Write(strTxtThisTopicIsLocked)" add the following line:
ElseIf strErrorCode = "noTopicIcon" Then Response.Write(strTxtNoTopicIcon)
' tw-MOD: Send error Message to client if no topic icon is selected
|
Step 3: includes/message_form_inc.asp
Search for:
'Display message icon drop down If blnTopicIcon AND NOT strMode = "PM" Then
'Get the topic icon array %><!--#include file="topic_icon_inc.asp" --> <tr> <td align="right" width="30%"><% = strTxtMessageIcon %>:</td> <td align="left" width="70%"> <select name="icon" id="icon" onChange="(T_icon.src = icon.options[icon.selectedIndex].value)" > <option value="<% = strImagePath %>topic_icon.gif"<% If strTopicIcon = "" Then Response.Write(" selected") %>><% = strTxtNoneSelected %></option><%
'Loop through to display topic icons For intLoop = 1 TO Ubound(saryTopicIcon)
Response.Write(vbCrLf & " <option value=""" & saryTopicIcon(intLoop,2) & """") If strTopicIcon = saryTopicIcon(intLoop,2) Then Response.Write(" selected") Response.Write(">" & saryTopicIcon(intLoop,1) & "</option>") Next
'If no topic Icon the get the default one If strTopicIcon = "" Then strTopicIcon = strImagePath & "topic_icon.gif" %> </select> <img src="<% = strTopicIcon %>" border="0" align="middle" id="T_icon" alt"<% = strTxtMessageIcon %>" /> </td> </tr><%
End If
|
Replace (!) it with the following code:
'Display message icon drop down If blnTopicIcon AND NOT strMode = "PM" Then
'Get the topic icon array %><!--#include file="topic_icon_inc.asp" --> <tr> <td align="right" width="30%"><% = strTxtMessageIcon %>:</td> <td align="left" width="70%"> <input name="icon" type="radio" id="icon" value="smileys/smiley20.gif" <% if strTopicIcon = "smileys/smiley20.gif" then %>checked="checked"<% end if %> /><img src="smileys/smiley20.gif" border="0" align="middle" id="T_icon" alt"Message Icon - Thumbs up" /> <input name="icon" type="radio" id="icon2" value="smileys/smiley21.gif" <% if strTopicIcon = "smileys/smiley21.gif" then %>checked="checked"<% end if %>/><img src="smileys/smiley21.gif" border="0" align="middle" id="T_icon2" alt"Message Icon - Thumbs down" /> </td> </tr><%
End If
|
Step 4: language_files/language_file_inc.asp
Search for:
'not_posted.asp '--------------------------------------------------------------------------------- Const strTxtMessageNotPosted = "Message Not Posted" Const strTxtDoublePostingIsNotPermitted = "Double posting is not permitted; your message has been posted already." Const strTxtSpammingIsNotPermitted = "Spamming is not permitted!" Const strTxtYouHaveExceededNumOfPostAllowed = "You have exceeded the number of posts permitted in the time span.<br /><br />Please try again later." Const strTxtYourMessageNoValidSubjectHeading = "Your message did not contain a valid subject heading and/or message body."
|
below "Const strTxtYourMessageNoValidSubjectHeading..." add the following line:
Const strTxtNoTopicIcon = "You have not selected a topic icon." ' tw-MOD: Text to display if no topic icon is selected
|
puh :)
I hope this is everything!
Just try & error - if it does not work drop a line here :)
Greets
Chris
|