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
  #1142  
Old 07-21-2008, 10:26 PM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MoMan View Post
Thanks a lot for the reply!

Do you also happen to know what the vBulletin variable for prefixes is?
Quote:
Originally Posted by RedGTiVR6 View Post
That I don't know, but you might try the programing discussions forum?
I've looked through the XML file and found a way for a radio option to assign a thread prefix. Here's the code I added, if anyone else is interested:

Find:

PHP Code:
$newpost['title'] =& $posttitle
Below Add:

PHP Code:
if ($radiochoice2a == $radioanswer2)
           { 
           
$newpost['prefixid'] = '7';
           } 
Modify the conditional to your needs, obviously, or add a second or third one, depending on how many prefixes you're using. You'll need to get the prefix IDs from the admin panel's prefix list page.
Reply With Quote
  #1143  
Old 07-21-2008, 11:24 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I fixed it finally. I still need help on some questions.

1) How can I bold the questions once they're posted?
2) How can I set it so the title of each thread includes the applicant's forum name?
3) How do I add two more drop down boxes next to an existing question? Like I've said previously I want to do month, day, and year in a row.
4) Is there anyway to prevent a person from submitting a application more than once?
Reply With Quote
  #1144  
Old 07-22-2008, 04:30 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 RedGTiVR6 View Post
For some strange reason, this prevents the attachment feature from showing on the form.

Any ideas why that might happen?

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

RedGTiVR6,,,
I'm currently looking into other options... I will post about it by wensday...

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


Quote:
Originally Posted by Stryker412 View Post
Ok I fixed it finally. I still need help on some questions.

1) How can I bold the questions once they're posted?
2) How can I set it so the title of each thread includes the applicant's forum name?
3) How do I add two more drop down boxes next to an existing question? Like I've said previously I want to do month, day, and year in a row.
4) Is there anyway to prevent a person from submitting a application more than once?

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

Stryker412,,,

Posting bbcodes will solve Q1... This mod allows bbcode in both MAIN template & ANSWERS template...

MAIN template
HTML Code:
<tr>
<td class="alt1" valign="middle">
<b>Username</b>:<br />
Your Username.</td>
<td class="alt1" valign="middle" colspan="2">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question1</b>:<br />
</td>
ANSWER template
HTML Code:
$bbuserinfo[username]

$question1 :eek:
$answer1

$question2 ;)
$answer2

$question3 :up:
$answer3

$question4 :D
$answer4

$dropdownquestion1
$dropdownanswer1

$dropdownquestion2
$dropdownanswer2
Q2 requires some minor code changes to $posttitle,,, take a look RedGTiVR6 recent postings......

Q3 ??? *** Download and install forms below to help you better with triple dropdowns......

Q4 ??? *** Prevent more than once submit? Members by userid,,, guests??? ......
Reply With Quote
  #1145  
Old 07-22-2008, 06:59 AM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vissa View Post
For some reason this will not work for GUESTS in 3.7.2 pl1. It submits the form fine, but the thread doesn't appear in the mod section. It works fine for all other members.

Update:
I had to turn off guest image verification in order for this to work for guests...

-vissa
same here, but it doesn't bother me, cause guests aren't allowed to post in the forum.


Strange thing is, that in 4.1 and the versions before the messagearea with the vb editor doesnt work at all, even in the standard template of this mod.
Reply With Quote
  #1146  
Old 07-22-2008, 09:41 AM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
Q4 ??? *** Prevent more than once submit? Members by userid,,, guests??? ......
Registered users only, I don't allow guests to use the form.

If I try to add bbcode to the answers form I get this:

The following error occurred when attempting to evaluate this template:

Quote:
Parse error: syntax error, unexpected '/', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /forum/includes/adminfunctions_template.php(3716) : eval()'d code on line 4

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


Also, not sure if anyone knows but hitting the Reset button on the form does nothing.
Reply With Quote
  #1147  
Old 07-22-2008, 04:20 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post
Q3 ??? *** Download and install forms below to help you better with triple dropdowns...
I installed the triple dropdown product, but what do I do with it?
Reply With Quote
  #1148  
Old 07-23-2008, 08:52 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works pretty good in 3.7.2, however it's SPAMORAMA on my 2 forums... I will probably have to remove this if there is no spam protection option.

-vissa
Reply With Quote
  #1149  
Old 07-25-2008, 05:34 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 RedGTiVR6 View Post
For some strange reason, this prevents the attachment feature from showing on the form.

Any ideas why that might happen?
*****************************************

Take a look at these links...>>>

Dropdown Forum posting {1}

Dropdown Forum posting {2} Reset forums posting time in admincp...

Dropdown Forum posting {3}

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

Quote:
Originally Posted by Stryker412 View Post
I installed the triple dropdown product, but what do I do with it?
*****************************************

U wanted to use triple dropdowns for testing? Test in new forms...

*****************************************
Reply With Quote
  #1150  
Old 07-25-2008, 01:38 PM
Stryker412 Stryker412 is offline
 
Join Date: May 2005
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

U wanted to use triple dropdowns for testing? Test in new forms...

*****************************************
I'm not sure how to implement it into the form, is there a readme?

Also, is there a way to limit users (registered only) from using the form more than once in a set period of time?
Reply With Quote
  #1151  
Old 07-25-2008, 02:16 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=Deepdog009;1583591]

It seems to be on the right track, but he never got it to work.



Quote:
Dropdown Forum posting {2} Reset forums posting time in admincp...
Hrmm - close, but no cigar unfortunately. This guy is only adding code (unsuccessfully) to have the form post in two places upon submitting.

Unfortunately, this is essentially the same code that you provided just for a thread instead of a forum. Since I'm wanting to have a new thread created in a specific forum based on the drop-down that's selected, this doesn't really apply to my situation. Thanks though!

Your code seems to be there, it just doesn't allow attachments when it's in there for some strange reason. No clue why though? Maybe I need to take this to the developers forum to get another set of eyes on it?
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 10:58 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.05328 seconds
  • Memory Usage 2,349KB
  • 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
  • (2)bbcode_php
  • (14)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