Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Default text

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
kolucoms6 Posted - 01 June 2007 : 20:04:38
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" /><
8   L A T E S T    R E P L I E S    (Newest First)
gary b Posted - 04 June 2007 : 11:50:17
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! <
kolucoms6 Posted - 04 June 2007 : 11:18:26

One small question :

How to format text inside like :

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


<
kolucoms6 Posted - 04 June 2007 : 11:00:26
Awesome... :-)<
gary b Posted - 04 June 2007 : 09:54:59
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!!!<
kolucoms6 Posted - 04 June 2007 : 08:40:26

I am looking forward to some default text in MESSAGE box.<
gary b Posted - 04 June 2007 : 07:32:29
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


<
kolucoms6 Posted - 03 June 2007 : 02:19:39

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.<
gary b Posted - 02 June 2007 : 23:24:39
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!' <

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07