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
  #562  
Old 07-25-2007, 09: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

Quote:
Originally Posted by anuanu View Post
I got a question and i have tried playing around with the code to get it to work but nope still cant...

for this code=
Code:
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain1
<div align="center">
<table cellpadding="0" cellspacing="15" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
I have two of those 1 after the other both with different names for the $vbtextquestion and they both show up but only one of them the editor works. The other one acts like a message inside of a gif.

This is the code i have
Code:
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion1</b><br />
$vbtextexplain
<div align="center">
<table cellpadding="0" cellspacing="15" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>

<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain1
<div align="center">
<table cellpadding="0" cellspacing="15" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
top one works and i use the entire editor (change font size, style, smilies etc) The other one just acts as a normal fill in the blank and i cant click on any of the font sizes/styles/smilies etc.

How would i fix this?
Anuanu U will need 2 contact ABE1...

U be requesting the same var...{{{$messagearea }}}... Mod required

Im kinda busy with creating some stuff and forms so ABE1 can assist U better...

Im here 2 help with the easy stuff...

Good Luck
Reply With Quote
  #563  
Old 07-26-2007, 04:03 AM
SuthernKumfort SuthernKumfort is offline
 
Join Date: Mar 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SuthernKumfort View Post
Can you take a look at this screenshot and tell me how to get rid of the black in the boxes in the upper part of the form. You can view the site at www.wmdgaming.com

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?
Reply With Quote
  #564  
Old 07-26-2007, 06:59 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SuthernKumfort:

To make those boxes NOT black you need to edit the form template.

To do this go to:
> Styles & Templates
> Style Manager
> Click on "EDIT TEMPLATES" using the drop-down menu from the template you are using for your site appearance
> Find and double click on "form" (about half way down the templates list)
> Open the code

Now from viewing that code, you can edit to make the questions say what ever you want and have the blocks what ever color you want, using the six (6) digit color code. Keep in mind if you modify the questions, you will also need to modify the questions in the formanswers template and the main form question plugin.
Reply With Quote
  #565  
Old 07-26-2007, 07:02 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deepdog009:

Attached are copies of my existing code for the SECOND form. Please keep in mind that for the form2 and formanswers2 templates, the TITLE has a description of "vBulletin" while the other two templates for the form that does work has a title of "Form Hack." I can not for the life of me figure out how to fix that so it also reads "Form Hack." I have a good feeling that is the cause of the problem. But still look at my code if you have time and would like to.

Take your time. On Sunday I leave for a 3 day backpacking trip and will not be able to have computer access until next Thursday, one week from today.

Thanks again for your continued support in this product

As before, I will remove the attachments when this problem is resolved
Reply With Quote
  #566  
Old 07-26-2007, 01:39 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 vFan View Post
Does anyone know the answer to my question(s) below? Thx.
vFan give ABE1 a jingle and maybe he might add this in his next updates...

If U have any easy requests I will try 2 help if time permits...

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

StudMuffin21 im checking yo form now...

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

If this Mod helps U get more Members... Please Support it...
Reply With Quote
  #567  
Old 07-26-2007, 04:47 PM
anuanu anuanu is offline
 
Join Date: May 2007
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i found out what my problem was, I was trying to introduce more then 1 vbtextquestion when only 1 was allowed. Changed it to longquestion and everything works perfect for me. (Just have to remember to backup code before i delete it lol...)
Reply With Quote
  #568  
Old 07-26-2007, 04:55 PM
anuanu anuanu is offline
 
Join Date: May 2007
Posts: 141
Благодарил(а): 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?
If your problem is the boxes being black and not showing your letters/words then you can just add

Code:
<font color="#C0C0C0">
to that section and your words/letters will show up white.

For example:


Code:
<tr><font color="#C0C0C0">
<td class="alt1" valign="middle">
<b>$longquestion1</b><br />
$longexplain1</td>
<td class="alt1" valign="middle" colspan="2">
<textarea rows="20" cols="70" name="longanswer1">$longanswer1</textarea>
</td>
Reply With Quote
  #569  
Old 07-26-2007, 09:21 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 StudMuffin21 View Post
Deepdog009:

Attached are copies of my existing code for the SECOND form. Please keep in mind that for the form2 and formanswers2 templates, the TITLE has a description of "vBulletin" while the other two templates for the form that does work has a title of "Form Hack." I can not for the life of me figure out how to fix that so it also reads "Form Hack." I have a good feeling that is the cause of the problem. But still look at my code if you have time and would like to.

Take your time. On Sunday I leave for a 3 day backpacking trip and will not be able to have computer access until next Thursday, one week from today.

Thanks again for your continued support in this product

As before, I will remove the attachments when this problem is resolved
SM21 heres the causes of error message...

//QUESTION 6 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question6 = "What is your occupation?" <... Missing {{{ ; }}}


//QUESTION 7 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question7 = "What is your in-game name?";
&question7 = "Please list the account you play most often.";

Question (7) take a look above and im sure U can C the problem...?

Last its not really a problem, but I think its best 2 add it anyways... *** below code ***

HTML Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'radioanswer3other' => TYPE_STR,
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'answer8' => TYPE_STR,
'answer9' => TYPE_STR,
'answer10' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'longanswer1' => TYPE_STR,
'longanswer2' => TYPE_STR,
'longanswer3' => TYPE_STR,
'longanswer4' => TYPE_STR,
'longanswer5' => TYPE_STR,
'longanswer6' => TYPE_STR,
'longanswer7' => TYPE_STR,
'longanswer8' => TYPE_STR,
'longanswer9' => TYPE_STR,
'longanswer10' => TYPE_STR   <... { U dont need comma on last option }
));
Good Luck:up:
Reply With Quote
  #570  
Old 07-26-2007, 10:45 PM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All right, well after fixing what I had overlooked, and a few other things, it is now operational!

I did have to change the "product name" to "vBulletin" cause as I said earlier, the templates had the product name of "vBulletin.'' But it works just fine!!

Thank you so much
Reply With Quote
  #571  
Old 07-27-2007, 02:53 AM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm posting the answers to the form as a New Thread! Is there a way to use one of the answers for the "thread title" that gets posted?
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:09 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.06545 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
  • (4)bbcode_code
  • (1)bbcode_html
  • (5)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