Thread: New Posting Features - Form Hack
View Single Post
  #1052  
Old 05-25-2008, 02:55 AM
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HI all,
I recently reinstalled a few forms I had created with Forms 4.0, and am running into a few issues... The infamous "Security Token" issue which I was able to fix after reading the posts here... Thank you VERY Much ....

But for some reason MY FORMS dont use the style correctly and stretch out the center Block way over to the right side of the form making it look like crap. I loaded the default "FORM" and that displays fine... I took all the code from the top of the "Form" Template ( all the way done to the </td> after </fieldset> tag ) and inserted it into My Form but to no avail... I still have a stretched out ugly form?
Can someone Point me into the right direction to fix this...

Below is the WebHelp Template Code
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $formtitle</title>
</head>
<body>
$header
$navbar

<!-- main -->
<if condition="$preview">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="75%" 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="75%" align="center">
<tr>
	<td class="tcat" colspan="2">
		$vboptions[bbtitle] - $formtitle
	</td>
</tr>
<tr>
	<td class="panelsurround" align="center" colspan="2">

	<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>


<table width="75%" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86" align="center">
<tr>
<td class="alt1" valign="middle">
<b>Username</b></td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>Your Listed E-mail</b><br />(Be sure this is correct or your form will not be processed)</td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[email]</b></td>
</tr></table>
<table width="75%" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86" align="center">

<tr>
<td class="alt1" valign="middle">
<b>User Group</b></td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[usergroupid]</b></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>User ID</b></td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[userid]</b></td>
</tr>
</table>

<table width="75%" align="center" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86">
<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:
</td>
<td class="alt1" valign="middle" colspan="1">
<select name="dropdownanswer1">
<option value="$dropdownchoice1a" <if condition="$dropdownchoice1a == $dropdown1">selected="selected"</if>>$dropdownchoice1a</option>
<option value="$dropdownchoice1b" <if condition="$dropdownchoice1b == $dropdown1">selected="selected"</if>>$dropdownchoice1b</option>
<option value="$dropdownchoice1c" <if condition="$dropdownchoice1c == $dropdown1">selected="selected"</if>>$dropdownchoice1c</option>
<option value="$dropdownchoice1d" <if condition="$dropdownchoice1d == $dropdown1">selected="selected"</if>>$dropdownchoice1d</option>
<option value="$dropdownchoice1e" <if condition="$dropdownchoice1e == $dropdown1">selected="selected"</if>>$dropdownchoice1e</option>
<option value="$dropdownchoice1f" <if condition="$dropdownchoice1f == $dropdown1">selected="selected"</if>>$dropdownchoice1f</option>
<option value="$dropdownchoice1g" <if condition="$dropdownchoice1g == $dropdown1">selected="selected"</if>>$dropdownchoice1g</option>
<option value="$dropdownchoice1h" <if condition="$dropdownchoice1h == $dropdown1">selected="selected"</if>>$dropdownchoice1h</option>
</select></td>
</tr></table>
<table width="75%" align="center" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86">
<tr>
<td class="alt1" valign="Top">
<b>$longquestion1</b><br />
$longexplain1</td>
<td class="alt1" valign="Top" colspan="2">
<textarea rows="20" cols="50" name="longanswer1">$longanswer1</textarea>
</td>
</tr></table>
<br>
<table width="75%" bgcolor="#dcbd86" align="center" font color="#000000" border="4" bordercolorlight="#db8928" bordercolordark="742f07">
<tr>
<td>After clicking the<b>"Submit"</b> button you will be redirected to Super Skunk's Home page. This will indicate that your request for assistance has been processed for attention. Thank you...</td>
</tr>
</table><br>
</table>
</div>
</td>
</tr><br><br>
<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>
Thank you,
Tom
www.superskunkracing.org
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01178 seconds
  • Memory Usage 1,799KB
  • 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_code
  • (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