Thread: New Posting Features - Form Hack
View Single Post
  #598  
Old 08-02-2007, 02:50 PM
SuthernKumfort SuthernKumfort is offline
 
Join Date: Mar 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post

SuthernKumfort, its easy...

  • Open NOTEPAD on your computer...
  • Open Admincp,,, styles and find your main template that U edited in forms hack...
  • Copy all code from that template and paste into your NOTEPAD file... SAVE it and upload...
  • NOTEPAD create's {{{ .txt formated files }}}...

That should do the trick... I might be going out of town by the end of the week, so? ...

Give it a go
OK, hope this is what you are looking for!

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $formtitle</title>
<style>
.radio button class {
background: #FFFFFF;
}
</style>
</head>
<body>
$header
$navbar

<!-- main -->
<if condition="$preview">
<table class="tborder" cellpadding="$stylevar[cellpadding]"

cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
Preview
</td>
</tr>
<tr>
<td class="alt1">
$preview
</td>
</tr>
</table>
</if>

<br />
<form name="vbform" action="newthread.php" method="post"<if

condition="!is_browser('webtv')"> onsubmit="return

vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>
<input type="hidden" value="$formname" name="do" />
<input type="hidden" value="submit" name="action" />

<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />

<table class="tborder" cellpadding="$stylevar[cellpadding]"

cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3">
$vboptions[bbtitle] - $formtitle
</td>
</tr>
<tr>
<td class="panelsurround" align="center" colspan="3">

<table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]"

border="0" width="100%">
<tr>
<td align="$stylevar[left]">
<fieldset class="fieldset" style="margin:0px">
<table cellpadding="0"

cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$formpurpose

</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$normalquestion1</b>
</td>
</tr>
<tr>
<td class="alt2" colspan="3">
<input type="text" size="30" value="$normalanswer1" name="normalanswer1" />
</td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion1</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer1" value="$radiochoice1a" <if

condition="$radiochoice1a == $radioanswer1">checked="checked"</if> />

$radiochoice1a </td>
<td><input type="radio" name="radioanswer1" value="$radiochoice1b" <if

condition="$radiochoice1b == $radioanswer1">checked="checked"</if> />

$radiochoice1b </td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="alt2" colspan="3">
<b>$radioquestion2</b>
</td></tr><tr>
<td><input type="radio" name="radioanswer2" value="$radiochoice2a" <if

condition="$radiochoice2a == $radioanswer2">checked="checked"</if> />

$radiochoice2a </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2b" <if

condition="$radiochoice2b == $radioanswer2">checked="checked"</if> />

$radiochoice2b </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2c" <if

condition="$radiochoice2c == $radioanswer2">checked="checked"</if> />

$radiochoice2c </td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion3</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer3" value="$radiochoice3a" <if

condition="$radiochoice3a == $radioanswer3">checked="checked"</if> />

$radiochoice3a </td>
<td><input type="radio" name="radioanswer3" value="$radiochoice3b" <if

condition="$radiochoice3b == $radioanswer3">checked="checked"</if> />

$radiochoice3b </td>
<td>If $radiochoice3a, please explain: <input type="text"

value="$radioanswer3other" name="radioanswer3other" /></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>Username</b>:<br />
Your Username.</td>
<td class="alt1" valign="middle" colspan="2">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question1</b>:<br />
$explain1</td>
<td class="alt2" valign="middle" colspan="2">
<input type="text" size="30" value="$answer1" name="answer1" /></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>$question2</b>:<br />
$explain2</td>
<td class="alt1" valign="middle" colspan="2">
<input type="text" size="30" value="$answer2" name="answer2" /></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question3</b>:<br />
$explain3</td>
<td class="alt2" valign="middle" colspan="2">
<input type="text" size="30" value="$answer3" name="answer3" /></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:
</td>
<td class="alt1" valign="middle" colspan="2">
<select name="dropdownanswer1">
<option value="$dropdownchoice1a" <if condition="$dropdownchoice1a ==

$dropdownanswer1">selected="selected"</if>>$dropdownchoice1a</option>
<option value="$dropdownchoice1b" <if condition="$dropdownchoice1b ==

$dropdownanswer1">selected="selected"</if>>$dropdownchoice1b</option>
<option value="$dropdownchoice1c" <if condition="$dropdownchoice1c ==

$dropdownanswer1">selected="selected"</if>>$dropdownchoice1c</option>
</select></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$checkboxquestion1</b>:
</td>
<td class="alt2" valign="middle" colspan="2">
<input type="checkbox" name="checkboxanswer1_1" value="$checkboxchoice1_1" <if

condition="$checkboxchoice1_1 == $checkboxanswer1_1">checked="checked"</if> />

$checkboxchoice1_1<br />
<input type="checkbox" name="checkboxanswer1_2" value="$checkboxchoice1_2" <if

condition="$checkboxchoice1_2 == $checkboxanswer1_2">checked="checked"</if> />

$checkboxchoice1_2<br />
<input type="checkbox" name="checkboxanswer1_3" value="$checkboxchoice1_3" <if

condition="$checkboxchoice1_3 == $checkboxanswer1_3">checked="checked"</if> />

$checkboxchoice1_3
</td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>$longquestion1</b><br />
$longexplain1</td>
<td class="alt1" valign="middle" colspan="2">
<textarea rows="20" cols="70" name="longanswer1">$longanswer1</textarea>
</td>
</tr>
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]"

align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana;

font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana;

font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana;

font-size: 10pt" class="button" />
</p></td></tr>
</table>

</form>

$footer
</body>
</html>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01257 seconds
  • Memory Usage 1,812KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete