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
  #342  
Old 03-15-2007, 12:26 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vien View Post
Dont know why I get this error, even I did uninstall the hack.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/vtn/public_html/forum/newthread.php(71) : eval()'d code on line 641

Now everything I click on "New thread" this error appears on the top banner. Please advise.. Thanks so much.
No clue. Maybe you have one some other hack interfering with it.
Reply With Quote
  #343  
Old 03-15-2007, 01:40 PM
vien vien is offline
 
Join Date: Nov 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used the old version 3.5 and it worked very well, dont know when I upgrade to this version, it's still work well but after I edit something and import again, the error appears, I uninstall this hack but that error still remains. When I turn off the hook on vbb setting, that error disappear, it seems to be like the error due to the product... dont know how to solve that (

Edit: I worked out. Thanks
Reply With Quote
  #344  
Old 03-15-2007, 06:22 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im sure I could figure out how to do it if I had hours of free time but not.

How do I change the REDIRECTION to other url to external site???

How do I add IMAGE VERIFICATION???

Thanks 4 your time...<>
Reply With Quote
  #345  
Old 03-16-2007, 11:43 AM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to Plugin Manager --> Form Hack (or if you've created duplicate form hacks, whatever you named yours)

In the PHP Plugin Code, scroll close to the bottom and find:
Code:
if ($redirectoption == "4")
        {
            $vbulletin->url = 'editpost.php?do=editpost&' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
            eval(print_standard_redirect('redirect_postthanks'));
            exit();
        }
After it, add:
Code:
if ($redirectoption == "5")
        {
            $URL="http://www.DOMAIN.com";
                header ("Location: $URL");
        }
Change domain to whatever site you want.

Now, just so you remember what option 5 does, find:
Code:
// 4 - redirect to editpost (thread or reply)
and after it, add:
Code:
// 5 - redirect to external website
Then right after that change "$redirectoption" to "5".

I wouldn't use this unless you clearly state in the form that you're redirecting them to an external site... it just seems kind of... sneaky. They'll also have no indication that their form was submitted successfully.

I hope you'll use this legitimately though.

-----------------------
Edit: And about the image verification thing.. I'd really like that too.

I have found a cool workaround though.. you can add a question to the bottom of the form that there is only one definite answer to, use an expression to limit the input, and make the form require it to be answered, or it won't submit.

It's a little harder than the site redirect... so if you really want to know, maybe I can muster up the energy to explain it.
Reply With Quote
  #346  
Old 03-16-2007, 01:39 PM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, sorry to double post..

I am very close to getting image verification to work in the form hack.

My ONLY problem is that I don't receive an error message when entering the wrong verification code. However, it DOES know that it's the wrong code because the post doesn't enter my moderation queue. If I do enter the right code, it shows up in moderation.

So can any more experienced coders than I tell me what code handles the Image Verifcation error message?? It's supposed to pop up in the same place the Preview would if I hit "Preview Post"

Pretty please? Help?
Reply With Quote
  #347  
Old 03-16-2007, 02:57 PM
amac64 amac64 is offline
 
Join Date: Feb 2007
Location: Mississippi, USA
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having trouble with a emailed form. The email is blank. Can someone show me their code snippet that they use for emailed forms. I think it he forms and formanswer part I have a problem with.
Reply With Quote
  #348  
Old 03-16-2007, 09:57 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good to Go MilkCarton

I saw that down there and was messing with it, but 4 the life of me I didnt get far.
Nice work around.

No, no, no... I dont redirect folks to BS links. Its internal links, Im using outsite of forum, same site.

Yeah that image verification deal would be great. I've been working on some forms and wanted to know why that wansn't added before.

I like this Hack because it saves me on using database form software for tracking folks. Also its easy to incorporate advanced forms.

Thanks 4 your time...<>
Reply With Quote
  #349  
Old 03-18-2007, 01:08 AM
chickadee chickadee is offline
 
Join Date: Mar 2007
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having trouble inserting more variables for the checkbox and dropdown choices. I'm adding the new variables to both Part 1 and Part 2, but when I try and access the form I get an error saying the forum is invalid.
Reply With Quote
  #350  
Old 03-18-2007, 12:35 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1 View Post
No clue. Maybe you have one some other hack interfering with it.
Hello Abe, can you PLEASE tell me why it doesn't work anymore. Ihave now uninstalled/installed it over and over again but the same problem keeps coming back. The form apears, I can fill it in , but after submit nothing get's posted, there is just no thread made. And yes I have selected a forum where the thread needs to be posted in. How is this possible? I used this before for a year and it always worked , it's driving me nuts?!

PS: I'm willing to pay for personal support if you can make it work again! This is very important for our board.
Reply With Quote
  #351  
Old 03-18-2007, 02:57 PM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone is experienced with coding, please check out my thread here...

I only need to figure out a few lines of code and then I can release my fix to add Image Verification to this Form Hack!

I'm only testing this in a form to post a new thread, however. I can't even guarantee that it would work to submit a PM, reply, email, etc.
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 05:42 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.10230 seconds
  • Memory Usage 2,319KB
  • 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_code
  • (2)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