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
  #602  
Old 08-05-2007, 12:23 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 SuthernKumfort View Post
If someone else could take a look at this screeen shot and not be so vague, I would greatly appreciate it. I have searched high and low to find where to edit the boxes so they wouldnt be black. Can anyone help please?


SuthernKumfort,

I extracted the code thats causing the black bkgd issue that U want 2 correct...
Look 4 this {{{ <td class="alt1" colspan="3"> }}} code and edit class options in Radioquestions 1,2 and 3...

HTML Code:
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion1</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer1" value="$radiochoice1a" <if

condition="$radiochoice1a == $radioanswer1">checked="checked"</if> />

$radiochoice1a </td>
<td><input type="radio" name="radioanswer1" value="$radiochoice1b" <if

condition="$radiochoice1b == $radioanswer1">checked="checked"</if> />

$radiochoice1b </td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="alt2" colspan="3">
<b>$radioquestion2</b>
</td></tr><tr>
<td><input type="radio" name="radioanswer2" value="$radiochoice2a" <if

condition="$radiochoice2a == $radioanswer2">checked="checked"</if> />

$radiochoice2a </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2b" <if

condition="$radiochoice2b == $radioanswer2">checked="checked"</if> />

$radiochoice2b </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2c" <if

condition="$radiochoice2c == $radioanswer2">checked="checked"</if> />

$radiochoice2c </td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion3</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer3" value="$radiochoice3a" <if

condition="$radiochoice3a == $radioanswer3">checked="checked"</if> />

$radiochoice3a </td>
<td><input type="radio" name="radioanswer3" value="$radiochoice3b" <if

condition="$radiochoice3b == $radioanswer3">checked="checked"</if> />

$radiochoice3b </td>
<td>If $radiochoice3a, please explain: <input type="text"

value="$radioanswer3other" name="radioanswer3other" /></td>
</tr>

1.) change td class 2 alter bkgd color
2.) add css style in header of template

Example code
***********
<style>
.radio button class {
background: #FFFFFF;
}
</style>

above is added 2 header area of template

***********

<td class="alt1" colspan="3"> before changes

<td class="radio button class" colspan="3"> after changes


edit all three radioquestion td classes in radioquestions 1,2 and 3...

I hope this gets U over the hump
Reply With Quote
  #603  
Old 08-05-2007, 05:04 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
Tralala back from out of town...

Sure U should be able 2 do all of that, by making a few modifications using conditionals...

Check some of the conditional mods here...


Do a search on conditionals here and over at vBulletin.com...

I hope that helps U
Thanks...
I discovered Abe1's excellent "Force Users to Read a Thread" mod:
https://vborg.vbsupport.ru/showthread.php?t=151737

So I am hoping there's a way to "force users to fill out the form!"
Reply With Quote
  #604  
Old 08-05-2007, 07:20 AM
shanevas2 shanevas2 is offline
 
Join Date: Jun 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You Grunt For Link!
And Thanks For Fixing My File Deepdog009
Reply With Quote
  #605  
Old 08-05-2007, 02:28 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 shanevas2 View Post
Thank You Grunt For Link!
And Thanks For Fixing My File Deepdog009

Shanevas2 Im glad U got it sorted out and Alive and Kicking...

I liked your earlier post about { how the hell do i install it } Im still laughing on that one...

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

Tralala thats great U found what U where looking 4...:up:

ABE1 has mega mods that help all...
Theres another modder that uses conditionals alot and has useful hacks... check Logician mods...
Reply With Quote
  #606  
Old 08-05-2007, 04:08 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
Tralala thats great U found what U where looking 4...:up:

ABE1 has mega mods that help all...
Theres another modder that uses conditionals alot and has useful hacks... check Logician mods...
Yes, cool, thanks. Since Abe1 wrote both I am hoping he can provide clues to integrate them. All else fails I suppose I can just "force users to read the thread" that tells them about the form.

I will search on Logician now, too. Thanks again!
Reply With Quote
  #607  
Old 08-07-2007, 04:49 AM
SuthernKumfort SuthernKumfort is offline
 
Join Date: Mar 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
Tralala back from out of town...

Sure U should be able 2 do all of that, by making a few modifications using conditionals...

Check some of the conditional mods here...


Do a search on conditionals here and over at vBulletin.com...

I hope that helps U



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

SuthernKumfort Im working on your form and I have a Q???... bkgd color?


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

shanevas2 im still not sure what you're asking 4, but maybe its this...>>>

http://www.yoursite/forum/newthread.php?do=name of your form here ??? :erm:
White background, black letters!
Reply With Quote
  #608  
Old 08-07-2007, 02:38 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 SuthernKumfort View Post
White background, black letters!

Look @ this POST
Reply With Quote
  #609  
Old 08-08-2007, 05:41 AM
SuthernKumfort SuthernKumfort is offline
 
Join Date: Mar 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
Look @ this POST
I am totally confused. I mean TOTALLY. I got it all messed up now and most of my form is even missing!
Reply With Quote
  #610  
Old 08-08-2007, 12: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 SuthernKumfort View Post
I am totally confused. I mean TOTALLY. I got it all messed up now and most of my form is even missing!

SuthernKumfort I think its best that U go back 2 your post that has your form code, copy and paste it back 2 your main form template, next if U look closely at my post about editing your form 2 change background colors in only Radioquestions 1,2 and 3, it only shows edit the CLASS of those three RADIO buttons listed...

The only area of that template that U will edit is here...>>>
**********************************************
Edit only Radioquestions 1,2 and 3

<td class="alt1" colspan="3"> before changes

<td class="radio button class" colspan="3"> after changes


That should fix all yo troubles...
Reply With Quote
  #611  
Old 08-08-2007, 02:34 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Form Hack seems to be working okay on my forum. I set up a job request sheet (for volunteer hours) and everyone seems to be liking it. The form results are posted into a thread.

One issue I note is that the "last post" for this thread, on FORUMHOME doesn't seem to accurately update and reflect what the last post actually is. I've had 25 responses so far and the "last post" is displaying the 22nd one.
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 05:24 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.07648 seconds
  • Memory Usage 2,338KB
  • 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_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