Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Form Hack Details »»
Form Hack
Version: 4.1, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.x Rating:
Released: 09-14-2006 Last Update: 04-23-2008 Installs: 1216
Uses Plugins Template Edits
 
No support by the author.

Form Hack 4.1


Features:

Ever wanted an online form that a user can fill out, which when submitted gets:
  • Posted into a new thread in a forum of your choice
  • Create a new poll in the new thread with options of your choice
  • Posted as a reply in an existing thread of your choice
  • PMed to you or someone else
  • Emailed to an email address you specify
  • Choose to redirect to the post, thread or forum, or a custom thank you message
  • Choose to redirect to edit post
  • See a preview before they submit

Or any combination or all of the above?

Well, this is the hack for you!

You can use this for:
  • Moderator Applications
  • Quiz Submit Form which gets PMed to a moderator
  • Contact Form that goes to PM, email or thread
  • Guests to apply to be members
  • Report a Moderator form that goes as a PM to you
  • Guests can PM you for whatever reason
  • Order form to buy things
  • Donation form
  • News or Articles submissions that can go straight to a thread

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:
  • One main input question
  • 3 Radio buttons Choice questions
  • 3 Normal text input questions
  • 1 Drop down menu
  • 3 Check boxes
  • 1 Long answer question
  • 1 VB message editor text box question
  • Upload attachments

This is customizable via the hook.

Also:
  • You can set the usergroups you want access to this form.
  • Depending on your forum permissions, if the new thread is in a public forum, members can reply to it. This hack allows a form to submit the new thread or post wherever you want it to go.
  • Force the user to answer all questions.

INSTALLATION
Easy - takes only a few minutes:
  • Import the XML into products. (admin cp -> Plug-in System -> Manage Products -> Add/Import Product)
  • Edit the main plug-in - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
  • To get to the form, go to: /newthread.php?do=form (change "form" to the name of your form if you have few)

Done!

Use this hack to make as many forms as you like!

Enjoy!

Updates:

Version 4.0: (09/15/2006)
  • Ported over for vb3.6
  • Send to multiple emails.
  • Send multiple PMs.
  • Parse emails for BBCode
  • And finally, ATTACHMENTS!

Version 4.1: (04/24/2008)
  • Fixed for vb 3.6.10
  • Small bug fixed.
  • List of the 2 quick edits are in the zip file so you don't have to start making a form from scratch.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #782  
Old 12-12-2007, 02:50 PM
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I've gotten real good at making forms but I'm having a lot of troubles with my SUBMIT options (redirect)

When I choose 0 it just sends me to a Thankyou mesage and just sits there. which is great cause I want to thank my users for taking the time to fill out the form But I need my forms to call another form upon submitting as well. My forms get posted in a Forum that users dont have permissions to View (can Post and thats working fine)

What i'd like to see happen is that the Thank you comes up for say 10 seconds then they get re-directed to another form.

Here's my work flow...

1) First form "Age verification" ------> upon submitting (pm me, Post to forum, and redirect to next form)-------> "Application Form". -------->upon submitting (pm me, Post to forum, and redirect to next form)----------> Pricing and details--------------->upon submitting (Pm Me Post to forum and return to forum Home Page)

the Pms and Post are already working fine its just the re-direct that doesnt seem to work for me and as soon as I try messing with that code it give me the Ole "Invalid Forum Link or summin"

Man I've been up till 5am 3 days in a row working with this Can someone PLEASE help me out ...

I love the hack just wish it was a bit more flexable in the submit area...

Thanks to everyone for again for any and ALL help

Peace out...
Tom
Reply With Quote
  #783  
Old 12-12-2007, 03:34 PM
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I got it found a URL redirect post here...

https://vborg.vbsupport.ru/showthrea...ct#post1204796

that helped ...

Thanks a million MilkCarton ^5
Reply With Quote
  #784  
Old 12-12-2007, 04:17 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 theoz1 View Post
WOOT found the problem, except theres been one other problem all along. Hopefully this should be very simple. Thanks in advance and for everything so far .


and after filling out a form I get this, w/o the questions:
BAP Form
pokermainstream

BAP Title
test1111

------------------------------------------------------
All information you are wanting put down.

