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
  #1022  
Old 05-11-2008, 05:57 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
ccplim,,,

I usually add CSS,,, but its not needed here...
  • Goto Admincp
  • Open Style Mgr
  • Goto StyleVars
  • Look 4 Spacer Size and Edit

Play around with it between {{{ 30 to 200 }}}

Good Luck 2 ya
But if I were to use this method, that means it will affect the entire forum.

Is it possible to retain the spacer size and just adjust the column width?

It is okay if that is too troublesome. I can still live with it.
Reply With Quote
  #1023  
Old 05-11-2008, 06:24 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bro Deepdog009,

I tried playing around with the following codes

HTML Code:
<tr>
	<td class="alt2" valign="middle">
		<b>$radioquestion1</b>
	</td>
                <td class="alt3" valign="middle" colspan="1">
                <input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
                <input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b (Want To Sell)
                </td>
        <td>&nbsp;</td>
</tr>
and it seems like by changing the "colspan" in the following from 2 to 1, it does help to shift the margin towards the left. However, I am not sure if this will have any side effect?

Change the colspan="2"
Quote:
<td class="alt3" valign="middle" colspan="2">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
To colspan="1"
Quote:
<td class="alt3" valign="middle" colspan="1">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
Reply With Quote
  #1024  
Old 05-12-2008, 01:53 AM
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 ccplim View Post
Bro Deepdog009,

I tried playing around with the following codes

HTML Code:
<tr>
	<td class="alt2" valign="middle">
		<b>$radioquestion1</b>
	</td>
                <td class="alt3" valign="middle" colspan="1">
                <input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
                <input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b (Want To Sell)
                </td>
        <td>&nbsp;</td>
</tr>
and it seems like by changing the "colspan" in the following from 2 to 1, it does help to shift the margin towards the left. However, I am not sure if this will have any side effect?

Change the colspan="2"


To colspan="1"

ccplim,,,

Good deal,,, Hard work pays off...:up:

Sorry,,, I forgot about the spacer size changes will also affect your forum alignments...

Changing the colspan count in your form will only affect that template...

COLSPAN ("how many across") and ROWSPAN ("how many down")
Reply With Quote
  #1025  
Old 05-12-2008, 05:12 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
ccplim,,,

Good deal,,, Hard work pays off...:up:

Sorry,,, I forgot about the spacer size changes will also affect your forum alignments...

Changing the colspan count in your form will only affect that template...

COLSPAN ("how many across") and ROWSPAN ("how many down")
Thanks!

But then, I noticed that the column that I wanted to change is not controlled by COLSPAN. The COLSPAN that we are using here is actually controlling the column on the right hand side.
Reply With Quote
  #1026  
Old 05-12-2008, 12:17 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
************************************************** **

Daniel,,,

I setup your form and its showing manage attachments...

Scratch the form as the issue...
Its gotta B something else???

May its the usergroup setup??? It has 2-B something concerning PERMISSIONS or USERGROUP access...

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

ccplim,,,
I will post L8ter
Thats what I thought also but no luck Ive edited both those in several ways and its not changing.

What about using the code right off the upload pop-up? Can it be hard coded into the form page? And if so how???
Reply With Quote
  #1027  
Old 05-12-2008, 05:58 PM
redraider redraider is offline
 
Join Date: Sep 2006
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any changes required for vb 3.7 ?
Reply With Quote
  #1028  
Old 05-12-2008, 10:47 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 ccplim View Post
Thanks!

But then, I noticed that the column that I wanted to change is not controlled by COLSPAN. The COLSPAN that we are using here is actually controlling the column on the right hand side.
************************************************** ***
ccplim,,,
I've been a bit busy with testing some stuff for this mod and others,,, afterwards when I have some free time,,, I will try a bit of css and see if that might do the trick...

I will post about it L8ter...

************************************************** ***
Scalemotorcars,,,
I setup your form info and loaded it in IE,,, and it had the manage attachments in the right place... So next I went into my usergroups and switched attachments off,,, refreshed the page and the option was gone...

If you already checked the usergroups and its still not showing then it could also be that another MOD is affecting it???

************************************************** ***
redraider,,,
YES,,, this works with 3.7 beauts... install the 4.1 and read help file by ABE1
Reply With Quote
  #1029  
Old 05-14-2008, 11:37 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Deepdog009,

Thank you so much
Reply With Quote
  #1030  
Old 05-14-2008, 07:03 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 ccplim View Post
Hi Deepdog009,

Thank you so much
YEAP,,,

I think Im going 2 focus more on forms next month and create some add-on form packs with mostly custom forms that will help folks with customizing a bit easier...
Reply With Quote
  #1031  
Old 05-15-2008, 07:15 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think Im going 2 focus more on forms next month and create some add-on form packs with mostly custom forms that will help folks with customizing a bit easier...[/QUOTE]

That would be great. No mater what I do I cant get the attachments section to come up. I turned off every hack Ive got and nothing changed. Must be something else.

If you can make another form hack like the WOW with a better attachments section that would be great. I could really use this for my car site when we have on line shows.
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 04:22 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.06897 seconds
  • Memory Usage 2,339KB
  • 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_html
  • (8)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