Log in

View Full Version : New Posting Features - Easy Forms v4.x - Create a form or multiple forms without php or html knowledge


Pages : 1 2 3 4 [5] 6 7 8 9

bananalive
01-20-2011, 12:39 PM
Heya Bananalive,

I was wondering if there was a way to make this work if the profilefield was a Multiple-Selection Menu. I'm allowing the users to select up to 3 options in a particular field and I would like to have the selected ones displayed on the form I created.

Thanks in advance.

There's no simple way to do that.

bananalive
01-20-2011, 12:40 PM
I get that error above the forum on the application I created.

Also the application looks like this:

Do you have any custom questions?

Or do you have anything in the hooks ('Form Hook: Form Start' or 'Form Hook: Before Submit')?

Mastar
01-20-2011, 06:23 PM
It was the custom question! Even if I just put 1 letter in the question field and 1 letter in the PHP Code field.

Welshy2008
01-20-2011, 07:27 PM
Hello Bananalive,

I need some help if you'd be so kind, Please?

I have entered a username section in a "Custom" section, on a form that will be e-mailed to me.

Below are some screnshots of what it looks like (THE Field is too far over to the left and Not centered like the others, and this is what I wish to do, please)...

... And the second screenshot is of my actual code entered on the Custom input.

Please let me know where I have gone wrong and how to correct it?

Many Thanks.

Add class="textbox" before />


Thanks BA,

'Tis very strange. I just went to add that class="textbox" and the box was aligned already, where it should be. I added it anyway, as it gave a larger box, to match the rest of the form.

Thanks Again.

CharlieDelta
01-20-2011, 11:50 PM
I am having the same problem. I have triple checked all the permission settings for the usergroup, forum, easy form and the form itself. It was working fine and all submissions were being approved and now suddenly they are submitted unaproved.

Any ideas???

Thanks
Hey Bananalive, do you have any ideas or thoughts on this issue?
Thanks.

bananalive
01-21-2011, 11:05 AM
It was the custom question! Even if I just put 1 letter in the question field and 1 letter in the PHP Code field.

The PHP Code field must contain valid php or will cause the error you have. Use code like:

$answer = 'blah blah blah';

bananalive
01-21-2011, 11:06 AM
I am having the same problem. I have triple checked all the permission settings for the usergroup, forum, easy form and the form itself. It was working fine and all submissions were being approved and now suddenly they are submitted unaproved.

Any ideas???

ThanksHey Bananalive, do you have any ideas or thoughts on this issue?
Thanks.
Was it after you upgraded Easy Forms version?

bananalive
01-21-2011, 08:57 PM
v4.2.0

New question type - scale.

https://vborg.vbsupport.ru/attachment.php?attachmentid=125923&d=1295650603
https://vborg.vbsupport.ru/attachment.php?attachmentid=125924&d=1295650603

CharlieDelta
01-21-2011, 11:58 PM
Was it after you upgraded Easy Forms version?
You know what it may have. I have been using this great MOD since April 2010 and I started noticing this in September just after 4.1.7.

riskofficer
01-24-2011, 10:32 AM
Hello bananalive!

Could u please write changelog for new version?

Thx!

bananalive
01-24-2011, 02:06 PM
Hello bananalive!

Could u please write changelog for new version?

Thx!
Updated

There was only the one change of adding question type: scale

bananalive
01-24-2011, 02:08 PM
v4.2.1 - Grid Question


Upto 5 columns
As many rows as you want


https://vborg.vbsupport.ru/attachment.php?attachmentid=126035&stc=1&d=1295885219 https://vborg.vbsupport.ru/attachment.php?attachmentid=126036&stc=1&d=1295885219

bananalive
01-24-2011, 02:14 PM
You know what it may have. I have been using this great MOD since April 2010 and I started noticing this in September just after 4.1.7.

Was this for posting new thread? I can't see any changes to posting thread from v4.1.6 to v4.2.1

CharlieDelta
01-24-2011, 02:29 PM
Was this for posting new thread? I can't see any changes to posting thread from v4.1.6 to v4.2.1

Yes that is correct, posting new thread.

Mycologist
01-24-2011, 07:13 PM
Awesome, awesome mod! Has to be in the top 3 of all time mods for VB4.

I have two quick questions.

1. How can I change the address fields so that they relate to Canadian addresses (ie Province instead of State)

2. How can I include the time in the date option?

kether1
01-24-2011, 09:42 PM
Bug report: Upgraded and added a grid question and cannot get the Form Results Poll or the Form Results Table to show. My grid question has a yes and no and 15 fields. The Form Results do show. Did something change between the last version and this one that would effect the display of those two fields?

Thanks.
Kether

Edit: It appears the the Grid Question is not addressed in the AdminCP part of the product. Maybe that is why it doesn't display when used. I can display all other fields when I remove the grid question. Hope this helps.

bananalive
01-25-2011, 12:32 PM
Awesome, awesome mod! Has to be in the top 3 of all time mods for VB4.

I have two quick questions.

1. How can I change the address fields so that they relate to Canadian addresses (ie Province instead of State)

2. How can I include the time in the date option?

1. Edit Phrase address_state to Province

bananalive
01-25-2011, 12:33 PM
Bug report: Upgraded and added a grid question and cannot get the Form Results Poll or the Form Results Table to show. My grid question has a yes and no and 15 fields. The Form Results do show. Did something change between the last version and this one that would effect the display of those two fields?

Thanks.
Kether

Edit: It appears the the Grid Question is not addressed in the AdminCP part of the product. Maybe that is why it doesn't display when used. I can display all other fields when I remove the grid question. Hope this helps.
Thanks for reporting the issue, fixed in v4.2.2

kether1
01-25-2011, 12:46 PM
Thanks for reporting the issue, fixed in v4.2.2

Excellent! Nice work!

Kether

kether1
01-25-2011, 02:43 PM
I have a new error. When I delete a form, I get the following error with this new version:

MySQL Error : Unknown column 'userid' in 'where clause'

Also a question: When importing a form into my live site that was created on my test site, I seem to have no way to edit or delete the form. The only way to remove an imported form seems to be to uninstall the product. Is this correct?

Thanks,
K

bananalive
01-25-2011, 06:20 PM
I have a new error. When I delete a form, I get the following error with this new version:

MySQL Error : Unknown column 'userid' in 'where clause'

Also a question: When importing a form into my live site that was created on my test site, I seem to have no way to edit or delete the form. The only way to remove an imported form seems to be to uninstall the product. Is this correct?

Thanks,
K
For forms imported from your test database, the userid will probably be different (on test site than live site), so if the following option is enabled then you wont have access to it.

AdminCP -> Settings -> vBulletin Options -> Easy Form Options -> Users can only edit their own forms: No
(This option is based on userid.)

The database error, is similar problem, but is fixed in attached product.

kether1
01-25-2011, 06:45 PM
Thanks again, Dom!

Mastar
01-26-2011, 06:34 PM
BANANALIVE, I'm trying to get the form to auto create a thread with the form questions and results (the person's answer) when the form is submitted, I see I can put {qo_*} where * is the question Id but is there a function that I can just include all questons. Is that possible??

bananalive
01-26-2011, 06:49 PM
BANANALIVE, I'm trying to get the form to auto create a thread with the form questions and results (the person's answer) when the form is submitted, I see I can put {qo_*} where * is the question Id but is there a function that I can just include all questons. Is that possible??

If you leave the custom output blank, then Easy Form will automatically compile the questions and answers for you.

deverill2010
01-26-2011, 07:58 PM
Your have to excuse me as I haven't read the whole thread, but how can I change the word 'forms' in the navbar to something else?

bananalive
01-26-2011, 08:01 PM
Your have to excuse me as I haven't read the whole thread, but how can I change the word 'forms' in the navbar to something else?

Edit phrase "forms" in admincp

Mastar
01-26-2011, 08:12 PM
Thanks!

How can I make a Question with a url that will open in a new window. I wanna make a TOS agreement that the user will have a yes and no option and the url under the question that when clicked will open a popup window.

deverill2010
01-26-2011, 08:35 PM
I have just created a form and added a question.. When I try to view the form i get this at the top of my site -

Parse error: syntax error, unexpected T_STRING in /home/midwife/public_html/misc.php(89) : eval()'d code(1108) : eval()'d code on line 1

thetgc
01-26-2011, 09:16 PM
Thanks!


How can I make a Question with a url that will open in a new window. I wanna make a TOS agreement that the user will have a yes and no option and the url under the question that when clicked will open a popup window.

In the description field just use the [URL] bbcode.

For example [URL ]http://www.yoursite.com/tos.html[/ URL]

Or

[URL=http://www.yoursite.com/tos.html ]Click here for TOS[/URL ]

Just remove the spaces ;)

However as a suggestion to be added to the mod, it would be great if there was some sort of question that could be added that has to be answered before the form is filled out, or even after.

For example, the question could have all the tos in it, and at the bottom an "Agree" or "Disagree" button could be there, where if you press agree, it takes you to the form, and if disagree is selected, it takes you back to the previous page or warns you that you must agree to proceed. Also with an option in the settings to note on the answers (on the thread or pm that is created) that the user agreed.

Just a thought...

deverill2010
01-27-2011, 07:30 AM
I managed to get rid of that error by unistalling and then reinstalling the plugin.

I have enabled the tab in the navbar and I only want it to be viewable by two groups I set, these are the same groups that I have set as being able to see the form.

The thing is only the admin can see the tab at the moment? How do I make the tab viewable to the other group?

Greight
01-27-2011, 11:28 AM
Why doesn't this mod support utf8 characters. All turn into question marks.

ceho
01-27-2011, 05:54 PM
Hi, jus two questions I couldn't find the answers to:

is it possible to preselect a value from a dropdown select so that it's shown when am user enters the form?

And second: is it somehow possible that users of a form could upload a picture via form that will be shown in a post/thread (as an attachment)? How would I do such a thing, how would I set up a form field (custom?)?

And maybe you can take a look at this old post of mine: https://vborg.vbsupport.ru/showpost.php?p=2135950&postcount=956

I hope I made myself understood... Thankyou very much!

biancolaw
01-28-2011, 05:50 PM
Love this mod, can you tell me how I what code I would change to add a section as a link to the new form? I thought it would be section_navnext but I can't find where to edit to make it work. Nobody seems to have a straight answer to make a section a link.

deverill2010
01-29-2011, 06:30 AM
Do you have any idea how I servers permissions or the tab? It needs to e only visible to two groups and I need it sorted asap as I bed to use it. Any help much appreciated x

bananalive
01-29-2011, 09:52 AM
I have just created a form and added a question.. When I try to view the form i get this at the top of my site -

Parse error: syntax error, unexpected T_STRING in /home/midwife/public_html/misc.php(89) : eval()'d code(1108) : eval()'d code on line 1

What type of question did you add?

Do you have anything in the Form Hooks?

bananalive
01-29-2011, 10:02 AM
However as a suggestion to be added to the mod, it would be great if there was some sort of question that could be added that has to be answered before the form is filled out, or even after.

For example, the question could have all the tos in it, and at the bottom an "Agree" or "Disagree" button could be there, where if you press agree, it takes you to the form, and if disagree is selected, it takes you back to the previous page or warns you that you must agree to proceed. Also with an option in the settings to note on the answers (on the thread or pm that is created) that the user agreed.

Just a thought...

An easy way to do Terms and Conditions question is to add a Compulsory Checkbox Question but only have the one option of 'Agree'. If nothing is selected the form is not submitted. If 'I agree' is selected then the form will submit.

Then you could put rules as link or list them in the question description.

deverill2010
01-29-2011, 10:10 AM
I just added a single field question, but I no longer have the error asi usitalled and reinstalled the plugin.

What I'm now having a problem with is setting permissions as to who can see the tab in the navbar..

bananalive
01-29-2011, 10:30 AM
I managed to get rid of that error by unistalling and then reinstalling the plugin.

I have enabled the tab in the navbar and I only want it to be viewable by two groups I set, these are the same groups that I have set as being able to see the form.

The thing is only the admin can see the tab at the moment? How do I make the tab viewable to the other group?

Permission for the Easy Forms Tab is based on: Usergroups Allowed to View Form Lists

bananalive
01-29-2011, 10:31 AM
Why doesn't this mod support utf8 characters. All turn into question marks.

What are you trying to input? and into what field?

bananalive
01-29-2011, 10:39 AM
Hi there,

I tried to figure it out myself by checking the templates and stuff and searching this thread but didn't succeed.

1. So I ask for help: on the output form, how can I increase the space between the questions section on the left and the reply area on the right.

2. Please see the attached image, where the red arrow is I want to create a bigger distance.

Could you please tell me how I can do this?

Thanks a lot and keep up the great work (and do not drop supporting vB mods please!).

1. Edit Form -> Section BB code: (box on the right)
from:[/SIZE][/U]
to:
[/SIZE][/U]\r\n\r\n
(each \r\n is the equivalent of pressing enter - a new line)

