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
  #1252  
Old 09-12-2008, 05:14 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gasper View Post
Use html.
Do you mean like this...

Code:
<A HREF="http://www.marineaquariumsa.com/announcement.php?f=73">New Rules </A>

It doesn't work, I get a parse error
Reply With Quote
  #1253  
Old 09-13-2008, 04:08 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by viper357 View Post
Do you mean like this...

Code:
<A HREF="http://www.marineaquariumsa.com/announcement.php?f=73">New Rules </A>

It doesn't work, I get a parse error
Is this for your final output after the form have been submitted? If yes, use standard BB code in your formanswer template.
Reply With Quote
  #1254  
Old 09-13-2008, 04:21 AM
dmorales dmorales is offline
 
Join Date: Feb 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
You guys should be careful with this bug.

This happens with topics which are created by this hack.

When an user chooses option "Instant email notification" in "Default Thread Subscription Mode", then the moderators move those topics (that user subscribed) to moderator areas or somewhere that user can't access, but emails were still sent out to nofify that user about all the replied messages.

Sometimes the administrators and moderators discuss about that user in those topic are created by this hack, he/she also knows everything even he/she can't access to the area where the topics has been moved in.

Please advise.

Thanks.
Does anyone have a solution to this problem? I would appreciate the help. My users can see any messages that are left since they are subscribe to the thread. It sends them e-mail with the updated message. It's kinda defeats the purpose to having the applications confidential and only for moderators to comment on.
Reply With Quote
  #1255  
Old 09-13-2008, 11:46 AM
jdunsworth jdunsworth is offline
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by illithid View Post
Check around line 100 for a missing semicolon( ; ), double quote( " ), single quote( ' ) or bracket( { ).
This didn't work.. everything in newthread.php is fine. I get this error no matter if I upload a brand new product from this thread without editing it or use one I edited...

I want to say that it was a general compatibility issue with 3.7, however, it works fine on one of my forums running 3.7 and I haven't edited anything else with this forum that should mess it up.
Reply With Quote
  #1256  
Old 09-13-2008, 12:18 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ccplim View Post
Is this for your final output after the form have been submitted? If yes, use standard BB code in your formanswer template.
No, I am creating the form for it to be filled in by members, at the bottom of the form I am trying to put a link to a URL for the rules for the members to read before they submit the form.
Reply With Quote
  #1257  
Old 09-13-2008, 06:13 PM
jdunsworth jdunsworth is offline
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working.. to my mistake I had accidentally had an extra quotation in one of my variables.. whoops!
Reply With Quote
  #1258  
Old 09-15-2008, 06:56 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blacklancer View Post
I'm having problems with this hack...

I have the need for 2 forms. I made the easier one of the 2 first and tested it and it works fine. When I do the 2nd one, it gives me the following error when I try to submit the form.

Code:
Fatal error:

    * Please complete both the subject and message fields.

Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 763
any advice on what to do??
I'm having the exact same problem, any idea on how to solve it? I am also using the "edit thread button" hack.
Reply With Quote
  #1259  
Old 09-16-2008, 03:21 AM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured I would post this because I didn't see it anywhere else in a quick search through here.

If you want to have a separate activity on the online page, then there is a simple addition to the product to allow this. For example, if you have a form to submit a PM to the admins, then when a user is using that form, you could have their location/activity be "Contacting the Admins". That is just an example, it is open to whatever you want.

Here is the code you must add to the product xml to get this easy addition:

Code:
<plugin active="1" executionorder="5">
	<title>Form Name - Online Location Complete</title>
	<hookname>online_bit_complete</hookname>
	<phpcode><![CDATA[
	if($userinfo['activity'] == 'newthread' && $userinfo['values']['do'] == 'your_form_name')
	{
		$userinfo['action'] = "???";
	}
	]]>
	</phpcode>
</plugin>
Just replace 'your_form_name' with the name of your form and put whatever text you want in the action field.

This works on my vBulletin v3.7.3, haven't tested older versions.

Oh yeah, I think that this should be added into the base product.
Reply With Quote
  #1260  
Old 09-16-2008, 03:46 AM
uberjon uberjon is offline
 
Join Date: Sep 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Null Parameter View Post
I figured I would post this because I didn't see it anywhere else in a quick search through here.

If you want to have a separate activity on the online page, then there is a simple addition to the product to allow this. For example, if you have a form to submit a PM to the admins, then when a user is using that form, you could have their location/activity be "Contacting the Admins". That is just an example, it is open to whatever you want.

Here is the code you must add to the product xml to get this easy addition:

Code:
<plugin active="1" executionorder="5">
	<title>Form Name - Online Location Complete</title>
	<hookname>online_bit_complete</hookname>
	<phpcode><![CDATA[
	if($userinfo['activity'] == 'newthread' && $userinfo['values']['do'] == 'your_form_name')
	{
		$userinfo['action'] = "???";
	}
	]]>
	</phpcode>
</plugin>
Just replace 'your_form_name' with the name of your form and put whatever text you want in the action field.

This works on my vBulletin v3.7.3, haven't tested older versions.

Oh yeah, I think that this should be added into the base product.
nice! was looking for this yesterday!!! (may i kiss you? )

+1 for base product!
Reply With Quote
  #1261  
Old 09-16-2008, 07:55 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any help with post number 1258
Please
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 11:14 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.05670 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
  • (5)bbcode_code
  • (7)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