Thread: New Posting Features - Form Hack
View Single Post
  #708  
Old 11-09-2007, 04:28 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CMF View Post
Hi there,
I am having some real trouble getting this to work.

I have installed it, can edit what the questions are etc and got it posting how I want it to but:
? I can't work out how to remove questions?
? I can't work out how to add questions?

There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.

I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
HTML Code:
www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!

What am I doing wrong?
It is a simple as not including them in the template file ?form?. This file is what determines what questions the users see and have the option to answer to. If you only want to remove the radio questions then simply remove the code below in you ?form? template.

Also keep in mind that the template ?formanswers? is what gets posted to your message area or email. So you will have to edit that also.
PHP Code:
<tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion1</b>
</
td>
</
tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1a"$radiochoice1a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1b"$radiochoice1b </td>
<
td>&nbsp;</td>
</
tr>
<
tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion2</b>
</
td></tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2a"$radiochoice2a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2b"$radiochoice2b </td>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2c"$radiochoice2c </td>
</
tr>
<
tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion3</b>
</
td>
</
tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3a"$radiochoice3a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3b"$radiochoice3b </td>
<
td>If $radiochoice3aplease explain: <INPUT TYPE="text" NAME="radioanswer3other"></td>
</
tr
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01329 seconds
  • Memory Usage 1,796KB
  • 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_html
  • (1)bbcode_php
  • (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