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
  #652  
Old 09-25-2007, 05:27 AM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been using this since the first stages of it's creation. Great mod Abe.
My question concerns conditionals. I have not had any luck using them in the answer template.

What I would like to do is to use the:
Code:
<if condition="!is_member_of($bbuserinfo, X)">
$longanswer
</else>
Please PM thread creator for details.
</if>
To wrap around one of the forms answers so that only members of said usergroup and view the wrapped content and others will see the notice. When I implement this, is just does not display the content at all. I know this is due to the fact the HTML is not allowed in post content but is there any workaround that anyone can think of for this? I have tried enabling HTML in a specific forum as well as for my admin group yet it still will not display anything.
Reply With Quote
  #653  
Old 10-03-2007, 05:05 PM
74corvette 74corvette is offline
 
Join Date: Sep 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe some of you experienced coders can help me. I'm using this mod on my forum and have changed the thread title to include one of the variables, $normalanswer1 so that the title reflects the answer. My question how can I add another variable ($radioanswer1) to that ? Heres the code:

$newpost['title'] =& $normalanswer1;

I have tried $normalanswer1.$radioanswer1, but that did do it. Quotes dont work either.

Signed,

PHP newbie
Reply With Quote
  #654  
Old 10-05-2007, 03:08 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dutchbb View Post
Of course I've edited the plugin and there is a valid ID. It always worked, I have used it for months without problems now suddenly it stopped working. I submit the review and it just isn't posted. This is the URL when the form is submitted: /showthread.php?t=
I know, it's been quite some time since this issue was raised, but I encounter exactly the same problem. My form was up and running for months, and with the installation of vbseo this error occurred. I'd be happy if anyone had suggestions...

Edit: The example-form supplied with the hack does not work, either. It seems to be a problem with $newpost[threadid] - the variable seems to be empty.
Reply With Quote
  #655  
Old 10-05-2007, 10:48 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

m8 is there any way of you making this mod so when a form is posted its posted in its own fields in the database like the title and message is instead of adding to the message box. and when the post is edited it loads the same form as it was originaly posted by. also remove the message box for set forums so its just the extra form fields only and not the original message box. would really appreciate this. thx :P
Reply With Quote
  #656  
Old 10-06-2007, 12:56 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, it does'nt seem to be an vbseo-issue; problem stays if vbseo is deactivated. I deinstalled and reinstalled the mod and set up the standard form as follows:
PHP Code:
//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "1";

//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 "17";

...

$redirectoption "2"
No other changes whatsoever. When I try to submit a form, it spawns a "no thread specified"-error, and indeed, no forum id is specified at all ("showthread.php?t="). I would be very happy if somebody could give me a hint on what's going wrong here...

URL to he form is http://www.roma-antiqua.de/forum/newthread.php?do=form
The form is trying to post to a testing ground forum to which I gave guest posting permission for the moment.

I'd happily provide any other information needed.
Reply With Quote
  #657  
Old 10-07-2007, 08:29 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem solved: Adv. Editing Options for Mods and Admins is not compatible with Abe's hack. After deactivation everything seems to be running smoothly again.
Reply With Quote
  #658  
Old 10-07-2007, 11:34 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

m8 is there any way of you making this mod so when a form is posted its posted in its own fields in the database like the title and message is instead of adding to the message box. and when the post is edited it loads the same form as it was originaly posted by. also remove the message box for set forums so its just the extra form fields only and not the original message box. would really appreciate this. thx :P
Reply With Quote
  #659  
Old 10-07-2007, 04:02 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 OneEyeSleepy View Post
Sorry, I am a new user and already installed this Mod. I read your brief documentation but how do you use it? I can edit the form and save it into a text file, where do I put it into?
OneEyeSleepy I like your name because I never sleep with both eyes closed

Dont ask why...

Link below and proceeding posts may help U...

https://vborg.vbsupport.ru/showpost....&postcount=511

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

Vien I dont think that BUG is a major issue cause ABE1 ain't posted about it...

I haven't had time 2 look into it,,, but all seems well with all my clients using forms on boards...


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

Quote:
Originally Posted by MoJo Smirnoff View Post
can someone please help me...i got the form all done...but i have no submit button. i guess i might have deleted the code on accident..

can some please share the code for the submit button..and tell me exactly where i deleted it from lol

thanks!
Upload your form plugin and templates in .txt format and I will fix 4 ya...


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

Alan92rttt I believe there was another poster asking the same question and we found there is a vbulletin issue causing that with this hack...

I forget which poster,,, but its back a few pages...

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

RMS-Chef that is a cool add-to,,, I will look into it if time permits...

Im more of a graphics and java guy,,, php coding gives me a headache and takes time -$

I will post l8ter about it if time permits...

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

74corvette its possible,,, but U will need to make changes 2 plugin code... ASK ABE1

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

Quote:
Originally Posted by wolfe View Post
m8 is there any way of you making this mod so when a form is posted its posted in its own fields in the database like the title and message is instead of adding to the message box. and when the post is edited it loads the same form as it was originaly posted by. also remove the message box for set forums so its just the extra form fields only and not the original message box. would really appreciate this. thx :P
Another poster asked the same question in earlier posts...
What U ask will need some major updates by ABE1 or Add-on mod???


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

Quote:
Originally Posted by cellarius View Post
Problem solved: Adv. Editing Options for Mods and Admins is not compatible with Abe's hack. After deactivation everything seems to be running smoothly again.
Yeap PERMISSION mods seem 2 be giving other mods some minor issues...
Reply With Quote
  #660  
Old 10-07-2007, 05:39 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deepdog009 View Post

Another poster asked the same question in earlier posts...
What U ask will need some major updates by ABE1 or Add-on mod???
m8 i started on it on my own but just cant seem to get it right. i have added radio buttons to this form so people can pick what forum ti post it in with the value being the forum id. example

O Announcements O General Chat

they can choose which one to post it into :P i just need to make the form have its own database field for every question that i add. so it can be re edited in the same form it was posted in :P
Reply With Quote
  #661  
Old 10-14-2007, 03:20 PM
laura66a laura66a is offline
 
Join Date: Oct 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi. This works great and I have been able to create my own form.

One question I have is: When someone is in the form, the Whois Online display says "Creating Thread". Is there way to change this so that the form name is displayed?

Thanks.
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 11:29 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.05578 seconds
  • Memory Usage 2,339KB
  • 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
  • (1)bbcode_php
  • (6)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