2. Find in template form_formbit_checkboxes
<ul class="checkradio group rightcol" style="width: 100%;">
Replace with
<ul class="checkradio group rightcol" style="width: 100%; padding-left: 10px;">

bananalive
01-29-2011, 10:46 AM
Hi, jus two questions I couldn't find the answers to:

is it possible to preselect a value from a dropdown select so that it's shown when a user enters the form?

And second: is it somehow possible that users of a form could upload a picture via form that will be shown in a post/thread (as an attachment)? How would I do such a thing, how would I set up a form field (custom?)?

And maybe you can take a look at this old post of mine: https://vborg.vbsupport.ru/showpost.php?p=2135950&postcount=956

I hope I made myself understood... Thankyou very much!

1. Yes, using form hooks. For example: Form Hook: Form Start:
if ($_REQUEST['select']==1)
{
$qo['316']=1;
$q['316']=1;
}
http://www.yourforums.com/forums/misc.php?do=form&fid=41&select=1
This would select the first option of question with question hash 316

2. Yes, click enable attachments. (Only available for forms creating new threads)

bananalive
01-29-2011, 10:48 AM
Love this mod, can you tell me how I what code I would change to add a section as a link to the new form? I thought it would be section_navnext but I can't find where to edit to make it work. Nobody seems to have a straight answer to make a section a link.

I do not understand what you mean? Are you talking about form sections? or sections elsewhere in vBulletin?

ceho
01-29-2011, 11:03 AM
bananalive, you rock, thank you very much!!

ascroft
01-29-2011, 07:45 PM
Hi there - seeking some advice on how to use forms for replying to thread posts. I have set up and working well for controlling new posts to forums. Many thanks for the earlier advice re that.

Also with regard to polls, could you add a variable on the end of this - I am keen to differentiate my polls per post but as the questions are all the same per post (which is what I want), VB seems to just show the latest voted thread - ie through the poll widget.....

www.shackchat.co.nz

bananalive
01-30-2011, 04:59 PM
Hi there - seeking some advice on how to use forms for replying to thread posts. I have set up and working well for controlling new posts to forums. Many thanks for the earlier advice re that.

Also with regard to polls, could you add a variable on the end of this - I am keen to differentiate my polls per post but as the questions are all the same per post (which is what I want), VB seems to just show the latest voted thread - ie through the poll widget.....

www.shackchat.co.nz

Are you referring to Form Results Poll or creating a thread with a poll?

Gomojoe
01-30-2011, 08:51 PM
I'm having a problem with permissions. I set it to allow unregistered/not logged in users to be able to see the forms, but when I click on my form when I am not logged in I get the "I do not have permission" notice. Is there something I'm missing here?

ascroft
01-31-2011, 04:47 AM
Are you referring to Form Results Poll or creating a thread with a poll?

Hi - I mean creating a poll upon form submission.

thunderclap82
02-01-2011, 12:22 PM
Im having a bit trouble with the "Manage Attachment" Button on the form. The user can fill in the form and a thread will be posted in an internal section of our forum so that user cant read the outcome / the thread. If a user wants to attach something he will get the "No permission" message telling him that he doesnt have permission to attach something. Is there any way around this?

This is the problem I'm currently having. The forum permissions and usergroup permissions are configured correctly, yet only admin can attach files. Did you ever resolve this?

garfieldH
02-01-2011, 03:42 PM
How can I move the position of the tab? I'd like to have it at the end of the other tabs, or at least further away from 'Forum'.

bananalive
02-01-2011, 05:01 PM
How can I move the position of the tab? I'd like to have it at the end of the other tabs, or at least further away from 'Forum'.


Find in plugin Easy Forms - Forms Tab
$template_hook['navtab_middle']
Replace with
$template_hook['navtab_end']

bananalive
02-01-2011, 05:04 PM
This is the problem I'm currently having. The forum permissions and usergroup permissions are configured correctly, yet only admin can attach files. Did you ever resolve this?

Check your permissions for attachments as per the forum the form posts to.

bananalive
02-01-2011, 05:09 PM
I'm having a problem with permissions. I set it to allow unregistered/not logged in users to be able to see the forms, but when I click on my form when I am not logged in I get the "I do not have permission" notice. Is there something I'm missing here?

Double check that you are editing ability for users to view form and not the ability to view form lists.

thunderclap82
02-01-2011, 09:01 PM
Check your permissions for attachments as per the forum the form posts to.

Double check that you are editing ability for users to view form and not the ability to view form lists.

Well, Forum & Moderators --> Forum Permissions --> Can Upload Attachments is set to Yes.

Usergroup has the ability to attach up to 10MB files.

I double checked the form settings and the users are configured properly. The can view the forms but not the form lists.

paul41598
02-02-2011, 01:20 PM
Is noone having major issues with this product with 4.1? I have sql errors constantly. I had issues installing the product and had to edit the DB create statements and remove the TYPE=MYSAM or whatever to get it to import.

Now when I try to delete forms I get:
atabase error in vBulletin 4.1.1:

Invalid SQL:
DELETE FROM formbits WHERE fid=1 AND userid = '1';

MySQL Error : Unknown column 'userid' in 'where clause'
Error Number : 1054
Request Date : Wednesday, February 2nd 2011 @ 03:19:20 PM
Error Date : Wednesday, February 2nd 2011 @ 03:19:21 PM


Here's the one I was talking about when I import the product

Database error in vBulletin 4.1.1:

Invalid SQL:

CREATE TABLE IF NOT EXISTS `forms` (
`fid` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`displayorder` int(10) NOT NULL,
`action` int(3) NOT NULL,
PRIMARY KEY (`fid`)
) TYPE=MyISAM;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 8
Error Number : 1064

Greight
02-03-2011, 06:08 AM
What are you trying to input? and into what field?
Unicode characters like ب ت م and it does not make difference in any field. All turn into question marks.

TeknoSounds
02-03-2011, 08:56 AM
Is noone having major issues with this product with 4.1? I have sql errors constantly. I had issues installing the product and had to edit the DB create statements and remove the TYPE=MYSAM or whatever to get it to import.

Now when I try to delete forms I get:
atabase error in vBulletin 4.1.1:

Invalid SQL:
DELETE FROM formbits WHERE fid=1 AND userid = '1';

MySQL Error : Unknown column 'userid' in 'where clause'
Error Number : 1054
Request Date : Wednesday, February 2nd 2011 @ 03:19:20 PM
Error Date : Wednesday, February 2nd 2011 @ 03:19:21 PM


Here's the one I was talking about when I import the product

Database error in vBulletin 4.1.1:

Invalid SQL:

CREATE TABLE IF NOT EXISTS `forms` (
`fid` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`displayorder` int(10) NOT NULL,
`action` int(3) NOT NULL,
PRIMARY KEY (`fid`)
) TYPE=MyISAM;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 8
Error Number : 1064
Upgraded just now from a couple versions ago, not sure of the exact one, but
I didn't receive any SQL errors during product import nor have noticed any on my dev site.

Is yours a first time install or upgrade?

paul41598
02-03-2011, 05:59 PM
First time install

customcolor
02-04-2011, 12:05 AM
yeah!!your back!!

now i like to bump my question i had a wile back...

ok here is my question...i see what you did in post #64 and that is make it so you can choose an answer that is a thread title that is in a certain forum....now can you make it so that is the thread that the results go to from the form?...aka user can choose what thread in a forum the results go to every time with out having to go to that thread/s every time?

steveman0018
02-04-2011, 12:59 AM
bananalive, this mod makes my website recruit form so much easier. Thank you very much. On a side note, a lot of people over at xenforo really want this mod ported over. Some offering donations too. Do you have any plans to do this?

thunderclap82
02-04-2011, 03:42 PM
I'm still waiting for a response too. I've checked the permissions for attachments per your suggestion yet non-admin users still can't attach files. Is there a hidden Forms setting somewhere I'm missing?

bananalive
02-04-2011, 08:14 PM
bananalive, this mod makes my website recruit form so much easier. Thank you very much. On a side note, a lot of people over at xenforo really want this mod ported over. Some offering donations too. Do you have any plans to do this?

Sorry, no I'm not.

bananalive
02-04-2011, 08:25 PM
I'm still waiting for a response too. I've checked the permissions for attachments per your suggestion yet non-admin users still can't attach files. Is there a hidden Forms setting somewhere I'm missing?

Is it showing attach link? Are they getting error messages?

bananalive
02-04-2011, 08:33 PM
yeah!!your back!!

now i like to bump my question i had a wile back...


ok here is my question...i see what you did in post #64 and that is make it so you can choose an answer that is a thread title that is in a certain forum....now can you make it so that is the thread that the results go to from the form?...aka user can choose what thread in a forum the results go to every time with out having to go to that thread/s every time?

Form Hook: Form Start:
$form['threadid'] = $q['threadid'];
Form Hook: Before Submit:
$form['threadid'] = $q['threadid'];
Custom Question

Reference Name: threadid
PHP Code: $answer = '<select name="'.$formbit[id].'">';
$answer .= '<option></option>';
$thisanswer = $q[$formbit[id]];
$threads = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread
WHERE forumid = '2'
ORDER BY title ASC");
while($row = $db->fetch_array($threads)) {
$answer .= '<option value="'.$row[threadid].'"';
if ($row[threadid] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[title].'</option>';
}
$answer .= '</select>';

bananalive
02-04-2011, 08:37 PM
Unicode characters like ب ت م and it does not make difference in any field. All turn into question marks.

I have just checked on my forum and those characters are inserted fine in forms for me.

bananalive
02-04-2011, 08:38 PM
Is noone having major issues with this product with 4.1? I have sql errors constantly. I had issues installing the product and had to edit the DB create statements and remove the TYPE=MYSAM or whatever to get it to import.

Now when I try to delete forms I get:
atabase error in vBulletin 4.1.1:

Invalid SQL:
DELETE FROM formbits WHERE fid=1 AND userid = '1';

MySQL Error : Unknown column 'userid' in 'where clause'
Error Number : 1054
Request Date : Wednesday, February 2nd 2011 @ 03:19:20 PM
Error Date : Wednesday, February 2nd 2011 @ 03:19:21 PM


Here's the one I was talking about when I import the product

Database error in vBulletin 4.1.1:

Invalid SQL:

CREATE TABLE IF NOT EXISTS `forms` (
`fid` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`displayorder` int(10) NOT NULL,
`action` int(3) NOT NULL,
PRIMARY KEY (`fid`)
) TYPE=MyISAM;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 8
Error Number : 1064

Try attached file.

thunderclap82
02-04-2011, 08:51 PM
Is it showing attach link? Are they getting error messages?

I'm getting the error:

"You do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

I can only assume this means the permissions are configured wrong but, again, I've triple checked the forum permissions, usergroup permissions and verified with vB support and it's all configured properly.

bananalive
02-04-2011, 08:55 PM
I'm getting the error:

"You do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

I can only assume this means the permissions are configured wrong but, again, I've triple checked the forum permissions, usergroup permissions and verified with vB support and it's all configured properly.

Does the error come up after you click 'Manage Attachments'?

Does the user have permission to view forum, the thread is being created within?

Does the user have permission to post in the forum the thread is being created within?

Sorry about all the questions, but it's the only way i'll be able to find a solution because i cannot replicate the problem at the moment.

thunderclap82
02-04-2011, 09:09 PM
Does the error come up after you click 'Manage Attachments'?

Yes.

Does the user have permission to view forum, the thread is being created within?

Yes, though the forum is hidden.

Does the user have permission to post in the forum the thread is being created within?

Yes. And if they fill out the form it posts properly. It's only the Manage Attachments that isn't working.

thrace
02-06-2011, 12:21 AM
Would it be possible to add a user to a special user group after they have completed the form? if so how would one go about doing this?

bananalive
02-06-2011, 10:57 AM
Yes.

Yes, though the forum is hidden.

Yes. And if they fill out the form it posts properly. It's only the Manage Attachments that isn't working.

Here's a fix:


Edit Form -> Alter Forum to one where users can post threads and attach files
Create the following vBulletin Plugin via AdminCP

php codeif ($fid == 43)
{
$forumid = 6;
$dataman =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dataman->set_existing($threadinfo);
$dataman->setr('forumid', $forumid);
$dataman->pre_save();
if (count($dataman->errors) > 0)
{
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval(standard_error($errormessage));
}
else
{
$dataman->save();
$foruminfo = fetch_foruminfo($forumid);
$threadinfo = fetch_threadinfo($newpost['threadid']);
mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
}
}
change 43 for appropriate form id
change 6 to appropriate forum id
hook namenewthread_post_complete

bananalive
02-06-2011, 11:00 AM
Would it be possible to add a user to a special user group after they have completed the form? if so how would one go about doing this?

To add user to additional usergroup...

https://vborg.vbsupport.ru/showpost.php?p=1974207&postcount=115

zushiba
02-07-2011, 04:03 PM
Is it possible to view a single result?

I am creating a widgit in PHP that shows the users submitted forms with an easy "Edit" button but I'm stuck on how to just show them their result as it goes in to a database not a forum.

So I'd like to just show them the resulted form information they entered for that single entry.\

EDIT: Oh I suppose I could just pull the Output field. Though then I need to find a way to show the output of the BBCode from the database in a php widgit.

bananalive
02-08-2011, 02:30 PM
Is it possible to view a single result?

I am creating a widgit in PHP that shows the users submitted forms with an easy "Edit" button but I'm stuck on how to just show them their result as it goes in to a database not a forum.

So I'd like to just show them the resulted form information they entered for that single entry.\

EDIT: Oh I suppose I could just pull the Output field. Though then I need to find a way to show the output of the BBCode from the database in a php widgit.
To parse it, use the following on $output:
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list(), true);
$output = $bbcode_parser->parse($output);

