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
  #392  
Old 04-06-2007, 08:36 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad, i meant 3.6.5

Im using test board to verify this now. Maybe its another hack causing issue.

By the way can somebody help Milk Carton with the image verification add-on?

Good Luck

Fixed it...
Reply With Quote
  #393  
Old 04-06-2007, 11:08 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use bbcodes from smilies fields to add some color and flair to PREVIEWS and posts...

Upload smilies and insert into your answers template

Take a Peek...
Reply With Quote
  #394  
Old 04-08-2007, 09:27 AM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dutchbb View Post
Hello Abe, can you PLEASE tell me why it doesn't work anymore. Ihave now uninstalled/installed it over and over again but the same problem keeps coming back. The form apears, I can fill it in , but after submit nothing get's posted, there is just no thread made. And yes I have selected a forum where the thread needs to be posted in. How is this possible? I used this before for a year and it always worked , it's driving me nuts?!
Ok, I finally found the cause of this problem. It's because this mod doesn't work together with the form mod because it interferes in the posting process. It took me days to found this out but I'm happy to get it solved now. Hopefully both mods can work together in future updates some day...
Reply With Quote
  #395  
Old 04-08-2007, 05:11 PM
hal05 hal05 is offline
 
Join Date: Aug 2005
Location: Mid-Michigan
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has to be the best mod ever!
Reply With Quote
  #396  
Old 04-09-2007, 12:02 AM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im still having a few troubles getting this fully loaded, but here it is NE-ways.

Hope this helps...

HTML Code:
<script type="text/javascript">
function popup(url){
  window.open(url,"","width=275,height=250,scrollbars,");
  return false;
}
</script>

<a href="http://yourlinktocalendarpopuppage.com" onclick="return popup(this.href);">One</a>




<a href="" onclick="return popup(this.href);"><img src="/images/calendar1.gif" alt="Submit Events" width="20" height="20" border="0"></a>
Use this in body of page.

This is very useful 4 many things. Im using it to send folks to CALENDAR events. Not fully perfected.

Good Luck
Reply With Quote
  #397  
Old 04-10-2007, 06:21 PM
marlita marlita is offline
 
Join Date: Aug 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If a user fills this out & it goes into a thread, are they automatically subscribed to that thread too? What about the forum?
Reply With Quote
  #398  
Old 04-10-2007, 06: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 marlita View Post
If a user fills this out & it goes into a thread, are they automatically subscribed to that thread too? What about the forum?

I haven't played around very much with replys to forums, but Im sure if their a member of your forum and forums is set to subscibe, then it should work.

Marlita use your test board to verify.

Good Luck
Reply With Quote
  #399  
Old 04-10-2007, 06:34 PM
Deepdog009's Avatar
Deepdog009 Deepdog009 is offline
 
Join Date: Dec 2004
Location: Almost out of PHP TZone
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you dont like the standard form in vBull then use CSS forms to help spice um up. Make changes as needed...

HTML Code:
<style type="text/css">
body{
	font-family: Arial,Helvetica,sans-serif;
	font-size: 12px;
	background: #CCD8FF;
	color: #000000;
}
.outside{
	color: #000000;
}
.radio_button_question{
	font-weight: bold;
	vertical-align: top;
}
.radio_button_answer{
	padding-right: 5px;
}
.text_field_question{
	font-weight: bold;
	vertical-align: top;
}
.file_upload_question{
	font-weight: bold;
	vertical-align: top;
}
.segment_header{
	background: #3265FF;
	color: #ffffff;
	background-repeat: repeat;
}
.text_area_question{
	font-weight: bold;
}
.check_box_question{
	font-weight: bold;
}
.check_box_answer{
	padding-right: 5px;
}
a{
	color: #0000FF;
}
a:visited{
	color: #0000FF;
}
.matrix_question{
	font-weight: bold;
}
.matrix_header{
	font-weight: bold;
	background: #3265FF;
	background-repeat: repeat;
	color: #ffffff;
}
.matrix_subquestion{
	font-weight: bold;
}
.matrix_answer_dark{
	font-weight: bold;
	background: #273254;
	color: #ffffff;
}
.matrix_answer_light{
	font-weight: bold;
	background: #4F65A9;
	color: #ffffff;
}
.matrix_td{
	border-right-width: 1px;
	border-right-color: #000000;
	border-right-style: solid;
}
.multi_scale_question{
	font-weight: bold;
}
.multi_scale_break{
	background: #3265FF;
	background-repeat: repeat;
}
.ranking_question{
	font-weight: bold;
}
.ranking_dark{
	background: #f0f0f0;
}
.text_area_matrix_question{
	font-weight: bold;
}
.page_break{
	background-color: #0000ff;
	color: #ffffff;
}
.end_of_form{
	background-color: #000000;
	color: #ffffff;
}
.left_question{
	text-align: right;
}
.right_question{
	text-align: right;
}
.form_table{
	background: #99B2FF;
	border-width: 1px;
	border-color: #000000;
	border-style: solid;
}

</style>
Good Luck!
Reply With Quote
  #400  
Old 04-11-2007, 07:29 AM
rayw rayw is offline
 
Join Date: Mar 2007
Location: Australia
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to modify this form a little bit so that I have a drop down box with a list of 2-3 forums that users can choose to post the information too. I'm not an experienced programmer so I'm having a little trouble getting this working.

Would anyone be willing to post exactly what needs to be modified for this to work correctly?

THanks!
Reply With Quote
  #401  
Old 04-11-2007, 11:36 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 rayw View Post
I'm trying to modify this form a little bit so that I have a drop down box with a list of 2-3 forums that users can choose to post the information too. I'm not an experienced programmer so I'm having a little trouble getting this working.

Would anyone be willing to post exactly what needs to be modified for this to work correctly?

THanks!
In answer template add another...>
$dropdownquestion4
$dropdownanswer4


in proper order, you may have to shift stuff around a bit...

HTML Code:
$formtitle

$radioquestion1
$bbuserinfo[username]

$question1
$answer1

$question2
$answer2

$radioquestion1
$radioanswer1

$radioquestion2
$radioanswer2

$radioquestion3
$radioanswer3

$radioquestion4
$radioanswer4

$radioquestion5
$radioanswer5

$radioquestion6
$radioanswer6

$radioquestion7
$radioanswer7

$dropdownquestion1
$dropdownanswer1

$dropdownquestion2
$dropdownanswer2

$question3
$answer3

$radioquestion8
$radioanswer8

$radioquestion9
$radioanswer9

$radioquestion10
$radioanswer10

$radioquestion11
$radioanswer11

$question4
$answer4

$dropdownquestion3
$dropdownanswer3

$question5
$answer5

$question6
$answer6

------------------------------------------------------
$vbtextquestion

$vbtextanswer

------------------------------------------------------
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:02 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.05227 seconds
  • Memory Usage 2,333KB
  • 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
  • (3)bbcode_html
  • (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