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
  #532  
Old 07-19-2007, 12:25 PM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/member.php?u=72648" target="_blank">Deepdog009</a> - thanks for your help, that fixed the invisible guest problem (turning off captcha for new guest posts -- which we don't allow in any of our forums anyways).

Now I have a second problem (I've seen it mentioned a long time ago). When a guest uses the contact us form that is posted in a thread, it becomes a thread that requires moderator approval. Other mods have gotten around this type of problem by assigning a user account to the mod that posts (like auto-bans or duplicate account reports). Has anyone solved this problem for this mod?

Thanks
-vissa
Reply With Quote
  #533  
Old 07-19-2007, 04:57 PM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheMilkCarton View Post
Without looking too far into it, I'd say there is a slim chance that your form templates are causing it.
Attached is the copy of the form hack code.

NOTE: After the problem is fixed, I will try and remember to delete these attachments.
Reply With Quote
  #534  
Old 07-19-2007, 10:29 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 StudMuffin21 View Post
Attached is the copy of the form hack code.

NOTE: After the problem is fixed, I will try and remember to delete these attachments.
StudMuffin21 I think Milk Carton shedded some light on your issue...

sorry, but been busy and forgot 2 stop by here the last few dias. I forgot what your issue was?

I will download files and post about it soon as i can...
Reply With Quote
  #535  
Old 07-20-2007, 02:26 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deepdon009 and MilkCarton,

I changed the coding so it now reads correctly as you had suggested (previously that portion was not correct); however, I am still getting the same problem.

On the form, all questions and blank spaces show up. When submitting the form, only the answers for questions 1, 2, 3, and 10 are displayed. I've gone over the code again a few times today and don't know what I have overlooked.
Reply With Quote
  #536  
Old 07-20-2007, 03:32 AM
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StudMuffin21 View Post
Deepdon009 and MilkCarton,

I changed the coding so it now reads correctly as you had suggested (previously that portion was not correct); however, I am still getting the same problem.

On the form, all questions and blank spaces show up. When submitting the form, only the answers for questions 1, 2, 3, and 10 are displayed. I've gone over the code again a few times today and don't know what I have overlooked.
Ummm... The $answers 4-8 and $longanswers 2-3 are commented out in the TXT file you uploaded.

You need to remove the // from each line.

And there is no question 10? unless you mean longanswer1
Reply With Quote
  #537  
Old 07-20-2007, 06:05 AM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I remove the // marks, I get these errors:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/cobaltli/public_html/newthread.php(71) : eval()'d code on line 638

and

Invalid thread specified

Yes, by question 10, 11 and 12, I mean the long answers.
Reply With Quote
  #538  
Old 07-20-2007, 07:13 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 StudMuffin21 View Post
Attached is the copy of the form hack code.

NOTE: After the problem is fixed, I will try and remember to delete these attachments.

Ok, corrected a bit of code and its ALIVE


Studdmuffin21, I like yo name,,, N-E ways yo issue was with here...>>>

HTML Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
Change 2 match your form {{{CLA}}} ...
The other form already is using those titles...
When U create new forms, U must create all new info {{{names}}} for main template, answers template and plugin form name must be different from the rest of your forms...

ABE1 has this in hook, if your new forms dont work always double check new names of all templates and plugin info. If U get PARSE errors then its a code issue, somewhere U may have added something by mistake or using the wrong code characters.

HTML Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "studmuffin21";
// Name of the answer template
$answertemplate = "studmuffin21answers";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////

Everything else was looking outta sight
Reply With Quote
  #539  
Old 07-20-2007, 08:14 PM
StudMuffin21 StudMuffin21 is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol..yeah that name has a story behind it. Some really good lookin girl gave it to me a long time ago as a call sign when I couldn't come up with one for a laser tag game. haha...I just had to keep it.

Anyway, ok so here is what I did. As you suggested, I created two new templates. One named "form1" and the other "formanswers1" I then edited the code to read the exact name of those templates as you suggested in your post (only instead of using studmuffin21, I used form1).

I feel so stupid cause I still am getting the same problem. And that is not all of the answers show up when the form is submitted.

I've gone over the templates and hack several times again but did not see any problems, though keep in mind I am not a coder.

Should I try to uninstall and delete everything and reinstall it? Would that make a difference? Or is there something I am missing still?

And by the way, thank you very much for your continued efforts to help me resolve this problem. I do much appreciate it
Reply With Quote
  #540  
Old 07-20-2007, 09:08 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys,

This Form Hack is just what I need to create a standardized "Product Review" form for my forums. Unfortunately, despite my efforts, I can't get it to work. I'm far from a coder and know nothing about php or xml anyway, so that doesn't surprise me, LOL.

The proposal: I've mocked up what i want my form to look like. Does anyone want to configure this hack for me for a few bucks?
Reply With Quote
  #541  
Old 07-21-2007, 12:02 AM
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 StudMuffin21 View Post
lol..yeah that name has a story behind it. Some really good lookin girl gave it to me a long time ago as a call sign when I couldn't come up with one for a laser tag game. haha...I just had to keep it.

Anyway, ok so here is what I did. As you suggested, I created two new templates. One named "form1" and the other "formanswers1" I then edited the code to read the exact name of those templates as you suggested in your post (only instead of using studmuffin21, I used form1).

I feel so stupid cause I still am getting the same problem. And that is not all of the answers show up when the form is submitted.

I've gone over the templates and hack several times again but did not see any problems, though keep in mind I am not a coder.

Should I try to uninstall and delete everything and reinstall it? Would that make a difference? Or is there something I am missing still?

And by the way, thank you very much for your continued efforts to help me resolve this problem. I do much appreciate it
Sorry, misunderstood your Question...
Looking at your form preview and I-C your problem...
Give me a moment and I shall resolve...
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 08: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.13257 seconds
  • Memory Usage 2,332KB
  • 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
  • (2)bbcode_html
  • (5)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