View Full Version : New Posting Features - Form Hack
inteller2k7
06-20-2007, 10:57 PM
this hack is pissing me oof i change the questions only and when i got to the Form place i get a Parse error: syntax error, unexpected '=' in /home/forumaio/public_html/forum/newthread.php(71) : eval()'d code on line 287
i go to line 287 and it is blank i have not done any template edits since i dont no what to edit some help would be nice and fast than:mad:ks
RedGTiVR6
06-21-2007, 04:21 AM
this hack is pissing me oof i change the questions only and when i got to the Form place i get a Parse error: syntax error, unexpected '=' in /home/forumaio/public_html/forum/newthread.php(71) : eval()'d code on line 287
i go to line 287 and it is blank i have not done any template edits since i dont no what to edit some help would be nice and fast than:mad:ks
wow - I'm not really sure who is going to want to help with an attitude like that...
and on a different note...
For some reason I'm running into an issue trying to edit one of the forms I've made for our site.
I've gone through and made the changes (or so it seems) to the product to include the new code for the new questions, I've entered the code for the answers and the code for the questions.
I've then gone into the form template and updated, then into the answers template and updates.
However, when I go to check the form, nothing has changed.
Am I missing a step somewhere perhaps?
Maybe a field needs to be rebuilt?
Deepdog009
06-22-2007, 01:58 AM
Hey folks please go back 2 around page 23 of this hack and read from there... U will C many ideas and helpful hints 2 assist ALL...
From pages 23 - 34 should help answer many questions, but if not I will try 2 help when time permits...
ABE1 form hack adds 2 templates and one plugin file...
Admincp -->>> goto products and install after that -->>> goto templates and find form & form_answers templates... modify as you will...
If you run into parse issues then double check your new modifications, most likely U added something wrong or forget 2 add quotes or something... Ohhh yeah the PLUGIN file has all the instructions on how 2 make changes and code stuff...
When making new forms slowly make changes and check yo form after every change 2 verify where the problems start at,,, then backtrack and C what the cause could be...
Download some of the FORM files in earlier posts 2 understand how it works...
Good Luck;)
RedGTiVR6
06-22-2007, 02:32 PM
I ended up having to create new templates (with the exact same info mind you) and change the name of the templates the hack was looking for to those templates before I could get the changes to show up...
really not sure why that was the case. All I did was copy and paste the contents of the previous template into a new template and just change the name...strange.
InTeNsE-HuMoR
06-22-2007, 10:27 PM
Hi, can anyone tell me how to remove a field that I don't want in the form? I have only been able to remove the field name and not the actual field itself, how to I completely remove a field?
Deepdog009
06-23-2007, 05:53 AM
{Saviour} Update...
No need for help anymore...finally figured it out and have it working, however, the addons supplied with this hack do not work. Someone might want to take a look into this. The Add-on hacks state they are supported...how does one get their hack validated and marked as supported when it doesn't even contain all the files and instructions you need to make it work.
This Form Hack 4.0 is exactly what I've been looking for and again, Kudos goes out to Abe on this one. I just want a simple CAPTCHA hack that will work with this hack.
I'm currently using vb 3.6.7 PL1.
When U guys posted asking about add-ons I was out of town...
I uploaded those missing files two days ago...
Most guys dont stay glued 2 these forums everyday my friend,,, when time permits I stop by 2 help and fix issues...
At the time of release I uploaded a new file and forgot 2 add images 4 that add-on...
Good Luck;)
H1MendlessDark
06-25-2007, 05:55 PM
I was just wondering how to edit the questions below:
$dropdownquestion1 = "What is your gender?";
// The following choices must NOT have quotation marks
$dropdownchoice1a = "no comment";
$dropdownchoice1b = "male";
$dropdownchoice1c = "female";
How do I edit the variables and stuff. I dont get it.
Jeffler
06-28-2007, 05:14 PM
Alright, I'm an idiot, and I've never worked with hooks before (crazy, I know).
Can someone just tell me where I have to go to edit the hook? I'll be fine then. :P
Deepdog009
06-29-2007, 04:32 AM
Alright, I'm an idiot, and I've never worked with hooks before (crazy, I know).
Can someone just tell me where I have to go to edit the hook? I'll be fine then. :P
Plugin Hook 4 this Hack is located in Admincp, near bottom of listing under RSS FEEDS and below that is {{{Plugins & Products}}}...
Within the {Plugins & Products} menu is option Plugin Mgr...
After accessing that menu look 4 Forms Hack plugin, open and view code...
This is where U make modifications 2 create new forms or make changes 2 primary test form...
Below is start of Hooks Code 4 this Hack...
Making changes ain't easy... I suggest taking your time and study and read the setup area several times...
Eventually U will understand how it works with a little patients...
Good Luck!
// 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 = "testemp";
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,
'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'];
$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'];
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.
lokki
07-01-2007, 01:22 AM
On the v4 release, under 3.6.7 PL1, I can't get anything but the installed generic form to work properly. The error is "Invalid forum specified". Here's what I've tried so far:
Created a new plugin called "My Form", with $formname = "formtest"
Modified the variables and created two new templates, form_test and form_test_response
During development of my templates on v3.6 of the Form Hack, everything was working just fine, then it suddenly died.
If I have only the Form Hack default enabled, then do=form works as expected. However, if I enable a 2nd form, with a new $formname, the default even fails. Disabling the default does not get the 2nd form to work.
Any thoughts?
Deepdog009
07-01-2007, 02:42 PM
On the v4 release, under 3.6.7 PL1, I can't get anything but the installed generic form to work properly. The error is "Invalid forum specified". Here's what I've tried so far:
Created a new plugin called "My Form", with $formname = "formtest"
Modified the variables and created two new templates, form_test and form_test_response
During development of my templates on v3.6 of the Form Hack, everything was working just fine, then it suddenly died.
If I have only the Form Hack default enabled, then do=form works as expected. However, if I enable a 2nd form, with a new $formname, the default even fails. Disabling the default does not get the 2nd form to work.
Any thoughts?
Lokki double check yo new form 4 something added by mistake...
If U get a parse error and page wont show then its usually a typo somewhere in your new form...
Use process of elimination, redo yo form from scratch and take it one step at a time until its ALIVE and kicking...
I suggest delete and start over, look close at templates and plugin and verify that its as ABE1 instructions say do...
If U still have issues upload yo file in txt format and I will take a look C...
Good Luck
criscokid
07-05-2007, 06:40 PM
My forum is still at vb3.5.x running version Form Hack v3. I'm looking to upgrade to the latest version of vB and Form Hack v4... will my existsing forms work after the upgrade or will I need to redo them for Form Hack v4?
patrickstar
07-05-2007, 08:30 PM
hello its been awhile since ive messed with vb. but i recently purchased 3.6.7
if i install this and use it in a 'classifieds' forum for submitting items, will the member use the 'new thread' button to get this form. or is the form displayed somewhere in my specified forum? can someone show me a working example?
thanks very much.
Deepdog009
07-05-2007, 08:57 PM
My forum is still at vb3.5.x running version Form Hack v3. I'm looking to upgrade to the latest version of vB and Form Hack v4... will my existsing forms work after the upgrade or will I need to redo them for Form Hack v4?
Criscokid, this 3.6 Form Hack by ABE1 has some changes in the PLUGIN code...
So I would have 2 say yes U will have 2 make a few code mods 2 your old 3.5 files...{plugin code} 4 sure...
************************************************** **********************
Patrickstar, U can make a custom button in the forumshome 2 click on. It will then redirect 2 forms or Just make forms and then send guests or member straight there by linking...
ABE1 has it so that U goto this default link... http://vbulletin.org/forums/newthread.php?do=form ...
Read ABE1 install intro and then goto plugin hook area as listed on last 2 pages and go from there...
Good Luck;)
patrickstar
07-05-2007, 10:33 PM
Patrickstar, U can make a custom button in the forumshome 2 click on. It will then redirect 2 forms or Just make forms and then send guests or member straight there by linking...
ABE1 has it so that U goto this default link... http://vbulletin.org/forums/newthread.php?do=form ...
Read ABE1 install intro and then goto plugin hook area as listed on last 2 pages and go from there...
Good Luck;)
thank you. i created a classifieds forum where new threads will not be allowed. so by adding this hack it will be the only way to add a item for sale and i dont feel the need to allow posting. i want the classifieds very simple and straight forward. contact info will be in the form.
one other question.....will the members profile that created the form show up in the thread? something else i dont want.
thanks for the replies.
patrickstar
07-07-2007, 06:40 PM
installed and working great. although it does take some time to learn and the instructions in the plugin mentions something about "do not have qoutation marks or else you get error blah blah"
well i kept taking the qoutation marks out, and i kept getting the error. so that was confusing.
i think this will make my classifieds forum just what i need. but i need a few tweaks.
i would like to find a way to have the form posted but NOT show the userinfo in that forum.
can i modify the plugin or will i have to modify a vb template? i was thinking i might have to write some conditional, either to exclude member info for that specific forum, or write it to include member info in all other forums. the latter be a little more harder.
MoJo Smirnoff
07-08-2007, 02:05 PM
ok, decided to make another form...and eventually want to make more. But...i want to make these forms with a lot fewer questions than the default form.
I edit the form in the PHP, but the buttons and such sill show up in the form. Have read and read on here about how to fix this, but still dont get it. If I have 2 forms, how do i edit the 2nd one to have fewer questions/answers than my main form. I don't want to remove stuff from other forms!
Any help would be appreciated.....thanks!
MoJo Smirnoff
07-08-2007, 03:42 PM
ok, common sense kicked in and I got it set. create new templates and then change template info in the code....works like a charm! :rolleyes:
how do i get the output info to have the questions in bold font. tried in answers template, but gave me error
thanks
Deepdog009
07-09-2007, 03:17 AM
ok, common sense kicked in and I got it set. create new templates and then change template info in the code....works like a charm! :rolleyes:
how do i get the output info to have the questions in bold font. tried in answers template, but gave me error
thanks
MoJo Smirnoff...
Use html editor and edit text in master template or U may have 2 use bbcodes in answer template...
************************************************
patrickstar Im not sure about yo question, ABE1 can help U better...
I hope all goes well ;)
jiffy
07-13-2007, 08:53 PM
I don't claim to be a PHP wizard but why does it not work for me to change this code:
$posttitle = "$formtitle";
To this code:
$posttitle = "$normalquestion1";
I'm trying to get the new thread to have the title of the text filled in to normalquestion1. Seems like this is a simple thing but when I try the second code a new thread is never created. It processes the form fine, at least it seems like it does but no thread shows up in the forum. When I change the code back to "$forumtitle" it works fine again. Weird.
TheMilkCarton
07-13-2007, 10:40 PM
Here's what I use:
$formtitle = "$normalanswer1 - $answer1 - $dropdownanswer1 $answer3, $dropdownanswer2";
$posttitle = "$formtitle";
And it works just fine. I also made $pagetitle into something custom (and changed the breadcrumb in the form template to show $pagetitle) otherwise the name of the form, the breadcrumb, and the title of page will be blank, since the answers have yet to be filled out yet.
OHH... duh. Look at your code again, you're using $normalquestion1 instead of $normalanswer1. :)
jiffy
07-14-2007, 02:24 PM
OHH... duh. Look at your code again, you're using $normalquestion1 instead of $normalanswer1. :)
You my friend are my hero. Can't believe I didn't notice that. All is good now. :)
StudMuffin21
07-15-2007, 10:24 PM
So I'm still having problems getting the forum answers to show up. I have it set up to where after submitting the form, a new thread is created. For the most part it works fine, but not all the questions show their answers.
Any suggestions? I've been unable to get this working, and have worked on it for at least a month now :(
lazytown
07-17-2007, 04:59 AM
I'm using this as a glorified contact-us. I noticed with 3.6.5 (patched) that guest forms are NOT being posted to the forum. If a member uses the forum, it works fine. If a guest uses it, it looks like it goes through ok but nothing shows up. Any ideas?
-vissa
pbmansion
07-18-2007, 04:37 PM
Is there a way to have more columns and a much larger selection?
Deepdog009
07-19-2007, 12:30 AM
I'm using this as a glorified contact-us. I noticed with 3.6.5 (patched) that guest forms are NOT being posted to the forum. If a member uses the forum, it works fine. If a guest uses it, it looks like it goes through ok but nothing shows up. Any ideas?
-vissa
Turn off your image verification in vbulletin options and your issue B solved...
Good luck
+++++++++++++++++++++++++++++++++++++++++++++++
StudMuffin21
So I'm still having problems getting the forum answers to show up. I have it set up to where after submitting the form, a new thread is created. For the most part it works fine, but not all the questions show their answers.
+++++++++++++++++++++++++++++++++++++++++++++++
Upload your form in txt format and I will C if I can fix your issue...?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pbmansion,,, U can make your form a colossus monster if U want, I have several forms that have 30 questions and many more that are Godzilla's...;)
There's no limit, the problem is making them work properly and keeping the rif raf scum, scabs, spammers and leechs out...:D
StudMuffin21
07-19-2007, 12:48 AM
Deepdog009
Here is the information you requested. I've gone over it many times, but can't find what I'm doing wrong. Any assistance is appreciated. :)
I uploaded the files in txt format instead of posting them on the forum to save space.
TheMilkCarton
07-19-2007, 11:26 AM
Without looking too far into it, I'd say there is a slim chance that your form templates are causing it.
You most likely didn't add $answers 4-8 and $longanswers 2-3 to the VARIABLES section in your Form plugin.
For you, that section should look like: // Part 1
$vbulletin->input->clean_array_gpc('p', array(
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'answer8' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'longanswer1' => TYPE_STR
'longanswer2' => TYPE_STR
'longanswer3' => TYPE_STR
));
// Part 2
$answer1 = $vbulletin->GPC['answer1'];
$answer2 = $vbulletin->GPC['answer2'];
$answer3 = $vbulletin->GPC['answer3'];
$answer4 = $vbulletin->GPC['answer4'];
$answer5 = $vbulletin->GPC['answer5'];
$answer6 = $vbulletin->GPC['answer6'];
$answer7 = $vbulletin->GPC['answer7'];
$answer8 = $vbulletin->GPC['answer8'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
$longanswer1 = $vbulletin->GPC['longanswer1'];
$longanswer2 = $vbulletin->GPC['longanswer2'];
$longanswer3 = $vbulletin->GPC['longanswer3'];
TheMilkCarton
07-19-2007, 11:39 AM
So you're saying I can't have image verification for searches and a contact-us form for guests at the same time?
Yeah. I made a fix for this a long time ago.. which I never ended up releasing. I think DeepDog released an Add-On to this Form Hack, but it's not the *REAL* image verification, so I think you still may have to disable Guest Image Verification for everything.
Erm... Apparently you deleted your post.. haha.
--------------------------------------------------
Edit: Does this form handle all errors correctly? For instance, when trying to submit a form where the Post Title is longer than the limit set in vBulletin Options, it gives my users "Invalid Forum Specified", instead of returning an error saying "Thread Title is too long" or whatever. I'm pretty sure it's not any of the modifications to the Form Hack that I've done, since I looked through the plugin code and can't find any references to the post title length.
Edit2: Well, the "fix" is simple enough. I just had to put a maxlength="" on all the input fields that add up to make my thread title.
lazytown
07-19-2007, 12:25 PM
<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
StudMuffin21
07-19-2007, 04:57 PM
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.
Deepdog009
07-19-2007, 10:29 PM
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:)...
StudMuffin21
07-20-2007, 02:26 AM
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.
TheMilkCarton
07-20-2007, 03:32 AM
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
StudMuffin21
07-20-2007, 06:05 AM
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.
Deepdog009
07-20-2007, 07:13 PM
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...>>>
////////////////////////////////////////////////////////////////////////////////////////////////////
//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.
////////////////////////////////////////////////////////////////////////////////////////////////////
//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:D
StudMuffin21
07-20-2007, 08:14 PM
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 :D
Fireproof
07-20-2007, 09:08 PM
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?
Deepdog009
07-21-2007, 12:02 AM
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 :D
Sorry, misunderstood your Question...
Looking at your form preview and I-C your problem...
Give me a moment and I shall resolve... :o
Deepdog009
07-21-2007, 12:36 AM
Ok, found yo issue...
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'radioanswer3other' => TYPE_STR,
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'answer8' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'longanswer1' => TYPE_STR <<<..... comma missing here
'longanswer2' => TYPE_STR <<<.... comma missing here
'longanswer3' => TYPE_STR
));
COMMA's missing...
Add comma's at the end and as Milk Carton was saying get rid of the {{{ // }}} and that will rectify yo issues...
Good Luck;)
StudMuffin21
07-21-2007, 12:58 AM
Ah man! I knew it was gonna be something stupid! :( I can't believe I didn't see that.
Well it is all working now. Thank you SO very much for your help. You saved me a ton of hours of headache. :D:D:D:D:D:D
shanevas2
07-21-2007, 05:15 AM
What am i doing wrong? I have it all set up but after they fill out all the fields and click submit you get this and no new thread
No Thread specified. If you followed a valid link, please notify the administrator
shanevas2
07-21-2007, 05:17 AM
oops
shanevas2
07-21-2007, 07:39 PM
any one?
Alfa1
07-21-2007, 08:32 PM
Will this work with GARS?
Deepdog009
07-22-2007, 03:18 PM
What am i doing wrong? I have it all set up but after they fill out all the fields and click submit you get this and no new thread
No Thread specified. If you followed a valid link, please notify the administrator
Shanevas2 go back a few pages in this Mod and U will C several posts that relate 2 your issue...
Its a plugin issue thats causing that message...
When editing your new form, go one step at a time and check your form after every edit, that way U will know where the issue is if there is one...
Good Luck
popowich
07-22-2007, 09:48 PM
The form page sends my web server to 100% and locks up my forum when trying to view a form.
-Raymond
shanevas2
07-23-2007, 12:23 AM
I can not find it?
shanevas2
07-23-2007, 03:43 AM
Is this right?
//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";
shanevas2
07-24-2007, 02:08 AM
???? any one?
popowich
07-24-2007, 02:12 AM
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
StudMuffin21
07-24-2007, 04:38 AM
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 $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 $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:
//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";
StudMuffin21
07-24-2007, 04:44 AM
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:
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!
SuthernKumfort
07-24-2007, 06:16 AM
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
https://vborg.vbsupport.ru/
Does anyone know the answer to my question(s) below? Thx.
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.
shanevas2
07-25-2007, 03:45 AM
Still not working. Acts like it is but not posting it.
http://www.uscarmeets.com/forumdisplay.php?f=121
//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";
StudMuffin21
07-25-2007, 06:39 AM
Ok Shane,
Just so I understand you correctly, you want the form to be posted in the link you provided, correct?
anuanu
07-25-2007, 08:56 PM
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= <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
<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?
Deepdog009
07-25-2007, 09:01 PM
Is this right?
//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:eek:
Deepdog009
07-25-2007, 09:08 PM
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= <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
<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?
Anuanu U will need 2 contact ABE1...
U be requesting the same var...{{{$messagearea }}}... Mod required
Im kinda busy with creating some stuff and forms so ABE1 can assist U better...
Im here 2 help with the easy stuff...
Good Luck
SuthernKumfort
07-26-2007, 04:03 AM
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
http://www.wmdgaming.com/forums/imagehosting/9146a5a6fd19d7d.bmp
If someone else could take a look at this screeen shot and not be so vague, I would greatly appreciate it. I have searched high and low to find where to edit the boxes so they wouldnt be black. Can anyone help please?
StudMuffin21
07-26-2007, 06:59 AM
SuthernKumfort:
To make those boxes NOT black you need to edit the form template.
To do this go to:
> Styles & Templates
> Style Manager
> Click on "EDIT TEMPLATES" using the drop-down menu from the template you are using for your site appearance
> Find and double click on "form" (about half way down the templates list)
> Open the code
Now from viewing that code, you can edit to make the questions say what ever you want and have the blocks what ever color you want, using the six (6) digit color code. Keep in mind if you modify the questions, you will also need to modify the questions in the formanswers template and the main form question plugin.
StudMuffin21
07-26-2007, 07:02 AM
Deepdog009:
Attached are copies of my existing code for the SECOND form. Please keep in mind that for the form2 and formanswers2 templates, the TITLE has a description of "vBulletin" while the other two templates for the form that does work has a title of "Form Hack." I can not for the life of me figure out how to fix that so it also reads "Form Hack." I have a good feeling that is the cause of the problem. But still look at my code if you have time and would like to.
Take your time. On Sunday I leave for a 3 day backpacking trip and will not be able to have computer access until next Thursday, one week from today.
Thanks again for your continued support in this product :) :)
As before, I will remove the attachments when this problem is resolved :)
Deepdog009
07-26-2007, 01:39 PM
Does anyone know the answer to my question(s) below? Thx.
vFan give ABE1 a jingle and maybe he might add this in his next updates...
If U have any easy requests I will try 2 help if time permits...
************************************************** ****
StudMuffin21 im checking yo form now...
************************************************** ****
If this Mod helps U get more Members... Please Support it...:)
anuanu
07-26-2007, 04:47 PM
Well i found out what my problem was, I was trying to introduce more then 1 vbtextquestion when only 1 was allowed. Changed it to longquestion and everything works perfect for me. (Just have to remember to backup code before i delete it lol...)
anuanu
07-26-2007, 04:55 PM
If someone else could take a look at this screeen shot and not be so vague, I would greatly appreciate it. I have searched high and low to find where to edit the boxes so they wouldnt be black. Can anyone help please?
If your problem is the boxes being black and not showing your letters/words then you can just add
<font color="#C0C0C0"> to that section and your words/letters will show up white.
For example:
<tr><font color="#C0C0C0">
<td class="alt1" valign="middle">
<b>$longquestion1</b><br />
$longexplain1</td>
<td class="alt1" valign="middle" colspan="2">
<textarea rows="20" cols="70" name="longanswer1">$longanswer1</textarea>
</td>
Deepdog009
07-26-2007, 09:21 PM
Deepdog009:
Attached are copies of my existing code for the SECOND form. Please keep in mind that for the form2 and formanswers2 templates, the TITLE has a description of "vBulletin" while the other two templates for the form that does work has a title of "Form Hack." I can not for the life of me figure out how to fix that so it also reads "Form Hack." I have a good feeling that is the cause of the problem. But still look at my code if you have time and would like to.
Take your time. On Sunday I leave for a 3 day backpacking trip and will not be able to have computer access until next Thursday, one week from today.
Thanks again for your continued support in this product :) :)
As before, I will remove the attachments when this problem is resolved :)
SM21 heres the causes of error message...
//QUESTION 6 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question6 = "What is your occupation?" <... Missing {{{ ; }}}
//QUESTION 7 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question7 = "What is your in-game name?";
&question7 = "Please list the account you play most often.";
Question (7) take a look above and im sure U can C the problem...?
Last its not really a problem, but I think its best 2 add it anyways... *** below code ***
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'radioanswer3other' => TYPE_STR,
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'answer8' => TYPE_STR,
'answer9' => TYPE_STR,
'answer10' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'longanswer1' => TYPE_STR,
'longanswer2' => TYPE_STR,
'longanswer3' => TYPE_STR,
'longanswer4' => TYPE_STR,
'longanswer5' => TYPE_STR,
'longanswer6' => TYPE_STR,
'longanswer7' => TYPE_STR,
'longanswer8' => TYPE_STR,
'longanswer9' => TYPE_STR,
'longanswer10' => TYPE_STR <... { U dont need comma on last option }
));
Good Luck:up:
StudMuffin21
07-26-2007, 10:45 PM
All right, well after fixing what I had overlooked, and a few other things, it is now operational!
I did have to change the "product name" to "vBulletin" cause as I said earlier, the templates had the product name of "vBulletin.'' But it works just fine!!
Thank you so much :D:D:D:D:D:D
Fireproof
07-27-2007, 02:53 AM
I'm posting the answers to the form as a New Thread! Is there a way to use one of the answers for the "thread title" that gets posted?
Deepdog009
07-27-2007, 01:18 PM
I'm posting the answers to the form as a New Thread! Is there a way to use one of the answers for the "thread title" that gets posted?
Fireproof go back 2 page 19 and look 4 RedGTiVR6 posts, ye answer be there...
shanevas2
07-27-2007, 08:56 PM
This is the file i have
Deepdog009
07-28-2007, 03:23 AM
Will this work with GARS?
acronym=???
**********************************
SuthernKumfort were U able 2 fix your template colors???
**********************************
Shanevas2 ok I will check your form and post results by the morrow...
Alfa1
07-28-2007, 03:34 PM
<a href="http://www.thevbgeek.com/geekmart.php?do=displayproduct&id=3" target="_blank">Geek Article and Review System</a>
SuthernKumfort
07-28-2007, 05:09 PM
SuthernKumfort were U able 2 fix your template colors???[/B]
NO, I didnt! Any help would be greatly appreciated. I have not found where to change the colors!
Deepdog009
07-29-2007, 03:01 PM
This is the file i have
Shanevas2 yo form was a bit more than I expected, but I believe its ALIVE and kicking now...
I found many issues,,, 2 many 2 post,,, Download and give it a go...:eek:
Deepdog009
07-29-2007, 11:27 PM
SuthernKumfort were U able 2 fix your template colors???[/B]
NO, I didnt! Any help would be greatly appreciated. I have not found where to change the colors!
SuthernKumfort I looked again at your image and by default the RADIO boxes are using your STYLE code 2 output colors... U can change the colors by editing your <td class>...
What you will need 2 do is add CSS code in the header of that form 2 alter the colors of those RADIO areas class output...
Something like this...>>>
Add in header area...
<style>
.radio button class {
background: #FFFFFF;
}
</style>
Look 4 those RADIO buttons that show black color background and change <td> class 2 radio button class...
If U want I can do it 4 ya,,, upload main template in txt format and I will fix 2 whatever color U want it 2 be...
Good Luck;)
SuthernKumfort
07-29-2007, 11:42 PM
Actually, I would like to do it myself, otherwise I learn nothing. Let me see what I can do tommorrow and if I can figure it out myself. I may call upon your help on Tuesday!
Thanks,
Soko
shanevas2
07-30-2007, 12:12 AM
how the hell do i upload it? do i put all 3 into one file? or what?
SuthernKumfort
07-31-2007, 09:52 AM
SuthernKumfort I looked again at your image and by default the RADIO boxes are using your STYLE code 2 output colors... U can change the colors by editing your <td class>...
What you will need 2 do is add CSS code in the header of that form 2 alter the colors of those RADIO areas class output...
Something like this...>>>
Add in header area...
<style>
.radio button class {
background: #FFFFFF;
}
</style>
Look 4 those RADIO buttons that show black color background and change <td> class 2 radio button class...
If U want I can do it 4 ya,,, upload main template in txt format and I will fix 2 whatever color U want it 2 be...
Good Luck;)
I guess I am going to need some help. Can you tell me where to go "exactly" to change what I need to change? I am a bit lost! Ha ha
Deepdog009
07-31-2007, 02:41 PM
SuthernKumfort,
Goto styles editor and find your main template...
Open and look for RADIO questions area and you will see those questions area names...
In those RADIO questions areas there will be code like below...>>>
<tr>
<td class="alt2" colspan="3">
<b>Choose another one of the following choices</b>
</td></tr>
Look for TD CLASS in RADIO question area and change to new CSS code as stated in earlier post...
<td class="alt2" colspan="3"> {before}
<td class="radio button class" colspan="3"> {after}
Dont forget to place css style in header area {form template only} so that new background color will take over default vbull style...
Good Luck:)
**************************************
Shanevas2 did U get that form up and rolling???
shanevas2
07-31-2007, 08:41 PM
no, i don't know how to install it!
popowich
07-31-2007, 08:49 PM
Or anything you like - this hack is totally customizable via the AdminCP.
I think this falls under false or misleading advertising.
Editing plugin code is not fun or for everyone.
I like the idea of an integrated form plugin.
Any plans to make it so you can have a nice admin interface?
I tried three times to edit the plugin code and ended up with a bad page.
A simple form with enable and fill in the blanks for the form fields and let the product handle everything else in the background would be much nicer. Thank you for the work, I hope these thoughts help you to improve the product.
-Raymond
SuthernKumfort
08-01-2007, 12:18 AM
SuthernKumfort,
Goto styles editor and find your main template...
Open and look for RADIO questions area and you will see those questions area names...
In those RADIO questions areas there will be code like below...>>>
<tr>
<td class="alt2" colspan="3">
<b>Choose another one of the following choices</b>
</td></tr>
Look for TD CLASS in RADIO question area and change to new CSS code as stated in earlier post...
<td class="alt2" colspan="3"> {before}
<td class="radio button class" colspan="3"> {after}
Dont forget to place css style in header area {form template only} so that new background color will take over default vbull style...
Good Luck:)
**************************************
Shanevas2 did U get that form up and rolling???
Well, I have given up! Tell me what you need and ill let you do the rest. I am at my wits end!
shanevas2
08-01-2007, 04:00 AM
help!
Deepdog009
08-01-2007, 11:18 AM
help!
I will convert it over 2 xml and upload by the end of the day.
********************************************
SuthernKumfort I can change the background color 4 ya, but first copy your main template code and covert over 2 .txt format and upload 2 post, let me know which color U want them changed to and I will fix it 4 ya...:)
Alfa1
08-01-2007, 05:53 PM
Does anyone know if this hack works well with Geek Article and Review System (http://www.thevbgeek.com/geekmart.php?do=displayproduct&id=3) ?
Deepdog009
08-01-2007, 07:11 PM
help!
Download xml file and install form...
Good Luck ;)
******************************************
Alfa1 I haven't used GARS before,,, I have viewed the demo and info over there and I must say its interesting...
One problem, its a pay service and U know must folks ain't coughing up the mighty dollar unless its going 2 make money back...:)
Check with the author of that software, they should have your answer over at there site...
Good Luck sir
SuthernKumfort
08-01-2007, 09:34 PM
I will convert it over 2 xml and upload by the end of the day.
********************************************
SuthernKumfort I can change the background color 4 ya, but first copy your main template code and covert over 2 .txt format and upload 2 post, let me know which color U want them changed to and I will fix it 4 ya...:)
Part 2.... Ha ha
Tell me what you mean by converting it to .txt format!
Deepdog009
08-02-2007, 12:21 AM
Part 2.... Ha ha
Tell me what you mean by converting it to .txt format!
SuthernKumfort, its easy...
Open NOTEPAD on your computer...
Open Admincp,,, styles and find your main template that U edited in forms hack...
Copy all code from that template and paste into your NOTEPAD file... SAVE it and upload...
NOTEPAD create's {{{ .txt formated files }}}...
That should do the trick... I might be going out of town by the end of the week, so? ...
Give it a go ;)
shanevas2
08-02-2007, 02:15 AM
working thanks!!!
shanevas2
08-02-2007, 03:13 AM
what is the link to the plug in that will let you change where the new post page? So i can use my form.
Tralala
08-02-2007, 09:16 AM
Hi, thanks for this great hack, it will help immensely as I set up volunteers for various jobs at an upcoming event.
The default form has questions that ask for "email address" and "real name" but email addresses are already in the member logs obviously and one of my custom fields ($post[field5]) has already been set up to request and gather real names upon initial forum registration.
So, is there any way for these forms to pull the data from those as the default entry, so the users don't need to type the same answers in again?
(If not as a default answer that could be edited, how about a way to include that data in the emailed formresults, sort of like how the "username" is already automatically included?)
Deepdog009
08-02-2007, 11:31 AM
Hi, thanks for this great hack, it will help immensely as I set up volunteers for various jobs at an upcoming event.
The default form has questions that ask for "email address" and "real name" but email addresses are already in the member logs obviously and one of my custom fields ($post[field5]) has already been set up to request and gather real names upon initial forum registration.
So, is there any way for these forms to pull the data from those as the default entry, so the users don't need to type the same answers in again?
(If not as a default answer that could be edited, how about a way to include that data in the emailed formresults, sort of like how the "username" is already automatically included?)
Tralala go back 2 page {18 } of this mod,,, I think what you're asking about my be there...
*****************************************
Shanevas2 if U want 2 make changes to your form, goto Admincp { plugin mgr }...
from there open your form and U will C code that allows changes and then save it...
I hope this helps all
Tralala
08-02-2007, 01:01 PM
Tralala go back 2 page {18 } of this mod,,, I think what you're asking about my be there...
Thanks!
But I only have 6 pages (100 posts per page,) not 18.
Can you please be more specific and tell me what post # to look for? Much appreciated. :)
Tralala
08-02-2007, 01:10 PM
Also, is there a way (perhaps via a companion add-on) to "force" users to fill this form out? IE: make it come up automatically the next time they login... and they can't do anything else until they complete the questionnaire, or something along those lines...
any tips/suggestions for this much appreciated.
SuthernKumfort
08-02-2007, 02:50 PM
SuthernKumfort, its easy...
Open NOTEPAD on your computer...
Open Admincp,,, styles and find your main template that U edited in forms hack...
Copy all code from that template and paste into your NOTEPAD file... SAVE it and upload...
NOTEPAD create's {{{ .txt formated files }}}...
That should do the trick... I might be going out of town by the end of the week, so? ...
Give it a go ;)
OK, hope this is what you are looking for!
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $formtitle</title>
<style>
.radio button class {
background: #FFFFFF;
}
</style>
</head>
<body>
$header
$navbar
<!-- main -->
<if condition="$preview">
<table class="tborder" cellpadding="$stylevar[cellpadding]"
cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
Preview
</td>
</tr>
<tr>
<td class="alt1">
$preview
</td>
</tr>
</table>
</if>
<br />
<form name="vbform" action="newthread.php" method="post"<if
condition="!is_browser('webtv')"> onsubmit="return
vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>
<input type="hidden" value="$formname" name="do" />
<input type="hidden" value="submit" name="action" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<table class="tborder" cellpadding="$stylevar[cellpadding]"
cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="3">
$vboptions[bbtitle] - $formtitle
</td>
</tr>
<tr>
<td class="panelsurround" align="center" colspan="3">
<table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]"
border="0" width="100%">
<tr>
<td align="$stylevar[left]">
<fieldset class="fieldset" style="margin:0px">
<table cellpadding="0"
cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$formpurpose
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$normalquestion1</b>
</td>
</tr>
<tr>
<td class="alt2" colspan="3">
<input type="text" size="30" value="$normalanswer1" name="normalanswer1" />
</td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion1</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer1" value="$radiochoice1a" <if
condition="$radiochoice1a == $radioanswer1">checked="checked"</if> />
$radiochoice1a </td>
<td><input type="radio" name="radioanswer1" value="$radiochoice1b" <if
condition="$radiochoice1b == $radioanswer1">checked="checked"</if> />
$radiochoice1b </td>
<td> </td>
</tr>
<tr>
<td class="alt2" colspan="3">
<b>$radioquestion2</b>
</td></tr><tr>
<td><input type="radio" name="radioanswer2" value="$radiochoice2a" <if
condition="$radiochoice2a == $radioanswer2">checked="checked"</if> />
$radiochoice2a </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2b" <if
condition="$radiochoice2b == $radioanswer2">checked="checked"</if> />
$radiochoice2b </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2c" <if
condition="$radiochoice2c == $radioanswer2">checked="checked"</if> />
$radiochoice2c </td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion3</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer3" value="$radiochoice3a" <if
condition="$radiochoice3a == $radioanswer3">checked="checked"</if> />
$radiochoice3a </td>
<td><input type="radio" name="radioanswer3" value="$radiochoice3b" <if
condition="$radiochoice3b == $radioanswer3">checked="checked"</if> />
$radiochoice3b </td>
<td>If $radiochoice3a, please explain: <input type="text"
value="$radioanswer3other" name="radioanswer3other" /></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>Username</b>:<br />
Your Username.</td>
<td class="alt1" valign="middle" colspan="2">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question1</b>:<br />
$explain1</td>
<td class="alt2" valign="middle" colspan="2">
<input type="text" size="30" value="$answer1" name="answer1" /></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>$question2</b>:<br />
$explain2</td>
<td class="alt1" valign="middle" colspan="2">
<input type="text" size="30" value="$answer2" name="answer2" /></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question3</b>:<br />
$explain3</td>
<td class="alt2" valign="middle" colspan="2">
<input type="text" size="30" value="$answer3" name="answer3" /></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:
</td>
<td class="alt1" valign="middle" colspan="2">
<select name="dropdownanswer1">
<option value="$dropdownchoice1a" <if condition="$dropdownchoice1a ==
$dropdownanswer1">selected="selected"</if>>$dropdownchoice1a</option>
<option value="$dropdownchoice1b" <if condition="$dropdownchoice1b ==
$dropdownanswer1">selected="selected"</if>>$dropdownchoice1b</option>
<option value="$dropdownchoice1c" <if condition="$dropdownchoice1c ==
$dropdownanswer1">selected="selected"</if>>$dropdownchoice1c</option>
</select></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$checkboxquestion1</b>:
</td>
<td class="alt2" valign="middle" colspan="2">
<input type="checkbox" name="checkboxanswer1_1" value="$checkboxchoice1_1" <if
condition="$checkboxchoice1_1 == $checkboxanswer1_1">checked="checked"</if> />
$checkboxchoice1_1<br />
<input type="checkbox" name="checkboxanswer1_2" value="$checkboxchoice1_2" <if
condition="$checkboxchoice1_2 == $checkboxanswer1_2">checked="checked"</if> />
$checkboxchoice1_2<br />
<input type="checkbox" name="checkboxanswer1_3" value="$checkboxchoice1_3" <if
condition="$checkboxchoice1_3 == $checkboxanswer1_3">checked="checked"</if> />
$checkboxchoice1_3
</td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>$longquestion1</b><br />
$longexplain1</td>
<td class="alt1" valign="middle" colspan="2">
<textarea rows="20" cols="70" name="longanswer1">$longanswer1</textarea>
</td>
</tr>
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]"
align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana;
font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana;
font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana;
font-size: 10pt" class="button" />
</p></td></tr>
</table>
</form>
$footer
</body>
</html>
shanevas2
08-03-2007, 12:44 AM
No i am looking for the plug in to change what page the new thread button goes to. EX. you click new thread and my form comes up.
Grunt
08-03-2007, 10:25 PM
No i am looking for the plug in to change what page the new thread button goes to. EX. you click new thread and my form comes up.
I believe you're looking for ABE1s Edit new thread button 1.1 (https://vborg.vbsupport.ru/showthread.php?t=102923)
Deepdog009
08-04-2007, 11:23 PM
Also, is there a way (perhaps via a companion add-on) to "force" users to fill this form out? IE: make it come up automatically the next time they login... and they can't do anything else until they complete the questionnaire, or something along those lines...
any tips/suggestions for this much appreciated.
Tralala back from out of town...
Sure U should be able 2 do all of that, by making a few modifications using conditionals...
Check some of the conditional mods here...
Do a search on conditionals here and over at vBulletin.com...
I hope that helps U ;)
*********************************************
SuthernKumfort Im working on your form and I have a Q???... bkgd color?
*********************************************
shanevas2 im still not sure what you're asking 4, but maybe its this...>>>
http://www.yoursite/forum/newthread.php?do=name of your form here ??? :erm:
Deepdog009
08-05-2007, 12:23 AM
If someone else could take a look at this screeen shot and not be so vague, I would greatly appreciate it. I have searched high and low to find where to edit the boxes so they wouldnt be black. Can anyone help please?
SuthernKumfort,
I extracted the code thats causing the black bkgd issue that U want 2 correct...
Look 4 this {{{ <td class="alt1" colspan="3"> }}} code and edit class options in Radioquestions 1,2 and 3...
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion1</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer1" value="$radiochoice1a" <if
condition="$radiochoice1a == $radioanswer1">checked="checked"</if> />
$radiochoice1a </td>
<td><input type="radio" name="radioanswer1" value="$radiochoice1b" <if
condition="$radiochoice1b == $radioanswer1">checked="checked"</if> />
$radiochoice1b </td>
<td> </td>
</tr>
<tr>
<td class="alt2" colspan="3">
<b>$radioquestion2</b>
</td></tr><tr>
<td><input type="radio" name="radioanswer2" value="$radiochoice2a" <if
condition="$radiochoice2a == $radioanswer2">checked="checked"</if> />
$radiochoice2a </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2b" <if
condition="$radiochoice2b == $radioanswer2">checked="checked"</if> />
$radiochoice2b </td>
<td><input type="radio" name="radioanswer2" value="$radiochoice2c" <if
condition="$radiochoice2c == $radioanswer2">checked="checked"</if> />
$radiochoice2c </td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion3</b>
</td>
</tr><tr>
<td><input type="radio" name="radioanswer3" value="$radiochoice3a" <if
condition="$radiochoice3a == $radioanswer3">checked="checked"</if> />
$radiochoice3a </td>
<td><input type="radio" name="radioanswer3" value="$radiochoice3b" <if
condition="$radiochoice3b == $radioanswer3">checked="checked"</if> />
$radiochoice3b </td>
<td>If $radiochoice3a, please explain: <input type="text"
value="$radioanswer3other" name="radioanswer3other" /></td>
</tr>
1.) change td class 2 alter bkgd color
2.) add css style in header of template
Example code
***********
<style>
.radio button class {
background: #FFFFFF;
}
</style>
above is added 2 header area of template
***********
<td class="alt1" colspan="3"> before changes
<td class="radio button class" colspan="3"> after changes
edit all three radioquestion td classes in radioquestions 1,2 and 3...
I hope this gets U over the hump;)
Tralala
08-05-2007, 05:04 AM
Tralala back from out of town...
Sure U should be able 2 do all of that, by making a few modifications using conditionals...
Check some of the conditional mods here...
Do a search on conditionals here and over at vBulletin.com...
I hope that helps U ;)
Thanks...
I discovered Abe1's excellent "Force Users to Read a Thread" mod:
https://vborg.vbsupport.ru/showthread.php?t=151737
So I am hoping there's a way to "force users to fill out the form!"
shanevas2
08-05-2007, 07:20 AM
Thank You Grunt For Link!
And Thanks For Fixing My File Deepdog009
Deepdog009
08-05-2007, 02:28 PM
Thank You Grunt For Link!
And Thanks For Fixing My File Deepdog009
Shanevas2 Im glad U got it sorted out and Alive and Kicking...
I liked your earlier post about { how the hell do i install it } Im still laughing on that one...:)
******************************************
Tralala thats great U found what U where looking 4...:up:
ABE1 has mega mods that help all...
Theres another modder that uses conditionals alot and has useful hacks... check Logician mods...
Tralala
08-05-2007, 04:08 PM
Tralala thats great U found what U where looking 4...:up:
ABE1 has mega mods that help all...
Theres another modder that uses conditionals alot and has useful hacks... check Logician mods...
Yes, cool, thanks. Since Abe1 wrote both I am hoping he can provide clues to integrate them. All else fails I suppose I can just "force users to read the thread" that tells them about the form.
I will search on Logician now, too. Thanks again!
SuthernKumfort
08-07-2007, 04:49 AM
Tralala back from out of town...
Sure U should be able 2 do all of that, by making a few modifications using conditionals...
Check some of the conditional mods here...
Do a search on conditionals here and over at vBulletin.com...
I hope that helps U ;)
*********************************************
SuthernKumfort Im working on your form and I have a Q???... bkgd color?
*********************************************
shanevas2 im still not sure what you're asking 4, but maybe its this...>>>
http://www.yoursite/forum/newthread.php?do=name of your form here ??? :erm:
White background, black letters!
Deepdog009
08-07-2007, 02:38 PM
White background, black letters!
Look @ this POST (https://vborg.vbsupport.ru/showpost.php?p=1310004&postcount=604)
SuthernKumfort
08-08-2007, 05:41 AM
Look @ this POST (https://vborg.vbsupport.ru/showpost.php?p=1310004&postcount=604)
I am totally confused. I mean TOTALLY. I got it all messed up now and most of my form is even missing!
Deepdog009
08-08-2007, 12:02 PM
I am totally confused. I mean TOTALLY. I got it all messed up now and most of my form is even missing!
SuthernKumfort I think its best that U go back 2 your post that has your form code, copy and paste it back 2 your main form template, next if U look closely at my post about editing your form 2 change background colors in only Radioquestions 1,2 and 3, it only shows edit the CLASS of those three RADIO buttons listed...
The only area of that template that U will edit is here...>>>
**********************************************
Edit only Radioquestions 1,2 and 3
<td class="alt1" colspan="3"> before changes
<td class="radio button class" colspan="3"> after changes
That should fix all yo troubles...
Tralala
08-08-2007, 02:34 PM
The Form Hack seems to be working okay on my forum. I set up a job request sheet (for volunteer hours) and everyone seems to be liking it. The form results are posted into a thread.
One issue I note is that the "last post" for this thread, on FORUMHOME doesn't seem to accurately update and reflect what the last post actually is. I've had 25 responses so far and the "last post" is displaying the 22nd one.
SuthernKumfort
08-08-2007, 03:40 PM
SuthernKumfort I think its best that U go back 2 your post that has your form code, copy and paste it back 2 your main form template, next if U look closely at my post about editing your form 2 change background colors in only Radioquestions 1,2 and 3, it only shows edit the CLASS of those three RADIO buttons listed...
The only area of that template that U will edit is here...>>>
**********************************************
Edit only Radioquestions 1,2 and 3
<td class="alt1" colspan="3"> before changes
<td class="radio button class" colspan="3"> after changes
That should fix all yo troubles...
Its not the question that is blacked out on my form. Its the answers!
Deepdog009
08-08-2007, 06:30 PM
Its not the question that is blacked out on my form. Its the answers!
SuthernKumfort I can fix yo issue, but I will need both templates code and the plugin code in order 2 complete your request???
Upload in .txt format or post them like U did with the main template and I will help U resolve this issue...
CremeEgg
08-10-2007, 09:36 AM
Just a quick question for those of you in the know, can you post the form into multiple forums at the same time?
When I try to add 6 checkbox questions, why will it only show 5? I've changed everything like I was supposed to, including the variables in the beginning. Is there a work around for this?
dsotmoon
08-11-2007, 09:04 PM
is anyone else getting hammered with SPAM using it as a contact form? i even added in the Image Match "Forms Hack add-on" which works but it has not slowed down the SPAM, i mean about 5 per minute
any ideas
Centrix
08-12-2007, 08:15 AM
Could you explain more about how to customize this? cause you say do this with hook, this hook that, blabla, hook so.... but im kinda new to this all and I dont really know... what a hook is... and how to edit it...
Deepdog009
08-12-2007, 01:57 PM
The Form Hack seems to be working okay on my forum. I set up a job request sheet (for volunteer hours) and everyone seems to be liking it. The form results are posted into a thread.
One issue I note is that the "last post" for this thread, on FORUMHOME doesn't seem to accurately update and reflect what the last post actually is. I've had 25 responses so far and the "last post" is displaying the 22nd one.
Tralala Im not sure about why thats happening, sounds like a conflict with code or another hack my be affecting it. Ask ABE1...
************************************************** ****
Just a quick question for those of you in the know, can you post the form into multiple forums at the same time?
CremeEgg Im not sure about that, ask ABE1...
************************************************** ****
When I try to add 6 checkbox questions, why will it only show 5? I've changed everything like I was supposed to, including the variables in the beginning. Is there a work around for this?
JHC go over your form again and look 4 anything out of place or covert over 2 .txt format and upload your form, I will take a look C where the issue is and fix 4 ya...
************************************************** ****
is anyone else getting hammered with SPAM using it as a contact form? i even added in the Image Match "Forms Hack add-on" which works but it has not slowed down the SPAM, i mean about 5 per minute
any ideas
Yes,
{1} Turn on answer all questions in form hack...
{2} I will look into adding that hack by Antialiasis {no spam } or some other no spam add-on...
{3} Change form link name and alert members of changes.
{4} check your logs in control panel and verify IP address's that are the culprits doing the damage. Block um by htaccess (https://vborg.vbsupport.ru/showthread.php?t=148620)...
If I have more time away from my job, I will try 2 create more Add-ons 2 help with this...
************************************************** ****
Could you explain more about how to customize this? cause you say do this with hook, this hook that, blabla, hook so.... but im kinda new to this all and I dont really know... what a hook is... and how to edit it...
Centrix the hook area is in the plugin, goto admincp and look at bottom of screen 4 plugins...
Open plugin manager and look 4 FORMS HACK, open and click large edit box...
There U will find how 2 edit your form...
Remember there are 3 parts 2 this, two templates and one plugin most be modified in order for your new forms 2 activate...
Give it a go;)
lazytown
08-13-2007, 09:37 AM
is anyone else getting hammered with SPAM using it as a contact form? i even added in the Image Match "Forms Hack add-on" which works but it has not slowed down the SPAM, i mean about 5 per minute
any ideas
Yes, spam bots will hammer the form when used as a contact us. I used the NoSpam! mod with directions on integrating with this. However, there is a small bug that has not yet been resolved in integrating this with the NoSpam mod.
-vissa
Deepdog009
08-13-2007, 11:43 AM
Yes, spam bots will hammer the form when used as a contact us. I used the NoSpam! mod with directions on integrating with this. However, there is a small bug that has not yet been resolved in integrating this with the NoSpam mod.
-vissa
Yeap, spammers come and come and keep on coming...:eek:
BUT, if there's a will then there's a way...;)
Verification 4 each input box with image & no spam may be the answer... What do ya think???
lazytown
08-14-2007, 05:22 AM
Yeap, spammers come and come and keep on coming...:eek:
BUT, if there's a will then there's a way...;)
Verification 4 each input box with image & no spam may be the answer... What do ya think???
The "NoSpam!" mod stopped them completely.. However, I'm not happy with what happens when they don't answer correctly -- it goes to a blank page right now as I mention in this post: https://vborg.vbsupport.ru/showthread.php?p=1313566#post1313566
-vissa
zompus
08-15-2007, 02:42 PM
$dropdownchoice1a = "name";
$dropdownchoice1b = "name";
$dropdownchoice1c = "name";
etc.
What happens when i reach 'z'? I plan on having over 500 options. :'(
Tralala
08-15-2007, 06:57 PM
500 options in a drop down menu?
Yikes.
FW FH-K?ln
08-15-2007, 11:12 PM
@zompus:
aa
ab
ac
...
ba
bb
bc
...
^^
@all:
i install this hack and i love it. but one question: i want create a "Insert into" with the variables into a seperate table to extract it to office. how do I make that?
Deepdog009
08-23-2007, 04:39 AM
The "NoSpam!" mod stopped them completely.. However, I'm not happy with what happens when they don't answer correctly -- it goes to a blank page right now as I mention in this post: https://vborg.vbsupport.ru/showthread.php?p=1313566#post1313566
-vissa
Vissa I looked into that and can see some solutions, but 2 busy with work at this time...
I have seen several new mods 4 spam that may help...
*****************************************
FW FH-K?ln,,,
Sorry, but not sure how 2 do that... Try Caspio (http://www.caspio.com/) 4 more on this
FCS-Webmaster
08-29-2007, 05:59 PM
Well this mod is awesome!
But is there a possibility to use a "fix user - like the admin" to post every form into a thread?!
Background:
We want to use this form for a booking request.
After the form is send, a new thread should be created which
can be only viewed from our coaches
What I want is that every form will be posted in the forum through one ID.
I would be appreciated about a helping hand. tried to work this out the last
4 hours :-(
Deepdog009
08-29-2007, 07:38 PM
Well this mod is awesome!
But is there a possibility to use a "fix user - like the admin" to post every form into a thread?!
Background:
We want to use this form for a booking request.
But before the request is for every User sightable it should be
overviewed and be discussed from Coches, a special usergroup
Sure U can customize your forms 2 do whatever ye wish...
ABE1 has the hook in plugin area so that U can make modifications 2 which forum its posted to, U can have it posted 2 staff forum first so that yo folks can judge it and then bump it 2 members or customers area...
It might take some time, but browse through most posts and U will C that its a cool MOD 2 use for many ways in manipulation of guests and soon 2 be members and regulars...
Gooden Lucken:up:
FCS-Webmaster
08-29-2007, 08:13 PM
Sure U can customize your forms 2 do whatever ye wish...
ABE1 has the hook in plugin area so that U can make modifications 2 which forum its posted to, U can have it posted 2 staff forum first so that yo folks can judge it and then bump it 2 members or customers area...
It might take some time, but browse through most posts and U will C that its a cool MOD 2 use for many ways in manipulation of guests and soon 2 be members and regulars...
Gooden Lucken:up:
Hm, sorry but when I am not registered the post goes no where if the Forum is "hidden".
This is needed to stay in Background. So normal Users don`t see this part of the Forum.
We don`t wan`t to see this section either to guests/unregistered...
Did you get what I want to say?!
Sorry 4 my bad language skills
FCS-Webmaster
08-29-2007, 09:18 PM
I've set this up, and amended the file and templates to generate a Contact us function that is to be posted into a specified forum.
The form looks good, the information is great and it works wonderfully when posting into the forum... for those that have the relevant permissions...
Unfortunately, the form will be completed and submitted by unregistered members and I was wondering whether there's anything at all can be done to allow this to happen. The process is: guest or member (who generally doesn't have access to the forum into which its posted) completes a contact us form. It gets posted into the forum, and a "support" usergroup member responds or it's discussed.
Any clues as to where I should start looking for this solution?
edit: just saw this in the hack description:
Well either I'm missing something completely obvious, or it simply doesn't do this. Unless it's this image verification thing that was mentioned a few pages back that's stopping it? I have it set to avoid spammage, so is that the problem I'm facing??
edit again: OK, just found that it *is* the image verification problem that was causing it. It now posts, but as Moderated - guess I'll have to tweak the forum/usergroup permissions to get around that. Just to confirm... by setting Guest Posts needs Image Verification to yes in your vb Options DOES cause this hack not to post into forums in those situations. Oh and the color red becomes green on these forums for some inexplicable reason...
This is exactly hat I need!
Is there any solution for it?
Derek Chai
09-01-2007, 10:55 PM
http://collide.elementfx.com/vbulletin/newthread.php?do=form&f52 getting the no thread or forum error didn't help what i searched but that is my code below my template isnt the problem it is this thing below. i erased some parts but once i added $longanswer1 2 and 3 to the tops the questions and the bottom where you do the ORS it wont show up,.
$formname = "form";
if ($_REQUEST['do'] == $formname)
{
// 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,
'dropdownanswer1' => TYPE_STR,
'checkboxanswer1_1' => TYPE_STR,
'checkboxanswer1_2' => TYPE_STR,
'checkboxanswer1_3' => TYPE_STR,
'longanswer1' => TYPE_STR
'longanswer2' => TYPE_STR
'longanswer3' => 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'];
$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'];
$longanswer2 = $vbulletin->GPC['longanswer2'];
$longanswer3 = $vbulletin->GPC['longanswer3'];
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission();
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
//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 = "2";
//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 = "12345";
////////////////////////////////////////////////////////////////////////////////////////////////////
//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 = "youremail@yourforums.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 = "1";
$redirectoption = "0";
$errormessage = "Thank you for submitting this form!"; //This is the thank you message
/
$answerall = "0";
$formtitle = "Generic Form";
$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 allow you to submit a form, and this form will be made into a thread in a particular forum, or be PMed to a moderator or be emailed to a moderator.";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//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 = "What is the meaning to life?";
$radioquestion1 = "Choose one of the following choices";
// The following choices must NOT have quotation marks
$radiochoice1a = "yes";
$radiochoice1b = "no";
$radioquestion2 = "Choose another one of the following choices";
// The following choices must NOT have quotation marks
$radiochoice2a = "good";
$radiochoice2b = "bad";
$radiochoice2c = "both";
$radioquestion3 = "Is it yes or no? If yes, please elaborate";
// 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 name?";
$explain1 = "Please enter your real 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 = "What is your website?";
$explain3 = "Please enter your URL here.";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//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 = "This shows how to use checkboxes.";
// The following choices must NOT have quotation marks
$checkboxchoice1_1 = "good";
$checkboxchoice1_2 = "bad";
$checkboxchoice1_3 = "both";
$longquestion1 = "Please write down a paragraph about yourself.";
$longquestion2 = "Please write down a paragraph about yourself.";
$longquestion3 = "Please write down a paragraph about yourself.";
/
$vbtextquestion = "Please write down a paragraph about how you like this forum.";
$vbtextexplain = "For example, what makes this forum different from all other forums?";
if ($_REQUEST['action'] == '')
{
$_REQUEST['action'] = "form";
}
$bbuserinfo = $vbulletin->userinfo;
// start navbar
$navbits = array();
$navbits['newthread.php?' . $vbulletin->session->vars['sessionurl'] . "do=$formname"] = $formtitle;
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
if ($_REQUEST['action'] == "submit")
{
if ($answerall == "1")
{
if ($normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR ($checkboxchoice1_1 AND $checkboxchoice1_2 AND $checkboxchoice1_3) OR $longanswer1 == '' OR $longanswer2 == '' OR $longanswer3 == '')
{
$errormessage = "$bbuserinfo[username], you need to answer every question!";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}
}
$vbulletin->input->clean_array_gpc('p', array(
'wysiwyg' => TYPE_BOOL,
'message' => TYPE_STR
));
if ($vbulletin->GPC['wysiwyg'])
{
require_once(DIR . '/includes/functions_wysiwyg.php');
$vbtextanswer = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], $foruminfo['allowhtml']);
}
else
{
$vbtextanswer =& $vbulletin->GPC['message'];
}
eval('$formsend = "' . fetch_template("$answertemplate") . '";');
$posthash = $vbulletin->input->clean_gpc('p', 'posthash', TYPE_NOHTML);
$poststarttime = $vbulletin->input->clean_gpc('p', 'poststarttime', TYPE_UINT);
if ($_POST['submit'] == 'Submit')
{
if ($formforum == "1")
{
$foruminfo = verify_id('forum', $formforumid, 0, 1);
$forumperms = fetch_permissions($foruminfo[forumid]);
$newpost['username'] =& $vbulletin->userinfo['username'];
$newpost['message'] =& $formsend;
$newpost['title'] =& $posttitle;
$newpost['parseurl'] = '1';
$newpost['poststarttime'] = $poststarttime;
$newpost['posthash'] = $posthash;
if ($vbulletin->userinfo['autosubscribe'] != -1)
{
$newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
}
else
{
$newpost['emailupdate'] = 9999;
}
if ($vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);
if ($formpoll == "1")
{
$threadinfo = verify_id('thread', $newpost[threadid], 0, 1);
$polloptions = count($polloption);
$question = $posttitle;
$vbulletin->GPC['options'] = $polloption;
$counter = 0;
$optioncount = 0;
$badoption = '';
while ($counter++ < $polloptions)
{ // 0..Pollnum-1 we want, as arrays start with 0
if ($vbulletin->options['maxpolllength'] AND vbstrlen($vbulletin->GPC['options']["$counter"]) > $vbulletin->options['maxpolllength'])
{
$badoption .= iif($badoption, ', ') . $counter;
}
if (!empty($vbulletin->GPC['options']["$counter"]))
{
$optioncount++;
}
}
// Add the poll
$poll =& datamanager_init('Poll', $vbulletin, ERRTYPE_STANDARD);
$counter = 0;
while ($counter++ < $polloptions)
{
if ($vbulletin->GPC['options']["$counter"] != '')
{
$poll->set_option($vbulletin->GPC['options']["$counter"]);
}
}
$poll->set('question', $question);
$poll->set('dateline', TIMENOW);
$poll->set('active', '1');
$poll->set('public', $pollpublic);
$pollid = $poll->save();
//end create new poll
// update thread
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('pollid', $pollid);
$threadman->save();
}
}
if ($formreply == "1")
{
$threadinfo = verify_id('thread', $formreplythreadid, 0, 1);
$forumperms = fetch_permissions($threadinfo[forumid]);
$newpost['username'] =& $vbulletin->userinfo['username'];
$newpost['message'] =& $formsend;
$newpost['title'] =& $posttitle;
$newpost['parseurl'] = "1";
$newpost['poststarttime'] = $poststarttime;
$newpost['posthash'] = $posthash;
if ($vbulletin->userinfo['autosubscribe'] != -1)
{
$newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
}
else
{
$newpost['emailupdate'] = 9999;
}
if ($vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}
build_new_post('reply', $foruminfo, $threadinfo, $postinfo, $newpost, $errors);
}
if ($formpm == "1")
{
$vbulletin->GPC['message'] =& $formsend;
$vbulletin->GPC['title'] =& $posttitle;
$vbulletin->GPC['recipients'] =& $formpmname;
$pm['message'] =& $vbulletin->GPC['message'];
$pm['title'] =& $vbulletin->GPC['title'];
$pm['recipients'] =& $vbulletin->GPC['recipients'];
// create the DM to do error checking and insert the new PM
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromusername', $vbulletin->userinfo['username']);
$pmdm->setr('title', $pm['title']);
$pmdm->setr('message', $pm['message']);
$pmdm->set_recipients($pm['recipients'], $permissions);
$pmdm->set('dateline', TIMENOW);
// everything's good!
$pmdm->save();
}
if ($formemail == "1")
{
require_once(DIR . '/includes/class_bbcode_alt.php');
$plaintext_parser =& new vB_BbCodeParser_PlainText($vbulletin, fetch_tag_list());
$plaintext_parser->set_parsing_language($touserinfo['languageid']);
$formsend = $plaintext_parser->parse($formsend);
$emails = explode(';', $formemailaddress);
foreach ($emails AS $email)
{
vbmail($email, $posttitle, $formsend);
}
}
if ($redirectoption == "1")
{
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
eval(print_standard_redirect('redirect_postthanks' ));
exit();
}
if ($redirectoption == "2")
{
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]";
eval(print_standard_redirect('redirect_postthanks' ));
exit();
}
if ($redirectoption == "3")
{
$vbulletin->url = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]";
eval(print_standard_redirect('redirect_postthanks' ));
exit();
}
if ($redirectoption == "4")
{
$vbulletin->url = 'editpost.php?do=editpost&' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
eval(print_standard_redirect('redirect_postthanks' ));
exit();
}
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
}
else
{
require_once('./includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$preview = $parser->do_parse($formsend);
$_REQUEST['action'] = 'form';
}
}
if ($_REQUEST['action'] == 'form')
{
if (($formforum OR $formreply) AND $allow_attachments)
{
if ($formforum AND $formreply)
{
$forumid = $formforumid;
}
else if ($formreply)
{
$threadid = $formreplythreadid;
$threadinfo = verify_id('thread', $threadid, 0, 1);
$forumid = $threadinfo[forumid];
}
else
{
$forumid = $formforumid;
}
$forumperms = fetch_permissions($forumid);
// get attachment options
require_once(DIR . '/includes/functions_file.php');
$inimaxattach = fetch_max_upload_size();
$maxattachsize = vb_number_format($inimaxattach, 1, true);
$attachcount = 0;
$attach_editor = array();
$attachment_js = '';
if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostattachment'] AND $vbulletin->userinfo['userid'] AND !empty($vbulletin->userinfo['attachmentextensions']))
{
if (!$posthash OR !$poststarttime)
{
$poststarttime = TIMENOW;
$posthash = md5($poststarttime . $vbulletin->userinfo['userid'] . $vbulletin->userinfo['salt']);
}
else
{
if (empty($postattach))
{
$currentattaches = $db->query_read("
SELECT dateline, filename, filesize, attachmentid
FROM " . TABLE_PREFIX . "attachment
WHERE posthash = '" . $db->escape_string($posthash) . "'
AND userid = " . $vbulletin->userinfo['userid']
);
while ($attach = $db->fetch_array($currentattaches))
{
$postattach["$attach[attachmentid]"] = $attach;
}
}
if (!empty($postattach))
{
foreach($postattach AS $attachmentid => $attach)
{
$attach['extension'] = strtolower(file_extension($attach['filename']));
$attach['filename'] = htmlspecialchars_uni($attach['filename']);
$attach['filesize'] = vb_number_format($attach['filesize'], 1, true);
$attach['imgpath'] = "$stylevar[imgdir_attach]/$attach[extension].gif";
$show['attachmentlist'] = true;
eval('$attachments .= "' . fetch_template('newpost_attachmentbit') . '";');
$attachment_js .= construct_attachment_add_js($attachmentid, $attach['filename'], $attach['filesize'], $attach['extension']);
$attach_editor["$attachmentid"] = $attach['filename'];
}
}
}
if ($threadid)
{
$attachurl = "t=$threadid";
}
else
{
$attachurl = "f=$forumid";
}
$newpost_attachmentbit = prepare_newpost_attachmentbit();
eval('$attachmentoption = "' . fetch_template('newpost_attachment') . '";');
if ($threadid)
{
$attach_editor['hash'] = $threadid;
$attach_editor['url'] = "newattachment.php?$session[sessionurl]t=$threadid&poststarttime=$poststarttime&posthash= $posthash";
}
else
{
$attach_editor['hash'] = $forumid;
$attach_editor['url'] = "newattachment.php?$session[sessionurl]f=$forumid&poststarttime=$poststarttime&posthash=$ posthash";
}
}
else
{
$attachmentoption = '';
}
}
else
{
$attachmentoption = '';
}
// set message box width to usercp size
$stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
$editorid = construct_edit_toolbar($vbtextanswer);
eval('print_output("' . fetch_template("$maintemplate") . '");');
}
}
Deepdog009
09-02-2007, 01:10 PM
This is exactly hat I need!
Is there any solution for it?
FCS-Webmaster what U ask 4 can be done, but it requires some coding changes...
ABE1 can help U better, I creating a few add-ons 2 this, but not much feedback so I stopped...
**************************************
Derek Chai I-C your issue, U-B missing your comma's...
Check back a few pages and U will C another post about it...
If U still have issues with it give me a jingle and I will fix 4 ya...
FCS-Webmaster
09-04-2007, 01:16 AM
I found another great solution - better my beloved girlfriend is the secret genius - If you install this hack https://vborg.vbsupport.ru/showthread.php?t=151222&highlight=chatyou can trick it.
1. Install the Email Integration Hack,do all needed settings
2. And in this Forum hack just place the Email to send from the Email you have to place for a forum in the Integration Hack.
GREAT THING NOW!
But if there would be a update from this hack i won't cry....
FCS-Webmaster
09-04-2007, 01:18 AM
FCS-Webmaster what U ask 4 can be done, but it requires some coding changes...
ABE1 can help U better, I creating a few add-ons 2 this, but not much feedback so I stopped...
[COLOR="Blue"]
Yeah I use your Image Match - GREAT ADD ON!
Prevents my board from a lot spam!
FCS-Webmaster
09-04-2007, 10:52 AM
A last question.
Below the form are three buttons: Submit - Preview - Reset.
How can I translate them into another language
I tried to change the value but after this the form only shows the preview and doesn`t work anymor. Any hints?!
thnx a lot
faramir8360
09-04-2007, 10:21 PM
Excuse me if I'm going to repeat a question already asked (43 pages are veryyyy long!!), but is it possible tu assign a different Formatting BBcode to every entry of the form?
For eg:
Question: What is your name? ----> Reply: Mark
On submiting the form the messagge will be displayed as, written in bbcode:
[center.][b.]Mark[./b][./center]
etc... with other entries, but anyone with its own bbcode.
In this way the user can automatically insert a new thread standandly formatted...
excuse for bad english... by!
Deepdog009
09-04-2007, 10:33 PM
Excuse me if I'm going to repeat a question already asked (43 pages are veryyyy long!!), but is it possible tu assign a different Formatting BBcode to every entry of the form?
For eg:
Question: What is your name? ----> Reply: Mark
On submiting the form the messagge will be displayed as, written in bbcode:
[center.][b.]Mark[./b][./center]
etc... with other entries, but anyone with its own bbcode.
In this way the user can automatically insert a new thread standandly formatted...
excuse for bad english... by!
faramir8360 yes U can...
Alter the answer template with bbcodes and its a done deal...
one of my add-ons has bbcodes added 2 answer sheet,,, it adds some bbcode pics...;)
************************************************
FCS-Webmaster I have a update 4 that add-on,,, I will upload it by the weekend...:)
faramir8360
09-05-2007, 12:05 PM
faramir8360 yes U can...
Alter the answer template with bbcodes and its a done deal...
one of my add-ons has bbcodes added 2 answer sheet,,, it adds some bbcode pics...;)
Excuse me deepdog but.... I think.... I did not understand what I have to do to insert the bbcode in the form.... :o :confused: :confused:
Deepdog009
09-05-2007, 05:20 PM
A last question.
Below the form are three buttons: Submit - Preview - Reset.
How can I translate them into another language
I tried to change the value but after this the form only shows the preview and doesn`t work anymor. Any hints?!
thnx a lot
Here R a few links that should help with your question...
Input images 1 (http://jarrodspillers.com/articles/2007/04/10/custom-image-form-submit-buttons-what-is-the-correct-approach)
Input images 2 (http://www.codeave.com/html/code.asp?u_log=5018)
**********************************************
Faramir8360 take a look below at the answer template,,, add bbcode 2 your answer template and save,,, next submit test form and bbcode will show up in posts...
U may need 2 change images allowed in vBull options and add new bbcodes 2 bbcode mgr...
Good luck 2 ya
:forms123:
$bbuserinfo[username]:gochat123:
:Music123:
$question1
$answer1
$question2
$answer2
$question3
$answer3
$question4
$answer4
$question5
$answer5 :emailreturn123:
$radioquestion1
$radioanswer1
$radioanswer1other
$radioquestion2
$radioanswer2
$radioanswer2other
:hotstuff123:
$vbtextquestion
$vbtextanswer
:hotstuff123:
xanthide
09-09-2007, 11:32 PM
if i want to use it instead of the NEW THREAD, is there a way i can get the $formforumid to determine what forum the thread is started in?
xandizitxu
09-09-2007, 11:59 PM
I was looking for it !
xanthide
09-10-2007, 04:23 PM
Hey guys, maybe I missed it, I also ran a search. Is there way to set this up so you can select a post icon, and not have it be blank when it posts the topic? I was trying to figure out a way to do it, but I kept breaking the code. Any ideas would be great. Thanks!
ye.. i would also like some way to do this..
anyone who can help?
rjordan
09-10-2007, 07:33 PM
At the risk of sounding like an idiot, I have to ask this. To have multiple forms, you have to change the XML, rename it, and upload it? Is that correct? It is somewhat confusing the way it is described and I could not find a solid answer through the thread.
xandizitxu
09-11-2007, 02:38 AM
Got it working! Sorry for the trouble thanks!
Deepdog009
09-11-2007, 05:19 PM
////////////////////////////////////////////////////////////////////////////////////////////////////
//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.
if ($dropdownanswer2 == "Title here")
{
$formforumid = "11";
}
if ($dropdownanswer2 == "Title here 1")
{
$formforumid = "5";
}
if ($dropdownanswer2 == "Title here 2")
{
$formforumid = "17";
}
if ($dropdownanswer2 == "Title here 3")
{
$formforumid = "9";
}
if ($dropdownanswer2 == "Title here 4")
{
$formforumid = "32";
}
//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";
////////////////////////////////////////////////////////////////////////////////////////////////////
POSTING 2 FORUMS ??????????????????????????????????
Many ways, but this may help U
xanthide
09-15-2007, 12:25 PM
hey..
i have changed my newthread to
newthread.php?$session[sessionurl]do=form
but now i have a small prob..
what should i change this line to then?
$formforumid = "2";
Deepdog009
09-17-2007, 09:57 PM
hey..
i have changed my newthread to
newthread.php?$session[sessionurl]do=form
but now i have a small prob..
what should i change this line to then?
$formforumid = "2";
Not sure Xanthide,,, Im still learning on the PHP side of things with vBulletin...
Im more of a graphics guy,,, but I've been getting better with java and php,,, thank god...:D
What are ya trying 2 do???
Ask ABE1
OneEyeSleepy
09-20-2007, 06:33 PM
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?
You guys should be careful with this bug.
This happens with topics which are created by this hack.
When an user chooses option "Instant email notification" in "Default Thread Subscription Mode", then the moderators move those topics (that user subscribed) to moderator areas or somewhere that user can't access, but emails were still sent out to nofify that user about all the replied messages.
Sometimes the administrators and moderators discuss about that user in those topic are created by this hack, he/she also knows everything even he/she can't access to the area where the topics has been moved in.
Please advise.
Thanks.
MoJo Smirnoff
09-23-2007, 11:06 PM
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.. :o
can some please share the code for the submit button..and tell me exactly where i deleted it from lol
thanks!
alan92rttt
09-24-2007, 01:46 PM
I have this hack working with only one issue.
I can't figure out how to make it only allow posts from selected user groups.
I tried modifying
if (!in_array($vbulletin->userinfo['usergroupid'], array(22))) print_no_permission();
I also tried adding
$forumperms = fetch_permissions($foruminfo['10']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canpost']))
{
print_no_permission();
}
The 1st had no effect the second locked everyone out.
Stijndg
09-24-2007, 03:07 PM
Good add-on i like it a lot :up:
RMS-Chef
09-25-2007, 05:27 AM
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:
<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.
74corvette
10-03-2007, 05:05 PM
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
cellarius
10-05-2007, 03:08 PM
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.
wolfe
10-05-2007, 10:48 PM
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
cellarius
10-06-2007, 12:56 PM
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:
//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.
cellarius
10-07-2007, 08:29 AM
Problem solved: Adv. Editing Options for Mods and Admins (https://vborg.vbsupport.ru/showthread.php?t=132291) is not compatible with Abe's hack. After deactivation everything seems to be running smoothly again.
wolfe
10-07-2007, 11:34 AM
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
Deepdog009
10-07-2007, 04:02 PM
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.php?p=1278927&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...
************************************************** **
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.. :o
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 -$ :D
I will post l8ter about it if time permits...
************************************************** **
74corvette its possible,,, but U will need to make changes 2 plugin code... ASK ABE1
************************************************** **
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???
************************************************** **
Problem solved: Adv. Editing Options for Mods and Admins (https://vborg.vbsupport.ru/showthread.php?t=132291) 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...
wolfe
10-07-2007, 05:39 PM
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
laura66a
10-14-2007, 03:20 PM
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.
wolfe
10-16-2007, 12:37 PM
the attahment option is not showing up m8 ?
all code there and its set to allow them ?
firstrebel
10-17-2007, 05:50 AM
Great mod, but had to play around a while til I got the hang of setting it up.
Looked in my forum database this morning at some templates and noticed there is a version 3.5 and version 4 of the form template there. I have never installed another version of this at all before version 4 yesterday. Anyone got the same?
Bob
ComputerVitals
10-19-2007, 06:31 PM
Is there a way we can have the form so the person fills out the thread title?
attroll
10-20-2007, 04:31 PM
Is there a way we can have the form so the person fills out the thread title?
I was just about to post the same question.
It would be nice if we could either have the user fill out the thread title or have one of the variables in one of the answer blocks be used as the thread title.
firstrebel
10-20-2007, 07:00 PM
I have a form in our car sales section, see the attachment form.jpg for the bottom of the form. The second attachment form_output.jpg shows a big gap. I cannot find what is causing this, any ideas from anyone.
Bob
EDIT: Figured it out</td>
</tr>
</td>
</tr>
<if condition="$attachmentoption">
should be </td>
</tr>
<if condition="$attachmentoption">
criscokid
10-21-2007, 04:58 PM
Hi Abe1,
Are you going to be developing this fanatastic mod further? If you are here's some ideas I'd love to see implimented in a future version:
1: A number of characters already used in a specific input box.
2: A form that creates an entry in the calendar.
NeilK
10-22-2007, 02:03 AM
Two things:
The text I have in $formpurpose scrolls off the side of the page, past the normal edge of the forum. Is there a setting to correct this?
Also, I'm looking to make the post that is generated by the hack point to the USERID of the person that submitted the form. Specifically, I want to create a URL in the generated post that points to the Mod/Admin CP for the posting user, so we may edit a setting. I tried 100 different things to get a working userid variable in the post, but I am too green at this I suppose.
Any ideas?
Regards,
Neil
criscokid
10-22-2007, 05:38 PM
The text I have in $formpurpose scrolls off the side of the page, past the normal edge of the forum. Is there a setting to correct this?
$formpurpose should just wrape on to the next line. It sounds to me that you probably haven't got the table quite right - closed off a <td> with a </td> in the correct place or the space $formpurpose is in is spanning more columns than it's supposed to.
attroll
10-24-2007, 03:53 AM
There must be a way to replace the following statement and include an input for thread title in it in its place.
$formtitle = "Lodging Form Submission";
Any ideas?
xplicit.syrian
10-24-2007, 09:03 PM
Hi there,
I am sorry i didn't completely read the whole 45 pages here but i need some help.
I installed the form hack but i don't know how to configure it/ change/ create new forms. In the instructions it says customize it VIA the hook but what hook? Where do i have to go to customize it?
Thank you
ComputerVitals
10-25-2007, 02:35 AM
There must be a way to replace the following statement and include an input for thread title in it in its place.
$formtitle = "Lodging Form Submission";
Any ideas?
Looking for an anwser as well.....
But I'm thinking it may lay with this bit of code.
////////////////////////////////////////////////////////////////////////////////////////////////////
//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";
xplicit.syrian
10-26-2007, 04:04 AM
I need some help please, could someone tell me how to edit this plugin? It says instructions are inside the hook, what hook?
attroll
10-26-2007, 04:12 AM
I need some help please, could someone tell me how to edit this plugin? It says instructions are inside the hook, what hook?
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.
To actually make the posting and email forum display the way you want you will have to edit the templates "form" and "formanswers".
attroll
10-26-2007, 04:47 AM
Looking for an anwser as well.....
But I'm thinking it may lay with this bit of code.
////////////////////////////////////////////////////////////////////////////////////////////////////
//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";
Alright. I got it.
First you have to create a NORMAL INPUT BOX.
I will use $normalquestion1 as the example
once that is all set up then you can replace
$posttitle = "$formtitle";
to the following
$posttitle = "$normalanswer1";
Once this is done then what ever the user answers for $normalquestion1 will be the title of the thread.
The downfalls to this are if the users does not type an answer to $normalquestion1 then they click SUBMIT, the form will not get transmitted and all will be lost. So here is what I recommend to avoid this. If you still include $formtitle in the same place but add $normalquestion1 with it then it will still include the form title if the users forgets to answer $normalquestion1. This way the form will not get lost if they transmit it without answering $normalquestion1.
Here is how I do it.
Find:
$posttitle = "$formtitle";
replace with:
$posttitle = "$normalanswer1 = $formtitle ";
Gosh, I hope all this made sense.
xplicit.syrian
10-26-2007, 05:29 AM
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.
To actually make the posting and email forum display the way you want you will have to edit the templates "form" and "formanswers".
Your great! thank you for the help. Instead of going to that page i went to product manager and i kept on getting nothing.
Thanks! and great plugin!
nirvana43
10-26-2007, 10:22 AM
hi there... 1st of all.. thanks a bunch for this hack...
i'm new to vbulletin.. please can u give lil bit more detailed instructions to install this hack???
i've imported xml but couldn't find where to set the form... how to change the fields in forms... & when user clicks on newtopic, he should directly see the form & after submitting that form, data will get posted in thread automatically!
i tried this : /newthread.php?do=form
i got 1 form.. did all the things in it.. but when i clicks submit, it didnt posted any thread..
kindly help..
& extreamly sorry for my bad english
periphrastic
10-26-2007, 06:13 PM
thanks for the hack. i really like - everything is cool
my only problems is that after i hit submit, i get a white page. i've disabled all plugins, and only allowed this one (to make sure there wasn't some kind of interference), and the white pages still occur. the form posts just fine, but i have to go "back" and then manually go to the forum in which it's posted, to actually locate the thread - but the immediate response i get after "submit" is a white page. in consideration of this, would you have any quick recommendations? thanks for your time.
mauro1947
10-26-2007, 08:54 PM
There are 2 template edits to make the attachements work. Make sure you did both. You can also test it by clicking 'preview'.
Inside zip file there is no instruction about this...:(
ComputerVitals
10-28-2007, 05:32 PM
Alright. I got it.
Gosh, I hope all this made sense.
Works great!!
Thanks a bunch
Lord Kuam
10-30-2007, 12:11 AM
I'm having an issue getting a working link for my product. When I changed the formname, I could no longer pull it up (for example, I changed the formname to simply "support" instead of "form" and when I would type my link it, it would be a blank white page).
So I deleted and uninstalled the entire plugin and decided to start from scratch. Now, when I type in the link /newthread.php?do=form into my browser, it tells me THAT is an invalid URL. The plugin is active and now I'm at a point where I really have no clue.
It's probably best if someone gave me the heads up on what exactly I need to change when I want to change the titles of my forms so I can get correct links.
Thanks
Lord Kuam
10-30-2007, 12:26 AM
Well it seems that I am still getting the white page, although I realized that I could not directly enter the link into my browser (I had to enter it first, get the error message, and then hit refresh).
I've modified several details to include the questions and a few other aspects, and now I can't get the form to show up, as I said. Why am I only getting a white page?
Thanks!
EDIT
So I've figured out that I'm getting white pages because I changed the template name. Now, I need a new template because when I change all the options (add/remove questions, change number of answers etc) it stays with the current template, meaning I have fields that don't exist (they're there but are blank), my radioquestion fields have 6 selections in it from the original form even though I only have two options, and a variety of other issues.
What do I need to do to get a new template running?
attroll
10-30-2007, 04:21 AM
Well it seems that I am still getting the white page, although I realized that I could not directly enter the link into my browser (I had to enter it first, get the error message, and then hit refresh).
I've modified several details to include the questions and a few other aspects, and now I can't get the form to show up, as I said. Why am I only getting a white page?
Thanks!
EDIT
So I've figured out that I'm getting white pages because I changed the template name. Now, I need a new template because when I change all the options (add/remove questions, change number of answers etc) it stays with the current template, meaning I have fields that don't exist (they're there but are blank), my radioquestion fields have 6 selections in it from the original form even though I only have two options, and a variety of other issues.
What do I need to do to get a new template running?
What template name did you change and if you changed any templates names then you also have to make sure you changed your name of the template inside the plugin also.
Lord Kuam
10-30-2007, 09:33 PM
// Name of the main template
$maintemplate = "support";
// Name of the answer template
$answertemplate = "supportanswers";
This is what I changed (support WAS form; supportanswers WAS formanswers).
I am still learning this coding. If you could direct me what other code I need to modify, I would greatly appreciate it.
Thank you
afmarko99
10-31-2007, 01:37 AM
I have tried to figure this out. I was able to make a few changes but to overhaul the form like I want would take awhile. Too bad someone doesn't come out with a hack like Wow Recruitment Form (https://vborg.vbsupport.ru/showthread.php?t=150424&highlight=recruitment). I believe he took this form and developed a much more user friendly gaming form. All I really want is some custom question blocks.
I guess I will give it a try again later.
firstrebel
10-31-2007, 06:18 AM
I have tried to figure this out. I was able to make a few changes but to overhaul the form like I want would take awhile. Too bad someone doesn't come out with a hack like Wow Recruitment Form (https://vborg.vbsupport.ru/showthread.php?t=150424&highlight=recruitment). I believe he took this form and developed a much more user friendly gaming form. All I really want is some custom question blocks.
I guess I will give it a try again later.
The WOW form is designed for a specific purpose, this mod is the basics for any purpose. You just need to customise the form and the two templates.
Yes, it takes time, that is the fun in web design. The alternate option is to pay someone to do the job. That is no fun. Like many such mods the author has done the functionality code and the rest is down to us.
Bob
attroll
10-31-2007, 06:33 AM
// Name of the main template
$maintemplate = "support";
// Name of the answer template
$answertemplate = "supportanswers";
This is what I changed (support WAS form; supportanswers WAS formanswers).
I am still learning this coding. If you could direct me what other code I need to modify, I would greatly appreciate it.
Thank you
Then you need to create a support template and copy the code from form and put it in there and edit the way you want it to be.
Then you need to create a supportanswers template and copy the code from formanswers and put it in there and edit the way you want it to be.
attroll
10-31-2007, 06:35 AM
I have tried to figure this out. I was able to make a few changes but to overhaul the form like I want would take awhile.
I guess I will give it a try again later.
Yes this does take a while. It took me a long time to get my form the way I wanted it. It took two nights to get it done.
mystic10
11-02-2007, 11:23 PM
sorry for the silly question but i am very confused i dont understand ur instructions about edit form hook and u will see the intrucion...i went to the plugin and pressed edit and i saw
Product ID form_hack
Title
Version
Description
Product URL
Version Check URL
please clarify and help thanks
attroll
11-03-2007, 07:53 AM
sorry for the silly question but i am very confused i dont understand ur instructions about edit form hook and u will see the intrucion...i went to the plugin and pressed edit and i saw
Product ID form_hack
Title
Version
Description
Product URL
Version Check URL
please clarify and help thanks
Read this post here and it should help https://vborg.vbsupport.ru/showpost.php?p=1368871&postcount=675
Brundlefly
11-03-2007, 01:27 PM
The hook is edited from the "Plugin Manager", Each plugin has two templates that are edited from the style manager. 1. Usually named "form" 2. Usually named "form_answers".
Brundlefly
11-03-2007, 01:33 PM
Great plugin Abe, I've been burning up the last two days using it. Thank you for you work. I do have a couple of questions, though.
1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.
mhackl
11-03-2007, 05:41 PM
Is there any way to visually build the forms?
Charles_1
11-03-2007, 07:42 PM
Hi Abe1,
Are you going to be developing this fanatastic mod further? If you are here's some ideas I'd love to see implimented in a future version:
1: A number of characters already used in a specific input box.
Agree, I should use for this too. Abe1, please, what do you think? :-)
Brundlefly
11-04-2007, 03:32 PM
2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.
Using what was previously posted I managed to make this work. I'll provide the how to so its all in one post. All of the below is accomplished in the hook:
after
if ($_REQUEST['do'] == $formname)
{
add
$bbuserinfo = $vbulletin->userinfo;
In Part 2 of the variables add
$user_name = $bbuserinfo[username];
Example of formtitle
$formtitle = "Application for - $user_name";
Credit goes to ChrisBaktis and R.Caldwell for their previous discussion concerning this question.
laura66a
11-04-2007, 05:36 PM
One thing I have discovered is that if you have one form in a product section that isn't working, none of the forms in that section will work.
When the Forms Hack is first installed it creates a new product section in the Plugin Manager called Product: Forms Hack. This is now where I store my live forms. I keep new and forms in development in the vBulletin section at the bottom.
I had a form that wasn't quite finished in the Forms Hack section and none of the other forms in the section worked. When I moved the incomplete form out, the others worked again.
Laura
lionelng
11-05-2007, 10:32 AM
I've installed and tested the form without doing any editing work yet. It appeared that after I submitted the form, a thread named "Generic Form" was created but there isn't any forum associated with it.
Can I know how can I determine the forum to create the new thread in and how do i delete this test thread? I tried to read the "Generic Form" thread but it says i don't have enough permission even though i'm using an administrator account.
Any help is much appreciated. Thanks!
attroll
11-06-2007, 03:46 AM
I've installed and tested the form without doing any editing work yet. It appeared that after I submitted the form, a thread named "Generic Form" was created but there isn't any forum associated with it.
Can I know how can I determine the forum to create the new thread in and how do i delete this test thread? I tried to read the "Generic Form" thread but it says i don't have enough permission even though i'm using an administrator account.
Any help is much appreciated. Thanks!
Yes you can pick the forum you want it to go in by editing your plugin.
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.
lionelng
11-06-2007, 05:06 AM
Yes you can pick the forum you want it to go in by editing your plugin.
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.
Thank for the prompt reply. So how can I delete the generic thread that doesn't belongs to any forum?
attroll
11-06-2007, 06:16 AM
Thank for the prompt reply. So how can I delete the generic thread that doesn't belongs to any forum?
You should be able to delete it like any other thread. Or try moving it to a valid forum then deleting it.
lionelng
11-06-2007, 10:52 AM
You should be able to delete it like any other thread. Or try moving it to a valid forum then deleting it.
I can't. It says i don't have the permission when i tried to view the thread, even though i'm using administrator account. Any idea how we can resolve this?
lionelng
11-06-2007, 11:31 AM
I've tried another form via the url www.mywebsite.com/forum/newthread.php?do=form&f=345, this time round with a forum ID but it seems like after i submitted the form, the form did not ended up in the correct forum.
Again it shows that it doesn't belongs to any forum and i can't delete it again because it says i don't have the permission. Really need help on this.
attroll
11-06-2007, 12:25 PM
You are probably not doing it correctly. You need to put the forum ID number in the plugin not the link.
//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 = "16";
lionelng
11-06-2007, 01:27 PM
I've managed to fix the forum id part but can you help me to resolve the deletion of the testing threads that i have no access to as it doesn't belongs to any forums?
Thanks.
attroll
11-06-2007, 04:27 PM
I've managed to fix the forum id part but can you help me to resolve the deletion of the testing threads that i have no access to as it doesn't belongs to any forums?
Thanks.
I will send you a PM.
Brundlefly
11-07-2007, 08:44 PM
1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
Any legs on this?
Hi there,
I am having some real trouble getting this to work.
I have installed it, can edit what the questions are etc and got it posting how I want it to but:
• I can't work out how to remove questions?
• I can't work out how to add questions?
There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.
I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!
What am I doing wrong? :D
attroll
11-09-2007, 04:28 PM
Hi there,
I am having some real trouble getting this to work.
I have installed it, can edit what the questions are etc and got it posting how I want it to but:
? I can't work out how to remove questions?
? I can't work out how to add questions?
There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.
I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!
What am I doing wrong? :D
It is a simple as not including them in the template file ?form?. This file is what determines what questions the users see and have the option to answer to. If you only want to remove the radio questions then simply remove the code below in you ?form? template.
Also keep in mind that the template ?formanswers? is what gets posted to your message area or email. So you will have to edit that also.
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion1</b>
</td>
</tr><tr>
<td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1a"> $radiochoice1a </td>
<td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1b"> $radiochoice1b </td>
<td> </td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion2</b>
</td></tr><tr>
<td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2a"> $radiochoice2a </td>
<td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2b"> $radiochoice2b </td>
<td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2c"> $radiochoice2c </td>
</tr>
<tr>
<td class="alt1" colspan="3">
<b>$radioquestion3</b>
</td>
</tr><tr>
<td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3a"> $radiochoice3a </td>
<td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3b"> $radiochoice3b </td>
<td>If $radiochoice3a, please explain: <INPUT TYPE="text" NAME="radioanswer3other"></td>
</tr>
Brundlefly
11-09-2007, 04:29 PM
You'll have to make changes to the two style templates (form and form_answers) to add or remove questions and actually have the questions asked in the hook.
1. Form - creates the question area
2. form_answers - used to create the email and thread
3. hook - asks the questions and creates the variables that interact with 1 and 2 above.
Any changes you make to a question in the hook (ie. question type - checkbox or question or longquestion) has to have the corresponding changes made in 1 and 2 above.
Hope this helps
Brundlefly
11-09-2007, 04:34 PM
1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
Any legs on this?
Attroll any thoughts on this?
attroll
11-09-2007, 05:01 PM
Attroll any thoughts on this?
Yes, I saw your post on this. I would not know how to doing something like that. I am just a simple mod type person that knows basic html and very little php. I can work my way around most hacks and get things figured out and do some minor changes and additions but when it come to major changes I am not to good. I do think attachments might be a nice feature to add to it. I have no reason to do this though. I don't know what purpose it would serve. There are other hacks out that that you can do this with though.
Brundlefly
11-09-2007, 05:11 PM
Thanks anyway attroll. Its not necessary, just a nicety.
Fifthe1ement
11-11-2007, 06:23 AM
This plugin would be great if it were easier to use. Perhaps like a wizard or guide? Or how about a few pre-made templates for like "main" types of uses. I have a link sharing forum and I need a form in which the user posts the name of the link, a brief description, an info link, and then the link itself? This mod just looks so overwhelming that I have been trying for hours but can't get it just right. If I made mock-up of what I needed would someone be willing to help me create the right form? I still clicked on install as I hope to use this in the near future.
Thanks,
Fifth
Brundlefly
11-11-2007, 02:25 PM
That sounds like a fairly basic form.
PM me what your after, be specific though (ie. attachment (yes or no), poll (yes or no), questions with explainations, page=?) and uninstall whatever you have already. I'll modify the xml and you'll have to just upload the new one.
I would recommend you study what I did so as you'll be able to edit it later.
attroll
11-11-2007, 04:57 PM
This plugin would be great if it were easier to use. Perhaps like a wizard or guide? Or how about a few pre-made templates for like "main" types of uses. I have a link sharing forum and I need a form in which the user posts the name of the link, a brief description, an info link, and then the link itself? This mod just looks so overwhelming that I have been trying for hours but can't get it just right. If I made mock-up of what I needed would someone be willing to help me create the right form? I still clicked on install as I hope to use this in the near future.
Thanks,
Fifth
This does sound pretty basic but if your going to just use it for links then there are other hacks out there that will work better. a good one is vBadvance Links.
zglows
11-12-2007, 01:37 AM
can anyone please explain how do i make an input box so that i can write the name of the thread when creating it?
how do I place the image bbcode on the editor?
attroll
11-12-2007, 03:03 AM
can anyone please explain how do i make an input box so that i can write the name of the thread when creating it?
how do I place the image bbcode on the editor?
If you read post #676 in this thread it will explain how to put a thread title in the form posted.
https://vborg.vbsupport.ru/showpost.php?p=1368881&postcount=676
zglows
11-12-2007, 03:20 AM
thanks so much attroll! is working now.
what about the image bbcode on the editor? what should i do to make it available?
attroll
11-12-2007, 06:01 AM
thanks so much attroll! is working now.
what about the image bbcode on the editor? what should i do to make it available?
I believe this has to be in the right place in you "form" template.
<tr>
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />
$vbtextexplain
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
attroll
11-12-2007, 06:03 AM
Thanks anyway attroll. Its not necessary, just a nicety.
I was just looking at the plugin and the "form" template it is seems to be set up to accept attachments but I can not get it working. It is pretty late now and I need to get some sleep. I will try and look at it some more later.
zglows
11-12-2007, 12:45 PM
attroll, im talking about this little image https://vborg.vbsupport.ru/external/2007/11/22.gif on the editor, its disabled
attroll
11-12-2007, 04:31 PM
attroll, im talking about this little image https://vborg.vbsupport.ru/external/2007/11/22.gif on the editor, its disabled
Sorry I misunderstood you. I don't know why it is disabled. I don't know how to enable it either. I wish the people that posted these hacks would come in once and a while and support them. I will look at it some but I don't know if I can figure it out.
zglows
11-12-2007, 04:54 PM
thanks anyway attroll, you're cool
i really need this
zglows
11-13-2007, 12:31 PM
it's working now!!!
i'd like to know how to add a message when you forget to add a title. I mean the popup that goes like "please add a title" and wouldn't let you submit the form.
dieselpowered
11-14-2007, 02:23 AM
Anyone figure out how to make it so that when in a specific forum and the new thread button is clicked, the forum is brought up?
Thank you attroll (https://vborg.vbsupport.ru/member.php?u=28000) and Brundlefly (https://vborg.vbsupport.ru/member.php?u=224363) for you help :)
I now have the form working exactly as I would like it to, except for one thing:
How can I change the poll title?
Thanks again :D
zglows
11-14-2007, 01:04 PM
how can i add post icons to the form???
mufar
11-15-2007, 06:56 AM
Ok, wtf. Where are these freakin' "templates" you are talking about?
I imported the "hook" I have a PHP file, that i edited correctly i believe. (the two top parts)
And then modified the individual questions.
But no sign of any "templates".
The readme.txt isn't very comprehensive.
attroll
11-15-2007, 07:09 AM
Ok, wtf. Where are these freakin' "templates" you are talking about?
I imported the "hook" I have a PHP file, that i edited correctly i believe. (the two top parts)
And then modified the individual questions.
But no sign of any "templates".
The readme.txt isn't very comprehensive.
Look in your ADMINCP-->Styles & Templates
mufar
11-15-2007, 08:14 AM
Thank You, Finally got it working.
exstatic
11-16-2007, 10:34 AM
Hey, for some reason when I edit the formanswers template, html formatting is not working, I can actually see the tags.. is there somewhere I have to enable html in posts?
zglows
11-16-2007, 03:22 PM
a want the popup that goes like: please write something
but i think this is java on the template, right?
Thank you attroll (https://vborg.vbsupport.ru/member.php?u=28000) and Brundlefly (https://vborg.vbsupport.ru/member.php?u=224363) for you help :)
I now have the form working exactly as I would like it to, except for one thing:
How can I change the poll title?
Thanks again :D
Anyone? :confused:
attroll
11-17-2007, 04:04 PM
Anyone? :confused:
Can't you change it just like you do with any other poll in the forums.
Can't you change it just like you do with any other poll in the forums.
I can, but what I mean is:
At the moment the poll question/title is automatically set as the title of the thread, I however would like for it to be automatically set to something else.
Thanks for getting back to me :)
attroll
11-18-2007, 02:38 AM
I am confused as to why you want a poll in a form in the first place? If a person wants users to reply to polls and to vote in them then why aren?t they posting them in the forums? Why do they want to post them in a form?
Don?t take this wrong I am just asking.
No offence taken.
I am using the form for application purposes, I run a gaming clan.
If someone wants to join my clan the must apply - using the form.
When they post the form, the form gets posted into a private forum which only current clan members can view. They can then see the new application, comment on it, and vote in the poll whether or not they want to let the user join or not.
At the moment however, it's not entirely clear what the poll is there for so they all comment on the applications saying they want them in the clan or not, but nobody uses the poll lol :D
jheigl
11-21-2007, 04:27 AM
I am having a lot of trouble customizing this to what I need. Can the coder or anyone else for that matter make it to what I need please? I will give you exactly what I need if anyone is willing to do it for me. Thanks!
Brundlefly
11-21-2007, 12:05 PM
No offence taken.
I am using the form for application purposes, I run a gaming clan.
If someone wants to join my clan the must apply - using the form.
When they post the form, the form gets posted into a private forum which only current clan members can view. They can then see the new application, comment on it, and vote in the poll whether or not they want to let the user join or not.
At the moment however, it's not entirely clear what the poll is there for so they all comment on the applications saying they want them in the clan or not, but nobody uses the poll lol :D
I'm using this hack for the exact same purpose in one of our applications. The way probably around your issue is to form the post title in a way that corresponds to the poll options. The poll title will be the same as the post title. It seems fluid in the way i've done it, example provided;
Post title = "Membership request from CMF - Sponsored by Brundlefly"
Poll option1 = "Yes, I support granting membership"
Poll option 2 - "No, I do not supporting granting membership"
Grimbone
11-21-2007, 02:54 PM
In the code below. how would I go about sending a post to 2 different forums?
$formforumid = "13";
I am trying to get this to post to both a regular section of the forums and to a private section.
snakeair
11-22-2007, 12:08 AM
[edit]==== Nevermind, i just un-installed and re-installed.
Works now. I must have deleted something by mistake on first try.
attroll
11-22-2007, 01:35 AM
I am having a lot of trouble customizing this to what I need. Can the coder or anyone else for that matter make it to what I need please? I will give you exactly what I need if anyone is willing to do it for me. Thanks!
If it is not a lot I will look at it for you and see if I have time to do this. Let me know what you want it to do. Like I said if it is not a lot to do then I will try when I have free time.
snakeair
11-22-2007, 02:55 AM
I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread. :(
If you need more info, please PM me or post here. It's getting late out for me.
attroll
11-22-2007, 06:25 AM
I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread. :(
If you need more info, please PM me or post here. It's getting late out for me.
It is in this thread a couple of times. You can start reading here https://vborg.vbsupport.ru/showthread.php?p=1368881#post1368881.
Mazinger
11-22-2007, 10:59 AM
That's too complicated - I failed to customize fields. :(
snakeair
11-22-2007, 11:02 AM
It is in this thread a couple of times. You can start reading here https://vborg.vbsupport.ru/showthread.php?p=1368881#post1368881.
Thanks for that link. I just managed to get everything working the way i want it to. (Well untill i create another form.. lol)
Have a great holiday and time for me to get on the road.
firstrebel
11-22-2007, 04:43 PM
This is a very good hack, but I need to pass on this warning. Do not create too many different forms, they will kill the server.
We have our own server, quite a good one, and this evening the server load hit 40.
I have been using this hack to make separate forms for our car sales forum, a total of about 30, one for each model of Volvo car. I noticed that as I created each new plugin the server response got slower. It was not until I disabled all the forms plugins that the server load went back to normal.
Bob
I'm using this hack for the exact same purpose in one of our applications. The way probably around your issue is to form the post title in a way that corresponds to the poll options. The poll title will be the same as the post title. It seems fluid in the way i've done it, example provided;
Post title = "Membership request from CMF - Sponsored by Brundlefly"
Poll option1 = "Yes, I support granting membership"
Poll option 2 - "No, I do not supporting granting membership"
Good thinking, thanks :rolleyes:
Brundlefly
11-24-2007, 02:31 PM
I was looking for a way to set the timelimit a poll, using this hack should run. Forgive me if I missed it in previous posts. I've come up with a way to do this for each form hack that is running. All of the below changes are accomplished in the hook.
after
$pollpublic = "1";
add
//Time in days after posting poll shall close
$polltimeout = 10;
Where 10 is the number of days you choose to end the poll
after
$poll->set('public', $pollpublic);
add
$poll->set('timeout', $polltimeout);
If you have a Default Poll Timeout (https://vborg.vbsupport.ru/showthread.php?t=64291&highlight=poll+close) set on all created polls, the above changes will overide that setting.
I really hope I didn't recreate what already had been figured out.
zmmmzz
11-24-2007, 09:16 PM
will this hack work on 3.7?
attroll
11-24-2007, 11:52 PM
3.7 is not out yet so I don't know how anyone can answer your question yet.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.