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
  #552  
Old 07-24-2007, 02:08 AM
shanevas2 shanevas2 is offline
 
Join Date: Jun 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

???? any one?
Reply With Quote
  #553  
Old 07-24-2007, 02:12 AM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The developer may kill me, but try putting the entire plugin code in a thread.

Well, the editable section, everything above the "Don't edit here and below" line.

Please wrap it in php code tags.

And don't bump threads so much, it's free support ya know.

Thank you.

-Raymond
Reply With Quote
  #554  
Old 07-24-2007, 04:38 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shane,

I'm not sure how you have it set up, but here is what u need to do.

Referring to the code below:
Where it says
Code:
$forumform = "1";
You need to change your code exactly as that reads in order for your form to be posted as a new thread somewhere on your forum. In other words, make the number inside the parenthesis a number 1 to make it post a new thread, or a 0 to not post.

Now that that is done, you need to make sure you have your forum id set up correctly. So where the code says
Code:
$formforumid = "59";
you need to ensure the number in the parenthesis is the correct id of the section of the forum you want a new thread to be posted. To find that id, go to your main forums page. From there click on the exact forum you want the new thread to be posted in. Now look at your URL. At the very end of the URL there will be a number (at the top of the ULR for THIS website, the number should read 126676). Insert the number you find on YOUR site at the end of the URL for the section you want the thread to be posted in the forumid section of the code.

That should make it work for ya.



EXAMPLE:
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 = "59";
Reply With Quote
  #555  
Old 07-24-2007, 04:44 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DeepDog,

If I may acquire your assistance hopefully one last time.

The form I was having problems with is now working like a dream!! Thank you for creating such an easy hack.

That said, I am having troubles creating a second form.

I created a second plugin with the correct code (though I may need to post it later if I have troubles again. I then created a second set of templates to match that second form (making sure I made the names correctly).

However, when trying to view the form I get the following error:
Code:
Parse error: syntax error, unexpected T_VARIABLE in /home/cobaltli/public_html/newthread.php(71) : eval()'d code on line 217
I'm sure it has something to do with my plugin part of the code, but I'm not sure which. As usual, I've looked over the code plenty of times before posting this to make sure I didn't overlook something stupid (though I have done that before).

One thought I have is that the style templates for the NEW second form have a Product name of vBulletin instead of Form Hack as do the other style templates for the first form. I could not for the life of me get tis Product name to change.

In any case, any suggestions are appreciated. Thank you!
Reply With Quote
  #556  
Old 07-24-2007, 06:16 AM
SuthernKumfort SuthernKumfort is offline
 
Join Date: Mar 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you take a look at this screenshot and tell me how to get rid of the black in the boxes in the upper part of the form. You can view the site at www.wmdgaming.com

Reply With Quote
  #557  
Old 07-24-2007, 04:56 PM
vFan vFan is offline
 
Join Date: May 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know the answer to my question(s) below? Thx.


Quote:
Originally Posted by vFan View Post
Silly question perhaps, but in addition to being posted to a thread, poll, etc., does the information submitted via the form hack automatically get stored in the database as well? If it doesn't get stored in the db then is it possible to modifiy the form to have 2 actions associated with the submit button. (You know like the ability to submit info to a db while notifying someone via email that their order has been received.) What I want is for the form data to be posted to a thread upon submission as well as storing it in the db so I can send it on to a different application it later. If if can be done, how do I do it?

(By the way, I have looked through the tables in my db and do not see any of the information that has been posted to my threads so I'm assuming that it only gets posted not stored ? Please correct me if I'm wrong)

Sorry if this is a ridiculous question but I am not a coder. Any help is appreciated. Thanks.
Reply With Quote
  #558  
Old 07-25-2007, 03:45 AM
shanevas2 shanevas2 is offline
 
Join Date: Jun 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still not working. Acts like it is but not posting it.

http://www.uscarmeets.com/forumdisplay.php?f=121

Code:
//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$forumform = "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 = "121";
Reply With Quote
  #559  
Old 07-25-2007, 06:39 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok Shane,

Just so I understand you correctly, you want the form to be posted in the link you provided, correct?
Reply With Quote
  #560  
Old 07-25-2007, 08:56 PM
anuanu anuanu is offline
 
Join Date: May 2007
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got a question and i have tried playing around with the code to get it to work but nope still cant...

for this code=
Code:
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain1
<div align="center">
<table cellpadding="0" cellspacing="15" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
I have two of those 1 after the other both with different names for the $vbtextquestion and they both show up but only one of them the editor works. The other one acts like a message inside of a gif.

This is the code i have
Code:
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion1</b><br />
$vbtextexplain
<div align="center">
<table cellpadding="0" cellspacing="15" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>

<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain1
<div align="center">
<table cellpadding="0" cellspacing="15" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
top one works and i use the entire editor (change font size, style, smilies etc) The other one just acts as a normal fill in the blank and i cant click on any of the font sizes/styles/smilies etc.

How would i fix this?
Reply With Quote
  #561  
Old 07-25-2007, 09:01 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 shanevas2 View Post
Is this right?
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 = "121";
Out of town again...

Shanevas2 I think its best if U let me look at yo form files...
Convert into txt format and upload 2 post so that I can take a look C...???

Good Luck

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

SuthernKumfort U will need 2 edit or modify your main template 2 make changes on colors of form ???

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

StudMuffin21 I can help its no problem, but at this time im helping some offline folks and others with forms, so bare with me...

Upload your files as before and I shall take a look C...


Thank god I love working with forms
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 03:15 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.05246 seconds
  • Memory Usage 2,330KB
  • 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
  • (8)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