bananalive
02-08-2011, 02:39 PM
v4.2.3 Beta

v4.2.3 is the addition of searchable Form Results Table. If you have a go and let me know what you think.

https://vborg.vbsupport.ru/attachment.php?attachmentid=126534&stc=1&d=1297183178

zushiba
02-08-2011, 02:41 PM
Awesome, bananalive you have no idea how much work this addon is saving me. Thank you!

Upgraded, looks great and the search function works great!

paul41598
02-08-2011, 04:06 PM
bananalive: Exporting to excel doesnt work well with some fields it seems. It's not taking my radio button results, nor my multiline results. Are you aware of the issue, or have a fix? Just curious. Thanks for the hard work on this mod. It's one of a kind!

DevinM
02-09-2011, 02:15 PM
Any idea what might cause this display/formatting problem? Or how to fix it?

https://vborg.vbsupport.ru/external/2011/02/1.bmp

I havent modified anything, just installed and noticed it was doing that.

bananalive
02-10-2011, 12:13 PM
bananalive: Exporting to excel doesnt work well with some fields it seems. It's not taking my radio button results, nor my multiline results. Are you aware of the issue, or have a fix? Just curious. Thanks for the hard work on this mod. It's one of a kind!

There was a problem with Grid Questions, I'll release a fix later today. But not with multi-line or radio that i aware of it? If you cannot see all the text - try expanding the cells height and width.

bananalive
02-10-2011, 12:18 PM
Any idea what might cause this display/formatting problem? Or how to fix it?

http://www.gridironjunkies.net/images/gjformsproblem.bmp

I havent modified anything, just installed and noticed it was doing that.

It should be copying the styling from other parts of the forum. If you want to manually edit the formatting, edit template form_list_bot

In v4.2.4+ 'Create New Form' it has been changed from a link to a button.

bananalive
02-10-2011, 12:26 PM
v4.2.4 (just released in first post) is the non-Beta version of v4.2.3 (with a few bug fixes from the beta version)

paul41598
02-10-2011, 12:36 PM
There was a problem with Grid Questions, I'll release a fix later today. But not with multi-line or radio that i aware of it? If you cannot see all the text - try expanding the cells height and width.
Ya I tried that but no luck. Actually exporting is more messed up than I originally thought. It's skipping fields and not even exporting them at all. I upgraded to your latest version and still same issue. hmmm

Here are screenshots from my form in its entirety, and my xls which I exported too. You will see the problem. All fields are filled out, but the exported results are skipping some fields even, and the results. So weird

paul41598
02-10-2011, 01:11 PM
Also, on another note since I'm testing out this new version. I've gotten a few DB errors while searching, but my main concern is searching won't take half of what you type in.

For example..lets say I had a name single line field. I inputed a first and last name into the form. I went to form results table, and above that row I inputed the name Carol. It won't pull up the record. Now if I put in the name Carol Smith...it pulls it up fine. So you have to be exact in what you type else your results are nothing. Just some food for thought. Nice work!

bananalive
02-10-2011, 01:19 PM
Ya I tried that but no luck. Actually exporting is more messed up than I originally thought. It's skipping fields and not even exporting them at all. I upgraded to your latest version and still same issue. hmmm

Here are screenshots from my form in its entirety, and my xls which I exported too. You will see the problem. All fields are filled out, but the exported results are skipping some fields even, and the results. So weird

Are all your 'Reference Name's for the form questions unique?

bananalive
02-10-2011, 01:25 PM
Also, on another note since I'm testing out this new version. I've gotten a few DB errors while searching, but my main concern is searching won't take half of what you type in.

For example..lets say I had a name single line field. I inputed a first and last name into the form. I went to form results table, and above that row I inputed the name Carol. It won't pull up the record. Now if I put in the name Carol Smith...it pulls it up fine. So you have to be exact in what you type else your results are nothing. Just some food for thought. Nice work!

Fixed db errors in v4.2.5 (anyone running v4.2.4 should upgrade immediately - just import new product file in admincp)

I'm afraid that there is very very unlikely to be a work around to allow searching for within the fields for Carol rather than carol smith.

paul41598
02-10-2011, 01:35 PM
I dont have any reference names for my questions. I had no idea what it was for...so left them all blank?

update:

anyways, I tried doing that and still same results. hmmm

bananalive
02-10-2011, 01:49 PM
I dont have any reference names for my questions. I had no idea what it was for...so left them all blank?

update:

anyways, I tried doing that and still same results. hmmm

The reference names are optional.

I think the issue might be to do with having several questions with the same name.

paul41598
02-10-2011, 01:50 PM
The reference names are optional.

I think the issue might be to do with having several questions with the same name.
It does and I just thought of that before u posted. I tried changing current status to current status1, 2 and 3, and now it exports fine.

Sucks that I have to do that, but whatever I guess... least we know the issue

paul41598
02-10-2011, 02:11 PM
Found another bug...sorry!

So I had that form all created as you see above in screenshot. I then decided to remove 3 questions entirely and delete them. I had two results(forms) already posted though.

I'm trying to remove those two answers (forms) that someone submitted, and I get this:
vBulletin Message
Error, this form does not exist.

I'm assuming its because it's trying to delete those answers with those original questions tied to them, but I deleted them.

If I hover over the delete link:
#
TPA's - jbilliau (Edit | Delete)

Name
Will Have Done by
Ticket #1

I don't even see ID or FID = a number at all....its just = nothing

stationar
02-10-2011, 03:35 PM
How can I get a question type like "custom"? For example, the question is what is your favorite song? The answer would be address of the mp3 file. But in the results the answer would be "built in" to the player html code. (same functionality as BB code).
In the other words, can I create a custom bb code and format the answer with it?

bananalive
02-11-2011, 04:43 PM
It does and I just thought of that before u posted. I tried changing current status to current status1, 2 and 3, and now it exports fine.

Sucks that I have to do that, but whatever I guess... least we know the issue

Fixed in attached file.

bananalive
02-11-2011, 04:44 PM
Found another bug...sorry!

So I had that form all created as you see above in screenshot. I then decided to remove 3 questions entirely and delete them. I had two results(forms) already posted though.

I'm trying to remove those two answers (forms) that someone submitted, and I get this:
vBulletin Message
Error, this form does not exist.


I'm assuming its because it's trying to delete those answers with those original questions tied to them, but I deleted them.

If I hover over the delete link:
#
TPA's - jbilliau (Edit | Delete)

Name
Will Have Done by
Ticket #1

I don't even see ID or FID = a number at all....its just = nothing

Have you edited template form_showoutput?

bananalive
02-11-2011, 05:07 PM
How can I get a question type like "custom"? For example, the question is what is your favorite song? The answer would be address of the mp3 file. But in the results the answer would be "built in" to the player html code. (same functionality as BB code).
In the other words, can I create a custom bb code and format the answer with it?

2 possible options


Use custom output
Create vBulletin Hook with following attributes: (AdminCP -> Plugins & Products -> Add new plugin)
Change 44 for appropriate form id and 325 for appropriate question id
Change for appropriate bb code

Titlefavourite song mp3
Hookeasy_forms_post_question_start
PHP Codeif ($fid == 44 && $formbit['id'] == 325)
{
$form['saveprea'] = $form[prea];
$form['savepsta'] = $form[psta];
$form[prea] = $form[prea]."";
$form[psta] = "".$form[psta];
}
elseif ($fid == 44 && $form['saveprea'] && $form['psta'])
{
$form['prea'] = $form['saveprea'];
$form['psta'] = $form['savepsta'];
$form['saveprea'] = $form['savepsta'] = '';
}
ActiveYes

customcolor
02-13-2011, 12:37 AM
what do i have to have the "Form Actions" set to to do this that you did below...i tried it posting in new thread and thats what it does...tried it in post in thread but then what would i put in the thread id area?? it says it posts but it really didnt.

Form Hook: Form Start:
$form['threadid'] = $q['threadid'];
Form Hook: Before Submit:
$form['threadid'] = $q['threadid'];
Custom Question

Reference Name: threadid
PHP Code: $answer = '<select name="'.$formbit[id].'">';
$answer .= '<option></option>';
$thisanswer = $q[$formbit[id]];
$threads = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread
WHERE forumid = '2'
ORDER BY title ASC");
while($row = $db->fetch_array($threads)) {
$answer .= '<option value="'.$row[threadid].'"';
if ($row[threadid] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[title].'</option>';
}
$answer .= '</select>';

bananalive
02-13-2011, 09:20 AM
what do i have to have the "Form Actions" set to to do this that you did below...i tried it posting in new thread and thats what it does...tried it in post in thread but then what would i put in the thread id area?? it says it posts but it really didnt.

Post in Thread

You can leave the threadid blank as it is being specified in custom question.

If you export your form and upload it here - i'll have a look for the problem.

bearcub
02-14-2011, 12:00 AM
I am still getting this same message. I have ten fields, and I just don't understand the problem.

The message you have entered is too short. Please lengthen your message to at least 10 characters.

customcolor
02-14-2011, 12:05 AM
Post in Thread

You can leave the threadid blank as it is being specified in custom question.

If you export your form and upload it here - i'll have a look for the problem.
here you go..

bearcub
02-14-2011, 12:46 AM
I am still getting this same message. I have ten fields, and I just don't understand the problem.

The message you have entered is too short. Please lengthen your message to at least 10 characters.

Never mind, I figured it out. I love the mod Bananalive.

bananalive
02-14-2011, 08:05 AM
here you go..
Change Form Hook: Before Submit:
{
$form['forumid'] = ($qo['31']);
}
to
$form['threadid'] = $qo['31'];

Leo777
02-16-2011, 09:12 AM
Installed, working perfect, Thanks for a great and complex mod.

I have one question :

Is it possible to display a form within a post/thread? Or can forms only be displayed only on their own misc.php URL? It would be great if I could add a form at the bottom of a post but I can't find any option or documentation if this is possible...

Thanks.

LoudBox
02-16-2011, 06:04 PM
Great plugin, works very well, good job. I'm impressed.

Quick question. I've set the form to output to a thread. What I'd like is that when this thread is created by easyform, his signature is a link to that thread.

So user john submits form => thread is created yourforum.com/forum/john-thread/
Now user john has as signature a link to that thread

What's the best way to go about this?

Thanks!

bananalive
02-17-2011, 12:49 PM
Installed, working perfect, Thanks for a great and complex mod.

I have one question :

Is it possible to display a form within a post/thread? Or can forms only be displayed only on their own misc.php URL? It would be great if I could add a form at the bottom of a post but I can't find any option or documentation if this is possible...

Thanks.


Import attached product file
Create Custom BB Code in AdminCP

Title: Form BB Code
BB Code Tag Name: form
Replacement: <div style="clear: both;">
<iframe src="misc.php?do=form&amp;fid={param}&amp;embed=1" style="width: 100%; height: 500px;">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
Example: 1
Use Option: No
Remove Tag If Empty
Yes

Disable BB Code Within This BB Code
Yes

Disable Smilies Within This BB Code
Yes

Disable Word Wrapping Within This BB Code
Yes

Disable Automatic Link Parsing Within This BB Code YES

Use 1 in posts


The other suggestion I can offer, I'm not sure if it will be helpful, but you can re-direct reply button to the desired form

How can I Re-direct/ force users to submit form when they click reply?

Create plugin newreply_form_complete

if (in_array($threadinfo[threadid], array(1,2,3)))
{
header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ;
}

Change 1,2,3 for appropriate threadids.

bananalive
02-17-2011, 01:37 PM
Great plugin, works very well, good job. I'm impressed.

Quick question. I've set the form to output to a thread. What I'd like is that when this thread is created by easyform, his signature is a link to that thread.

So user john submits form => thread is created yourforum.com/forum/john-thread/
Now user john has as signature a link to that thread

What's the best way to go about this?

Thanks!


Title Change Signature to Thread Link
Hookeasy_forms_post_after_actions
PHP Code - change 43 to appropriate form idif ($fid == 43)
{
if ($complete)
{
$userinfo = $vbulletin->userinfo;
$threadinfo = fetch_threadinfo($threadid);
$usersig = "".$vbulletin->options['bburl']."/".fetch_seo_url('thread', $threadinfo)."";

$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('signature', $usersig);

$userdata->save();
}
}
ActiveYes

moswell
02-17-2011, 02:12 PM
Okay, maybe this won't do what I want it to do, but could someone provide some advice?

I'd like the form to actually be the poll: that is, what I'm really looking for is the opportunity for a user to make a multiple-question poll within a thread. I've installed the mod and played a bit with it myself, but from what I can tell, I make the form, people need to go to the url for that form, and then the results are getting posted to the thread (or wherever).

What I'd like is for someone to be able to make a form, have the form posted to a thread, and people answer the form questions. Then the form(poll) results are displayed at the top of the thread, but not posted to the thread itself.

Does this make sense, and is it possible? Thanks!

Edit: found the option for not posting to thread.

moswell
02-17-2011, 04:01 PM
Okay, I've read through pretty much the whole thread and it looks like this isn't an option. I'm relatively new to vbulletin - but I can already see that the multiple-question poll is an issue.

So, two different questions:

1. Can I edit the form creation page to make it easier for users? That is, can I set the default options (like don't post to thread, etc.) for a form template? Do I need to go to the misc.php directly and edit that page?
2. Can the form results poll view be altered? I'd very much like the column that says "x users answered this question" to give a list of the users who voted as the form results table does (and like a regular poll would).

Thanks - it's a fascinating mod.

Leo777
02-17-2011, 04:05 PM
Use 1 in posts

First I received an email notification from this forum, informing me of your reply to my post - in the email it has your original reply where you said unfortunately it's not possible to add a form within a thread. So I came to the forum to say 'Thanks Anyway', but now I see that you edited your reply and have now given full instructions for actually doing exactly what I asked... That's amazing, you are very generous. Now I must send a donation :D

Thanks so much,
Leo

LoudBox
02-17-2011, 05:37 PM
Title Change Signature to Thread Link
Hookeasy_forms_post_after_actions
PHP Code - change 43 to appropriate form idif ($fid == 43)
{
if ($complete)
{
$userinfo = $vbulletin->userinfo;
$threadinfo = fetch_threadinfo($threadid);
$usersig = "".$vbulletin->options['bburl']."/".fetch_seo_url('thread', $threadinfo)."";

$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('signature', $usersig);

$userdata->save();
}
}
ActiveYes


This is awesome, works great, thanks a lot.

I have 2 other questions:

1) How can I pull data from the form and put it inside the signature? For example, let's say I ask what his favorite icecream is and he answers vanilla => how do I put "vanilla" in his signature right under the link to the thread that was just created?

2) How do I force users from a certain usergroup to fill in the form before they can proceed? I'm using Force Threads (https://vborg.vbsupport.ru/showthread.php?t=172155) but it doesn't work with a form because forced threads uses thread ids. Tried htaccess redirect but that's an endless loop. How would you got about forcing a usergroup to fill in the form before proceeding?

