The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
I want to display something by default when someone clicks on new topic.
Where to place that default content in topic.asp file ?
<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><
Where to place that default content in topic.asp file ?
<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><
آخرین ویرایش توسط
نوشته شده در
Not sure what you mean...
Do you mean when they click link to create new topic? If so, click the link and see what page (in Address Bar) is called.
Clicking 'New Topic' link opens this page:
http://forum.snitz.com/forum/post.asp?method=Topic&FORUM_ID=xxx
Modify that page (in the Method = Topic section) as you want it.
Or do you want a modal pop-up... nothing on 'post.asp' page??
Questions I don't understand generate vague answers... Questions I do understand but can't answer generate vague answers.
For excitement on your forum, create a popup that says 'Installing virus now!'
<
Do you mean when they click link to create new topic? If so, click the link and see what page (in Address Bar) is called.
Clicking 'New Topic' link opens this page:
http://forum.snitz.com/forum/post.asp?method=Topic&FORUM_ID=xxx
Modify that page (in the Method = Topic section) as you want it.
Or do you want a modal pop-up... nothing on 'post.asp' page??
Questions I don't understand generate vague answers... Questions I do understand but can't answer generate vague answers.
For excitement on your forum, create a popup that says 'Installing virus now!'
نوشته شده در
Sorry i was wrong...
You are Right.. When they click on New topic, post.asp open and we get a window to enter new post.In that window and textarea I want to put some default code.<
نوشته شده در
Is this what you are looking for?
http://www.turnandburn.com/images/defaultText.jpg
The following code change in post.asp was used to generate the changes seen in this screenshot:
Orig code Line 547 Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Test Screensize:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""SelectSize"" size=""1"" tabindex=""-1"" onchange=""resizeTextarea('" & strUniqueID & "')"">" & vbNewLine & _
" <option value=""1"""
Revision: Line 547 Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""red"" noWrap vAlign=""top"" align=""left""><font color=""#FFFFFF"" face=""Tahoma"" size=""3""><b>Special Announcement</b></font></td>" & vbNewLine & _
" <td bgColor=""red"" noWrap vAlign=""top"" align=""left""><font color=""#FFFFFF"" face=""Tahoma"" size=""2"">This might be the area where you want to add your text.</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Test Screensize:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""SelectSize"" size=""1"" tabindex=""-1"" onchange=""resizeTextarea('" & strUniqueID & "')"">" & vbNewLine & _
" <option value=""1"""
Even if this is not precisely what you are looking for, it gives you a starting point. Modify the code to reflect your situation.
gary b
<
http://www.turnandburn.com/images/defaultText.jpg
The following code change in post.asp was used to generate the changes seen in this screenshot:
Orig code Line 547 Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Test Screensize:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""SelectSize"" size=""1"" tabindex=""-1"" onchange=""resizeTextarea('" & strUniqueID & "')"">" & vbNewLine & _
" <option value=""1"""
Revision: Line 547 Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""red"" noWrap vAlign=""top"" align=""left""><font color=""#FFFFFF"" face=""Tahoma"" size=""3""><b>Special Announcement</b></font></td>" & vbNewLine & _
" <td bgColor=""red"" noWrap vAlign=""top"" align=""left""><font color=""#FFFFFF"" face=""Tahoma"" size=""2"">This might be the area where you want to add your text.</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Test Screensize:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""SelectSize"" size=""1"" tabindex=""-1"" onchange=""resizeTextarea('" & strUniqueID & "')"">" & vbNewLine & _
" <option value=""1"""
Even if this is not precisely what you are looking for, it gives you a starting point. Modify the code to reflect your situation.
gary b
<
نوشته شده در
I am looking forward to some default text in MESSAGE box.<
نوشته شده در
Look again... is this what you are looking for?
http://www.turnandburn.com/images/defaultText.jpg
The following code change in post.asp was used to generate the changes seen in this screenshot. Be wary on line wraps in code below.
Line 848 Response.Write " </font></td>" & vbNewLine & _
Line 849 " </tr>" & vbNewLine & _
Line 850 " </table>" & vbNewLine & _
Line 851 " </font></td>" & vbNewLine & _
Line 852 " <td bgColor=""" & strPopUpTableColor & """><textarea cols=""" & intCols & """ name=""Message"" rows=""" & intRows & """ wrap=""VIRTUAL"" onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">Do not forget to delete this text prior to submitting information." & Trim(CleanCode(TxtMsg)) & "</textarea><br /></td>" & vbNewLine & _
Line 853 " </tr>" & vbNewLine
Line 854 end if
Giant disclaimer: I displayed the text but did NOT test to make sure post function still works!!! Be sure to test this change!!!<
http://www.turnandburn.com/images/defaultText.jpg
The following code change in post.asp was used to generate the changes seen in this screenshot. Be wary on line wraps in code below.
Line 848 Response.Write " </font></td>" & vbNewLine & _
Line 849 " </tr>" & vbNewLine & _
Line 850 " </table>" & vbNewLine & _
Line 851 " </font></td>" & vbNewLine & _
Line 852 " <td bgColor=""" & strPopUpTableColor & """><textarea cols=""" & intCols & """ name=""Message"" rows=""" & intRows & """ wrap=""VIRTUAL"" onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">Do not forget to delete this text prior to submitting information." & Trim(CleanCode(TxtMsg)) & "</textarea><br /></td>" & vbNewLine & _
Line 853 " </tr>" & vbNewLine
Line 854 end if
Giant disclaimer: I displayed the text but did NOT test to make sure post function still works!!! Be sure to test this change!!!<
نوشته شده در
Awesome... :-)<
نوشته شده در
One small question :
How to format text inside like :
<b>Product::</b><br><br>
<b>Price::</b><br><br>
<
نوشته شده در
Line 852 " <td bgColor=""" & strPopUpTableColor & """><textarea cols=""" & intCols & """ name=""Message"" rows=""" & intRows & """ wrap=""VIRTUAL"" onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">Do not forget to delete this text prior to submitting information." & Trim(CleanCode(TxtMsg)) & "</textarea><br /></td>" & vbNewLine & _
I would guess that standard format tags would work as long as you keep them outside of the <textarea> tags. Stick the <font color=""red""> BETWEEN the first red arrows and close the FONT tag with </font> BETWEEN the second red arrows. See if this works...
It is time for you to experiment. You will learn more by doing... If you cannot (or do not want to) test on your 'live' forum, copy your forum files to a separate computer running IIS (eg, Win 2K) and experiment! If you don't know why double-quotes are needed in the 'font code' above, hands-on practice might help you understand.
Keep copies of the file as you change it -- successive 'versions'. This will protect you in case the page 'blows up'. Simply overwrite file with last known good version/copy.
Good luck... gotta get back to work. Boss has such unrealistic expectations!
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...