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)
 Default text
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kolucoms6
Average Member

845 Posts

Posted - 01 June 2007 :  20:04:38  Show Profile  Reply with Quote
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" /><

Edited by - Shaggy on 05 June 2007 05:17:23

gary b
Junior Member

USA
267 Posts

Posted - 02 June 2007 :  23:24:39  Show Profile  Visit gary b's Homepage  Reply with Quote
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!' <
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 03 June 2007 :  02:19:39  Show Profile  Reply with Quote

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.<
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 04 June 2007 :  07:32:29  Show Profile  Visit gary b's Homepage  Reply with Quote
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


<
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 04 June 2007 :  08:40:26  Show Profile  Reply with Quote

I am looking forward to some default text in MESSAGE box.<
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 04 June 2007 :  09:54:59  Show Profile  Visit gary b's Homepage  Reply with Quote
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!!!<
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 04 June 2007 :  11:00:26  Show Profile  Reply with Quote
Awesome... :-)<
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 04 June 2007 :  11:18:26  Show Profile  Reply with Quote

One small question :

How to format text inside like :

<b>Product::</b><br><br>
<b>Price::</b><br><br>


<
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 04 June 2007 :  11:50:17  Show Profile  Visit gary b's Homepage  Reply with Quote
quote:
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! <
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07