The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Form Hack Details »» | |||||||||||||||||||||||||
Form Hack 4.1 Features: Ever wanted an online form that a user can fill out, which when submitted gets:
Or any combination or all of the above? Well, this is the hack for you! You can use this for:
Or anything you like - this hack is totally customizable via the AdminCP. The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms. Format of the form:
This is customizable via the hook. Also:
INSTALLATION Easy - takes only a few minutes:
Done! Use this hack to make as many forms as you like! Enjoy! Updates: Version 4.0: (09/15/2006)
Version 4.1: (04/24/2008)
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. Abe1 with rights from Dr Erwin Loh Supporters / CoAuthors Show Your Support
|
Comments |
#502
|
||||
|
||||
this hack is pissing me oof i change the questions only and when i got to the Form place i get a
Code:
Parse error: syntax error, unexpected '=' in /home/forumaio/public_html/forum/newthread.php(71) : eval()'d code on line 287 |
#503
|
|||
|
|||
Quote:
and on a different note... For some reason I'm running into an issue trying to edit one of the forms I've made for our site. I've gone through and made the changes (or so it seems) to the product to include the new code for the new questions, I've entered the code for the answers and the code for the questions. I've then gone into the form template and updated, then into the answers template and updates. However, when I go to check the form, nothing has changed. Am I missing a step somewhere perhaps? Maybe a field needs to be rebuilt? |
#504
|
||||
|
||||
Hey folks please go back 2 around page 23 of this hack and read from there... U will C many ideas and helpful hints 2 assist ALL...
From pages 23 - 34 should help answer many questions, but if not I will try 2 help when time permits... ABE1 form hack adds 2 templates and one plugin file... Admincp -->>> goto products and install after that -->>> goto templates and find form & form_answers templates... modify as you will... If you run into parse issues then double check your new modifications, most likely U added something wrong or forget 2 add quotes or something... Ohhh yeah the PLUGIN file has all the instructions on how 2 make changes and code stuff... When making new forms slowly make changes and check yo form after every change 2 verify where the problems start at,,, then backtrack and C what the cause could be... Download some of the FORM files in earlier posts 2 understand how it works... Good Luck |
#505
|
|||
|
|||
I ended up having to create new templates (with the exact same info mind you) and change the name of the templates the hack was looking for to those templates before I could get the changes to show up...
really not sure why that was the case. All I did was copy and paste the contents of the previous template into a new template and just change the name...strange. |
#506
|
|||
|
|||
Hi, can anyone tell me how to remove a field that I don't want in the form? I have only been able to remove the field name and not the actual field itself, how to I completely remove a field?
|
#507
|
||||
|
||||
Quote:
I uploaded those missing files two days ago... Most guys dont stay glued 2 these forums everyday my friend,,, when time permits I stop by 2 help and fix issues... At the time of release I uploaded a new file and forgot 2 add images 4 that add-on... Good Luck |
#508
|
|||
|
|||
I was just wondering how to edit the questions below:
PHP Code:
|
#509
|
||||
|
||||
Alright, I'm an idiot, and I've never worked with hooks before (crazy, I know).
Can someone just tell me where I have to go to edit the hook? I'll be fine then. :P |
#510
|
||||
|
||||
Quote:
Within the {Plugins & Products} menu is option Plugin Mgr... After accessing that menu look 4 Forms Hack plugin, open and view code... This is where U make modifications 2 create new forms or make changes 2 primary test form... Below is start of Hooks Code 4 this Hack... Making changes ain't easy... I suggest taking your time and study and read the setup area several times... Eventually U will understand how it works with a little patients... Good Luck! // To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'. // After, change the form name. You can't have 2 forms with the same name. // Name of this form $formname = "testemp"; if ($_REQUEST['do'] == $formname) { // ################################################## ##################### // ######################## CUSTOMIZE VARIABLES ########################## // ################################################## ##################### //////////////////////////////////////////////////////////////////////////////////////////////////// ////// 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( 'normalanswer1' => TYPE_STR, 'radioanswer1' => TYPE_STR, 'radioanswer2' => TYPE_STR, 'radioanswer3' => TYPE_STR, 'radioanswer3other' => TYPE_STR, 'answer1' => TYPE_STR, 'answer2' => TYPE_STR, 'answer3' => TYPE_STR, 'dropdownanswer1' => TYPE_STR, 'checkboxanswer1_1' => TYPE_STR, 'checkboxanswer1_2' => TYPE_STR, 'checkboxanswer1_3' => TYPE_STR, 'longanswer1' => TYPE_STR )); // Part 2 $normalanswer1 = $vbulletin->GPC['normalanswer1']; $radioanswer1 = $vbulletin->GPC['radioanswer1']; $radioanswer2 = $vbulletin->GPC['radioanswer2']; $radioanswer3 = $vbulletin->GPC['radioanswer3']; $radioanswer3other = $vbulletin->GPC['radioanswer3other']; $answer1 = $vbulletin->GPC['answer1']; $answer2 = $vbulletin->GPC['answer2']; $answer3 = $vbulletin->GPC['answer3']; $dropdownanswer1 = $vbulletin->GPC['dropdownanswer1']; $checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1']; $checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2']; $checkboxanswer1_3 = $vbulletin->GPC['checkboxanswer1_3']; $longanswer1 = $vbulletin->GPC['longanswer1']; |
#511
|
|||
|
|||
Silly question perhaps, but in addition to being posted to a thread, poll, etc., does the information submitted via the form hack automatically get stored in the database as well? If it doesn't get stored in the db then is it possible to modifiy the form to have 2 actions associated with the submit button. (You know like the ability to submit info to a db while notifying someone via email that their order has been received.) What I want is for the form data to be posted to a thread upon submission as well as storing it in the db so I can send it on to a different application it later. If if can be done, how do I do it?
(By the way, I have looked through the tables in my db and do not see any of the information that has been posted to my threads so I'm assuming that it only gets posted not stored ? Please correct me if I'm wrong) Sorry if this is a ridiculous question but I am not a coder. Any help is appreciated. Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|