Thanks!

customcolor
02-18-2011, 08:16 PM
Change Form Hook: Before Submit:
{
$form['forumid'] = ($qo['31']);
}
to
$form['threadid'] = $qo['31'];

thanks ....works great!!!

customcolor
02-19-2011, 03:33 AM
thanks ....works great!!!
well except for one little thing....when it posts it shows the post to the question as numbers of what thread it is in the post. is there a way to not make it post the answer to that question in the post?

DevinM
02-19-2011, 02:13 PM
Am I simply missing it somewhere......how can I simply set a form to allow a user to attach file and when it hits submit email it to me.

Key:
1. Single Line Text Field
2. Yes/No Question
3. Radio Buttons
4. Checkboxes
5. Dropdown Select
6. Multi-Line Text Field
8. Field using vBulletin Editor
10. Custom
11. Date
12. Address
13. Scale
14. Grid

Probably a silly question but I truly dont see anything that says attach file.

Volcom13
02-19-2011, 11:21 PM
I uploaded the product. But right as I try to import the XML it says Invalid File Selected.

bananalive
02-20-2011, 04:36 PM
I uploaded the product. But right as I try to import the XML it says Invalid File Selected.Not sure why that is happening.

Are you trying to install Easy Forms for the first time?

What vBulletin version are you running?

bananalive
02-20-2011, 04:36 PM
Am I simply missing it somewhere......how can I simply set a form to allow a user to attach file and when it hits submit email it to me.

Key:
1. Single Line Text Field
2. Yes/No Question
3. Radio Buttons
4. Checkboxes
5. Dropdown Select
6. Multi-Line Text Field
8. Field using vBulletin Editor
10. Custom
11. Date
12. Address
13. Scale
14. Grid

Probably a silly question but I truly dont see anything that says attach file.

Unfortunately attachments cannot be added to email due to restrictions of the vbulletin email function vbmail();

bananalive
02-20-2011, 04:45 PM
well except for one little thing....when it posts it shows the post to the question as numbers of what thread it is in the post. is there a way to not make it post the answer to that question in the post?

Change Form Hook: Before Submit:
$form['threadid'] = $qo['31'];
to
$form['threadid'] = $qo['31'];
$fr = $form['preq'].$qn['31'].$form['pstq'].$form['prea']." ".$qo['31']." ".$form['psta'];
$formoutput = str_replace($fr,'',$formoutput);

bananalive
02-20-2011, 05:15 PM
This is awesome, works great, thanks a lot.

I have 2 other questions:

1) How can I pull data from the form and put it inside the signature? For example, let's say I ask what his favorite icecream is and he answers vanilla => how do I put "vanilla" in his signature right under the link to the thread that was just created?

2) How do I force users from a certain usergroup to fill in the form before they can proceed? I'm using Force Threads (https://vborg.vbsupport.ru/showthread.php?t=172155) but it doesn't work with a form because forced threads uses thread ids. Tried htaccess redirect but that's an endless loop. How would you got about forcing a usergroup to fill in the form before proceeding?

Thanks!
1. Use $q['1'] where 1 is the question hash

2. Umm that would be quite complex, you're best bet would be to modify Force Threads (https://vborg.vbsupport.ru/showthread.php?t=172155) to redirect to a url rather than a threadid

burlesque
02-20-2011, 06:43 PM
Does anybody know how to get the form pages working with the 'Everywhere Sidebar' mod? I've tried following the instructions on that page, but to no avail.

customcolor
02-22-2011, 12:38 PM
super!!!!
works perfect!
Change Form Hook: Before Submit:
$form['threadid'] = $qo['31'];
to
$form['threadid'] = $qo['31'];
$fr = $form['preq'].$qn['31'].$form['pstq'].$form['prea']." ".$qo['31']." ".$form['psta'];
$formoutput = str_replace($fr,'',$formoutput);

Mobo
02-24-2011, 10:42 AM
I've not managed to read all 1116 posts, but maybe someone could answer (hopefully) a simple question for me.

Could this mod be used to run a Book Review forum section? I'm looking for a mod that will use a form to filled out to start a new thread. The form would fill in and make the first post of that new thread. Other users could then reply to that thread as if it was a normal thread anywhere else on the site.

Thank you for your time and help.

bananalive
02-24-2011, 12:48 PM
I've not managed to read all 1116 posts, but maybe someone could answer (hopefully) a simple question for me.

Could this mod be used to run a Book Review forum section? I'm looking for a mod that will use a form to filled out to start a new thread. The form would fill in and make the first post of that new thread. Other users could then reply to that thread as if it was a normal thread anywhere else on the site.

Thank you for your time and help.

Yes, that would be really easy to achieve with this modification.

Mobo
02-24-2011, 03:06 PM
Thank you!

ixian
02-25-2011, 03:27 PM
I searched the thread - is it possible to create a form that creates a calendar entry instead of a post, and if so how?

The form in question would of course have required fields like date, time, etc.

Thanks! Fantastic addon.

wolfey
02-25-2011, 05:47 PM
I want to make a look up tool for part#'s using a website

I created a form asking for the part#
the I used the url to redirect user and added to link the {qo_part} after the slash..but it doesnt work
The url doesnt come out right...it says the {qo_part}

Is what I am doing possible?

zushiba
02-25-2011, 05:51 PM
I don't think the URL redirect keeps any values intact.

CRDeveloper
02-25-2011, 07:29 PM
I have just created a form and added a question.. When I try to view the form i get this at the top of my site -

Parse error: syntax error, unexpected T_STRING in /home/midwife/public_html/misc.php(89) : eval()'d code(1108) : eval()'d code on line 1

What type of question did you add?

Do you have anything in the Form Hooks?

Im getting this error too

[25-Feb-2011 15:22:31] PHP Parse error: syntax error, unexpected T_STRING in /home/######/public_html/forum/misc.php(89) : eval()'d code(1071) : eval()'d code on line 1



I've been getting that for a while, I just realize it could be cause by this mod. I've some forms already with results. How can i fix this??

CRDeveloper
02-25-2011, 07:38 PM
Got it fixed removing the stuff the in the form hooks!

Prisoner
02-26-2011, 02:09 AM
This is an amazing mod. Simple to use.

I had an immediate need for this on my forum last weekend and the form (a help form for a school district) and the response has been very positive and teachers are getting the help they need.

Thank you!

mmacrypt
02-26-2011, 02:11 PM
Updated and thank you for this mod, I love this thing for our UFC Prediction contests, it's ohhh about 10000x better than trying to make it work with a poll.

soypnma
02-28-2011, 03:38 AM
I was wondering if it possible to allow unregistered users to view the form, but for them to submit it they need to register to the site

bananalive
02-28-2011, 11:59 AM
I was wondering if it possible to allow unregistered users to view the form, but for them to submit it they need to register to the site

Edit Form -> Form Hook: Before Submit:

if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}

This will ask them to login or register once they hit submit.

bananalive
02-28-2011, 12:02 PM
I don't think the URL redirect keeps any values intact.

It won't to keep the values, you'll have to use the Form Hooks.

If you want to change where the $_POST data gets sent, you can specify the <form> action value.

Edit Form -> Form Hook: Form Start:

$action = 'otherpage.php';

bananalive
02-28-2011, 12:39 PM
I want to make a look up tool for part#'s using a website

I created a form asking for the part#
the I used the url to redirect user and added to link the {qo_part} after the slash..but it doesnt work
The url doesnt come out right...it says the {qo_part}

Is what I am doing possible?

Added the functionality to attached file.

Import attached product file and then it should work.

bananalive
02-28-2011, 12:48 PM
I searched the thread - is it possible to create a form that creates a calendar entry instead of a post, and if so how?

The form in question would of course have required fields like date, time, etc.

Thanks! Fantastic addon.

You would need to use the form hooks. Then you could send the form variables to vbulletin's calendar data manager to create the event.

CharlieDelta
02-28-2011, 01:18 PM
Edit Form -> Form Hook: Before Submit:

if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}

This will ask them to login or register once they hit submit.

Thanks for this Banana, this will come in handy.

Welshy2008
02-28-2011, 09:09 PM
BA - Please clear your inbox, and would it be alright to PM you, please?

Thanks.

ascroft
03-01-2011, 06:34 AM
Hi there - still keen to find a way to use the same form but called from multiple forums and posting back in to there. I have maybe 40 geographic forums that i am keen to use the same form in.

Thank you.

bananalive
03-01-2011, 08:19 AM
Hi there - still keen to find a way to use the same form but called from multiple forums and posting back in to there. I have maybe 40 geographic forums that i am keen to use the same form in.

Thank you.


Edit Form
Add 'Custom' Question

TypeCustom
Referenceforumid
PHP Code$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";
Compulsory:Yes

Form Hook: Form Start:$form['forumid'] = $qo['forumid'];
Form Hook: Before Submit:$forumid = $form['forumid'] = $qo['forumid'];

bananalive
03-01-2011, 08:20 AM
BA - Please clear your inbox, and would it be alright to PM you, please?

Thanks.

Try again now.

wolfey
03-01-2011, 10:13 AM
Added the functionality to attached file.

Import attached product file and then it should work.

Thank you for the extra help!

russellw
03-02-2011, 05:28 AM
Having read through all 76 pages, I'm hoping someone can help.

I've installed on a test server and everything looks fine except the link to http://url/misc.php?do=forms simply shows the smilie page from FAQ.

The forum isn't installed in a subdirectory (it's at the html root) and a quick look through the misc.php doesn't show any code related to do forms.

I noted in the 3.6/3.8 threads that a couple of people had this issue but couldn't see a fix.

It's odd when the show smilies code in misc.php is a do?=smilies and calls smiliebits

Cheers
Russ

bananalive
03-03-2011, 09:18 AM
Having read through all 76 pages, I'm hoping someone can help.

I've installed on a test server and everything looks fine except the link to http://url/misc.php?do=forms simply shows the smilie page from FAQ.

The forum isn't installed in a subdirectory (it's at the html root) and a quick look through the misc.php doesn't show any code related to do forms.

I noted in the 3.6/3.8 threads that a couple of people had this issue but couldn't see a fix.

It's odd when the show smilies code in misc.php is a do?=smilies and calls smiliebits

Cheers
RussHave you tried un-installing and then re-installing it. The default page when a 'do' isn't called is the smilies so the hooks aren't exec'ing. Do you get any error messages at the top of the page?

Mobo
03-03-2011, 10:53 AM
Okay, I installed this mod and have a working form that posts a thread in my Book Review sub-forum. Is there a way to have the form its self displayed at the top of that forum, instead of in a link buried in the man nav menu?

Mobo
03-03-2011, 11:29 AM
I found how to add the form to a Sticky thread in the Book Review Form, so that could work for me if there is not a way to have it displayed at the top of the forum.

However, testing the form inside the Sticky thread has lead to some issues.

1. The form is displayed inside of a scrolling box in the post. Is there a way to get it to just show the entire form in the post?

2. I also tried to get the form to redirect the submitter to the Book Review forum. The problem is that it loads that new page inside the same scrolling box that form is in on the post in the Sticky thread. Anyway around that?

Thanks for the great mod and all the help you have been giving us!

bananalive
03-03-2011, 11:34 AM
Okay, I installed this mod and have a working form that posts a thread in my Book Review sub-forum. Is there a way to have the form its self displayed at the top of that forum, instead of in a link buried in the man nav menu?

You could edit template FORUMDISPLAY


<vb:if condition="$foruminfo['forumid']==2">
<iframe src="misc.php?do=form&fid=1&embed=1" width="100%" height="300"></iframe>
</vb:if>


Add it above :

<div id="above_threadlist" class="above_threadlist">

Mobo
03-03-2011, 11:57 AM
Thanks Dom, that worked to display the form in the forum. Is there a way to make it so that the form is shown again after they submit it? Right now if I have it set for them to see the Thank You message, it display that new page inside the box the form was in. If I set it to redirect to the forum, it also does that inside the box the form was in.

Thanks again!

bananalive
03-03-2011, 12:24 PM
Thanks Dom, that worked to display the form in the forum. Is there a way to make it so that the form is shown again after they submit it? Right now if I have it set for them to see the Thank You message, it display that new page inside the box the form was in. If I set it to redirect to the forum, it also does that inside the box the form was in.

Thanks again!

Set the redirect url to:
http://www.yoursite.com/forums/misc.php?do=form&fid=1&embed=1

This will display 'Thank you' message and redirect them back to the form again.

russellw
03-04-2011, 01:27 AM
Have you tried un-installing and then re-installing it. The default page when a 'do' isn't called is the smilies so the hooks aren't exec'ing. Do you get any error messages at the top of the page?

Thanks for the response. I have tried installing and uninstalling several times but I shall try again.

There are no errors on the page and none in the error log either but a bit of digging through my upgrade notes shows that we commented out a line in global.php because with it in vbportal refused to run.

the line was:

// ($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;

I note that a couple of other hacks use the global_start hook (and I presume this one does too) so I will disable them and see what happens when I uncomment the line.

Cheers
Russ

by way of PS:

After disabling the 3 hacks that used the hook and uncommenting the line, vbportal is the only thing that works - everything else just returns a blank page.

There is an error in the error log (at least):

PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './../global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/global.php(350) : eval()'d code on line 49

.. so that might make a useful starting point. Of course, line 350 is the hook code shown above which is obviously where the issue is.

russellw
03-04-2011, 06:42 AM
Ok - after some snooping I found that the vbportal hook was the root cause of the evil as it was redirecting global.php to the wrong location.

I removed the hook and reinstalled Easy Forms but with the same result. A look in the db shows no hooks relating to Easy Forms - I presume from a look at the xml file there should be?

Cheers
Russ

PS: I edited the xml and uploaded the hooks fine - still a couple of permission based errors but I'm getting there.

Mobo
03-04-2011, 06:59 AM
That worked a treat Dom, thanks again.

ascroft
03-04-2011, 08:02 PM
Hi thanks for this -

1. Previously I have used a plugin as follows:

if (in_array($forumid, array(53,9999)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;
}

This linked a particular form to a particular forum and was called from newthread_form_start- presume I should be listing all of the forumids in this plugin that I want the form launched from?

2. Also, in the view form after applying the mods below against the question I just get a list of forums and can't select one? Kind of related to this, can I control what forums can be selected from (want the same as the forums that they form can be launched from in 1 above) and give them different names i.e. not show PW_Dunedin but Dunedin? Also the threadid picker which was previously using a custom question (thanks to you previously) seems to have stopped working - can't see the pick list any more for this. Other info - in the default for the formbody I had set the threadid to 'none' as the custom question then sorted that, but for the post thread I have to specify a forum - not sure if that is the issue?

Thanks.


Edit Form
Add 'Custom' Question

TypeCustom
Referenceforumid
PHP Codeforeach ($vbulletin->forumcache AS $forumid => $forum)
{
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";
Compulsory:Yes

Form Hook: Form Start:$form['forumid'] = $qo['forumid'];
Form Hook: Before Submit:$forumid = $form['forumid'] = $qo['forumid'];

bananalive
03-05-2011, 04:05 PM
Hi thanks for this -

1. Previously I have used a plugin as follows:

if (in_array($forumid, array(53,9999)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;
}

This linked a particular form to a particular forum and was called from newthread_form_start- presume I should be listing all of the forumids in this plugin that I want the form launched from?

2. Also, in the view form after applying the mods below against the question I just get a list of forums and can't select one? Kind of related to this, can I control what forums can be selected from (want the same as the forums that they form can be launched from in 1 above) and give them different names i.e. not show PW_Dunedin but Dunedin? Also the threadid picker which was previously using a custom question (thanks to you previously) seems to have stopped working - can't see the pick list any more for this. Other info - in the default for the formbody I had set the threadid to 'none' as the custom question then sorted that, but for the post thread I have to specify a forum - not sure if that is the issue?

Thanks.
1. Add them in a comma seperated list so for forumids: 53,9999,34,55,66 you would want
if (in_array($forumid, array(53,9999,34,55,66)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;
}

2. I missed the first line of the code off of the example. Updated original post: https://vborg.vbsupport.ru/showpost.php?p=2168162&postcount=1135

PHP Code for the custom question, should be: (This includes the limit to show only forums: 53,9999,34,55,66)

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($qo['forumid'], array(53,9999,34,55,66)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

ascroft
03-05-2011, 10:48 PM
OK - thanks - progress here. :)

1. I have changed the plugin to launch the form from forums 53 & 65. Thanks.

2. The PHP code now shows the full forum list in the form if I don't filter - but doesn't show anything in the drop down if I restrict this. For example only including 53,65 in the array?

3. The thread prefix which is also working off a drop down doesn't show anything in the list either until I submit, then it says its missing, and then the drop down is populated. I can then select and submit - as long as the filter isn't on as per 2.

The form hook before submit presently shows:

$form['prefixid'] = $qo['prefix'];
$forumid = $form['forumid'] = $qo['forumid'];

The first row I already had for the prefix, and then added the second row now. Maybe they should be reversed?

btw the PHP in the custom question for the prefix is:

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';


Finally, my initial test posted the thread in to the forum I launched the form (and is the default forum in the form body) from even though I selected another forum from the drop down list. I may have to do more testing re this point once a couple more of the other things are clarified.

Many thanks for your help.


1. Add them in a comma seperated list so for forumids: 53,9999,34,55,66 you would want
if (in_array($forumid, array(53,9999,34,55,66)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;
}

2. I missed the first line of the code off of the example. Updated original post: https://vborg.vbsupport.ru/showpost.php?p=2168162&postcount=1135

PHP Code for the custom question, should be: (This includes the limit to show only forums: 53,9999,34,55,66)

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($qo['forumid'], array(53,9999,34,55,66)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

zushiba
03-07-2011, 03:16 PM
The BBCode format of forms with section headers is a little mucked up.

Sample:
Annual Report Form.
Year
2011
Annual Report Title
69
Unit
22
Program Mission Statement.
23
Section 1: Program SummaryProgram Summary
25
Section II: Annual UpdateAnnual Update
27
Section III: Implications of Course-Program Alignment MatrixImplications of Course-Program Alignment Matrix
29
Section IV: Responses to student Achievement Outcome and Other1: Course Enrollment Trends
31
2: Course Success Rates
32
3: English, ESL, and Math Improvement Rates.
33
4: Declared Majors
34
5: Degrees and Certificates Earned
35
6: Other Data (Accuplacer, Student Evaluation of Course, etc.)
36
Section V: Summary of Major Findings.Summary of Major Findings.
38
Section VI: RecommendationsRecommendations
40
Section VII: Evaluation of Program Review and Unit Planning ProcessEvaluation of Program Review and Unit Planning Process
42
Evaluation of Program Review and Unit Planning Process
43
Screenshot of formatted BBCode (http://i.imgur.com/SnhnT.jpg)

There is no break between section and the question immediately following the section. I've bolded the questions above in the example.

Faskis
03-08-2011, 06:18 AM
Curious, is there any possibility we could see the mod functional with the new official vB Mobile style?

bananalive
03-09-2011, 02:14 PM
Curious, is there any possibility we could see the mod functional with the new official vB Mobile style?

Maybe, in the future, I haven't looked at the mobile style yet. Have you tried using it with the mobile style? I assume the form results wouldn't display very well in mobile style because they are very wide tables, but perhaps viewing & submitting the form would be fine.

bananalive
03-09-2011, 02:21 PM
The BBCode format of forms with section headers is a little mucked up.

Sample:

Screenshot of formatted BBCode (http://i.imgur.com/SnhnT.jpg)

There is no break between section and the question immediately following the section. I've bolded the questions above in the example.

Edit Form: Add \r\n to end of the section bb code

https://vborg.vbsupport.ru/attachment.php?attachmentid=127298&stc=1&d=1299687672

zushiba
03-09-2011, 02:26 PM
Sweet, that did the trick. Thanks bananalive you are 10 times over The Manâ„¢

bananalive
03-09-2011, 02:27 PM
OK - thanks - progress here. :)

1. I have changed the plugin to launch the form from forums 53 & 65. Thanks.

2. The PHP code now shows the full forum list in the form if I don't filter - but doesn't show anything in the drop down if I restrict this. For example only including 53,65 in the array?

3. The thread prefix which is also working off a drop down doesn't show anything in the list either until I submit, then it says its missing, and then the drop down is populated. I can then select and submit - as long as the filter isn't on as per 2.

The form hook before submit presently shows:

$form['prefixid'] = $qo['prefix'];
$forumid = $form['forumid'] = $qo['forumid'];

The first row I already had for the prefix, and then added the second row now. Maybe they should be reversed?

btw the PHP in the custom question for the prefix is:

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';


Finally, my initial test posted the thread in to the forum I launched the form (and is the default forum in the form body) from even though I selected another forum from the drop down list. I may have to do more testing re this point once a couple more of the other things are clarified.

Many thanks for your help.

Put the forum question first, then the plugin question second.

And then change the php of the plugin to:

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($q['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';

But the person will have to click submit or preview after selecting/changing their forum, unless you have a default forumid to fetch prefixes from, so then the code above should be

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
if (!$form['forumid'])
{
$form['forumid'] = 53;
}
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';

ascroft
03-11-2011, 06:23 AM
Thank you - this is all good. Nearly there.

My one remaining issue is to do with the drop down list of the forums in the custom question (now #1 with prefix #2 question and yes I do have a default forum to get the prefixes from) and filtering using an array. I am using:

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($qo['forumid'], array(53,9999,34,55,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

However I still don't get any values displayed - the drop down list is empty - would you mind please checking the syntax for this? (I am launching the form from forum 53 by the way)

Finally - one unrelated question - is it possible to display the prefix in the custom form output - I don't see a variable name for it and wondered.

Many thanks for your help.



Put the forum question first, then the plugin question second.

And then change the php of the plugin to:

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($q['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';

But the person will have to click submit or preview after selecting/changing their forum, unless you have a default forumid to fetch prefixes from, so then the code above should be

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
if (!$form['forumid'])
{
$form['forumid'] = 53;
}
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';

Internetcafe
03-12-2011, 02:02 PM
Great addition to the forum .. thanks.

Question which I hope someone can with :-
Creating a form as a Vendors agreement.
1/ Your Company Name .. Single line text field
2/ Vendors Agreement .. Custom
3/ Comments .. Multi-line text field
4/ Agree to agreement .. yes/no question

When form is submitted, everything but the agreement is submitted but the only place I could place the agreement is in the 'custom' description box. I need that agreement submitted with the form !?

Thanks

markb5900
03-12-2011, 03:23 PM
I have several categories with several forms in each category.

I would like to have them display across the screen in columns instead of full screen width for each one.
Can someone point me in the right direction?

See attached for what I have right now.

Thank you

bananalive
03-12-2011, 06:58 PM
I have several categories with several forms in each category.

I would like to have them display across the screen in columns instead of full screen width for each one.
Can someone point me in the right direction?

See attached for what I have right now.

Thank you

You'll need to edit template form_list_top and/or form_list_cat.

bananalive
03-12-2011, 07:04 PM
Great addition to the forum .. thanks.

Question which I hope someone can with :-
Creating a form as a Vendors agreement.
1/ Your Company Name .. Single line text field
2/ Vendors Agreement .. Custom
3/ Comments .. Multi-line text field
4/ Agree to agreement .. yes/no question

When form is submitted, everything but the agreement is submitted but the only place I could place the agreement is in the 'custom' description box. I need that agreement submitted with the form !?

Thanks
I don't understand. Are you using custom output?

markb5900
03-12-2011, 07:44 PM
You'll need to edit template form_list_top and/or form_list_cat.

Thanks

bananalive
03-12-2011, 08:13 PM
Thank you - this is all good. Nearly there.

My one remaining issue is to do with the drop down list of the forums in the custom question (now #1 with prefix #2 question and yes I do have a default forum to get the prefixes from) and filtering using an array. I am using:

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($qo['forumid'], array(53,9999,34,55,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

However I still don't get any values displayed - the drop down list is empty - would you mind please checking the syntax for this? (I am launching the form from forum 53 by the way)

Finally - one unrelated question - is it possible to display the prefix in the custom form output - I don't see a variable name for it and wondered.

Many thanks for your help.

Try this: (I've altered line 4)

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($forumid, array(53,9999,34,55,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

Have you tried using the question hash of the prefix question?

Internetcafe
03-13-2011, 12:25 PM
I don't understand. Are you using custom output?

Custom 'form' template used to create the agreement.
The 'description' box of that template used to add the vendor agreement text.
The custom template added to other already listed elements to complete the form.

All other elements submit as required, but the agreement text does not.

webmaster74
03-14-2011, 12:48 AM
hi. it has been a while that I am looking at this mod and would like to know one thing:

can this mod allow the creation of mutliple choice questions and answers that would allow my members to learn new stuff by taking virtual quizzes ?????

Scan Cape Cod
03-14-2011, 06:35 PM
I'm running 4.1.2 and the latest version of this mod, which is fantastic. Internet Explorer 8 seems to be having some issues with drop-down menus though...confirmed by two different PC's. The drop-down is only showing the first character of the choices.

It works fine in IE9. Is this an issue anyone else is having? I searched this thread but didn't see anything. As far as I can tell this has only come up after I upgraded to 4.1.2 and the latest version of the mod.

Thanks.

mrbigandwonderf
03-15-2011, 12:36 PM
I have a question.... hopefully an easy solution.

Is there a way to have the text editor with the insert picture button. When i chose text editor as an option it appears to be missing.

Everything thing is working great and would love to go live with the forms but this is my missing link to making this happen.

Any help is greatly appreciated

bananalive
03-15-2011, 07:06 PM
I have a question.... hopefully an easy solution.

Is there a way to have the text editor with the insert picture button. When i chose text editor as an option it appears to be missing.

Everything thing is working great and would love to go live with the forms but this is my missing link to making this happen.

Any help is greatly appreciated

AdminCP -> vBulletin Options -> BB Code Settings -> Allow [IMG] Code in Non Forum Specific Areas -> Yes

bananalive
03-15-2011, 07:07 PM
I'm running 4.1.2 and the latest version of this mod, which is fantastic. Internet Explorer 8 seems to be having some issues with drop-down menus though...confirmed by two different PC's. The drop-down is only showing the first character of the choices.

It works fine in IE9. Is this an issue anyone else is having? I searched this thread but didn't see anything. As far as I can tell this has only come up after I upgraded to 4.1.2 and the latest version of the mod.

Thanks.

Which dropdowns are you having an issue with?

bananalive
03-15-2011, 07:09 PM
Custom 'form' template used to create the agreement.
The 'description' box of that template used to add the vendor agreement text.
The custom template added to other already listed elements to complete the form.

All other elements submit as required, but the agreement text does not.

If the agreement text is not included within an answer, for instance if it is in a question description, then it wouldn't go through to the form result

bananalive
03-15-2011, 07:11 PM
hi. it has been a while that I am looking at this mod and would like to know one thing:

can this mod allow the creation of mutliple choice questions and answers that would allow my members to learn new stuff by taking virtual quizzes ?????


Upgrade to Easy Forms v4.2.6
Enable Quiz Mode & Disable Form Preview
Edit Questions and add the 'correct answer' for each question

Cyamia
03-15-2011, 07:53 PM
Thank you so much! I have installed this wonderful mod already, and I am happy to see my most wanted featured being featured in it: Quiz mode. Rated 6 over 5!
Good job bananalive

Mr_Running
03-17-2011, 01:24 AM
I like what I see with this mod

My thoughts.
It would be great to have an option for the admin to create a form and have a tab button in each user profile and posted to an individual forum thread for each individual member with an option for two threads. 1 Private and 2 Public with the user choosing the 1 or 2.

Or maybe the user choosing similar options
as in the vB Profile Privacy

1) Everyone
2) Registered members
3) Your Contacts
4) Your Friends

This would be nice too 5) Just me

All this with no additional set up...it would be automatic when the user becomes a member :) but maybe this might need to be a different mod

Please let me know if this can be done or be considered in a future update.

ascroft
03-17-2011, 08:02 AM
Hi - thank you -

1. Drop down list is great and working from the filtered list.

I think I might have referred to this in an earlier post and commented I needed to test further, but I confirmed tonight that the forum that the form actually posts in to however upon submission is still the default one on the form. In other words, although I select another forum from the drop down now working, the post goes in to the original default forum still. Is this something you could advise on please?

2. Re the question of the prefix question - good point - thanks. However when I do this, I get the code for the prefix output rather than the title of the prefix i.e. I get FH001 not 'Family Home to Buy". I am using say {qo_59} where 59 is the custom question.

Thanks for your ongoing assistance.


Try this: (I've altered line 4)

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($forumid, array(53,9999,34,55,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

Have you tried using the question hash of the prefix question?

Badhabitz
03-18-2011, 08:55 PM
bananalive 1st off thank you very much for this mod, it has been a great addition to my community.

I do have a bug report that I'm not sure is just me. The correct answer box is not long enough for the answer to a question in quiz mode. It seems like the field is to small?

Cyamia
03-19-2011, 01:43 AM
I have installed this mod BUT I did not get what I had expected from the quiz mode. In fact, when a user previews what the form he/she has done so far, the previews shows the results as well, which lets him/her know if he/she got the questions wrong or right. What is worse is that it the preview shows him/her the correct answers (What would be the point of the quiz then?)

So, is there a was to disable this so that the user do not see the result immediately? If not, do you plan to improve this quiz part in future releases?

Thank you.

bananalive
03-19-2011, 09:48 AM
I have installed this mod BUT I did not get what I had expected from the quiz mode. In fact, when a user previews what the form he/she has done so far, the previews shows the results as well, which lets him/her know if he/she got the questions wrong or right. What is worse is that it the preview shows him/her the correct answers (What would be the point of the quiz then?)

So, is there a was to disable this so that the user do not see the result immediately? If not, do you plan to improve this quiz part in future releases?

Thank you.

Edit Form -> Disable Form Preview

Or

Import attached file.

bananalive
03-19-2011, 09:49 AM
bananalive 1st off thank you very much for this mod, it has been a great addition to my community.

I do have a bug report that I'm not sure is just me. The correct answer box is not long enough for the answer to a question in quiz mode. It seems like the field is to small?

There's a limit of 60 characters, if that isn't enough for you, import attached file.

bananalive
03-19-2011, 09:50 AM
I like what I see with this mod

My thoughts.
It would be great to have an option for the admin to create a form and have a tab button in each user profile and posted to an individual forum thread for each individual member with an option for two threads. 1 Private and 2 Public with the user choosing the 1 or 2.

Or maybe the user choosing similar options
as in the vB Profile Privacy

1) Everyone
2) Registered members
3) Your Contacts
4) Your Friends

This would be nice too 5) Just me

All this with no additional set up...it would be automatic when the user becomes a member :) but maybe this might need to be a different mod

Please let me know if this can be done or be considered in a future update.

Sorry, I'm afraid that's not possible with this modification

Badhabitz
03-20-2011, 02:28 PM
There's a limit of 60 characters, if that isn't enough for you, import attached file.

Thank you for this, it worked perfectly. Is there a way to shut off the quiz portion on just 1 question so it doesn't mark it as incorrect when it needs to be a different answer for each person? No rush on this if not, just a suggestion for when you release a new version. Another suggestion would be to make it so it goes to different questions based on your answers.


I have been able to get away from google doc forms thanks to you. Now all we need to do is make it so we can use advanced formulas realtime like in excel spread sheets and I will be able to get away from it entirely, lol. I know that's a pipe dream, that would be way to much work for one person to do. :cool:

kisanjong
03-21-2011, 03:30 PM
Great mod thanks 5* + MOTM

is it possible to allow only admin to export data xml and excel and disable this feature for other groups?

bananalive
03-22-2011, 10:36 PM
Thank you for this, it worked perfectly. Is there a way to shut off the quiz portion on just 1 question so it doesn't mark it as incorrect when it needs to be a different answer for each person? No rush on this if not, just a suggestion for when you release a new version. Another suggestion would be to make it so it goes to different questions based on your answers.
Import attached file, then questions without correct answer will not be marked as incorrect
I have been able to get away from google doc forms thanks to you. Now all we need to do is make it so we can use advanced formulas realtime like in excel spread sheets and I will be able to get away from it entirely, lol. I know that's a pipe dream, that would be way to much work for one person to do. :cool:

bananalive
03-22-2011, 10:40 PM
Great mod thanks 5* + MOTM

is it possible to allow only admin to export data xml and excel and disable this feature for other groups?

Cheers, the permission to export xml is the same as the permission to view form results.

Kenjiwing
03-23-2011, 12:32 PM
Hi!

I setup a form and its working great..

My form is an application process that outputs to a thread.. is it possible to allow users to fill out the form without having an account to my website/forums? If so how would I do that?

Thanks,

markb5900
03-23-2011, 08:46 PM
As everyone else has said, what a great mod.

I have a large amount of forms and have decided I need to add some questions to them all.
Is there an easy way to "mass add" questions to all the forms. Or just an easy way to copy and paste the code into each form instead of going into each one individually and adding the 3 questions?
The order will be the same for all the forms, just need to add the individual questions.

Thanks

markb5900
03-23-2011, 08:51 PM
Hi!

I setup a form and its working great..

My form is an application process that outputs to a thread.. is it possible to allow users to fill out the form without having an account to my website/forums? If so how would I do that?

Thanks,

Depending on where your form is located on your site, you should be able to use the permissions in
admincp>options>easyformoptions

In there you can set who can see the forms list etc..

Kenjiwing
03-24-2011, 12:53 PM
Depending on where your form is located on your site, you should be able to use the permissions in
admincp>options>easyformoptions

In there you can set who can see the forms list etc..

I see that and was able to get that part to work.. one more question.

Is it possible to add the registration process to a form? IE you click my recruitment button it takes you to the application form and if you're not logged in the first section is to register for the site?

BadgerDog
03-24-2011, 06:38 PM
There's a limit of 60 characters, if that isn't enough for you, import attached file.

Installed this version with thanks for testing on 4.04 ... :up:

Regards,
Doug

bananalive
03-25-2011, 05:46 PM
I see that and was able to get that part to work.. one more question.

Is it possible to add the registration process to a form? IE you click my recruitment button it takes you to the application form and if you're not logged in the first section is to register for the site?

Not really.

You could re-direct the unregistered users to the registration page, from the form, and then once they are registered they will be able to view the recruitment form.

Edit Form -> Form PHP Hooks

Form Hook: Form Start:
if (!$vbulletin->userinfo['userid'])
{
$vbulletin->url = $vbulletin->options['bburl'] . "/register.php";
eval(print_standard_redirect('You need to register before you can view/submit this form', 0, 1));
}

Or for standard login/register message

Form Hook: Form Start:
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}

bananalive
03-25-2011, 05:50 PM
As everyone else has said, what a great mod.

I have a large amount of forms and have decided I need to add some questions to them all.
Is there an easy way to "mass add" questions to all the forms. Or just an easy way to copy and paste the code into each form instead of going into each one individually and adding the 3 questions?
The order will be the same for all the forms, just need to add the individual questions.

Thanks

I'm afraid there's not a way to do that.

If you have access to phpmyadmin you could create the question in one form and then using phpmyadmin copy the corresponding row of `formbits` table and then just edit `fid` column for each question to the appropriate form id.

ascroft
03-25-2011, 06:49 PM
Hi there - sorry - just a bump re this one - grateful if you could advise. This has been a bit of a trail of code so let me know if I need to post more info to help trouble shoot this.

Thank you.

Mark


Hi - thank you -

1. Drop down list is great and working from the filtered list.

I think I might have referred to this in an earlier post and commented I needed to test further, but I confirmed tonight that the forum that the form actually posts in to however upon submission is still the default one on the form. In other words, although I select another forum from the drop down now working, the post goes in to the original default forum still. Is this something you could advise on please?

2. Re the question of the prefix question - good point - thanks. However when I do this, I get the code for the prefix output rather than the title of the prefix i.e. I get FH001 not 'Family Home to Buy". I am using say {qo_59} where 59 is the custom question.

Thanks for your ongoing assistance.

bananalive
03-25-2011, 08:08 PM
Hi - thank you -

1. Drop down list is great and working from the filtered list.

I think I might have referred to this in an earlier post and commented I needed to test further, but I confirmed tonight that the forum that the form actually posts in to however upon submission is still the default one on the form. In other words, although I select another forum from the drop down now working, the post goes in to the original default forum still. Is this something you could advise on please?

2. Re the question of the prefix question - good point - thanks. However when I do this, I get the code for the prefix output rather than the title of the prefix i.e. I get FH001 not 'Family Home to Buy". I am using say {qo_59} where 59 is the custom question.

Thanks for your ongoing assistance.
What have you got in your form hooks? You'll need something like this in Form Hook: Before Submit:

$forumid = $form['forumid'] = $qo['forumid'];
$form['prefixid'] = $qo['prefixid'];

The prefixes will need the user to reload the page, via clicking preview or submit to load the appropriate prefixes for that forum.

With custom questions $qo and $q are the same so you can't get the prefix title

markb5900
03-26-2011, 12:07 AM
I'm afraid there's not a way to do that.

If you have access to phpmyadmin you could create the question in one form and then using phpmyadmin copy the corresponding row of `formbits` table and then just edit `fid` column for each question to the appropriate form id.

Ok,
Thanks

ascroft
03-26-2011, 07:56 PM
Hi

Yes I have that in the form hook - well 'prefix' at the end as that is the way the reference is set up in the custom question. All forums that will be in the array use the same set of thread prefixes. Its more the forum it gets submitted to is the issue - or is that refreshed by the threadids being forced to refresh? (even though in this case they look the same to the user) If the user has to click preview to refresh this, is there a way to force them to preview?

The form in question can be triggered from http://www.shackchat.co.nz/listings/forumdisplay.php?53-PW_Dunedin - user TEST997 spider if this helped at all. (even though I might select PW_Lower Hutt City it gets posted to PW_Dunedin - which is the default forum in the form body itself)

Thank you.

What have you got in your form hooks? You'll need something like this in Form Hook: Before Submit:

$forumid = $form['forumid'] = $qo['forumid'];
$form['prefixid'] = $qo['prefixid'];

The prefixes will need the user to reload the page, via clicking preview or submit to load the appropriate prefixes for that forum.

With custom questions $qo and $q are the same so you can't get the prefix title

kinhell
03-29-2011, 07:19 PM
Really good mod.

Is there a way to link to just 1 form I have created and not show all the menu items above it etc? just call the form into a page I have for recruitment?

kinhell
03-29-2011, 07:21 PM
Or if above is not possible, is there a way for when a user clicks on Forms on the Nav Bar it shows my 1 form and not a link to the form?

As I will only be using 1 single form

woffie
03-30-2011, 03:43 PM
I'm running 4.1.2 and the latest version of this mod, which is fantastic. Internet Explorer 8 seems to be having some issues with drop-down menus though...confirmed by two different PC's. The drop-down is only showing the first character of the choices.

It works fine in IE9. Is this an issue anyone else is having? I searched this thread but didn't see anything. As far as I can tell this has only come up after I upgraded to 4.1.2 and the latest version of the mod.

Thanks.

I am having the same issue. The dropdown menus in my forms in internet explorer only shows the first two letters in the list. In Firefox everything looks fine. I have also tried it on different computers.

hoochblues
03-30-2011, 05:47 PM
Any suggestions on how I might create a field on the form that is a dropdown list of users on the forum?

Or even better, a box in which to enter usernames similar to that in Tournaments & Ladders? Where they are validated against the user base?

wolfey
03-31-2011, 10:28 AM
I am trying to post a form that will allow me to collect inventory information

I was trying to use the grid option, that looked like the only one to get mutliple model#'s and qty.

I used the Columns for qty and the rows for the models
1 problem is..it looks like you can only have 10 rows, because the results duplicate from the first 10, if you only answer 10 or less and dont display if you enter more.

would this be the best type of question for collecting this info?
If so I would like to only display the models or columns with answers

ScratchMang
03-31-2011, 08:32 PM
I searched the thread - is it possible to create a form that creates a calendar entry instead of a post, and if so how?

The form in question would of course have required fields like date, time, etc.

Thanks! Fantastic addon.

I'm with Ixian,

Fantastic addon Indeed!

I'm no coder by any means, I fumble my way around pre-existing stuff and can edit as per directions when required, and would love to see the ability to take the info submitted on a form and place it into a calendar event.

Any chance of getting it added in as a feature, or possibly a bit more explanation (Or a sample snippit) of just how to get information from a form into a calendar event?

ScratchMang

bananalive
04-01-2011, 11:12 AM
I am trying to post a form that will allow me to collect inventory information

I was trying to use the grid option, that looked like the only one to get mutliple model#'s and qty.

I used the Columns for qty and the rows for the models
1 problem is..it looks like you can only have 10 rows, because the results duplicate from the first 10, if you only answer 10 or less and dont display if you enter more.

would this be the best type of question for collecting this info?
If so I would like to only display the models or columns with answers

There is an error in the code (a missing underscore), fixed in attached product file, so you can have as many rows as you want for grids now.

bananalive
04-01-2011, 11:26 AM
I'm with Ixian,

Fantastic addon Indeed!

I'm no coder by any means, I fumble my way around pre-existing stuff and can edit as per directions when required, and would love to see the ability to take the info submitted on a form and place it into a calendar event.

Any chance of getting it added in as a feature, or possibly a bit more explanation (Or a sample snippit) of just how to get information from a form into a calendar event?

ScratchMang

Possibly in future it will be added.

To create calendar events you would have to use vbulletin calendar datamanager and easy form hooks.

bananalive
04-01-2011, 01:19 PM
Any suggestions on how I might create a field on the form that is a dropdown list of users on the forum?

Or even better, a box in which to enter usernames similar to that in Tournaments & Ladders? Where they are validated against the user base?

I wouldn't suggest a dropdown list as it would be very big.

Create a custom question, with the following php code:

$answer = '<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>'."\r\n";
$answer .= ' <script type="text/javascript"><!--'."\r\n";
$answer .= ' function setAjax()';
$answer .= ' {';
$answer .= ' if (document.getElementById(\'userfield\'))';
$answer .= ' {';
$answer .= ' snc = new vB_AJAX_NameSuggest(\'snc\', \'userfield_txt\', \'userfield\');';
$answer .= ' snc.allow_multiple = false;';
$answer .= ' }';
$answer .= ' }'."\r\n";
$answer .= ' --></script>'."\r\n";
$answer .= '<div id="userfield" class="popupmenu nomouseover noclick nohovermenu"> <input class="primary full textbox popupctrl" name="'.$formbit['id'].'" id="userfield_txt" tabindex="1" autocomplete="off" value="'.$formbit['value'].'" /> </div>';

Then: Edit Form -> Form PHP Hooks -> Form Hook: Form Start:

$vbulletin->templatecache['shell_blank'] = str_replace('<body>','<body onload="setAjax()">', $vbulletin->templatecache['shell_blank']);

bananalive
04-01-2011, 01:21 PM
Really good mod.

Is there a way to link to just 1 form I have created and not show all the menu items above it etc? just call the form into a page I have for recruitment?

Disable access to 'Forms List' in vBulletin Options for non-administrators and that is all they will see in navbar.

bananalive
04-01-2011, 01:23 PM
Hi

Yes I have that in the form hook - well 'prefix' at the end as that is the way the reference is set up in the custom question. All forums that will be in the array use the same set of thread prefixes. Its more the forum it gets submitted to is the issue - or is that refreshed by the threadids being forced to refresh? (even though in this case they look the same to the user) If the user has to click preview to refresh this, is there a way to force them to preview?

The form in question can be triggered from http://www.shackchat.co.nz/listings/forumdisplay.php?53-PW_Dunedin - user TEST997 spider if this helped at all. (even though I might select PW_Lower Hutt City it gets posted to PW_Dunedin - which is the default forum in the form body itself)

Thank you.

Have you got added any plugins in the AdminCP using any of the Easy Forms hooks, they may be causing a conflict.

If you make prefix compulsory then it should only accept valid prefixes and won't submit with an incorrect prefix.

ascroft
04-02-2011, 06:37 PM
Hi there - to launch the form from the correct forums I have a plugin that uses:

if (in_array($forumid, array(53,65)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;

}


These are the same forums as the code in the custom question is using in the form itself i.e.

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($forumid, array(53,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";



Have you got added any plugins in the AdminCP using any of the Easy Forms hooks, they may be causing a conflict.

If you make prefix compulsory then it should only accept valid prefixes and won't submit with an incorrect prefix.

Za4a Tuner
04-03-2011, 08:29 AM
Hello to evryone,
does anyone have a german translation of this mod?

I installed this mod in my testforum ... and would likly use it in the liveboard.

Toto03411
04-03-2011, 03:41 PM
I have a question about installation, when you say to upload the files to the forum root, you do mean the main folder where all the other folders (images, includes, archive, ect) are? That won't replace my current folders, right? Sorry for the probably obvious question, I'm pretty new to mods and want to make sure I don't loose my other files :)

Za4a Tuner
04-03-2011, 05:02 PM
I have a question about installation, when you say to upload the files to the forum root, you do mean the main folder where all the other folders (images, includes, archive, ect) are?correct!
That won't replace my current folders, right? no, if there are two same named files, your ftp-client should ask you what to do.
Take the folder "includes" and upload it to the "forum-root" -> all the files will put into the "includes-folder" on your server

Toto03411
04-04-2011, 01:34 PM
Thanks so much :) Installed and working great, exactly what I needed! Perchance is there a way to change the name of the forms tab? So instead of saying 'Forms' it says something else?

Za4a Tuner
04-04-2011, 07:09 PM
Go to your acp and Search for the phrase "form" and change it to what you would have to

woffie
04-05-2011, 09:56 AM
Any idea when the IE issue is going to be resolved?

Za4a Tuner
04-05-2011, 08:58 PM
Hello bananalive,
at first many thanks for this great AddOn!

I translatet it into german (language-file), but there are some hardcoded textareas. Will you clean this up to "full phrased"? This would be really great!
If it's ok for you, i would help to do this (create phrases und insert them into the addon instead of hardcoded text).

kr Chris

StonePilot
04-06-2011, 05:44 PM
I must be missing something, I just installed with 4.1.2 and i don't have a clue where to go to create a new form. It's just a blank page at misc.php?do=form on my site. I assume permissions issue or maybe something with the custom template?

can I get the direct url to create a form perhaps?

secretphotonerd
04-06-2011, 06:05 PM
I tried installing this on version 4.1.0 and it causes major problems with the template. I have this installed on another forum (4.0.5) and it runs just fine, so I don't believe that it is user error. Am I missing something else?

Za4a Tuner
04-06-2011, 07:11 PM
It's just a blank page at misc.php?do=form on my site. I try
http://www.your-domain.com/misc.php?do=forms

Kr Chris

Kenjiwing
04-07-2011, 11:57 AM
I need to switch my forums to a new host.. Im going to rebuild the forums there because Im having issues..

Is there anyway to export a form or do I need to rebuild it?

bananalive
04-07-2011, 02:20 PM
Hi there - to launch the form from the correct forums I have a plugin that uses:

if (in_array($forumid, array(53,65)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;

}


These are the same forums as the code in the custom question is using in the form itself i.e.

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($forumid, array(53,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

Try creating a copy of the form, and test that - just to double check that there isn't something happening with tthis fid.

bananalive
04-07-2011, 02:22 PM
I need to switch my forums to a new host.. Im going to rebuild the forums there because Im having issues..

Is there anyway to export a form or do I need to rebuild it?
Yes, there is a link to export each form, on the forms list.

The form results will not be copied across.

bananalive
04-07-2011, 02:27 PM
I tried installing this on version 4.1.0 and it causes major problems with the template. I have this installed on another forum (4.0.5) and it runs just fine, so I don't believe that it is user error. Am I missing something else?
It works fine for me on vB v4.1.x - what template is not displaying properly? Or do you have a screenshot?

bananalive
04-07-2011, 02:32 PM
Any idea when the IE issue is going to be resolved?
I'm not sure how to fix the problem, it works for all other browsers - I can only suggest using a browser other than IE.

hoochblues
04-07-2011, 05:58 PM
I wouldn't suggest a dropdown list as it would be very big.

Create a custom question, with the following php code:

$answer = '<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>'."\r\n";
$answer .= ' <script type="text/javascript"><!--'."\r\n";
$answer .= ' function setAjax()';
$answer .= ' {';
$answer .= ' if (document.getElementById(\'userfield\'))';
$answer .= ' {';
$answer .= ' snc = new vB_AJAX_NameSuggest(\'snc\', \'userfield_txt\', \'userfield\');';
$answer .= ' snc.allow_multiple = false;';
$answer .= ' }';
$answer .= ' }'."\r\n";
$answer .= ' --></script>'."\r\n";
$answer .= '<div id="userfield" class="popupmenu nomouseover noclick nohovermenu"> <input class="primary full textbox popupctrl" name="'.$formbit['id'].'" id="userfield_txt" tabindex="1" autocomplete="off" value="'.$formbit['value'].'" /> </div>';

Then: Edit Form -> Form PHP Hooks -> Form Hook: Form Start:

$vbulletin->templatecache['shell_blank'] = str_replace('<body>','<body onload="setAjax()">', $vbulletin->templatecache['shell_blank']);

This looks pretty good. The only problem I found was it allows me to enter the name of a user that doesn't exist. But I think it is almot there.

Za4a Tuner
04-07-2011, 08:15 PM
Hello,
i get some problems with grid-questions!

If i create a grid-question, the output doesn't work, if a individuell output-style is used!
I'll attach three screenshots to show what i mean.

screen 1: Settings Output-Styling
screen 2: Preview of the grid )submitting would cause the same "array"-effect
screen 3: Preview with a standard outputstyling

vB-version: 4.1.2 Suite
php-version: 5.3.5
mysql: 5.1.51
easyform: 4.2.6

ascroft
04-08-2011, 08:08 AM
Hi there - tried that.

I removed the variables for the form (as they don't change when you copy) - anyway this shows the forum ID of what I selected in the drop down but it posted in to the default forum. (65 is the ID of the other forum) Its like it doesn't actually update it prior to submission.

Property Wanted - Dunedin - Copy

Property Wanted - Dunedin - Copy
What are you seeking?

Test001

What location are you interested in?

65

Please select the property category

W9025

Seeking contact from

Real Estate Agents
Private Owners

Particular suburb being sought (if any)

-

Style of property wanted

Bungalow

Construction preferred

Brick

How old can the property be

-

No. of bedrooms wanted

Two

No. of living rooms wanted

Two

No. of bathrooms wanted

Two

Other Features being sought

Garage/Off Street Parking
Near public transport
Heat pump or similar
Fully insulated

Looking to rentHave references available

-

Other details if looking to rent

-

Looking to buyApprox. $ you are looking to spend

-

Other commentsOther comments on the property wanted

-

Add any attachments

Try creating a copy of the form, and test that - just to double check that there isn't something happening with tthis fid.

bananalive
04-08-2011, 09:59 AM
Hi there - tried that.

I removed the variables for the form (as they don't change when you copy) - anyway this shows the forum ID of what I selected in the drop down but it posted in to the default forum. (65 is the ID of the other forum) Its like it doesn't actually update it prior to submission.

...Try this...

AdminCP -> Plugins & Products -> Add New Plugin

Hook Location
newthread_post_complete
Title
Move Thread created by easy forms
PHP Code
if ($fid == 43)
{
$forumid = $q['forumid'];
$dataman =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dataman->set_existing($threadinfo);
$dataman->setr('forumid', $forumid);
$dataman->pre_save();
if (count($dataman->errors) > 0)
{
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval(standard_error($errormessage));
}
else
{
$dataman->save();
$foruminfo = fetch_foruminfo($forumid);
$threadinfo = fetch_threadinfo($newpost['threadid']);
mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
}
}
Plugin is active
Yes


Change 43 to appropriate form id.

bananalive
04-08-2011, 10:05 AM
Hello,
i get some problems with grid-questions!

If i create a grid-question, the output doesn't work, if a individuell output-style is used!
I'll attach three screenshots to show what i mean.

screen 1: Settings Output-Styling
screen 2: Preview of the grid )submitting would cause the same "array"-effect
screen 3: Preview with a standard outputstyling

vB-version: 4.1.2 Suite
php-version: 5.3.5
mysql: 5.1.51
easyform: 4.2.6

I'll have a look into this...

bananalive
04-08-2011, 10:15 AM
This looks pretty good. The only problem I found was it allows me to enter the name of a user that doesn't exist. But I think it is almot there.For the username check...

Form Hook: Before Submit:
$checkuser = $vbulletin->db->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '".$vbulletin->db->escape_string($q['username'])."' ");
if (!$checkuser['userid']&&$q['username'])
{
$preview = true;
$complete = false;
$inputerror[344] = '<font color="red">Invalid Username</font>';
$incompleteqs[] = $qn['username'];
}

Change 344 to the question hash

and make sure the Username Suggest question has Reference Name of: username

Za4a Tuner
04-08-2011, 12:55 PM
i figured out a nother problem with the grid-questions:
If i use a comma for a "item", i'll brake the line and put all the text after the comma as a new "radiobutton"

e.g.:
when the text for the "Grid Rows" (4 rows) is like:
ok
yes
maybe
no, but next year

the question will shown as 5 rows:
ok
yes
maybe
no
but next year

ascroft
04-08-2011, 08:35 PM
Thank you very much. Nice solution. All good now. I can now finalise my other bits and pieces on the site and get ready to launch. :-)

Mark

QUOTE=bananalive;2182257]Try this...

AdminCP -> Plugins & Products -> Add New Plugin

Hook Location
newthread_post_complete
Title
Move Thread created by easy forms
PHP Code
if ($fid == 43)
{
$forumid = $q['forumid'];
$dataman =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dataman->set_existing($threadinfo);
$dataman->setr('forumid', $forumid);
$dataman->pre_save();
if (count($dataman->errors) > 0)
{
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval(standard_error($errormessage));
}
else
{
$dataman->save();
$foruminfo = fetch_foruminfo($forumid);
$threadinfo = fetch_threadinfo($newpost['threadid']);
mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
}
}
Plugin is active
Yes


Change 43 to appropriate form id.[/QUOTE]

bananalive
04-09-2011, 10:44 AM
i figured out a nother problem with the grid-questions:
If i use a comma for a "item", i'll brake the line and put all the text after the comma as a new "radiobutton"

e.g.:
when the text for the "Grid Rows" (4 rows) is like:
ok
yes
maybe
no, but next year

the question will shown as 5 rows:
ok
yes
maybe
no
but next year

Fixed in attached file

bananalive
04-09-2011, 10:48 AM
Hello,
i get some problems with grid-questions!

If i create a grid-question, the output doesn't work, if a individuell output-style is used!
I'll attach three screenshots to show what i mean.

screen 1: Settings Output-Styling
screen 2: Preview of the grid )submitting would cause the same "array"-effect
screen 3: Preview with a standard outputstyling

vB-version: 4.1.2 Suite
php-version: 5.3.5
mysql: 5.1.51
easyform: 4.2.6
Use
{qn_1}: {q_1}

Za4a Tuner
04-09-2011, 10:56 AM
Hy Dom,
thanks for your support!

*install 4.2.7* ;)

VanHuek
04-10-2011, 09:36 AM
I am wondering are you able to integrate this into a thread?

VanHuek
04-10-2011, 11:47 AM
Also:

http://www.yoursite.com/forums/showthread.php?p=$newpost[postid]#post$newpost[postid]

Does not work for the auto direct when a new thread is made?

Or it would be http://cn-knights.org/forums/showthread.php?p=$newpost[postid]#post$newpost[postid]

Any help?

NPGamers.Net
04-10-2011, 02:30 PM
How do you change the name "Forms" in the NAV BAR ?

I know you would go to Plugin Manager in AdminCP and then process_template_complete and i see the line - $template_hook['navbar_quick_links_menu_pos4'] .= '<li><a href="misc.php?'.$session['sessionurl_q'].'do=forms">'.$vbphrase['forms'].'</a></li>';

But instead of using a <a href="">FORMS</a> some $vbphrase junk was used taking it past my ability to change the name of the nav bar button.
how can i convert it to a simple link / name or what?

Za4a Tuner
04-10-2011, 05:14 PM
How do you change the name "Forms" in the NAV BAR ? Go to your acp (languages) and Search for the phrase "forms" and change it to what you would have to

NPGamers.Net
04-11-2011, 12:57 AM
Go to your acp (languages) and Search for the phrase "forms" and change it to what you would have to

Worked Great thanks!

wolfey
04-11-2011, 10:54 AM
There is an error in the code (a missing underscore), fixed in attached product file, so you can have as many rows as you want for grids now.

Excellent..Thank you

1 last thing for the grid questions...how do I make it not output the Grid Row entry for one that isnt selected

bananalive
04-11-2011, 12:10 PM
Also:

http://www.yoursite.com/forums/showthread.php?p=$newpost[postid]#post$newpost[postid]

Does not work for the auto direct when a new thread is made?

Or it would be http://cn-knights.org/forums/showthread.php?p=$newpost[postid]#post$newpost[postid]

Any help?

Use your own site url, so...

http://cn-knights.org/showthread.php?p=$newpost[postid]#post$newpost[postid]

bananalive
04-11-2011, 12:14 PM
How do you change the name "Forms" in the NAV BAR ?

I know you would go to Plugin Manager in AdminCP and then process_template_complete and i see the line - $template_hook['navbar_quick_links_menu_pos4'] .= '<li><a href="misc.php?'.$session['sessionurl_q'].'do=forms">'.$vbphrase['forms'].'</a></li>';

But instead of using a <a href="">FORMS</a> some $vbphrase junk was used taking it past my ability to change the name of the nav bar button.
how can i convert it to a simple link / name or what?

$template_hook['navbar_quick_links_menu_pos4'] .= '<li><a href="misc.php?'.$session['sessionurl_q'].'do=forms">Your Text Here!!!</a></li>';

Or...

Go to your AdminCP (languages) and Search for the phrase "forms" and change it to what you would have to

bananalive
04-11-2011, 12:16 PM
I am wondering are you able to integrate this into a thread?

There are 3 possible ways I can think of...

1. You can link to a form.
http://www.your-site.com/forum/misc.php?do=form&fid=1

2. You can add the form at the top of your thread, with a vBulletin plugin.
Create plugin with hook showthread_complete if ($threadid == 112)
{
$poll .= '<iframe src="misc.php?do=form&fid=1&embed=1" style="width: 100%; height: 400px; margin: 10px;"></iframe>';
}

Change 112 for appropriate threadid.

3. You could redirect 'New Replies' to the form.

Create plugin with hook newreply_form_complete
if (in_array($threadinfo[threadid], array(1,2,3)))
{
header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ;
}

Change 1,2,3 for appropriate threadids.

bananalive
04-11-2011, 12:52 PM
Excellent..Thank you

1 last thing for the grid questions...how do I make it not output the Grid Row entry for one that isnt selected

1. Import attached product file

2. Create plugin with hook easy_forms_post_form_start and php code:
$hide_empty_grid = true;

bestword
04-11-2011, 04:29 PM
It's more better if it could support Unicode.

clubvr4
04-12-2011, 11:55 AM
Hello great hack!

Is it possible to make attachments mandatory?

Za4a Tuner
04-12-2011, 01:27 PM
Hello,
i have two question to this mod:

1.)
How can i link the "new thread"-button of a forum to a form?
In a forum with the ID = 46 the "new thread" should be replaced by a form with the ID = 4
If someone like to create a new thread, he should use the form nr. 4, wich "Post a new Thread" in the forum.

2.)
The forum above MUST have a prefix, but not always the same prefix => users should be able to use a prefix that fits to the form.
I created a custom question with the following php-code inside:
require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
if (!$form['forumid'])
{
$form['forumid'] = 46;
}
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';
The question will be shown on the form, but there are no prefixes displayed! How can i get it running?



Can anyone give me a help please?

kr Chris

Dozer826
04-14-2011, 06:59 AM
One of the best mods I have on our forum, I love how much you can customize everything.

Works perfect for people creating applications to join our gaming community

Thanks!

Welshy2008
04-14-2011, 07:14 AM
I am running vB4.0.7 currently and all forms have been taken from my 3.8.6 version.

I have just tried to add a new "e-mail to me" form, but I have several issues.

1. I have a prefilled username question (which doesn't align in the centre, like the others, but instead shows on the left under the question).

2. I enter an E-mail title and it doesn't save -I get diverted to http://www.myforum.com/#main-forums

3. The same thing happens when I select the tickbox for E-mail Form. (as number 2 above). Previously there was a box that appeared where I would enter the e-mail address that I want the form enailed to, this no longer shows.

4. Form Submit Limit Per User: doesn't save either

5. After Form is Submitted - Form submitted Message doesn't save.

Please can you help me with the above (or anyone else)? I desperately need your help in this, as I need to add these as soon as please.


I also have search engine friendly URLs and vBSEO installed.

Many Thanks.

zushiba
04-14-2011, 04:26 PM
What would be the easiest way to go about putting a character limit on text and textarea fields?

Za4a Tuner
04-15-2011, 01:05 PM
The limit ist set in the templates by the variable "maxlength=..."

kether1
04-15-2011, 02:43 PM
Dom,

Is there a way to group all of a member's threads created when submitting via this forms modification?

For example:

Lets say a form can be submitted multiple times by a member.

When visiting the forum section where the form is published, is it possible to have all of 'Member A's' threads grouped together (like a sub-forum) and all of Member B's responses grouped together?

Like this:

FORUM where form creates a new thread.

Member A
----first submitted response,
----second submitted response,
----Third...

Member B
----First submitted response,

Member C
----first submitted response,
----second submitted response,

SO, when a member clicks on this forum, they see a list of sections titled with the username. And if they click that name, they see all of the threads that person created by submitting the form.

I hope I explained this where it can be understood. :)

Thanks!
Kether