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
  #902  
Old 02-13-2008, 04:23 PM
boomcar68 boomcar68 is offline
 
Join Date: Feb 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello all:

First i need to say that i am totally new with vB.
I dumped my nuke-evolution site and imported database into vb.
I must say this is alot of different then nuke :-)
But i like to learn vB alot.

::On Topic::

I installed this nice hack ,but there is only 1 issue for me.
I have 5 radioquestion down to eachother.
I renamed them all,i updated the answer template and the mainhook,all is working except
that the question aren't there only the answers and near the answers i get this error message:

answer1 = Array['radioanswer6other'];


answer2= Array['radioanswer7other'];

answer3 = Array['radioanswer8other'];

answer4 = Array['radioanswer9other'];

answer5 = Array['radioanswer10other'];

I try to find out what could be the problem,but i didnt find.
Can some1 tell me what i did wrong?

Thanks John:up:
Reply With Quote
  #903  
Old 02-13-2008, 04:39 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boomcar68 View Post
Hello all:

First i need to say that i am totally new with vB.
I dumped my nuke-evolution site and imported database into vb.
I must say this is alot of different then nuke :-)
But i like to learn vB alot.

::On Topic::

I installed this nice hack ,but there is only 1 issue for me.
I have 5 radioquestion down to eachother.
I renamed them all,i updated the answer template and the mainhook,all is working except
that the question aren't there only the answers and near the answers i get this error message:

answer1 = Array['radioanswer6other'];


answer2= Array['radioanswer7other'];

answer3 = Array['radioanswer8other'];

answer4 = Array['radioanswer9other'];

answer5 = Array['radioanswer10other'];

I try to find out what could be the problem,but i didnt find.
Can some1 tell me what i did wrong?

Thanks John:up:
You need to put the question in you formanswers template also. It should look somehting like this.

$radioquestion2
$radioanswer2
Reply With Quote
  #904  
Old 02-13-2008, 05:26 PM
boomcar68 boomcar68 is offline
 
Join Date: Feb 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did that like this $radioquestion3
$radioanswer3
$radioanswer3other

I can see the questions now with yes/no answer but still there is a error:
Do you have an AAOtracker Account, if yes write your AAOtracker name here
yes
6uy = Array['radioanswer6other'];


Where 6uy is my giving answer in explain block
Reply With Quote
  #905  
Old 02-14-2008, 10:31 AM
sylar sylar is offline
 
Join Date: Oct 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems that the developer for this does not check it that often and atroll has graciously been answer a lot of questions.

Im in need of have the code on the form hook into the code for VB so that the new thread follows the permissions that I have set on the forum the post will be going into, email, poll, attachement , etc.

I have a quick work around but working on something more permanent. If I can come up with it I will share with everyone.

My requirements are to allow only VIP members and Registered uses with over 100 posts be able to post on the forums Im using the forms. Temporarily I am using this until I find a way to hook the form code to the forum code.

if( $vbulletin->userinfo['usergroupid'] <5 ) {
if($vbulletin->userinfo['posts']<100) {
echo 'Sorry, you can not post here as you need to have 100 posts, you only have '.$vbulletin->userinfo['posts'];
print_no_permission();
}
}

As an addendum, I previously had a time limit hack on this particular sub forum that allowed member to be able to only start 3 threads on a 30 day span. This hack is not playing well with it, not at all actually. Anyone have any idea how to edit the form to do this? (check to see if member or VIP has less or equal to 3 threads in 30 days and either allow or deny ability to start one?)

Thank you
Reply With Quote
  #906  
Old 02-17-2008, 03:21 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boomcar68 View Post
Did that like this $radioquestion3
$radioanswer3
$radioanswer3other

I can see the questions now with yes/no answer but still there is a error:
Do you have an AAOtracker Account, if yes write your AAOtracker name here
yes
6uy = Array['radioanswer6other'];


Where 6uy is my giving answer in explain block
In the plugin towards the bottom you will find a code like this
Code:
    {
        if ($normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR ($checkboxchoice1_1 AND $checkboxchoice1_2 AND $checkboxchoice1_3) OR $longanswer1 == '')
You need to make sure you added the "radioanswer6other" statements in there in the proper format.
Reply With Quote
  #907  
Old 02-22-2008, 03:58 PM
georg08 georg08 is offline
 
Join Date: Feb 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
I'm using vB 3.6.8 Patch2 in the German Translation and I installed the original English Form Hack 4.0 Version with the parameters $formforum="1", $formforumid="10" and usergroups 2,5,6,7. ACP -> Plug-in [x] activated. But till now, I couldn't succeed in seeing the form in any place in my forum. The form never appears. What may be the reason?
Thanks and greetings
George
Reply With Quote
  #908  
Old 02-23-2008, 02:49 AM
zmmmzz zmmmzz is offline
 
Join Date: Nov 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can see it if you enter this address

http://yoursite.com/forum/newthread.php?do=form

replace "yoursite" for your own domain and "forum" for the name of the folder in which you installed the forum.
Reply With Quote
  #909  
Old 02-23-2008, 08:01 PM
kursed kursed is offline
 
Join Date: Dec 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm currently using vB 3.6.8 - whenever uploading a file, using this hack, it gives me an error; 'Could not create file system directory to hold your attachment.'

How can I correct this?
Reply With Quote
  #910  
Old 02-23-2008, 08:43 PM
kursed kursed is offline
 
Join Date: Dec 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, it gives me the option to upload files as an administrator but not as a regular registered user. What might be the reason behind that?
Reply With Quote
  #911  
Old 02-23-2008, 09:55 PM
kursed kursed is offline
 
Join Date: Dec 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I've managed to solve both of my above issues. There is just one thing left now. Is there anyway that I can make entries made through this hack to appear in a single thread, instead of it making a new thread every time someone submits 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 06:15 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.05055 seconds
  • Memory Usage 2,322KB
  • 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_code
  • (2)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