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
  #1372  
Old 05-07-2009, 07:09 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the proper code for a radio question in the form template? I added a dropdown and radio question to my form. I copied the code and used it for both but I know the radio code is wrong.

Code:
<tr>
<td class="alt2" valign="middle" colspan="2">
<select name="dropdownanswer7">
<option value="$dropdownchoice7a" <if condition="$dropdownchoice7a == $dropdownanswer7">selected="selected"</if>>$dropdownchoice7a</option>
<option value="$dropdownchoice7b" <if condition="$dropdownchoice7b == $dropdownanswer7">selected="selected"</if>>$dropdownchoice7b</option>
</select></td>
</tr>
<tr>
<td class="alt1" valign="middle" colspan="2">
<select name="radioanswer4">
<option value="$radiochoice4a" <if condition="$radiochoice4a == $radioanswer4">selected="selected"</if>>$radiochoice4a</option>
<option value="$radiochoice4b" <if condition="$radiochoice4b == $radioanswer4">selected="selected"</if>>$radiochoice4b</option>
</select></td>
</tr>
Reply With Quote
  #1373  
Old 05-13-2009, 03:43 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump, anyone know?
Reply With Quote
  #1374  
Old 05-21-2009, 12:14 PM
kanzleramt kanzleramt is offline
 
Join Date: Feb 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a chance to subtract a sum out of Reputation Points for Users only who have Thanked? It makes no difference how many Rep Points are being substracted but I'd like to know how it works.

Example: "User A" has 50 Rep Points. After a submitted (given) Thanks "User A" has 49 Rep Points instead of 50.

Thanks in advance
Reply With Quote
  #1375  
Old 06-05-2009, 05:14 PM
nalexandre nalexandre is offline
 
Join Date: Nov 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, where do i set the options of the form????

Thanks
Reply With Quote
  #1376  
Old 06-05-2009, 08:17 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nalexandre View Post
Hi, where do i set the options of the form????



Thanks
In the plugin. Instructions are written in there too.
Reply With Quote
  #1377  
Old 06-05-2009, 09:13 PM
nalexandre nalexandre is offline
 
Join Date: Nov 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, i have another question,

When comes an update? No admin cp control??? I set options to post in a forum but nothing there, can you helP?

Thank you and sorry my english.

Obrigado,
Reply With Quote
  #1378  
Old 06-08-2009, 01:01 AM
Zephanor Zephanor is offline
 
Join Date: Jul 2003
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgive me if this has been covered in the previous posts but I didn't see anything in my search... I have this installed on 3.8.x and it's working fine except for one aspect. The forms are being posted in a private forum but all replies to that forum are being received by e-mail to the guest. They can't access the forum or the thread the form generates but they are getting the e-mail updates. This didn't happen in 3.7.x and only started after I upgraded to the next version. No changes were made to the forms since they were first installed.

For example if my previous explanation wasn't clear:
  • A guest fills out a form on our forum.
  • The form is posted in an administrator forum where a poll is attached, discussions are made and votes cast.
  • Any reply to the thread the form creates generates an e-mail notification to the guest who does not have access to the private forum the form thread is posted.

If anyone has any ideas on what I can look at to fix this I would greatly appreciate it.

Thanks!
Reply With Quote
  #1379  
Old 06-08-2009, 08:51 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zephanor View Post
Forgive me if this has been covered in the previous posts but I didn't see anything in my search... I have this installed on 3.8.x and it's working fine except for one aspect. The forms are being posted in a private forum but all replies to that forum are being received by e-mail to the guest. They can't access the forum or the thread the form generates but they are getting the e-mail updates. This didn't happen in 3.7.x and only started after I upgraded to the next version. No changes were made to the forms since they were first installed.

For example if my previous explanation wasn't clear:
  • A guest fills out a form on our forum.
  • The form is posted in an administrator forum where a poll is attached, discussions are made and votes cast.
  • Any reply to the thread the form creates generates an e-mail notification to the guest who does not have access to the private forum the form thread is posted.

If anyone has any ideas on what I can look at to fix this I would greatly appreciate it.

Thanks!
If I recall correctly, this was a bug some other admins were having even on older versions. I can't seem to find it right now, but somewhere in this thread someone had posted some code to try and block the subscription process, but I don't think they ever reported back if they were successful or not.
Reply With Quote
  #1380  
Old 06-09-2009, 03:26 AM
Zephanor Zephanor is offline
 
Join Date: Jul 2003
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the tip. I searched the thread and the closest I came to a possible solution was post 1341 which is actually 2 pages back. /boogle

I tried making the suggested changes but unfortunately they made no difference.

Reply With Quote
  #1381  
Old 06-11-2009, 05:25 AM
wrang wrang is offline
 
Join Date: Oct 2004
Location: Sweden
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great jobb but i have a problem.
When you should attach a file it dosent came up when you are a member etc. But when you are a moderator, admin it came upp.
I have set the USERGROUPS ALLOWED

PHP Code:
if (!in_array($vbulletin->userinfo['usergroupid'], array(6,2,7,5,23,22,31,36,30,32))) print_no_permission(); 
or is it some more place i should set it that member etc can upload a file

Quote:
Originally Posted by Deepdog009 View Post
HabboHut,,,
  • Goto admincp and look 4 usergroup options area...
  • Open and make changes to only groups that U wish to access page...

**************************************************

I forgot about the internal usergroup option within this mod...
Look in the PLUGIN code at the top and edit the usergroup option there to allow other members grps...
I have made this but its the same
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 03:13 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.05115 seconds
  • Memory Usage 2,331KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)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