vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem with Form Hack! (https://vborg.vbsupport.ru/showthread.php?t=258834)

mufar 02-14-2011 02:15 AM

Problem with Form Hack!
 
So, I downloaded the form hack https://vborg.vbsupport.ru/showthread.php?t=93970. I edited the main hook and the page template does not appear to be changing. Here is the code:

PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//VARIABLES
//Study how variables are add here to add or remove any. If you add a variable to your form, you must add it to part one and part two.
////////////////////////////////////////////////////////////////////////////////////////////////////

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'answer1' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'answer8' => TYPE_STR,
'longanswer1' => TYPE_STR,
'longanswer2' => TYPE_STR,
'longanswer3' => TYPE_STR,
'longanswer4' => TYPE_STR,
'longanswer5' => TYPE_STR
));

// Part 2
$answer1 $vbulletin->GPC['answer1'];
$dropdownanswer1 $vbulletin->GPC['dropdownanswer1'];
$answer2 $vbulletin->GPC['answer2'];
$answer3 $vbulletin->GPC['answer3'];
$answer4 $vbulletin->GPC['answer4'];
$answer5 $vbulletin->GPC['answer5'];
$answer6 $vbulletin->GPC['answer6'];
$answer7 $vbulletin->GPC['answer7'];
$answer8 $vbulletin->GPC['answer8'];
$longanswer1 $vbulletin->GPC['longanswer1'];
$longanswer2 $vbulletin->GPC['longanswer2'];
$longanswer3 $vbulletin->GPC['longanswer3'];
$longanswer4 $vbulletin->GPC['longanswer4'];
$longanswer5 $vbulletin->GPC['longanswer5'];
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose "Before applying, we ask that you read the following thread <a href=http://knightsofshadow.org/forums/showthread.php?t=2231>Guild Rules and Application Format</a><br />It also wouldn't hurt to review our <a href=http://knightsofshadow.org/forums/forumdisplay.php?f=15>Current Apps</a> so you know what we are looking for.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

//$normalquestion1 = "What is the meaning to life?";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

//$radioquestion1 = "Choose one of the following choices";

// The following choices must NOT have quotation marks
//$radiochoice1a = "yes";
//$radiochoice1b = "no";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

//$radioquestion2 = "Choose another one of the following choices";

// The following choices must NOT have quotation marks
//$radiochoice2a = "good";
//$radiochoice2b = "bad";
//$radiochoice2c = "both";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

//$radioquestion3 = "Is it yes or no? If yes, please elaborate";

// The following choices must NOT have quotation marks
//$radiochoice3a = "yes";
//$radiochoice3b = "no";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question1 "What is your name?";
$explain1 "Please enter your real name here.";

//QUESTION 2 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question2 "What is your email?";
$explain2 "Please enter your real email here.";

//QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question3 "What is your website?";
$explain3 "Please enter your URL here.";

//QUESTION 4 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question1 "What is your name?";
$explain1 "Please enter your real name here.";

//QUESTION 5 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question2 "What is your email?";
$explain2 "Please enter your real email here.";

//QUESTION 6 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question3 "What is your website?";
$explain3 "Please enter your URL here.";

//QUESTION 7 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question2 "What is your email?";
$explain2 "Please enter your real email here.";

//QUESTION 8 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question3 "What is your website?";
$explain3 "Please enter your URL here.";
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//DROP DOWN CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

$dropdownquestion1 "What is your character class?";

// The following choices must NOT have quotation marks
$dropdownchoice1a "";
$dropdownchoice1b "Paladin";
$dropdownchoice1c "Death Knight";
$dropdownchoice1d "Warrior";
$dropdownchoice1e "Druid";
$dropdownchoice1f "Hunter";
$dropdownchoice1g "Shaman";
$dropdownchoice1h "Rogue";
$dropdownchoice1i "Priest";
$dropdownchoice1j "Mage";
$dropdownchoice1k "Warlock";


////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHECK BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

//$checkboxquestion1 = "This shows how to use checkboxes.";

// The following choices must NOT have quotation marks
//$checkboxchoice1_1 = "good";
//$checkboxchoice1_2 = "bad";
//$checkboxchoice1_3 = "both";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 "Please write down a paragraph about yourself.";
$longexplain1 "For example, a bit about your experience in this area.";

$longquestion2 "Please write down a paragraph about yourself.";
$longexplain2 "For example, a bit about your experience in this area.";

$longquestion3 "Please write down a paragraph about yourself.";
$longexplain3 "For example, a bit about your experience in this area.";

$longquestion4 "Please write down a paragraph about yourself.";
$longexplain4 "For example, a bit about your experience in this area.";

$longquestion5 "Please write down a paragraph about yourself.";
$longexplain5 "For example, a bit about your experience in this area.";
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//VB TEXT AREA INPUT: You can only have ONE vb text question. (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

//$vbtextquestion = "Please write down a paragraph about how you like this forum.";
//$vbtextexplain = "For example, what makes this forum different from all other forums?";

////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
/////  DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////// 

The rest of the script is default.
Anyone know where the hack could possibly be getting the OLD (default) template from, even though I completely edited it. /shrug
I mean there is no text, but the default set of questions are present (albeit very broken)

HALP!

--------------- Added [DATE]1297661385[/DATE] at [TIME]1297661385[/TIME] ---------------

well, got that figured out. Had to edit the template. Now i am having a problem with the dreaded: Your submission could not be processed because a security token was missing.

--------------- Added [DATE]1297663854[/DATE] at [TIME]1297663854[/TIME] ---------------

my apologies, I figured it out /sigh

TRG 02-25-2011 04:13 AM

hey mufar,

what did you do to get past the Your submission could not be processed because a security token was missing.

any help is appreciated

Thanks!

Lynne 02-25-2011 04:43 PM

Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.


All times are GMT. The time now is 05:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02237 seconds
  • Memory Usage 1,795KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete