Version: 4.1, by Abe1
Developer Last Online: Jun 2010
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.
I am having a lot of trouble customizing this to what I need. Can the coder or anyone else for that matter make it to what I need please? I will give you exactly what I need if anyone is willing to do it for me. Thanks!
If it is not a lot I will look at it for you and see if I have time to do this. Let me know what you want it to do. Like I said if it is not a lot to do then I will try when I have free time.
I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread.
If you need more info, please PM me or post here. It's getting late out for me.
I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread.
If you need more info, please PM me or post here. It's getting late out for me.
This is a very good hack, but I need to pass on this warning. Do not create too many different forms, they will kill the server.
We have our own server, quite a good one, and this evening the server load hit 40.
I have been using this hack to make separate forms for our car sales forum, a total of about 30, one for each model of Volvo car. I noticed that as I created each new plugin the server response got slower. It was not until I disabled all the forms plugins that the server load went back to normal.
I'm using this hack for the exact same purpose in one of our applications. The way probably around your issue is to form the post title in a way that corresponds to the poll options. The poll title will be the same as the post title. It seems fluid in the way i've done it, example provided;
Quote:
Post title = "Membership request from CMF - Sponsored by Brundlefly"
Poll option1 = "Yes, I support granting membership"
Poll option 2 - "No, I do not supporting granting membership"
I was looking for a way to set the timelimit a poll, using this hack should run. Forgive me if I missed it in previous posts. I've come up with a way to do this for each form hack that is running. All of the below changes are accomplished in the hook.
after
Code:
$pollpublic = "1";
add
Code:
//Time in days after posting poll shall close
$polltimeout = 10;
Where 10 is the number of days you choose to end the poll
after
Code:
$poll->set('public', $pollpublic);
add
Code:
$poll->set('timeout', $polltimeout);
If you have a Default Poll Timeout set on all created polls, the above changes will overide that setting.
I really hope I didn't recreate what already had been figured out.