![]() |
Nice hack Abe1,
I have a couple of questions before I install. 1) Is there a need/requirement for flood control 2) Is there a need/requirement for image verification Just wondering if these would be measures to put in to prevent "spamming" ? |
I'm having problems with this hack...
I have the need for 2 forms. I made the easier one of the 2 first and tested it and it works fine. When I do the 2nd one, it gives me the following error when I try to submit the form. Quote:
|
|
I wanna write the form variables to the database, but it turn in to trouble if one field contains quote mark, for example " or '
PHP Code:
|
can anyone help with my problem? i want only members that are logged in to be able to use the form =/
|
Quote:
PHP Code:
After that find this if check PHP Code:
|
wow... how did i not see that...
thx |
where is this : /newthread.php?do=form ? Where do i put it, can anyone help me?
|
Quote:
PHP Code:
As you see you can add multiple forms just change the name in the $formname varieble in every new plugin. Also if you want to make new forms you have to change or add a new template in Styles & Templates, the templates with names in this variebles. PHP Code:
I hope that you are undestand that. |
I'm starting to become very proficient with this plugin and I've created 5 separate "advanced" forms, but now I'd like to take it to a new level.
I want to move the form from posting a message in a thread to posting a calendar event. How difficult would this be? For instance, the normal forms point to newthread_start and I'm guessing I would change this to calendar_start. So my questions are thus: 1. What form elements would I use to handle date parameters that are already in the existing calendars? 2. Would the form elements have to be separate to account for single day, multi-day, and recurring events? 3. If you look at a "recurring calendar event" I would want to start the form so that it looks exactly like this, with the exception of the editor box which the rest of the form would replace so that I could choose the type of questions/answers I would use here. I know this might sound difficult, but I feel that if I'm pointed in the right direction, I'm positive I could figure it out. I'm good at hacking/editing existing code due to having a photographic memory. Thanks in advance. |
Can this be included in a custom page? I would like to include multiple forms in one page - www.DeuceAce.com/advertise.php
Thanks, John EDIT: I have it installed on a separate page but when it gets submitted I get the error: No Thread specified. If you followed a valid link, please notify the administrator |
This is what I'm searching for my GDR! Thanks, Abe1. Installed, and nominated as MOTM.
|
I imported the product... what now?
So complicated! |
Quote:
|
Just like to say thanks and this is a great addon for vBulletin.
For people starting out with modifying their vBulletin configs, it does seem a little complicated at first. After a few attempts, re-reads of this thread and a bit of trial and error, I've come up with exactly what I wanted and it works like a charm. Clicked Installed |
I haven't understand where can I customize it! :(
|
this is great Add-on. But I would like to use it as a music module for song writer. Please look at this link first
http://www.trinhnu.net/h/hoason/?act...w&musicId=1533 Is there a way to upload mp3 file, and song sheet JPG or GIF file? After uploading completed, it will display like the link above. can this be done?? Or anyone know whether we have a music module for vB or not?? thanks |
To edit content of form,after uploading, goto
admincp/Plugins & Products/Plug in Manager/Form Hack, hit edit...follow instructions closely I do have one question on editing, look at Screen Shot and please tell me how to get rid of the 5 dots....Please & Thank You, http://img138.imageshack.us/img138/2410/formcf9.th.gif |
Quote:
Thanks :) |
Did you go to admincp/Plugins & Products/Plugin Manager and edit the second
form hack? //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 = "Whatever id you want"; |
Quote:
|
Quote:
HTML Code:
<td><input type="radio" name="radioanswer1" value="" checked="checked" /> </td> HTML Code:
value="" HTML Code:
/> </td> Third you can't set as checked both radio buttons with this HTML Code:
checked="checked" HTML Code:
<td><input type="radio" name="RadioAnswer1" value="$RadioChoiceA" <if condition="$RadioChoiceA == $RadioAnswer">checked="checked"</if> /> $RadioChoiceA $RadioChoiceA,$RadioChoiceB -> These variables must set it in the PHP code of your form with this to show it on the user. PHP Code:
PHP Code:
PHP Code:
I hope that it helps. |
Thank You Very Much...
|
Hello,
trying after a long while to reinstate this functionality. I'm using it in conjunction with your 'edit new thread button' hack to open a classified adverts form for several specific (classifieds) forums. So I need to have an &f=n in the link to the form. E.g. And you have a comment in your plugin which says Quote:
PHP Code:
PHP Code:
What additional stuff do I need, please? And do I need to create a hidden input in the form value of $f to pass it on? |
I am looking for a developer to help me with creating a few simple forms that I don't have time to deal with.
If you are interested, please PM me. Thanks |
Awesome Idea!
|
Looking for the same thing, everything else looks good.:surprised:
Quote:
|
Can anyone help with my request above?
Thanks |
I can make a form that it creates a poll in the message, but I am trying to find the way to make it to vote in an existing poll in a thread. Any idea?
|
Suggestion for future version: The ability for the contents of the form to be posted as an event in the calendar.
|
Quote:
|
any idea why i cant make question 4 appear on the form ?
and how to add questions etc ive tried to add number 4 but not showing although ive entered in the variables // To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'. // After, change the form name. You can't have 2 forms with the same name. // Name of this form $formname = "improvement"; if ($_REQUEST['do'] == $formname) { // ################################################## ##################### // ######################## CUSTOMIZE VARIABLES ########################## // ################################################## ##################### //////////////////////////////////////////////////////////////////////////////////////////////////// ////// BEGIN CUSTOMIZATION BELOW//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //VARIABLES //Study how variables are add here to add or remove any. If you add a variable to your form, you must add it to part one and part two. //////////////////////////////////////////////////////////////////////////////////////////////////// // Part 1 $vbulletin->input->clean_array_gpc('p', array( 'normalanswer1' => TYPE_STR, 'radioanswer1' => TYPE_STR, 'radioanswer2' => TYPE_STR, 'radioanswer3' => TYPE_STR, 'radioanswer3other' => TYPE_STR, 'answer1' => TYPE_STR, 'answer2' => TYPE_STR, 'answer3' => TYPE_STR, 'answer4' => TYPE_STR, 'dropdownanswer1' => TYPE_STR, 'checkboxanswer1_1' => TYPE_STR, 'checkboxanswer1_2' => TYPE_STR, 'checkboxanswer1_3' => TYPE_STR, 'longanswer1' => TYPE_STR )); // Part 2 $normalanswer1 = $vbulletin->GPC['normalanswer1']; $radioanswer1 = $vbulletin->GPC['radioanswer1']; $radioanswer2 = $vbulletin->GPC['radioanswer2']; $radioanswer3 = $vbulletin->GPC['radioanswer3']; $radioanswer3other = $vbulletin->GPC['radioanswer3other']; $answer1 = $vbulletin->GPC['answer1']; $answer2 = $vbulletin->GPC['answer2']; $answer3 = $vbulletin->GPC['answer3']; $answer4 = $vbulletin->GPC['answer4']; $dropdownanswer1 = $vbulletin->GPC['dropdownanswer1']; $checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1']; $checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2']; $checkboxanswer1_3 = $vbulletin->GPC['checkboxanswer1_3']; $longanswer1 = $vbulletin->GPC['longanswer1']; //////////////////////////////////////////////////////////////////////////////////////////////////// //USERGROUPS ALLOWED //You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array. //To enable this feature, remove the '//' before the 'if'. //////////////////////////////////////////////////////////////////////////////////////////////////// // if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission(); //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //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"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED /////////////////////////////////////////////////////////////////////////////////////////////////// //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 = "76"; //ENABLE POLL TO BE CREATED - 1 = yes, 0 = no $formpoll = "0"; $polloption[1] = "Yes"; $polloption[2] = "No"; $polloption[3] = "Maybe"; //Make poll public - 1 = yes, 0 = no $pollpublic = "0"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no $formreply = "0"; //EXISTING THREAD ID FOR FORM TO REPLY IN $formreplythreadid = "1559"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE FORM TO BE PMED (guests CANNOT use this option) - 1 = yes, 0 = no $formpm = "0"; //USERNAME TO PM TO (separate multiple usernames with a ';') $formpmname = "Abe"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no $formemail = "0"; //EMAIL ADDRESS TO EMAIL TO (separate multiple usernames with a ';') $formemailaddress = "admin@thebigfatsofa.com"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE ATTACHMENTS - 1 = yes, 0 = no //attachments can only be used if the form is going to make a new thread or post $allow_attachments = "0"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //REDIRECT OPTIONS: // 0 - thank you message (thread, reply, pm, or email) // 1 - redirect to post (thread or reply) // 2 - redirect to thread (thread only) // 3 - redirect to forum (thread only) // 4 - redirect to editpost (thread or reply) // // Feel free to change the thank you message if you choose option 0 //////////////////////////////////////////////////////////////////////////////////////////////////// $redirectoption = "0"; $errormessage = "Thank you for submitting this form!"; //This is the thank you message //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no //If you added or deleted variables, you must edit what it checked for. Search for "$answerall ==" and edit 2 lines under it. //////////////////////////////////////////////////////////////////////////////////////////////////// $answerall = "0"; //////////////////////////////////////////////////////////////////////////////////////////////////// //TITLE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole title) //////////////////////////////////////////////////////////////////////////////////////////////////// $formtitle = "TBFS Improvement Survey Form"; //////////////////////////////////////////////////////////////////////////////////////////////////// //TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error) //You may use variables from the form for this. //////////////////////////////////////////////////////////////////////////////////////////////////// $posttitle = "$formtitle"; //////////////////////////////////////////////////////////////////////////////////////////////////// //PURPOSE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $formpurpose = "The purpose of this form is to recieve feedback from members in the community, please answer honestly to give us a true picture of what is good / bad or indeed both."; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $normalquestion1 = "How did you find the TBFS community"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $radioquestion1 = "Would you recommend a friend to join TBFS"; // The following choices must NOT have quotation marks $radiochoice1a = "yes"; $radiochoice1b = "no"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $radioquestion2 = "Which of the options below descibes TBFS best"; // The following choices must NOT have quotation marks $radiochoice2a = "good"; $radiochoice2b = "bad"; $radiochoice2c = "both"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $radioquestion3 = "Is there anyway you can think of we could improve the site, if yes elaborate for us."; // The following choices must NOT have quotation marks $radiochoice3a = "yes"; $radiochoice3b = "no"; //////////////////////////////////////////////////////////////////////////////////////////////////// //QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question1 = "What is your first name?"; $explain1 = "Please enter your first name here."; //QUESTION 2 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question2 = "What is your email?"; $explain2 = "Please enter your real email here."; //QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question3 = "Are you a member of another site like TBFS if so help us by giving the URL?"; $explain3 = "Please enter your URL of the other forum / site here."; //QUESTION 4 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question4 = "Is there anything in particular you DISLIKE about the site?"; $explain4 = "Please give a little detail."; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //DROP DOWN CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $dropdownquestion1 = "What is your gender?"; // The following choices must NOT have quotation marks $dropdownchoice1a = "no comment"; $dropdownchoice1b = "male"; $dropdownchoice1c = "female"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //CHECK BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $checkboxquestion1 = "How many times do you log in on average weekly."; // The following choices must NOT have quotation marks $checkboxchoice1_1 = "5"; $checkboxchoice1_2 = "20"; $checkboxchoice1_3 = "100+"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $longquestion1 = "Please write down a paragraph about how you could improve the site in any shape or form."; $longexplain1 = "For example, what makes this forum different from all other forums and how is it worse or better, please be honest as this helps us improve TBFS."; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //VB TEXT AREA INPUT: You can only have ONE vb text question. (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $vbtextquestion = "Anything you would like to add further please feel free."; $vbtextexplain = "For example things you feel are important to the success of TBFS, your honesty is appreciated as it helps us improve"; //////////////////////////////////////////////////////////////////////////////////////////////// ////// END OF CUSTOMIZATION //////////////////////////////////////////////////////////////////// ///// DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! //////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// |
Abe1, any chance you could help me with the above question, please?
|
Quote:
|
Quote:
|
having problem with caracter encoding ş ı show up as Þ ý
can somone help please ? |
ok i just added this to my site.
I can find where to fill out the form http://nsraweb.com/newthread.php?do=form once it is filled out, it goes to Moderation at http://nsraweb.com/modcp/moderate.php?do=posts now once i Validate I get this PHP Code:
why is it going to Moderation? I am not a coder so I have no clue what is going on. |
Nice hack, got a quick question though.
I'm currently using the 3.5 version of this and it took me ages to set up all my current forms. Is there an easy way to upgrade to this version without trashing all my current forms and having to start again? If not I'll just have to stick with the old version :( |
Compare the 2 version.
|
Okay, I have modified the questions and all to suit my needs for it working as a Community Leader Application, and once it's submitted, it goes to Admin forum for us to vote on and discuss. The only thing I can't get to work is all the questions from the application/form itself, showing up in the thread it starts in the Admin forum. What am I doing wrong ??
Thanks in advance!! |
All times are GMT. The time now is 05:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|