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
  #472  
Old 05-17-2007, 06:57 PM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea why the emails are sent as plain text html instead of being formatted html? I edited the formanswers template and when I preview the template its right..but both the preview at bottom of the form and email come with all the html code visible?
Reply With Quote
  #473  
Old 05-18-2007, 07:55 AM
newforum newforum is offline
 
Join Date: Jan 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WoW really great man. Its very simple and fast.
Great HACK.

Thanks.
Reply With Quote
  #474  
Old 05-24-2007, 11:25 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an excellent hack!

Installed and working in 3.6.7.

It took me a while to get it to where I wanted it, but I'm there...and that's all that counts.

There's only one thing from keeping me from voting for this as MOTM and that's a user-friendly GUI for this thing.

Adding three or more radio buttons, check boxes, or text fields can prove to be very annoying...they don't line up properly. There's too much brain racking to figure out just what's going wrong.

It would be nice if this mod had an ACP interface that would automatically insert these fields for you once you key in the variables. If you ever need to change the form or update it...manually modifying the form, formanswers, and form plugin is a pain in the...well you know...neck!

Get that fixed...and you'll have my vote. Also, getting it supported would be another plus.

Hats off to Abe...good job!
Reply With Quote
  #475  
Old 05-28-2007, 12:11 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just upgraded to 3.6.7 and I'm running into a problem.

When regular users go to submit the forum, they get an error telling them "no thread specified".

This only happens for one user group. This tells me that there's a permission setting wrong somewhere, but I can't find where.

The user group has access to the forum and the permissions for the user group are such that they appear to be allowing the user to post in that forum.

I remember running into this when I was setting it up a while back, but now that it's been a while, I can't for the life of me figure out where to start searching for a resolution.

Any help would be appreciated.
Reply With Quote
  #476  
Old 05-29-2007, 12:11 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump!
Reply With Quote
  #477  
Old 05-31-2007, 01:14 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, I'm not sure what I did, but I got it working....for a little bit.

Now the users are reporting a different error.

That they don't have permission to view the page.

I've added the user group to the plug-in for this form and I can see it just fine as an admin.

Even if I send them the direct link they cannot see the form.

This tells me it's a permission issue with the form it's self and not the forum the form is in.

Am I missing something obvious here?

Anyone?

Does anyone read this thread any more?
Reply With Quote
  #478  
Old 05-31-2007, 02:06 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EDIT: Ok - I think I might have found the issue.

I'm trying to allow a secondary user group access to this form.

Basically, I have the user group set-up as such:

Primary User Group: Active Users
Secondary User Group: Private Testers

I have set this specific form to be accessable by Admins, Staff members, and Private Testers.

private testers are the only ones of those 3 groups to access the form as a secondary user group...

I hope what i typed just made sense.

Does this make sense to anyone as being the issue?

I did test this with a test account by changing the user group that I'm trying to test to be primary instead of secondary so I'm able to confirm that this is the issue (bug?)
Reply With Quote
  #479  
Old 05-31-2007, 09:58 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Saviour View Post
This is an excellent hack!

Installed and working in 3.6.7.

It took me a while to get it to where I wanted it, but I'm there...and that's all that counts.

There's only one thing from keeping me from voting for this as MOTM and that's a user-friendly GUI for this thing.

Adding three or more radio buttons, check boxes, or text fields can prove to be very annoying...they don't line up properly. There's too much brain racking to figure out just what's going wrong.

It would be nice if this mod had an ACP interface that would automatically insert these fields for you once you key in the variables. If you ever need to change the form or update it...manually modifying the form, formanswers, and form plugin is a pain in the...well you know...neck!

Get that fixed...and you'll have my vote. Also, getting it supported would be another plus.

Hats off to Abe...good job!
Yea , I agree, but it ain't going to be easy...

I also hope that ABE1 will add Admincp options...

I played with some options and code to enhance this, but i found that its a bit beyond my intermediate skills. Im still learning all this stuff and man I noticed Im getting more headaches and dizzy spells. he he

Good Luck ABE1
Reply With Quote
  #480  
Old 05-31-2007, 10:02 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
EDIT: Ok - I think I might have found the issue.

I'm trying to allow a secondary user group access to this form.

Basically, I have the user group set-up as such:

Primary User Group: Active Users
Secondary User Group: Private Testers

I have set this specific form to be accessable by Admins, Staff members, and Private Testers.

private testers are the only ones of those 3 groups to access the form as a secondary user group...

I hope what i typed just made sense.

Does this make sense to anyone as being the issue?

I did test this with a test account by changing the user group that I'm trying to test to be primary instead of secondary so I'm able to confirm that this is the issue (bug?)


RedGTiVR6 what seems 2 B yo problem?

Zip up all yo files in text format and upload, I will take a look C...

Its probably something that you missed in plugin code...
Reply With Quote
  #481  
Old 05-31-2007, 10:24 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've changed the user group structure.

Rather than zip it all up first, can you try it on your implementation?
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:03 AM.


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.05018 seconds
  • Memory Usage 2,322KB
  • 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
  • (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
  • (3)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