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

DJ, I use the forms for an application process and it is submitted into an area that only certain people have access to. The applicants cannot read the area it is submitted to but I found out that they can subscribe to the thread and be sent the replies. How can I deny anyone from subscribing in that section?
Reply With Quote
  #1313  
Old 11-17-2008, 06:16 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 asandhanam View Post
Can anybody suggest a captcha system that works well with this hack? I tried noSpam. But encountered problems getting it to work with this.
My solution was to just link unregistered users to the registration page, and then have used a redirect to the forum upon registration. That might not work for everyone though.

Quote:
Originally Posted by Stryker412 View Post
DJ, I use the forms for an application process and it is submitted into an area that only certain people have access to. The applicants cannot read the area it is submitted to but I found out that they can subscribe to the thread and be sent the replies. How can I deny anyone from subscribing in that section?
Only thing I can think of at the moment, short of disabling subscriptions altogether, is to have the threads in that section go into the moderator queue first, and the upon approval, check it's subscription status with the thread starter. Or you can use the Unsubscribe option in the Admin CP an remove subscriptions from a specific user from a specific forum.

But then, I haven't checked to see if Abe set a variable setting for this.
Reply With Quote
  #1314  
Old 11-17-2008, 04:13 PM
Sawa Dee SohL Sawa Dee SohL is offline
 
Join Date: Aug 2008
Location: www.TheSocialRev.com
Posts: 277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to get the text(content I put in) to show up bigger - How can I enlarge the text/Make the font bigger?

How would I be able to make it so the Radio buttons - aren't so spread apart? Or make the font smaller for the default questions?
Reply With Quote
  #1315  
Old 11-20-2008, 04:13 AM
Murex Murex is offline
 
Join Date: Aug 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So nothing on getting a field written to the database?
Reply With Quote
  #1316  
Old 11-23-2008, 02:28 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a particularly large form to fill out. I notice if I spend a long time filling out the form, trying to submit or preview results in a security token error. I presume that means that it's just timed out. Is this a function of vBulletin on creating a new thread or is this a function of the modification and how would I increase the time limit?
Reply With Quote
  #1317  
Old 11-23-2008, 09:35 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your errors on unregistered users getting replies would be removed if you chose the email or pm options for the form.

The timeout i suspect is set in your vbulletin options as i have had a form open for over 30 mins before hitting preview and has worked ok.
Reply With Quote
  #1318  
Old 11-24-2008, 10:43 AM
s810car s810car is offline
 
Join Date: Mar 2008
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been making an extensively complicated form, which has been coming out beautifully for what I need to do. I do have a problem though, I can't seem to edit the form answer template with any spaces, I have worked around some of that with the indent bbcode, but im also setting up some parts of the end user display inline like this:

info here(about 8 spaces)info here(about 8 spaces)info here
but it comes out like

info here info here info here

using nbsp stuff doesn't work cause it just displays it, any idea how to remedy this?

EDIT: lol happened in this editor too so had to write those comments up there, maybe it isn't able to be done with vBulletins WYSIWYG currently
Reply With Quote
  #1319  
Old 11-24-2008, 05:06 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 s810car View Post
I have been making an extensively complicated form, which has been coming out beautifully for what I need to do. I do have a problem though, I can't seem to edit the form answer template with any spaces, I have worked around some of that with the indent bbcode, but im also setting up some parts of the end user display inline like this:

info here(about 8 spaces)info here(about 8 spaces)info here
but it comes out like

info here info here info here

using nbsp stuff doesn't work cause it just displays it, any idea how to remedy this?

EDIT: lol happened in this editor too so had to write those comments up there, maybe it isn't able to be done with vBulletins WYSIWYG currently
The only way around that is to create your own BBCode that inserts a  .
Reply With Quote
  #1320  
Old 11-24-2008, 07:06 PM
s810car s810car is offline
 
Join Date: Mar 2008
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, problem with that is if the user is allowed to edit the post, they will see all the custom bbcode tags like I put in a noparse bbcode, makes it a mess.

Only workaround I found at the moment is hard-coding the class_bbcode.php, near the bottom is all of vbulletins $tag_list items. I was too lazy to read through all of the code to create a custom value option one, so made 3 tags at 9, 20, and 50 pixels. Heres the code in case anyone else had that issue:
PHP Code:
// [SPACE20]
        
$tag_list['no_option']['space20'] = array(
            
'html' => '<span style="margin-left:20px;">%1$s</span>',
                
'strip_empty' => true,
                
'strip_space_after' => 1
            
); 
The codes that allowed a {option} parameter had different code, but im sure anyone who reads through the code can figure it out
Reply With Quote
  #1321  
Old 11-26-2008, 03:39 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to be logged in to fill in a form, if you are not then this error is received:


PHP Code:
Fatal errorExisting data passed is not an array
Called set_existing in [path]/newthread.php(74) : eval()'d code on line 350
Called eval in [path]/newthread.php on line 74
in [path]/includes/class_dm.php on line 235 
Anyway is there a way to make it so this error disappears if you are not logged in?

Thanks.

David.
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 06:18 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.06028 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
  • (2)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
  • (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