test
It sounds like you neeed to edit the template called "formanswers" and add those variables in there.
Reply With Quote
  #785  
Old 12-13-2007, 12:40 AM
atomhead atomhead is offline
 
Join Date: Nov 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=150424" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=150424</a> >
Reply With Quote
  #786  
Old 12-13-2007, 06:02 AM
theoz1 theoz1 is offline
 
Join Date: Dec 2007
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not sure whats wrong but i keep messing wtih it, and it either just starts saying normalquestion1 or it doesnt say anything. It also has the instruction part underneath it.

Preview
BAP Form
pokermainstream

BAP Title
asdf

What site is this being played on?
Please enter the poker site

What is your poker account
May only use 1 account

Total Amount of Money
Please enter the amount here.

Number of shares
#

Cost for each share
How much is each worth

------------------------------------------------------
All information you are wanting put down.

asf

coding:
$formtitle
$bbuserinfo[username]

$normalquestion1
$normalanswer1

$normalquestion2
$normalanswer2

$normalquestion3
$normalanswer3

$normalquestion4
$normalanswer4

$normalquestion5
$normalanswer5

$normalquestion6
$normalanswer6

$question1
$explain1

$question2
$explain2

$question3
$explain3

$question4
$explain4

$question5
$explain5

------------------------------------------------------
$vbtextquestion

$vbtextanswer

------------------------------------------------------
Reply With Quote
  #787  
Old 12-13-2007, 06:46 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by theoz1 View Post
not sure whats wrong but i keep messing wtih it, and it either just starts saying normalquestion1 or it doesnt say anything. It also has the instruction part underneath it.
$question1
$explain1

$question2
$explain2

$question3
$explain3

$question4
$explain4

$question5
$explain5

------------------------------------------------------
$vbtextquestion

$vbtextanswer

------------------------------------------------------
That is because your doing it wrong. You using question and explain variables. You suppose to use question and answer variables like this:

Quote:
$question1
$answer1

$question2
$answer2

$question3
$answer3
Reply With Quote
  #788  
Old 12-13-2007, 07:37 AM
theoz1 theoz1 is offline
 
Join Date: Dec 2007
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well it got rid of teh description, im g uessing something needs to be changed in one of these 2 sections?

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'normalanswer2' => TYPE_STR,
'normalanswer3' => TYPE_STR,
'normalanswer4' => TYPE_STR,
'normalanswer5' => TYPE_STR,
'longanswer1' => TYPE_STR
));

// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$normalanswer2 = $vbulletin->GPC['normalanswer2'];
$normalanswer3 = $vbulletin->GPC['normalanswer3'];
$normalanswer4 = $vbulletin->GPC['normalanswer4'];
$normalanswer5 = $vbulletin->GPC['normalanswer5'];
$longanswer1 = $vbulletin->GPC['longanswer1'];

//QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question1 = "What site is this being played on?";
$explain1 = "Please enter the poker site";

//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 poker account";
$explain2 = "May only use 1 account";

//QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question3 = "Total Amount of Money";
$explain3 = "Please enter the amount here.";

//Question 4
$question4 = "Number of shares";
$explain4 = "#";

$question5 = "Cost for each share";
$explain5 = "How much is each worth";
Reply With Quote
  #789  
Old 12-13-2007, 07:47 AM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Folks, I have a problem with quotes in this hack.
If someone uses a double quote in the thread title, the text is truncated at the point of the quote.
If I put the php function addslashes in there, the slash appears in the resulting thread.
Anyone had a problem like this and found a solution?
Reply With Quote
  #790  
Old 12-13-2007, 08:00 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spinball View Post
Folks, I have a problem with quotes in this hack.
If someone uses a double quote in the thread title, the text is truncated at the point of the quote.
If I put the php function addslashes in there, the slash appears in the resulting thread.
Anyone had a problem like this and found a solution?
Why would someone use double quotes in the thread title anyways?
Reply With Quote
  #791  
Old 12-15-2007, 05:05 AM
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey folks,
Anyone know how to extract the users listed e-mail addy like we do the "username" automatically onto a form?
Thanks
Tom
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06232 seconds
  • Memory Usage 2,329KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete