Thread: New Posting Features - Form Hack
View Single Post
  #1107  
Old 07-11-2008, 09:18 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have an issue, its probably something stupif, or im probably forgetting something, so i hope you can help, it is a very small problem but if i need to do something more important in the future then it will mess everything up.

I have made a Form for reporting issues with the wesbite, this is what the code says FOR THIS SPACIFIC PART when you click Plugins and Products --> Plugin Manager --> Site Issues Form Hack

Code:
$dropdownquestion2 = "Importance:";


$dropdownchoice2a = " ";
$dropdownchoice2b = "Low";
$dropdownchoice2c = "Medium";
$dropdownchoice2d = "High";
$dropdownchoice2e = "Urgent";
$dropdownchoice2f = "Critical";
If you then go to Styles and Templates --> Current Theme --> Edit Template --> SiteForm...
You get this:

Code:
<tr>
<td class="alt2" valign="middle">
<b>$dropdownquestion2</b>
</td>
<td class="alt2" valign="middle" colspan="2">
<select name="dropdownanswer2">
<option value="$dropdownchoice2a" <if condition="$dropdownchoice2a == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2a</option>
<option value="$dropdownchoice2b" <if condition="$dropdownchoice2b == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2b</option>
<option value="$dropdownchoice2c" <if condition="$dropdownchoice2c == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2c</option>
<option value="$dropdownchoice2d" <if condition="$dropdownchoice2d == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2d</option>
<option value="$dropdownchoice2e" <if condition="$dropdownchoice2e == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2e</option>
</select></td>
</tr>
Then if you do the same thing but not go to SiteFormAnswers instead of Site Form... You get this:

Code:
<font color="white"><strong>$dropdownquestion2</font></strong>
$dropdownanswer2

When you go onto the form, it shows up fine and everything works, when it is submited it goes into the correct Forum Area, below is a picture showing the form before being submited:




Below is a picture showing the form after it has been submited:




As you can see there is a problem were it shows the "Importance" which i think i have spelt wrong lol, but as you can see nothing is written next to it, even though i do go into the frop down menu and select an option.

Please be aware that i was not the one that set up the hack or created the forms, i just added the "Importance" drop down menu, but as you can see, my noobness makes me fail.

I think i found everything that would need editing so if someone could please point me in the right direction as to were i am going wrong and how to resolve it, i would be so greatful.

Thanks in advance,

- David
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02377 seconds
  • Memory Usage 1,780KB
  • 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
  • (3)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