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 have a question about the creation of a new thread.
PHP Code:
PHP Code:
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid = "1";
When i set $formforumid = "1"; to //$formforumid = "1"; and open the link
how descript with do=form&f=1 nothing happens after saving. I receive the message box that all is ok but when i have a look no new thread. Have you an idea why this happen? I see in the info text that i have to set the variable but also when i open the form with the link?
Thanks for your help
If you set it to //$formforumid = "1" you are cancelling out that line, so effectively it's not posting it at all. You have to go into your admincp and look at your forum manager from there determine what the forumid is and set that line to the corresponding # and it will post within that forum.
ok that's clear but whats with this: You can have a drop down menu or in the link like do=form&f=1. I think that mean i can give the forumID information over the link? On this way i have to create only one form and not for each Forum one...
alright, I'm getting a bit frustrated here. It seems that no matter what I do, I just can't get this to work, I'm getting two errors.
Code:
Parse error: syntax error, unexpected T_STRING in /home/.earthworms/archaicstudios/archaicstudios.net/testvb/testforums/newthread.php(74) : eval()'d code on line 190
and
Code:
Invalid Forum specified. If you followed a valid link, please notify the administrator
If I didn't have so much patience, I'd have given up on this so called "easy" hack. Yeah, easy if you don't change anything but the text, but after that, it just seems to complicate itself. Can someone give me a hand with this?
No offence on this but before we start pouring out the solutions, you might want to had another good look at the codes in your plugin again.
I had a look at it and discovered a few missing items like ", ; and :.
Quote:
Originally Posted by farplane dragon
alright, I'm getting a bit frustrated here. It seems that no matter what I do, I just can't get this to work, I'm getting two errors.
Code:
Parse error: syntax error, unexpected T_STRING in /home/.earthworms/archaicstudios/archaicstudios.net/testvb/testforums/newthread.php(74) : eval()'d code on line 190
and
Code:
Invalid Forum specified. If you followed a valid link, please notify the administrator
If I didn't have so much patience, I'd have given up on this so called "easy" hack. Yeah, easy if you don't change anything but the text, but after that, it just seems to complicate itself. Can someone give me a hand with this?
Nobody knows the way over do=form&f=1? It makes a lot easier with this form... Or is there a way to to take the address in to a variable? Or is there alredy a variable? So i can take the informations from the address...
No offence on this but before we start pouring out the solutions, you might want to had another good look at the codes in your plugin again.
I had a look at it and discovered a few missing items like ", ; and :.
That's because I'm not a coder, it's not that I haven't looked over my code, it's that I have no idea where stuff is missing. I've done a little bit of code editing in the past, but nothing like I've had to do with this.
edit: I went through the 3 forms again, I fixed some of the variables on the answer form, and found some missing ; on the hook, but I have no idea if anything is wrong with the template or what else is missing. Just to note, I haven't edited the imported xml file if that makes a difference.
Hey I'm trying to get this to work with cyb advanced permissions based on post count and I'm having trouble. Anyone have any idea why? I've tried changing the execution order and it did not work. Still lets me post.
That's because I'm not a coder, it's not that I haven't looked over my code, it's that I have no idea where stuff is missing. I've done a little bit of code editing in the past, but nothing like I've had to do with this.
edit: I went through the 3 forms again, I fixed some of the variables on the answer form, and found some missing ; on the hook, but I have no idea if anything is wrong with the template or what else is missing. Just to note, I haven't edited the imported xml file if that makes a difference.
Frankly speaking, when I posted the previous reply, I haven't even open up your form and formanswers template and look at their contents yet.
I am also not a coder myself but it is through this mod that I started to have more ideas on php, html, and javascripts.
Anyway, I have re-attached your plugin that I have edited. I have not tested it on my test site yet but I believed it should work (unless I happened to miss out any spot due to my tired eyes).