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-27-2010, 10:00 PM
Easily create forms with no HTML or PHP knowledge. Questions can be made compulsory and are checked before the form is submitted. Forms can be previewed. (You can create multiple forms)

Screenshots
There are two posts full of screenshots of this modification
https://vborg.vbsupport.ru/showpost.php?p=1968864&postcount=3
https://vborg.vbsupport.ru/showpost.php?p=1968865&postcount=4Installation
Download and then extract .zip archive
Upload the contents of upload folder to forum root
(Allow Overwrite "YES" for overwrite)
clientscript\easyforms.css -> \clientscript\
clientscript\easyforms.js -> \clientscript\
Import product file (product-easyforms v4.0.xml) in admincp
AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
Change usergroups permissions at:
AdminCP -> vBulletin Options -> Easy Form OptionsQuestion Types:
Single line text
Multi-line text
Multi-select checkboxes
Single-select radio buttons
Single Select Dropdown
Yes/No
Multi-line text field using vbeditor
Human verification question
Custom Question (can query database or do whatever you want using php and html)
Date (month/ day/ year fields)
Address
ScaleForm can Submit to:
new thread in forum
new post in thread
new pm to user
email address
save to databaseMore Features:
Form list categories (optional)
Preview form (can disable for individual forms)
Optional questions
Form Sections
Prefix support - you can choose which prefix you want thread to have
Different thread/pm title to form title with variables {username} {userid} and {q_1} (replacing 1 with appropriate question number)
Poll Options: Multiple choice, public vote, poll question, poll options, poll timeout
Regular expression match for single line text input field
Usergroup permissions per form
Forumid/threadid/username can be specified by input via {value=X} in dropdown, single line input or radio buttons
Multiple dropdown select for form usergroup permissions (still optional - leave blank to not use)
Option to show link to form list in navbar and quick links (separate options)
Import/ Export your forms as XML files - great for transferring forms across forums or creating backups
Specify bbcode for questions/ answers/ sections for the form's output
Form Hooks: (uses php code)
Before form submitted
Useful for: your own form validation, multiple form outputs, etc.
At form start
Useful for: banning userids/usergroups from form, setting minimum post count,etc.
Attachments allowed for posting new thread
Mass Copy Forms & their questions
Quiz ModeSupport this Modification
Click 'Marked as Installed'
Rate it 'Excellent'
Consider a donation

bananalive
01-28-2010, 11:57 AM
Version History
4.0.0 (28 January 2010)
- Port of v3.x version

4.0.1 (28 January 2010)
- Fixed some css styling issues
- Fixed custom output issue

4.0.3 (19 February 2010)
- Added question & description to vb editor fields and human verification field
- Fixed import form
- Added tabindex to all fields
- Added {bbuserinfo.X} for use in custom output and thread title
- Changed unanswered questions into bullet points
- Added option to change date field between day/month/year and month/day/year


4.0.4 (28 March 2010)
- Redone styling
- Fixed issue with date feld

4.0.6 (29 March 2010)
- Question reference added for use instead of question hashes
- Field minimum length added for single/multi text fields and vb editor
- Added all options avaliable for questions in 'Edit Question' in 'Add Question'

4.0.7 (2 April 2010)
- Fixed issue with checkboxes resulting in error at top of page relating to [path]/includes/functions_editor.php line 555
- Enabled use of list bbcode in Form Description
- Added check for options per rows is not zero
- Prevented maxlength being zero


4.0.8 (4 April 2010)
- Added bold, italic, underline, question, answer and other variables dropdowns for easier editing of the custom output
- Date Format in form output can now be fully customized using rules of date() (http://www.php.net/manual/en/function.date.php)

4.0.9 (29 April 2010)
- Can't remember :p

4.1.0 (11 May 2010)
- Can edit Form Results stored in database
- Can use bbcode for radio buttons/ check buttons
- Fixed form results poll for multi-language yes/no questions
- Some other minor tweaks

4.1.1 (16 May 2010)
- Fixed editing form result issue when 'Form Submit Limit' is reached
- Added additional permissions for editing form results and for deleting form results
- Added permission setting to allow all users the ability to view/edit/delete their result stored in database
- Added option of which question types NOT to display in Form Results Poll
- Enable bbcode parsing on Form Results Poll

4.1.6 (18 July 2010)
- Fixed editing form result issue when 'Form Submit Limit' is reached again
- Form Results as Poll bars are now sorted by %
- Added address field
- Allowed switching of questions between Dropdown and Radio buttons
- Other minor fixes

4.1.7 (29 August 2010)
- Change width of dropdown <select>
- Added hide label
- Other minor fixes

4.1.9
- 'vBulletin Options -> Easy Form Options' usergroup permissions have been made easier.
- New option of only allowing users to edit/delete their own forms.
- Collapsible Form Categories
- New buttons at top of Form for easy editing/ result viewing
- Other minor fixes

4.2.0 (19 January 2011)
- New question type - scale

4.2.1 (24 January 2011)
- New question type - grid (upto 4 columns; unlimited rows)

4.2.2 (25 January 2011)
- Fixed Form Results Table/Poll issue with Grid Questions
- Fixed Form Results displaying properly
- Added easy navigation buttons at top of pages

4.2.6 (15 March 2011)
- Styling for vB v4.1.2
- Quiz Mode
- JS Re-arrange options

bananalive
01-28-2010, 11:57 AM
Form Results as Table
111295

Creating a New Form
111296

Easy Forms Options
111297

Easy Forms link in Quick Links
111298

More screenshots in post below

bananalive
01-28-2010, 11:58 AM
Screenshots


Editing a Form
111284
111285
111286
111287

Editing a Question
111288

Forms List
111289
111290

Viewing a Form
111291

Forms Tab in navbar
111292

Form Results displayed like a Poll
111293

messengermatt
01-28-2010, 12:05 PM
reserved post for attachments

Screenshots would be an added bonus too

DjEddie
01-28-2010, 12:16 PM
is this able to import the xml of the forms from the vb 3 versions?

beduino
01-28-2010, 12:20 PM
hello,
Screenshots would be an added bonus too
maybe see in this topic helps
https://vborg.vbsupport.ru/showthread.php?t=201097

all the best

Sarcoth
01-28-2010, 12:20 PM
Welcome back Banalalive.

bananalive
01-28-2010, 12:21 PM
is this able to import the xml of the forms from the vb 3 versions?

You can upgrade this version over the old one, not losing any of your form data or results.

It does still have the import/export form facility

bananalive
01-28-2010, 12:21 PM
Screenshots would be an added bonus too

Adding them at the moment :)

messengermatt
01-28-2010, 12:21 PM
hello,

maybe see in this topic helps
https://vborg.vbsupport.ru/showthread.php?t=201097

all the best

But 3 isnt the same as 4 i was thinking more so images related to this version so you can see that it works.

Welshy2008
01-28-2010, 12:31 PM
Banana - You are TOP, Top Man. Thank You.

steven72555
01-28-2010, 12:41 PM
I can't even get to an edit form page..
ANY suggestions?

we_are_borg
01-28-2010, 12:42 PM
Thank you Bananalive for this addon.

I think i found a bug the Description: is not passing vb code.

DaPro
01-28-2010, 12:51 PM
You have answered my prayers!

Thank you so much man for this, vB4 upgrade ahoy!

dmknights
01-28-2010, 12:51 PM
this looks good, but i think i'll wait til it leaves beta

bananalive
01-28-2010, 01:09 PM
Thank you Bananalive for this addon.

I think i found a bug the Description: is not passing vb code.

Cheers, will change that for next version.

Also attached if you want it now.

bananalive
01-28-2010, 01:10 PM
I can't even get to an edit form page..
ANY suggestions?

Have you check your usergroup permissions? (set in vboptions -> Easy Form Options)

Are you seeing the link on forms list page?

Veer
01-28-2010, 01:16 PM
Welcome back bananalive, and thanks so much for the vb4 version.

Excellent, Installed and Nominated.

Sarcoth
01-28-2010, 02:04 PM
There is a problem with editing some of the questions. It is strange because when I tried to edit the 2nd question on the form, it went to a new page and no problem. When I tried to edit the 3rd question (textfield), it presented a popup that was unworkable. I decided to try the 4th question (dropdown) as well, and it gave me the same problem.

Attaching a screenshot.

Trek
01-28-2010, 02:33 PM
Glad to see you back Bananalive! You just made my life much easier, if only it was 2 weeks or so ago. ;)

Thanks again!

mmhmm
01-28-2010, 02:42 PM
thank you SOOOOOOOOOO much. i was addicted to this mod on 3.84

akvaryumforum
01-28-2010, 03:06 PM
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: formoutput in [path]/includes/functions.php on line 3893


I use an old form and it send the message but it shows this error. And message had this codes in it.

<!-- BEGIN TEMPLATE: formoutput -->
<!-- END TEMPLATE: formoutput -->

Scan Cape Cod
01-28-2010, 03:26 PM
First off, thanks for porting this to 4.0.

I created a new form and went with all of the default settings. It worked fine, posted to where I wanted it to go, sent me the thanks for posting note, and sent me to the forum I indicated in the setup.

However, when creating custom form output, the form still posts to the proper forum but I see the following errors when submitting:

At the top of the page: Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: formoutput in [path]/includes/functions.php on line 3893

In the "vBulletin Message" section: Unable to add cookies, header already sent.
File: /home/scott2/public_html/forums/includes/class_core.php
Line: 4501

I do not get the thank you for posting message I created nor am I forwarded to the forum selected, but the form does post fine to the forum and looks as I want it to.

Thanks again.

Veer
01-28-2010, 03:55 PM
There is a problem with editing some of the questions. It is strange because when I tried to edit the 2nd question on the form, it went to a new page and no problem. When I tried to edit the 3rd question (textfield), it presented a popup that was unworkable. I decided to try the 4th question (dropdown) as well, and it gave me the same problem.

Attaching a screenshot.
Same problem here.

tafreeh
01-28-2010, 03:57 PM
since, the description is not enough to fully understand its functionality.
Can you tell me if I can use this hack as "Apply To be Moderator Application"

where i can setup some questions and people answer them and then my and my staff review it.. ?

Can it does that?

Thanks

bananalive
01-28-2010, 04:11 PM
Try attached product file, should fix issues with custom output.

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: formoutput in [path]/includes/functions.php on line 3893


I use an old form and it send the message but it shows this error. And message had this codes in it.

<!-- BEGIN TEMPLATE: formoutput -->
<!-- END TEMPLATE: formoutput -->

First off, thanks for porting this to 4.0.

I created a new form and went with all of the default settings. It worked fine, posted to where I wanted it to go, sent me the thanks for posting note, and sent me to the forum I indicated in the setup.

However, when creating custom form output, the form still posts to the proper forum but I see the following errors when submitting:

At the top of the page: Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: formoutput in [path]/includes/functions.php on line 3893

In the "vBulletin Message" section: Unable to add cookies, header already sent.
File: /home/scott2/public_html/forums/includes/class_core.php
Line: 4501

I do not get the thank you for posting message I created nor am I forwarded to the forum selected, but the form does post fine to the forum and looks as I want it to.

Thanks again.

bananalive
01-28-2010, 04:13 PM
since, the description is not enough to fully understand its functionality.
Can you tell me if I can use this hack as "Apply To be Moderator Application"

where i can setup some questions and people answer them and then my and my staff review it.. ?

Can it does that?

Thanks

Yes

The full description is at: https://vborg.vbsupport.ru/showthread.php?t=201097

I'll add the description to this thread when I've got a bit of time.

bananalive
01-28-2010, 04:15 PM
There is a problem with editing some of the questions. It is strange because when I tried to edit the 2nd question on the form, it went to a new page and no problem. When I tried to edit the 3rd question (textfield), it presented a popup that was unworkable. I decided to try the 4th question (dropdown) as well, and it gave me the same problem.

Attaching a screenshot.
Same problem here.
What browser are you using?

Have you uploaded (allowing overwrite) upload/clientscript/easyforms.js into the /clientscript/ folder?

Scan Cape Cod
01-28-2010, 04:22 PM
Thank you sir, working fine now. Much appreciated, marked as installed, and nominated! I used the other forms hack prior to this version, yours is far better.

Sarcoth
01-28-2010, 04:32 PM
What browser are you using?

Have you uploaded (allowing overwrite) upload/clientscript/easyforms.js into the /clientscript/ folder?

IE7 is my browser. I have uploaded both the files to the clientscript folder.

Veer
01-28-2010, 04:36 PM
What browser are you using?

Have you uploaded (allowing overwrite) upload/clientscript/easyforms.js into the /clientscript/ folder?
Using latest Firefox, also tested with IE 7.

Anyway, updated to Mod Version: 4.0.1 and it solves the problem, the edit question popup editable now in Firefox.

DaPro
01-28-2010, 04:50 PM
Question: Anyway we can replace the new thread link with a link to the form for specific forums? Would be nice to have so that we make sure users submit the form instead of making a post on mistake.

Sarcoth
01-28-2010, 04:53 PM
No luck here in IE7 after the upgrade, but I did test it with Firefox and there isn't a problem there.

Sarcoth
01-28-2010, 05:07 PM
Small suggestion. When editing and adding questions, can you put in a #tag to put us back down to the Edit or Add questions part of the editform page when saving? Very small suggestion but it can get tedious if you have a long application form. :)

bananalive
01-28-2010, 05:16 PM
Question: Anyway we can replace the new thread link with a link to the form for specific forums? Would be nice to have so that we make sure users submit the form instead of making a post on mistake.

How can I Re-direct/ force users to submit form when they click new thread?
Create plugin newthread_start
if (in_array($forumid, array(1,2,3)))
{
header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ;
} Change 1,2,3 for appropriate forumids.

bananalive
01-28-2010, 05:17 PM
No luck here in IE7 after the upgrade, but I did test it with Firefox and there isn't a problem there.

Try clearing your ie7 cache, it might be that your browser has cached the old javascript code and so it isn't loading the updated javascript file.

bananalive
01-28-2010, 05:21 PM
Small suggestion. When editing and adding questions, can you put in a #tag to put us back down to the Edit or Add questions part of the editform page when saving? Very small suggestion but it can get tedious if you have a long application form. :)
It should already do that. I've added #qs which the page should go to after: adding, question, editing question, deleting question, changing display order of questions.

Sarcoth
01-28-2010, 05:27 PM
Try clearing your ie7 cache, it might be that your browser has cached the old javascript code and so it isn't loading the updated javascript file.

Still no luck on ie7. This is only my work pc so no biggie. I'll just use firefox for this.

It should already do that. I've added #qs which the page should go to after: adding, question, editing question, deleting question, changing display order of questions.

It doesn't appear to be working for me on ie7 or firefox. It always goes to the top of the page here.

akvaryumforum
01-28-2010, 05:28 PM
Now the error gone but it doesn't send the answer, sends just the questions.

In custom form output we use $q[questionid], is it change with the new version?

Sarcoth
01-28-2010, 05:36 PM
One more issue. The output for the sections appears to be off a bit. See attachment. I can fix this myself, but I thought you'd like to know.

Which template controls the output? I'd like to change the color of the formtitle since I'm using a dark style. I also may want to make some other changes.

bananalive
01-28-2010, 05:38 PM
Now the error gone but it doesn't send the answer, sends just the questions.

In custom form output we use $q[questionid], is it change with the new version?

It's back to using {q_4} and {qn_4}

where {q_4} is the question answer for question hash 4
and {qn_4} is the actual question of question hash 4

(I'll add that into the description for custom output for next version.)

akvaryumforum
01-28-2010, 05:52 PM
Ok. {q_4} works know. Thanks

Alfa1
01-28-2010, 06:04 PM
This would be very useful in the CMS.
Could you please consider making a CMS content type out of this?

bananalive
01-28-2010, 06:46 PM
One more issue. The output for the sections appears to be off a bit. See attachment. I can fix this myself, but I thought you'd like to know.

Which template controls the output? I'd like to change the color of the formtitle since I'm using a dark style. I also may want to make some other changes.

Alter the Section BB code
(Edit Form -> Form BB code and Custom Output -> Section BB code)
Accepts any bbcode

Add \r\n to the end of the right hand box to add break (new line) after the section

Sarcoth
01-28-2010, 07:12 PM
Alter the Section BB code
(Edit Form -> Form BB code and Custom Output -> Section BB code)
Accepts any bbcode

Add \r\n to the end of the right hand box to add break (new line) after the section

Thank you. Is there a way I could put {username} in the subject line? I have an enlistment application form that I'd like to do that for.

Bananalive, this is my new favorite mod. It has so much use. Voted MotM.

bananalive
01-28-2010, 07:22 PM
Thank you. Is there a way I could put {username} in the subject line? I have an enlistment application form that I'd like to do that for.

Bananalive, this is my new favorite mod. It has so much use. Voted MotM.

Yep, you should be able to use {username} in Thread/ PM/ Email Title:
(inputs the username of the user submitting form)

valendono
01-28-2010, 07:26 PM
wow ... !! besttttttttttttt.. waiting for loooooooooong time.. thank you...

Bram H
01-28-2010, 07:41 PM
Before i am going to download this mod and give a try i want to say its great to have you back with us bananalive!!!

Update: installed, works awesome again! Nominated for MOTM (what else :))

DjEddie
01-28-2010, 11:02 PM
having a problem with styling .. when I click on the main form page .. see screenshot

and also when I'm trying to import the xml file I saved from my vb3 version I get the error:

vBulletin Message
Error, no file to import.

Any suggestions?

Thanks :)

AzzidReign
01-28-2010, 11:15 PM
Can't wait to install this when I update :) Thanks

woffie
01-28-2010, 11:24 PM
Outstanding. I was hoping this was going to be converted!

GrossKopf
01-29-2010, 11:22 AM
Still no luck on ie7. This is only my work pc so no biggie. I'll just use firefox for this.

It doesn't appear to be working for me on ie7 or firefox. It always goes to the top of the page here.

Here at work, I'm forced to use IE7 as well and the output when editing a question is the same as yours. Can't test it on Firefox until I get home.

ahmedipa
01-29-2010, 01:59 PM
Thank you Bananalive for this addon.

I think i found a bug and that is searching I hope there is advance search

by feild

when I want to search about information by writing name in feild name .
then search to get the result .
when I want to search about information by select yes in feild yes selection
then search to get the result .

better than looking to the results .

the second thing I think to add arabic date for arabic people

and english date for english people.

and thank you so much for this

durdan1
01-29-2010, 02:00 PM
This is the best mod ever.

JamesGunner
01-29-2010, 04:33 PM
Thanks a lot banana live. Everyone tried to contact you regarding this...Oh and I already created a new thread link changer, Im not sure if you could point that out in the first post bananalive, since a lot of people seem to need it. Heres a link:

https://vborg.vbsupport.ru/showthread.php?t=231363

Sarcoth
01-29-2010, 07:09 PM
Yep, you should be able to use {username} in Thread/ PM/ Email Title:
(inputs the username of the user submitting form)

I apologize for not noticing that on my own. Apparently you have thought of everything!

steven72555
01-29-2010, 07:20 PM
I am using beta version of vBadvanced.
When vbadvanced is turned, I am not able to use create a new form.

JamesGunner
01-29-2010, 08:37 PM
Just found a styling issue when adding a description (see attachment)

Hornstar
01-29-2010, 09:19 PM
Thanks. This is used well in my 3.8 site, so was glad to see one for vb 4. Tagged for when I update.

bandare
01-29-2010, 10:26 PM
great piece of work. No idea how to use most of it but brilliant :)

mmhmm
01-30-2010, 01:39 AM
updated the prodcut. thank you again. this mod is one of the most used feature on my board. we process a lot of orders and this is a lifesaver. thank you thank you thank you again.

nominated for MOTM. <3 <3

Firas S.
01-30-2010, 06:56 AM
Hello Bananalive,
I tried to add a custom question but I got a display error, i.e. what ever is written in the custom question will be displayed in the very top of the page, before the logo.
Actually, what am I trying to do is to add a dependent drop down list that is for the advertisement request period. For example, the first drop down would be the Period [Weeks, Months] and the second list would be the Length [1, 2, 3, 4] where the second one is dependent on the first one.


However, I also tried to write:
echo "hello";
But I produced the same problem.

Is there any way to fix this?
Thanks mate

bananalive
01-30-2010, 12:32 PM
Use something like:
$answer = 'test';

These following examples should give you a better idea of how to use custom question:




How can I have a question which is the user's username?

1. Create 'Custom' question
2. Use following PHP Code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[username] . '" />';


How can I have a question which is the current date?

1. Create 'Custom' question
2. Use following PHP Code:
$q[$formbit[id]] = vbdate($vbulletin->options['dateformat'], TIMENOW);
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $q[$formbit[id]] . '" />';


How can I have a question which gets the Timezone from user's profile?

1. Create 'Custom' question
2. Use following php Code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="GMT+' . $vbulletin->userinfo[timezoneoffset] . '" />';


How can I have a question which gets the Birthday from user's profile?

1. Create 'Custom' question
2. Use following php Code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[birthday] . '" />';


How can I have a question which uses a query?
The following example gets a list of threads in the forumid 10.

1. Create 'Custom' question
2. Use following 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 = '10'
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>';

Hello Bananalive,
I tried to add a custom question but I got a display error, i.e. what ever is written in the custom question will be displayed in the very top of the page, before the logo.
Actually, what am I trying to do is to add a dependent drop down list that is for the advertisement request period. For example, the first drop down would be the Period [Weeks, Months] and the second list would be the Length [1, 2, 3, 4] where the second one is dependent on the first one.


However, I also tried to write:
echo "hello";
But I produced the same problem.

Is there any way to fix this?
Thanks mate

bananalive
01-30-2010, 12:42 PM
Just found a styling issue when adding a description (see attachment)

Try attached product

bananalive
01-30-2010, 12:45 PM
For those having problems, editing questions, here is a quick fix until i find solution:


Find and delete in template form_formbit
onclick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'misc.php?do=editq&amp;id={vb:var formbit.id}&amp;display=simple', 'Editing: {vb:var formbit.question}', '{vb:var formbit.type}', 'width=650px,height=400px,left=300px,top=100px,res ize=1,scrolling=1'); return false;"

This will remove the javascript popup and you should be able to edit questions on a seperate page rather than a js popup.

DjEddie
01-30-2010, 01:07 PM
having a problem with styling .. when I click on the main form page .. see screenshot

and also when I'm trying to import the xml file I saved from my vb3 version I get the error:

vBulletin Message
Error, no file to import.

Any suggestions?

Thanks :)

Hey bananalive,

Any solution to the above problems?

Thanks :)


Post 50 https://vborg.vbsupport.ru/showpost.php?p=1969377&postcount=50 for screen shot

imagirlgeek
01-30-2010, 06:14 PM
Glad you are back!

I've found that using checkboxes or radiobuttons with the 'Options per row' set to 2, isn't actually putting the 2 options on a row. It's still displaying each option on it's own row. Just letting you know for the Beta.

b4ne
01-30-2010, 06:46 PM
works perfect man excellent - thanks a lot

nightbloom
01-30-2010, 10:05 PM
Thank you so much! This is one of the most essential mods for my gaming clan forum! *love*

namthanhtran
01-30-2010, 10:55 PM
I got the error as below and the form doesn't appear correctly

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

howard007
01-30-2010, 10:57 PM
It would be great if a help file or some sort of docs advise what each function/feature does and how to use it? I installed it and have no clue how to implement it on my board. It really looks great though! Please help with docs or something.

Thanks

bananalive
01-31-2010, 02:13 PM
Glad you are back!

I've found that using checkboxes or radiobuttons with the 'Options per row' set to 2, isn't actually putting the 2 options on a row. It's still displaying each option on it's own row. Just letting you know for the Beta.

Fixed in attached file

bananalive
01-31-2010, 02:14 PM
I got the error as below and the form doesn't appear correctly

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

Do you have any other products installed on your site?

Have you got anything in the form hooks or any custom questions?

bananalive
01-31-2010, 02:16 PM
It would be great if a help file or some sort of docs advise what each function/feature does and how to use it? I installed it and have no clue how to implement it on my board. It really looks great though! Please help with docs or something.

Thanks

Hopefully it should be fairly self explainatory


decide what you need a form for, e.g. applications, survey, etc.
create the form
add an action, ie post a new thread in forum 1
add questions according to what you want to know about the user
then tell people to submit form

ahmedipa
01-31-2010, 04:05 PM
mr bananalive

another comment that if the administor want to edit the data
the old version not included

it is good to be included in order edit the data any time .

Cleveregg
01-31-2010, 07:47 PM
Hi bananalive

I think this mod is fantastic and it just what I have been looking for in order to create a 'contact us' form.

However, like the poster above I am struggling on how to hide the creating, editing, etc of forms from all other people except Administrators.. any clues ?

Cheers

Trek
01-31-2010, 07:56 PM
Hi bananalive

I think this mod is fantastic and it just what I have been looking for in order to create a 'contact us' form.

However, like the poster above I am struggling on how to hide the creating, editing, etc of forms from all other people except Administrators.. any clues ?

Cheers

Go into your Options section for vBulletin in the AdminCP. There's a section there for easy forms where you can setup what usergroups you want to be able to access what.

Cleveregg
01-31-2010, 08:08 PM
Hi Trek

Thanks for your quick answer - I've tried that - with all sorts of combinations and nothing seems to lock out the edit/create options - I'll keep trying

Thanks

howard007
01-31-2010, 08:46 PM
Hopefully it should be fairly self explainatory


decide what you need a form for, e.g. applications, survey, etc.
create the form
add an action, ie post a new thread in forum 1
add questions according to what you want to know about the user
then tell people to submit form


Not really. I must be slow... :)

The problem is there is so much to learn and read with 4.0 suite. It would really be helpful for a small doc file explaining each feature.

valendono
02-01-2010, 03:24 AM
on description before we can use bbcode, but after upgrade to 4.0.1beta form, there way we can use bbcode on description ? Example List Number bbcode.

EricPSF
02-01-2010, 04:36 AM
Thanks! It is really a good & handy mod. Easy to use and saves me a lot of time in creating forms.

TimberFloorAu
02-01-2010, 05:39 AM
*tagged*

Cleveregg
02-01-2010, 09:12 AM
..Or am I missing the point of this mod - apologies if I am...

I'm trying to create a 'contact us' form.
ie If a 'non' admin wants to email, there is a contact form with a prescribed layout with mandatory fields for them to complete.

I don't want anyone (except me) to be able to create or edit forms...
Also, if someone clicks on the 'Forms' tab (shown in pics) then I just want them to be presented with the 'Contact Us' form...

I have attached a couple of pics - of the settings I have selected for Easyforms - and also the resulting look when I'm signed in as an 'admin'
(If I don't sign in as an admin - I see the 'no forms' message).

Hopefully I am doing something pretty basic wrong - or maybe I'm jumping the gun 'cos I know this is still 'beta' - If someone can let me know I'd appreciate it. :)

Cheers

ps ..still think this is a great mod :)

bananalive
02-01-2010, 12:31 PM
Give registered users permission to 'View Forms List'

..Or am I missing the point of this mod - apologies if I am...

I'm trying to create a 'contact us' form.
ie If a 'non' admin wants to email, there is a contact form with a prescribed layout with mandatory fields for them to complete.

I don't want anyone (except me) to be able to create or edit forms...
Also, if someone clicks on the 'Forms' tab (shown in pics) then I just want them to be presented with the 'Contact Us' form...

I have attached a couple of pics - of the settings I have selected for Easyforms - and also the resulting look when I'm signed in as an 'admin'
(If I don't sign in as an admin - I see the 'no forms' message).

Hopefully I am doing something pretty basic wrong - or maybe I'm jumping the gun 'cos I know this is still 'beta' - If someone can let me know I'd appreciate it. :)

Cheers

ps ..still think this is a great mod :)

bananalive
02-01-2010, 12:34 PM
on description before we can use bbcode, but after upgrade to 4.0.1beta form, there way we can use bbcode on description ? Example List Number bbcode.
You should be able to use bbcode in Form Description as of version 4.0.1

bananalive
02-01-2010, 12:42 PM
Not really. I must be slow... :)

The problem is there is so much to learn and read with 4.0 suite. It would really be helpful for a small doc file explaining each feature.

Here is part of the old help file, it may be useful for you.

Editing Form
Are all fields compulsory?
No, only the questions proceeded by a * are compulsory.
What does each field do?

Title: This is the title at the top of the page when viewing the form. BB code allowed.
Description: (optional) This is displayed at the top of the form. It can be used to explain the form's purpose, give guidance, etc... BB code allowed.
Display Order: This controls the order the form is displayed in the form list. The higher the number (in comparison to other forms) the lower down the form list the form will be displayed.
Usergroups: (optional) This controls the usergroups allowed to view the form - this does not override permissions to view forms. Blank is all usergroups allowed.
Form Submit Message: (optional) This is the message display once the form has been submitted succesfully. If blank default will be used. This is also the redirect message (if checked)
Thread/ PM/ Email Title: (optional) This allowed you to use a different title for the thread/ pm/ email being created than the form title. If left blank then the Thread/ PM title will be the same as the form title. You can use the following macroses in the title: {username}, {userid} and {q_*}.
Category: (optional) All forms with the eaxct same category name will be grouped together in the form list under that name.
Allow attachments: (optional) Only avaliable for form creating new thread. Checked/ticked = yes, blank = no. Follows user's attachment rules.
Post a Poll: (optional) Creates a poll with the thread.
Allow multiple choice: (optional) Allows users to select more than one option when voting. Checked/ticked = yes, blank = no.
Make votes public: (optional) Usernames will be shown next to each poll option. Checked/ticked = yes, blank = no.
Poll Question: (optional) The question above the poll. If left blank the thread title will be used.
Poll Options: These are the choices in the poll. Separate each option with a new-line (carriage return).
Custom Form Output: (optional) You can create your own layout to the thread/ pm/ post/ email the form created. Allowed: BB code, $q[1] (replace 1 with the correct question #), $qn[1], $threadtitle, $form[title], {username}, $thisuser (replace username with any user field). Leave blank to use default layout.
Question BBcode: (optional) Customise how the form's questions look in the thread/ pm/ post created by the form. Opening BB code in the box on the left and closing BB code in the box on the right.
Answer BBcode: (optional) Customise how the form's answers look in the thread/ pm/ post created by the form. Opening BB code in the box on the left and closing BB code in the box on the right.
Section BBcode: (optional) Customise how the form's sections look in the post created by the form. Opening BB code in the box on the left and closing BB code in the box on the right.
Form BBcode: (optional) The code in the left box goes after the form title and the code in the box on the right goes at the end of the post.
Form Hook: (optional) This allows php code to be executed before the form is submitted. You can run your own validation on fields, for example checking the user clicks 'Yes' on a yes/no question.



[U]Macroses

What are macroses?
Macroses are variables used in easy forms for replacement with their value.
What macroses are there?

{username} username of the user submitting the form
{userid} userid of the user submitting the form
{formtitle} form title of the form being submitted
{threadtitle} thread/pm/email title of the form being submitted (if it is blank it be the same as the form title)
{q_*} replace the question id with the *, for example to show question 1's output you would use {q_1}
{qn_*} replace the question id with the *, for example to show question 1's question text you would use {qn_1}

chesterano
02-01-2010, 01:47 PM
Is there a way that we can integrate with [Ajax] Check for similar thread before posting a new one (https://vborg.vbsupport.ru/showthread.php?p=1914359#post1914359)

chsmith700
02-01-2010, 02:10 PM
bananalive,

I am trying to get this to email to a form question. We have a drop down with email address, I need the form to be emailed to the selection on that drop down. Can you please help?

Sarcoth
02-01-2010, 02:51 PM
How can I have a question which uses a query?
The following example gets a list of threads in the forumid 10.

1. Create 'Custom' question
2. Use following 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 = '10'
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>';

Alright, now that is impressive! Can you tell me the code I would need to do a query on the profilefields (i.e. field8)? I'd like to pull that field and then just have it added to the form without the user having to enter it again.

bananalive
02-01-2010, 03:28 PM
bananalive,

I am trying to get this to email to a form question. We have a drop down with email address, I need the form to be emailed to the selection on that drop down. Can you please help?

Add to bottom of Form Hook: Before Submit:
(changing 5 to the question hash of the email address question)

$form[email] = $qo[5];

bananalive
02-01-2010, 03:33 PM
Alright, now that is impressive! Can you tell me the code I would need to do a query on the profilefields (i.e. field8)? I'd like to pull that field and then just have it added to the form without the user having to enter it again.

No need for a query for that, it is already cached in vBulletin userinfo

1. Create 'Custom' question
2. Use following php Code:

$answer = '<input class="textbox" type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[field8] . '" />';

chsmith700
02-01-2010, 03:38 PM
Thanks a bunch!!!

adamdavidconn
02-01-2010, 04:24 PM
hi.
I am wondering, how can you make a user be changed to a different usergroup, or added to a secondry one after completion and submission of the form.

many thanks
adam

bananalive
02-01-2010, 04:41 PM
hi.
I am wondering, how can you make a user be changed to a different usergroup, or added to a secondry one after completion and submission of the form.

many thanks
adam

This code worked with vB v3.x it should work with vB v4.x but I haven't tested it with vb v4.x.

Form Hook: Before Submit

PHP Code:
if ($complete)
{
$userinfo = $vbulletin->userinfo;
$user['usergroupid'] = 4;
if (empty($user['usergroupid']))
{
$user['usergroupid'] = 2;
}

$getusergroupid = iif($userinfo['displaygroupid'] != $userinfo['usergroupid'], $userinfo['displaygroupid'], $user['usergroupid']);

$user_usergroup =& $vbulletin->usergroupcache["$user[usergroupid]"];
$display_usergroup =& $vbulletin->usergroupcache["$getusergroupid"];


$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('usergroupid', $user['usergroupid']);
$userdata->set_usertitle(
$user['customtitle'] ? $user['usertitle'] : '',
false,
$display_usergroup,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true : false,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true : false
);

require_once(DIR . '/includes/functions_ranks.php');
if ($user['userid'] == $vbulletin->userinfo['userid'])
{
$vbulletin->userinfo['usergroupid'] = $user['usergroupid'];
$vbulletin->userinfo['displaygroupid'] = $user['usergroupid'];
}

$userdata->save();

}

adamdavidconn
02-01-2010, 05:29 PM
ok, thanks. So I guess the code I need to edit is
if ($complete)
{
$userinfo = $vbulletin->userinfo;
$user['usergroupid'] = 4;
if (empty($user['usergroupid']))
{
$user['usergroupid'] = 2;
}

Could you explain how I would configure this. The numbers at the end reference the usergroup id, but what do the 2 variables corrolate to?

EDIT: I worked out that $user['usergroupid'] = 4; moves a user to a new usergroup. However, I am unsure how to add a additional usergroup, and not make them change their primary

Sarcoth
02-01-2010, 05:39 PM
Wow, that is some really cool stuff Banana. Each time I think this mod can do everything, it does something else. Very cool.

I did find another minor issue, which I wouldn't even consider an issue. I wanted to add a link to one of the questions so a user could read a "Code of Conduct" for the forums. They have to answer yes after it is read. If I do the question in html, it looks fine on the editform page, but not on the actual form. If I do the question in bbcode, it looks fine on the actual form, but not on the editform page.

The previous question about the usergroupid is also a very cool feature. Does that change their primary usergroup or does it add them to this as an additional group? Also does this change their current title to that secondary group at the same time?

Here's an idea. Can I set up a question that when someone clicks on the link in the question, it gives a pop-up box with the information they have to read? That would be nice. No worries though, you have enough on your plate right now.

valendono
02-01-2010, 07:49 PM
Hi Banana,

Yea I knew, its only work with bold and size bbcode only.. I attach the screenshoot.. I cant use[list] or [img] on the description..

Cleveregg
02-01-2010, 09:07 PM
Give registered users permission to 'View Forms List'

..sorry - still doesn't work for me - I still get the edit|delete|copy|export...line & the create form underneath as per my 2nd pic

thanks anyway

*** Just downloaded and installed 4.02 - seems to be working ok now - just styling to suit - great job bananalive !! ***

Martyh
02-02-2010, 01:26 AM
Hi BL, and thanks for continuing your work on this mod, it's a great one.

I am wondering if I can have the multi-line box that appears for the user to write in, default to a larger size automatically , please let me know if that is possible. I am figuring I need to click "increase" about three times to get to the size I would want. So I would like it to just default to that for the user.

Thanks

Mark

TheSupportForum
02-02-2010, 06:06 AM
BUG: when using Field using vBulletin editor

there is no title above the box so users dont know what the question is

would like to see:

Field that already holds there username
fields that holds the users IP Address - useful to stop spammers

s810car
02-02-2010, 06:35 AM
Thank you SOO much for porting this, I was dreading having to port my forms over manually :D As soon as I am able to get my PayPal account set (economy has definitely hurt the funds I do get from my forum), donation heading your way!

You should seriously consider adding a lot more features to assist programming the forms for people with less php/mySQL knowledge and make it a commercial mod, it definitely has the potential. I have used this mod for all sorts of functional code for my site and it has really became a major part of the backbone to my site's system. Thanks again! Installing and nominating MOTM :D

imagirlgeek
02-02-2010, 02:35 PM
BUG: when using Field using vBulletin editor

there is no title above the box so users dont know what the question is



What I did for this was added a 'Section' field right above it. And then used Bold tags on the Section text. It worked really well.

imagirlgeek
02-02-2010, 02:39 PM
Hi BL, and thanks for continuing your work on this mod, it's a great one.

I am wondering if I can have the multi-line box that appears for the user to write in, default to a larger size automatically , please let me know if that is possible. I am figuring I need to click "increase" about three times to get to the size I would want. So I would like it to just default to that for the user.

Thanks

Mark

You can do this now. Just click edit on your Multi-line box. You'll see options to increase the 'Text area rows' and 'Text area columns'.

bananalive
02-02-2010, 09:13 PM
BUG: when using Field using vBulletin editor

there is no title above the box so users dont know what the question is

would like to see:

Field that already holds there username
fields that holds the users IP Address - useful to stop spammers

Fixed vBulletin editor issue with attached file.

Username is already held in hidden field.

IP address could be added as hidden field (there are 3 hiddenfields added into template and a template hook) or add it to the end of the form output

Add to bottom of form hook: before submit
$ip = $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" . $form[pstq];
$formoutput .= $form['prea'] . $ip . $form[psta];

bananalive
02-02-2010, 09:15 PM
Hi Banana,

Yea I knew, its only work with bold and size bbcode only.. I attach the screenshoot.. I cant use [list] or [img] on the description..

You can enable [img]:
AdminCP -> Settings-> vBulletin Options -> BB Code Settings -> Allow [IMG] Code in Non Forum Specific Areas -> Yes

Otherwise for the list you will need another modification to enable list bbcode in non-forum areas.

bananalive
02-02-2010, 09:18 PM
If I do the question in html, it looks fine on the editform page, but not on the actual form. If I do the question in bbcode, it looks fine on the actual form, but not on the editform page.
Corrected in attached product file. BB Code in the question parses on both pages properly now

bananalive
02-02-2010, 09:38 PM
ok, thanks. So I guess the code I need to edit is
if ($complete)
{
$userinfo = $vbulletin->userinfo;
$user['usergroupid'] = 4;
if (empty($user['usergroupid']))
{
$user['usergroupid'] = 2;
} Could you explain how I would configure this. The numbers at the end reference the usergroup id, but what do the 2 variables corrolate to?

EDIT: I worked out that $user['usergroupid'] = 4; moves a user to a new usergroup. However, I am unsure how to add a additional usergroup, and not make them change their primary

Yes that would only change the primary usergroup, use the following code to add a secondary usergroup.

You will need to change $a_userid to the desired userid of the user you want to change the usergroup of.

Also you will need to change the two occurances of 4 to the desired additional usergroup's usergroupid.

Form Hook: Before Submit
if ($complete)
{
/*alter this userid*/
$a_userid = 2;
$userinfo = fetch_userinfo($a_userid);
if (empty($user['membergroupids']))
{
/*alter this number below*/
$user['membergroupids'] = '4';
} else {
/*alter this number below, but leave the comma*/
$user['membergroupids'] .= ',4';
}
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->save();
}

Scooterpig
02-03-2010, 07:32 AM
I have this installed and an excellent product and exactly what I need, but for the life of me I can't get it to do what I want it to.

I want it so that the form is available to be viewed and completed by members, but those members not having permission to edit, add, update, install .xml etc, like admins can do. I've tried all different settings in options and I either get it that I can see all options as a member or none at all including not being able to see the form.

Can anyone please help if this is possible and if so what is the right settings?

Thank you..:)

noknowledgenoho
02-03-2010, 09:29 AM
Ok, so I am not at all technical.

My problem is that once I've gone through the process of creating a form I get an error message tat the top of the screen which says:

Parse error: syntax error, unexpected T_STRING in /var/websites/sunnylab/www/community/misc.php(89) : eval()'d code(830) : eval()'d code on line 1

There are styling issues with my form but it actually does work. So ca anyone tell me what this message means and what I can do about it?

Many thanks for any help received.

bananalive
02-03-2010, 03:16 PM
I have this installed and an excellent product and exactly what I need, but for the life of me I can't get it to do what I want it to.

I want it so that the form is available to be viewed and completed by members, but those members not having permission to edit, add, update, install .xml etc, like admins can do. I've tried all different settings in options and I either get it that I can see all options as a member or none at all including not being able to see the form.

Can anyone please help if this is possible and if so what is the right settings?

Thank you..:)

Can View Form List: Everyone

Can Edit Forms: Administrators

Can View Forms: Everyone

When selecting usergroups, it is the highlighted ones which you will be enabling the feature for. use ctrl to select more than one usergroup.

bananalive
02-03-2010, 03:18 PM
Ok, so I am not at all technical.

My problem is that once I've gone through the process of creating a form I get an error message tat the top of the screen which says:

Parse error: syntax error, unexpected T_STRING in /var/websites/sunnylab/www/community/misc.php(89) : eval()'d code(830) : eval()'d code on line 1

There are styling issues with my form but it actually does work. So ca anyone tell me what this message means and what I can do about it?

Many thanks for any help received.

This will be occuring due to either incorrect code in form hooks or a custom question

Do you have anthing in the form hook boxes? (They are mid way down the edit form page)

Second do you have any custom questions?

All of them should contain php code, invalid php code in any of the above would code error message you have listed.

adamdavidconn
02-03-2010, 07:39 PM
thanks for your support bl.

Ok, thanks for the code to add secondry usergroup, it works well. However, how do you make ti that the submitter of the form is added, rather than a numbered user. For example, you wrote
/*alter this userid*/
$a_userid = 2;
$userinfo = fetch_userinfo($a_userid);
if (empty($user['membergroupids']))
{
I tried adding {userid} but that didnt work. That was a bad guess, its not php :P

What would you put to fetch the id of the person who filled in the form?

valendono
02-03-2010, 08:27 PM
dear banana,

thanks, [img] its worked now, but[list] not yet..

bananalive
02-03-2010, 09:08 PM
thanks for your support bl.

Ok, thanks for the code to add secondry usergroup, it works well. However, how do you make ti that the submitter of the form is added, rather than a numbered user. For example, you wrote
[PHP.../PHP]
I tried adding {userid} but that didnt work. That was a bad guess, its not php :P

What would you put to fetch the id of the person who filled in the form?
Use this:

Form Hook: Before Submit

if ($complete)
{
$userinfo = $vbulletin->userinfo;
if (empty($userinfo['membergroupids']))
{
/*alter this number below*/
$user['membergroupids'] = '4';
} else {
/*alter this number below, but leave the comma*/
$user['membergroupids'] .= ',4';
}
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$userdata->save();
}

Martyh
02-04-2010, 12:32 AM
Hi, Is there any possibility that this ( the form ) will / is or can become a widget that we can put into the CMS of 4.0 suite ?

Scooterpig
02-04-2010, 02:12 AM
Can View Form List: Everyone

Can Edit Forms: Administrators

Can View Forms: Everyone

When selecting usergroups, it is the highlighted ones which you will be enabling the feature for. use ctrl to select more than one usergroup.

Thanks for that and as I have it but still can't see the form as a member but can as admin...:(

TheSupportForum
02-04-2010, 02:23 AM
Fixed vBulletin editor issue with attached file.

Username is already held in hidden field.

IP address could be added as hidden field (there are 3 hiddenfields added into template and a template hook) or add it to the end of the form output

Add to bottom of form hook: before submit
$ip = $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" . $form[pstq];
$formoutput .= $form['prea'] . $ip . $form[psta];


thank you, but still not sure where to put this, also i think that this should be implented if possible

for now please help me with this

PeteBlume
02-04-2010, 07:32 AM
Hi,

first I have to say: a great mod.

Now to my question: Is the any possibiliity to export the form resulst for example as xls?

bananalive
02-04-2010, 11:35 AM
Hi,

first I have to say: a great mod.

Now to my question: Is the any possibiliity to export the form resulst for example as xls?

No

But you can highlight the table and then paste it into excel.

bananalive
02-04-2010, 11:36 AM
thank you, but still not sure where to put this, also i think that this should be implented if possible

for now please help me with this

Click Edit Form then scroll down to Form Hooks

Add it to the textbox 'Form Hook: Before Submit'

$ip = $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" . $form[pstq];
$formoutput .= $form['prea'] . $ip . $form[psta];

freexav
02-04-2010, 11:58 AM
hi there,

this mod looks awesome!
I would like to know if ever you could implement it with the following function :
- being able to select the values of a drop-down dynamically from a table in the database
- dynamically update the next drop down menus according to the previous dropdown choice of the user.
For instance, imagine a member choses its country from a drop down list. And then, when he has to chose for its state, only his country's states will appear in the state dropdown.

Best regards and keep up the good work!
very nice mod!

jimfries
02-05-2010, 01:00 AM
Amazing Mod, and is just what I need for my World of Warcaft Guild website. We are using this as a recruitment form for new and interested players to apply to our guild.

My problem: When the forum is submitted, it is quite long, so there are 20 some questions listed. Many of these are single line question - answers, but are listed in the forum in 2-3 lines.

My request: Is it possible to have an option, or is there a way, to make all one line question - answers appear on just one line when submitted in the forums?

-----------------
My Problem: When I use a Section, it appears on the same line as the first question after the Section.

Solution: Unknown.

Alex@Mk3OC
02-05-2010, 07:51 AM
Excellent mod, it has an issue with vBAdvanced Beta 2m but I'm pretty sure it's an issue with vBadvanced and not this mod so have reported it over there

Scooterpig
02-05-2010, 09:01 AM
Ok I'm still having viewing permissions issues. Here is a pic of my settings as instructed and as an admin I can see the 1 form I have no worries, but if I log in as a member, the Forms link is there but when I go to the page it's showing as no forms.

What am I doing wrong please?

denman75
02-05-2010, 10:44 AM
one of the best mods

*nominated

one question ,is there a way to delete the Form Results Table
al the test stats remain in the database ,or do i have to trash the table manual in mysql?

bananalive
02-05-2010, 01:45 PM
one of the best mods

*nominated

one question ,is there a way to delete the Form Results Table
al the test stats remain in the database ,or do i have to trash the table manual in mysql?

Next to each result on Form Results there is a delete button.

bananalive
02-05-2010, 01:47 PM
Ok I'm still having viewing permissions issues. Here is a pic of my settings as instructed and as an admin I can see the 1 form I have no worries, but if I log in as a member, the Forms link is there but when I go to the page it's showing as no forms.

What am I doing wrong please?

Looking at your screenshot that all looks fine.

If you go to Edit Form, scroll down to Form Permissions, have you changed anything?

bananalive
02-05-2010, 01:48 PM
Amazing Mod, and is just what I need for my World of Warcaft Guild website. We are using this as a recruitment form for new and interested players to apply to our guild.

My problem: When the forum is submitted, it is quite long, so there are 20 some questions listed. Many of these are single line question - answers, but are listed in the forum in 2-3 lines.

Edit Form -> Answer BB code
First box:
Second box: \r\n

My request: Is it possible to have an option, or is there a way, to make all one line question - answers appear on just one line when submitted in the forums?


-----------------
My Problem: When I use a Section, it appears on the same line as the first question after the Section.

Solution: Unknown.
On Edit Form page, add to the end of the right hand box of 'Section BB code' add \r\n

Sarcoth
02-05-2010, 05:12 PM
Use this:

Form Hook: Before Submit

if ($complete)
{
$userinfo = $vbulletin->userinfo;
if (empty($user['membergroupids']))
{
/*alter this number below*/
$user['membergroupids'] = '4';
} else {
/*alter this number below, but leave the comma*/
$user['membergroupids'] .= ',4';
}
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$userdata->save();
}

Very nice. I got this working without any problems. I notice that it removes the userid from all membergroups and then just adds them to the one. If I know the membergroup id, can I remove them from just one and add them to the other. For example, when they submit this form, I'd like to remove them from 17 and add them to 18.

Also, is there a way for me to update their "Display Usergroup" to the usergroup (18) they are added to? I've done coding with membergroups before, but I've never seen anything update the display part.

Fun stuff, thanks!

Scooterpig
02-05-2010, 06:38 PM
Looking at your screenshot that all looks fine.

If you go to Edit Form, scroll down to Form Permissions, have you changed anything?

Mate thank you so much i missed that section and that has fixed it all up, thank you very much..:)

jimfries
02-05-2010, 07:26 PM
Excellent Banana! That resolved so much. I'm afraid I just don't know enough php to solve that simple little thing, arg.

One more thing, is it possible to make the text box entries do a line return (not have the answer right after the question). So single line box's would have the answers right after the question (which I have now), but multi-line questions will have their answers under the question. Its just a cosmetics thing for me. I would like to do a line return after the answer for multi-line questions also.

God this is really an amazing addon brother, it looks GREAT...

jimfries
02-05-2010, 10:54 PM
I was looking at the post in the forums, and my OCD kicked in. Do you know if its possible to write bbcode that will make the forum post into tables? So they are all even, kind of like tabing forward so the Answers are all started at the same place down the page.

I know it may be a silly thing to ask, I was just curious.

bananalive
02-06-2010, 02:47 PM
I was looking at the post in the forums, and my OCD kicked in. Do you know if its possible to write bbcode that will make the forum post into tables? So they are all even, kind of like tabing forward so the Answers are all started at the same place down the page.

I know it may be a silly thing to ask, I was just curious.

You would need a BB code [table] for that, not sure if one is avaliable for vB 4.

bananalive
02-06-2010, 02:48 PM
Excellent Banana! That resolved so much. I'm afraid I just don't know enough php to solve that simple little thing, arg.

One more thing, is it possible to make the text box entries do a line return (not have the answer right after the question). So single line box's would have the answers right after the question (which I have now), but multi-line questions will have their answers under the question. Its just a cosmetics thing for me. I would like to do a line return after the answer for multi-line questions also.

God this is really an amazing addon brother, it looks GREAT...

no.

you could always try a custom output

bananalive
02-06-2010, 02:48 PM
Mate thank you so much i missed that section and that has fixed it all up, thank you very much..:)

glad it working for you now.

bananalive
02-06-2010, 02:57 PM
Very nice. I got this working without any problems. I notice that it removes the userid from all membergroups and then just adds them to the one. If I know the membergroup id, can I remove them from just one and add them to the other. For example, when they submit this form, I'd like to remove them from 17 and add them to 18.

Also, is there a way for me to update their "Display Usergroup" to the usergroup (18) they are added to? I've done coding with membergroups before, but I've never seen anything update the display part.

Fun stuff, thanks!

Woops it shouldn't have removed all other membergroups, there was a little mistake in the code :o. But if thats what you wanted then that alright :)

if ($complete)
{
$user = $userinfo = $vbulletin->userinfo;
$newmembergroupid = '18';
$display_usergroup = $user['membergroupids'] = $newmembergroupid;

$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle(
$user['customtitle'] ? $user['usertitle'] : '',
false,
$display_usergroup,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true : false,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true : false
);
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$vbulletin->userinfo['displaygroupid'] = $newmembergroupid;
$userdata->save();
}

Veer
02-06-2010, 03:25 PM
Hi bananalive,

I want to change the Form width, currently it is 750px, I need to change it to 950px

Sarcoth
02-07-2010, 04:42 AM
Woops it shouldn't have removed all other membergroups, there was a little mistake in the code :o. But if thats what you wanted then that alright :)

if ($complete)
{
$user = $userinfo = $vbulletin->userinfo;
$newmembergroupid = '18';
$display_usergroup = $user['membergroupids'] = $newmembergroupid;

$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle(
$user['customtitle'] ? $user['usertitle'] : '',
false,
$display_usergroup,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true : false,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true : false
);
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$vbulletin->userinfo['displaygroupid'] = $newmembergroupid;
$userdata->save();
}

That didn't work either. It's still removing the user from all membergroups and it didn't successfully set the user to the new displaygroup either. My goal is to have them removed only from one group (17).

Is there a way to use one of the questions as a variable for this? I'd like to enter an userID in one of the questions, let's say question 1. When I enter that userID and submit, it will specifically remove that user from group 17 and and them to 18. As well as update their displaygroup to 18.

Cadellin
02-07-2010, 07:26 PM
Fantastic mod - this is exactly what I've been hoping for!

Two queries though:

1. Guests get the following message "The string you entered for the image verification did not match what was displayed." - however no image verification is displayed.

2. I have a lot of questions in my form so could you add the option to have horizontal scrolling of the results table?

Thanks

Cadellin
02-10-2010, 09:37 AM
Has anyone else come across the problem with image verification? I've never seen anything about image verification in any of the forms whether I'm logged in or not!

EDIT: After adding the verification question to the form it submits ok for admins however for other users it still returns the "The string you entered for the image verification did not match what was displayed." message even when the image does match exactly.

bananalive
02-11-2010, 11:47 AM
Has anyone else come across the problem with image verification? I've never seen anything about image verification in any of the forms whether I'm logged in or not!

EDIT: After adding the verification question to the form it submits ok for admins however for other users it still returns the "The string you entered for the image verification did not match what was displayed." message even when the image does match exactly.

Fixed in attached product. This issue would only incur for guests.

bananalive
02-11-2010, 11:53 AM
Fantastic mod - this is exactly what I've been hoping for!

Two queries though:

1. Guests get the following message "The string you entered for the image verification did not match what was displayed." - however no image verification is displayed.

2. I have a lot of questions in my form so could you add the option to have horizontal scrolling of the results table?

Thanks

1 fixed in attached file
2 also implemented

bananalive
02-11-2010, 12:05 PM
That didn't work either. It's still removing the user from all membergroups and it didn't successfully set the user to the new displaygroup either. My goal is to have them removed only from one group (17).

Is there a way to use one of the questions as a variable for this? I'd like to enter an userID in one of the questions, let's say question 1. When I enter that userID and submit, it will specifically remove that user from group 17 and and them to 18. As well as update their displaygroup to 18.

if ($complete)
{
/*replace 45 with appropriate question hash*/
$userinfo=fetch_userinfo($qo[45]);
$user=$userinfo;
/*replace 18 with choosen usergroupid you want to add them to*/
$newmembergroupid = '18';
$user['membergroupids']=explode(',',$user['membergroupids']);
foreach($user['membergroupids'] AS $mi => $mii)
{
/*replace 17 with usergroupid you want to remove them from*/
if ($mii=='17')
{
unset($user['membergroupids']['$mi']);
}
}
$display_usergroup = $newmembergroupid;
$user['membergroupids']=implode(',',$user['membergroupids']);
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle($user['customtitle'] ? $user['usertitle'] : '', false, $display_usergroup, true, true);
$userdata->save();

Sarcoth
02-11-2010, 01:04 PM
if ($complete)
{
/*replace 45 with appropriate question hash*/
$userinfo=fetch_userinfo($qo[45]);
$user=$userinfo;
/*replace 18 with choosen usergroupid you want to add them to*/
$newmembergroupid = '18';
$user['membergroupids']=explode(',',$user['membergroupids']);
foreach($user['membergroupids'] AS $mi => $mii)
{
/*replace 17 with usergroupid you want to remove them from*/
if ($mii=='17')
{
unset($user['membergroupids']['$mi']);
}
}
$display_usergroup = $newmembergroupid;
$user['membergroupids']=implode(',',$user['membergroupids']);
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle($user['customtitle'] ? $user['usertitle'] : '', false, $display_usergroup, true, true);
$userdata->save();

Hey Banana, I appreciate your time and effort on this. Still not working though. I did add the missing } at the end, so that wasn't my issue. Did it work for you? I changed the 45 to 1 and nothing. The form gets submitted, but the user doesn't get removed or added to anything. On a side note, don't enter anything but a number into the question you choose for this code. I tried that and WOW. The magnitude of data returned was never ending.

bananalive
02-11-2010, 01:29 PM
Hey Banana, I appreciate your time and effort on this. Still not working though. I did add the missing } at the end, so that wasn't my issue. Did it work for you? I changed the 45 to 1 and nothing. The form gets submitted, but the user doesn't get removed or added to anything. On a side note, don't enter anything but a number into the question you choose for this code. I tried that and WOW. The magnitude of data returned was never ending.
Just tested this following code, it works:
if ($complete)
{
/*replace 45 with appropriate question hash*/
$userinfo=fetch_userinfo($qo[45]);
$user=$userinfo;
/*replace 18 with choosen usergroupid you want to add them to*/
$newmembergroupid = '18';
$user['membergroupids']=explode(',',$user['membergroupids']);
foreach($user['membergroupids'] AS $mi => $mii)
{
/*replace 17 with usergroupid you want to remove them from*/
if ($mii==17)
{
unset($user['membergroupids'][$mi]);
}
}
$user['membergroupids'][]=$newmembergroupid;
$display_usergroup = $newmembergroupid;
$user['membergroupids']=implode(',',$user['membergroupids']);
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids', $user['membergroupids']);
$userdata->set_usertitle(
$userinfo['usertitle'],
true,
$vbulletin->usergroupcache["$newmembergroupid"],
false,
true
);
$userdata->save();
}

Sarcoth
02-11-2010, 02:05 PM
Awesome stuff Banana, I love this mod. That definitely removes the selected userid from the selected usergroup and adds them to the other one. The display title still isn't changing. Did that part work for you?

Cadellin
02-11-2010, 05:30 PM
1 fixed in attached file
2 also implemented

That is amazing! Thanks bananalive!

One small glitch I've spotted is the time collumn in the table results is too narrow for it to fit (ends up on 7 lines). Apart from that super job!

ascott
02-12-2010, 04:30 PM
Installed, thanks again :D

rfsforums
02-12-2010, 11:50 PM
Installed - works great!

I would like to display a user profile field (field7) in the title. I tried {field7} but no such luck. Is it possible and if so do you have any suggestions?

Many Thanks!!!!

bananalive
02-13-2010, 02:20 PM
Installed - works great!

I would like to display a user profile field (field7) in the title. I tried {field7} but no such luck. Is it possible and if so do you have any suggestions?

Many Thanks!!!!

Import attached file and use {bbuserinfo.field7}

bananalive
02-13-2010, 02:26 PM
Awesome stuff Banana, I love this mod. That definitely removes the selected userid from the selected usergroup and adds them to the other one. The display title still isn't changing. Did that part work for you?

Yes

The user submitting the form, may need permissions to change the display name.

Also, did the user have a custom display title that might have stopped it.

Martyh
02-13-2010, 07:18 PM
What can I put in this field to send the user to the thread they just created ?

URL of webpage user is redirected to:

rfsforums
02-13-2010, 11:44 PM
Import attached file and use {bbuserinfo.field7}

Thanks so much for responding back so quickly! I've tried using {bbuserinfo.field7} but it's not working for me I also tried another profile field to see if it was because (field7) is setup to not display publicly (it's the users real name and is "hidden" in the setup) but the other profile field, which is public (not hidden), did not display either. I also imported the file overwritting the orig. My goal is to include their real name along with their user name in the form results.

Thanks again for a great mod!!!

ThorstenA
02-14-2010, 11:05 AM
I want to use Easy Forms as a Review tool. There are some items (product a, product b, product c) where a user can choose one, rate it and write a review about it. However, therefore I need Easy Forms to only allow a user to write an entry once for each product. How can that be accomplished?

bananalive
02-14-2010, 12:30 PM
I want to use Easy Forms as a Review tool. There are some items (product a, product b, product c) where a user can choose one, rate it and write a review about it. However, therefore I need Easy Forms to only allow a user to write an entry once for each product. How can that be accomplished?

Create a form for each product, (create form for product a then use the 'copy form' function)

Then put the number of times a user can submit the form as 1

bananalive
02-14-2010, 12:30 PM
Thanks so much for responding back so quickly! I've tried using {bbuserinfo.field7} but it's not working for me I also tried another profile field to see if it was because (field7) is setup to not display publicly (it's the users real name and is "hidden" in the setup) but the other profile field, which is public (not hidden), did not display either. I also imported the file overwritting the orig. My goal is to include their real name along with their user name in the form results.

Thanks again for a great mod!!!

Which field are using it in?

bananalive
02-14-2010, 12:31 PM
What can I put in this field to send the user to the thread they just created ?

URL of webpage user is redirected to:

How can I redirect to the thread created by the form?


Edit Form
Tick the checkbox 'Redirect user after form is submitted'
URL of webpage user is redirected to:
http://www.yoursite.com/showthread.php?p=$newpost[postid]#post$newpost[postid]

ThorstenA
02-14-2010, 12:51 PM
Create a form for each product, (create form for product a then use the 'copy form' function)

Then put the number of times a user can submit the form as 1

I have thousands of products, therefore I wanted to have one entry field set as a "click on of these thousands of products" field. How can I use Easy Forms so that a user can submit the form with one criterium ("product field") only? Thanks.

finalcut
02-14-2010, 10:13 PM
@bananalive,

installed and convinced: this is a great addon! And I appreciate your work.

I managed nearly everything I wanted to do with it. Except one thing:
inserting the formdata into an existing or new database table

How can this be managed?

Many thanks!

Martyh
02-14-2010, 10:34 PM
Hi, if the form is set to start a new thread and the user default subscription setting is set to subscribe them to the threads they post in, it does not subscribe them to the thread. If the same user starts a thread the conventional way then it does subscribe them to it, is there any way to get the subscription to work with the form submit ?

Sarcoth
02-15-2010, 12:31 PM
Yes

The user submitting the form, may need permissions to change the display name.

Also, did the user have a custom display title that might have stopped it.

Strange. I tried it with the main admin account and it still didn't update the display name. I don't use custom display names. I'm confused on that one. Must be some option on my forums then since the main admin should be able to do anything.

EDIT: OHHHH, I see what it does now. It changes the users "User Title" directly. Nice. It works for the main admin and the other user. I initially meant changing the "Display Usergroup" because I thought that would have to control the "User Title" field. This is great. I'm going to play with it and see what else I can get it to do. Thank you.

Sarcoth
02-15-2010, 02:40 PM
I'd like to require the userid field to only accept 1-4 numbers. I tried entering the following for the Regular Express: [0-9]{1-4}
That is causing some red text to appear over the question when entering anything into the field. Is the regular expression wrong or?

rfsforums
02-15-2010, 03:55 PM
Which field are using it in?

For testing purposes I was entering it in the "Form Output Top BB code:" field.

angelimnot
02-15-2010, 09:34 PM
Is there a way to to add bbcode to just one question's answer? the option under "Form BB code and Custom Output" adds bbcode to every answer and or question.

BiZiMDiYaR
02-15-2010, 10:24 PM
Hi,

When I do export from the VB3 forum, and after that I want to import the xml file, it gives an error that the file is not correct or not found.. Can this be solved ? Thanks.

iadventure
02-16-2010, 10:12 PM
So, I read through most of the questions and did not find an answer. Hopefully I didn't miss it and now asking again...

I am trying to use this a a rating system for products. I want to have a forum with a category and then a place for users to view the results of a product form and be able to fill out that same form and then re-directed back to the results page.
EXAMPLE:
root forum/"rate it" forum/bumpers/x_company bumper/ Here I want users to view the form results (as a poll?) and be able to fill out the form too. Then get re-directed back to the results.

Thanks for your patience, I am pretty new to forums and forms.

Jabong82
02-18-2010, 02:47 AM
How do you get this to post to a thread? I'd like to use the form as part of a thread where people can click on it and submit. However every time I clock "post new thread" or "post in thread" nothing happens. Any idea?

Also I can't delete any questions in the form. I can edit questions, but I can't delete them. Any help would be appreciated. Thank you in advance.

bananalive
02-18-2010, 06:15 PM
How do you get this to post to a thread? I'd like to use the form as part of a thread where people can click on it and submit. However every time I clock "post new thread" or "post in thread" nothing happens. Any idea?

Also I can't delete any questions in the form. I can edit questions, but I can't delete them. Any help would be appreciated. Thank you in advance.

Have you uploaded easyforms.js to your server?

Is your browser's javascript enabled?

bananalive
02-18-2010, 06:19 PM
So, I read through most of the questions and did not find an answer. Hopefully I didn't miss it and now asking again...

I am trying to use this a a rating system for products. I want to have a forum with a category and then a place for users to view the results of a product form and be able to fill out that same form and then re-directed back to the results page.
EXAMPLE:
root forum/"rate it" forum/bumpers/x_company bumper/ Here I want users to view the form results (as a poll?) and be able to fill out the form too. Then get re-directed back to the results.

Thanks for your patience, I am pretty new to forums and forms.

Set permissions for everyone to view form results in Easy Forms Options.

Tick the box 'Redirect user after form is submitted' on Edit Form page

Set 'URL of webpage user is redirected to:' on Edit Form page
http://www.yoursite.com/forums/misc.php?do=formresults_poll&fid=4

bananalive
02-18-2010, 06:33 PM
Hi,

When I do export from the VB3 forum, and after that I want to import the xml file, it gives an error that the file is not correct or not found.. Can this be solved ? Thanks.

looking for a solution to this

bananalive
02-18-2010, 06:35 PM
Is there a way to to add bbcode to just one question's answer? the option under "Form BB code and Custom Output" adds bbcode to every answer and or question.

No, you would have to use custom output.

Or edit question and then type it in 'Question' box

bananalive
02-18-2010, 06:47 PM
For testing purposes I was entering it in the "Form Output Top BB code:" field.

Use it within 'Thread/ PM/ Email Title:'

bananalive
02-18-2010, 06:58 PM
I'd like to require the userid field to only accept 1-4 numbers. I tried entering the following for the Regular Express: [0-9]{1-4}
That is causing some red text to appear over the question when entering anything into the field. Is the regular expression wrong or?
You need a / at beginning and end of the string.
Also a $ (dollar sign) before last slash so it matches the whole string.
/^[0-9]{1,4}$/

bananalive
02-18-2010, 07:00 PM
Hi, if the form is set to start a new thread and the user default subscription setting is set to subscribe them to the threads they post in, it does not subscribe them to the thread. If the same user starts a thread the conventional way then it does subscribe them to it, is there any way to get the subscription to work with the form submit ?
Remove this line from plugin: Easy Forms Part 1

$threadinfo['issubscribed'] = false;

bananalive
02-18-2010, 07:02 PM
@bananalive,

installed and convinced: this is a great addon! And I appreciate your work.

I managed nearly everything I wanted to do with it. Except one thing:
inserting the formdata into an existing or new database table

How can this be managed?

Many thanks!

You can add php code to add it to any table in Form Hook: Before Submit

Or collect the data in the Forms Table by selecting 'Save to Database'

zanthor
02-18-2010, 07:38 PM
4.0.2 seems to have buggered up the format of this...

http://www.botbh.com/misc.php?do=form&fid=1

Is this something I've done wrong, or a bigger issue in 4.0.2 and this app?

Sarcoth
02-18-2010, 08:17 PM
Thanks again bananalive. I'll try to come up with another question later. :)

BiZiMDiYaR
02-18-2010, 11:27 PM
looking for a solution to this

Yeah, hope so.. I don't want to make all of them new again.. :)

Jabong82
02-19-2010, 03:37 AM
Have you uploaded easyforms.js to your server?

Is your browser's javascript enabled?

For some reason after a re-install I am able to now edit/delete questions, however I can't get the form to post in a thread.

Is there an actual button somewhere that submits everything? I just see a bunch of save buttons under each field. Maybe I'm missing something.

Thanks in advance.

wmbook
02-19-2010, 05:43 AM
Excellent.

Bug: Questions were not showing up on the wisywig editor.

Great Job!!!!!

Heldenverband
02-19-2010, 08:16 AM
It would be nice to have a thumb picture on thread view so it is possible to use easy forms for a classified section :)

Is this possible ?

bananalive
02-19-2010, 09:13 AM
It would be nice to have a thumb picture on thread view so it is possible to use easy forms for a classified section :)

Is this possible ?

You would need another modification to alter thread view

bananalive
02-19-2010, 09:13 AM
Excellent.

Bug: Questions were not showing up on the wisywig editor.

Great Job!!!!!

https://vborg.vbsupport.ru/attachment.php?attachmentid=111564&d=1265152081

bananalive
02-19-2010, 09:19 AM
For some reason after a re-install I am able to now edit/delete questions, however I can't get the form to post in a thread.

Is there an actual button somewhere that submits everything? I just see a bunch of save buttons under each field. Maybe I'm missing something.

Thanks in advance.

All of the 'Save' buttons, do exactly the same, submitting/saving all fields. (I added additional butttons to save scrolling :))

Have you selected the right threadid?

(I have just checked it on my forum and it is working fine)

bananalive
02-19-2010, 09:22 AM
4.0.2 seems to have buggered up the format of this...

http://www.botbh.com/misc.php?do=form&fid=1

Is this something I've done wrong, or a bigger issue in 4.0.2 and this app?

This modification follows the same css as used in other parts of vBulletin.

It displays fine with default style skin.

Jabong82
02-19-2010, 09:25 AM
Oh I see, I didn't know you had to fill out and then submit the form for the thread to happen.

Is there anyway that I can put the form in a thread, so that they can fill it out?

Say like if I wanted to create a form that I can attach to a thread, and then members could click on the form and fill it out?

Thank you in advance.

bananalive
02-19-2010, 09:35 AM
Yeah, hope so.. I don't want to make all of them new again.. :)

Attached file has fixed the issue with importing forms.

bananalive
02-19-2010, 09:37 AM
Oh I see, I didn't know you had to fill out and then submit the form for the thread to happen.

Is there anyway that I can put the form in a thread, so that they can fill it out?

Say like if I wanted to create a form that I can attach to a thread, and then members could click on the form and fill it out?

Thank you in advance.

No, the only thing i can suggest is that you add a link to the form in the thread.

Jabong82
02-19-2010, 09:50 AM
Oh ok I can work that. Thanks again!

iadventure
02-19-2010, 10:02 AM
Set permissions for everyone to view form results in Easy Forms Options.
Tick the box 'Redirect user after form is submitted' on Edit Form page
Set 'URL of webpage user is redirected to:' on Edit Form page
http://www.yoursite.com/forums/misc.php?do=formresults_poll&fid=4

This is what I get when I re-direct.
I have:

Set permissions for everyone to view form results in Easy Forms Options.
Tick the box 'Redirect user after form is submitted' on Edit Form page
Set 'URL of webpage user is redirected to:' on Edit Form page to:
http://www.jk-adventure.com/JKA/misc.php?do=formresults_poll&fid=4

I am an administrator so I should be able to see the results...

bananalive
02-19-2010, 03:05 PM
This is what I get when I re-direct.
I have:

Set permissions for everyone to view form results in Easy Forms Options.
Tick the box 'Redirect user after form is submitted' on Edit Form page
Set 'URL of webpage user is redirected to:' on Edit Form page to:
http://www.jk-adventure.com/JKA/misc.php?do=formresults_poll&fid=4

I am an administrator so I should be able to see the results...

What's happening? Do you get error message?

Preech
02-19-2010, 04:01 PM
Can this be used to submit a email. I run a website for a dj. If artist wants to submit material for his cds, I need them to be able to submit a email to him directly instead of me.

Cadellin
02-19-2010, 04:51 PM
@Preech: You can set it to e-mail the form contents (including attachments I believe) to a specific e-mail address.

@bananalive: Could you please clarify what the changes are for 4.0.3? Would it also be possible to add an e-mail field which checks the address entered follows the correct e-mail format?

Thanks

zimer
02-20-2010, 02:01 AM
Is there an easy way to attach an image to a form and display the result as a link? If the image can be uploaded to the site that would be great but an image link to external hosting would work too.

valendono
02-20-2010, 04:00 AM
I got problem on result for date

sumtin like


Join Date

3€8

we used vb_easyforms_v4.0.3.zip

iadventure
02-20-2010, 04:25 AM
What's happening? Do you get error message?

it asks me to login and I do and it still gives no access

bananalive
02-20-2010, 01:47 PM
I got problem on result for date

sumtin like


Join Date

3?8

we used vb_easyforms_v4.0.3.zip

Check what you are using for: 'Date Spacer:' when editing the date question.

bananalive
02-20-2010, 01:51 PM
Is there an easy way to attach an image to a form and display the result as a link? If the image can be uploaded to the site that would be great but an image link to external hosting would work too.

Links will be automatically parsed within the output

bananalive
02-20-2010, 01:52 PM
@bananalive: Could you please clarify what the changes are for 4.0.3? Would it also be possible to add an e-mail field which checks the address entered follows the correct e-mail format?

Thanks

From version history:

4.0.3 (19 February 2010)
- Added question & description to vb editor fields and human verification field
- Fixed import form
- Added tabindex to all fields
- Added {bbuserinfo.X} for use in custom output and thread title
- Changed unanswered questions into bullet points
- Added option to change date field between day/month/year and month/day/year

bananalive
02-20-2010, 01:53 PM
it asks me to login and I do and it still gives no access

Do you have any other products installed, there might be a conflict.

Martyh
02-20-2010, 03:47 PM
Can someone tell me where I can change the border sizes in the form ?

Thanks

setishock
02-20-2010, 03:55 PM
I was wondering if you were going to update this. I had to put the brakes on making wiki links cause doing it by hand is a pain.
So the xml downloaded from the 3.8.4 version will work with the 4.x version?

BiZiMDiYaR
02-20-2010, 06:12 PM
I was wondering if you were going to update this. I had to put the brakes on making wiki links cause doing it by hand is a pain.
So the xml downloaded from the 3.8.4 version will work with the 4.x version?

Not yet.. but he is checking it :)

zimer
02-20-2010, 06:14 PM
Seems the url's are parsed in the raw output but not the table output. Did I miss something? I'm looking at using the table output in general.

TheBigC
02-21-2010, 09:26 PM
The program works well to say the least. I love it so far!!!!

I am using it as a "thread starter" for products in my forums. It is running very smooth on 4.02, minus one issue...

I can't delete a form. I can create, modify, export, etc, just can't delete. It gives the option and even confirms do I wan to delete, but them it does nothing.

Any idea?

betts02
02-21-2010, 11:19 PM
can someone give me a detailed explanation of how to create a form ?

would love to use this but i am just getting used to vb and have no clue

many thanks in advance

TheBigC
02-22-2010, 12:42 AM
can someone give me a detailed explanation of how to create a form ?

would love to use this but i am just getting used to vb and have no clue

many thanks in advance

Once you install the plugin go settings/options/Vbulletin options and scroll down to the "Easy Forms Options" and enable it with the permissions you want.

Then go out the forum and click on the "Form" button that you just enabled in the admincp. The form itself literally takes maybe a minute to design.

You asked a question and admit you need help, no one started knowing VB, we are all always learning....

Martyh
02-22-2010, 11:57 AM
Remove this line from plugin: Easy Forms Part 1

$threadinfo['issubscribed'] = false;

That doesn't seem to do it, I also tried setting it to true.

Alex@Mk3OC
02-22-2010, 01:39 PM
Does anyone else get issues with using this hack when running vBadvanced CMPS Beta 2? As the author of that reckons it's a problem with this hack?

Anseur
02-22-2010, 04:39 PM
I'd just like to express how awesome this mod is. I'm using it on my live 3.8.4 site and it's great to know it's available for 4.x if/when I decide to move.

Giedreb
02-23-2010, 12:11 PM
Killer mod! Two questions.

1. How to place a form into a custom page/template?
2. I need to add a custom bbcode at the start of every form message section so that when the form first comes up there is already a bbcode in the message area and the users type below it and then submit.

Stryker412
02-23-2010, 02:46 PM
This mod is a HUGE leap over Abe's old hack. How can I hide the forms list from registered users but still have the ability for admins to see it to edit?

What about users who have subscribe to threads on by default? Is there a way to block a form from being able to be subscribed?

Lastly, is there a way to deny anyone from using the form if they don't have enough posts or have not been registered for x amount of days?

jimfries
02-23-2010, 03:15 PM
My general users are not able to view the forum at all, they keep getting this message:
TestUser, 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.


The way I'm using this form is for a "Guild Recruitment" application. The Applications are being submitted into our forums, but I am putting it into a forum that only my Officers can review, not the applicants or general population.

I'm assuming, since those members are not able to see or post normally in that forum, it is not letting them review the form at all. Is this the case? If so, how do I circumvent this? The Users that will use the form are in the 'registered users' category, and the people able to view the forum its being submitted into are listed as 'Officers'

Here are the settings I'm using:
Usergroups Allowed to View Form Lists: Everything is highlighted
Usergroups Allowed to View Forms: Everything is highlighted
Usergroups Allowed to View Form Results: Administrators, Officers
Usergroups Allowed to Edit Forms: Administrators, Officers
Navbar Link: No
Quick Links Link: Yes

Any help is appreciated.

Stryker412
02-23-2010, 11:37 PM
Jim, the way I have mine set up (for a similar purpose) is to allow Registered users to post in your private forum but not allow them to see the forum. That way, the application can be posted but they cannot see it or the discussion about it.

jimfries
02-24-2010, 12:35 AM
Set it so the Registered Users can post forum posts, and post polls... but not view and still get the same error :(

www.distortedguild.com is the website.

jimfries
02-24-2010, 12:52 AM
Found it. After hours of searching on the site, in and out of admin.

If you go into the form itself, you can choose who can view or not view the form.

fishmaster
02-24-2010, 02:11 AM
Can you attach images within the form?

gator777
02-24-2010, 02:16 PM
This is an awesome script ...thanks for all your hard work. :)

BiZiMDiYaR
02-24-2010, 03:31 PM
I was wondering if you were going to update this. I had to put the brakes on making wiki links cause doing it by hand is a pain.
So the xml downloaded from the 3.8.4 version will work with the 4.x version?

Hi,

Is this also solved yet... so the import of the 3.8.4 can be done in VB4 ? Would be a great help on it.. :)

Thanks.

angelimnot
02-24-2010, 04:31 PM
Is there a way to make this mod post to 2 areas? We have them fill out a "review" form.. and then it is posting in the area of which they are reviewing... but we also need it to post to a moderator only area so they can get the proper points for filling out the review....

we_are_borg
02-24-2010, 06:27 PM
Bananalive i got a template that uses transparent to let the background see trough after upgrading to vb 4.0.2 the background of the forum was not transparent any more. Can you assist to fix this.

HolyKiller
02-24-2010, 11:07 PM
perfect update, works fine on 4.0.2, thx !

nitra1000
02-26-2010, 09:00 PM
Hi op...

Love the mod but I have a few feature requests....

In order of realism...
1. Dates format.... (in the uk it's DD/MM/YY), perhaps a selectable format...
2. Prefix's I would for the user to be able to select a prefix...
3. Redirect to newly created thread...

5. If it's possible I would like my users to enter a postcode the first x digits will form the prefix... and the last x digits the rest of the title...

Hornstar
02-26-2010, 11:19 PM
Hi, I just removed the[indent] tag for the answers as I wanted everything aligned to the left. However I noticed that the indent tag also created space above and below the text and with it gone it is now squishy.

How do I make it so there is a line between each question?

bananalive
02-27-2010, 02:27 PM
Hi, I just removed the [indent] tag for the answers as I wanted everything aligned to the left. However I noticed that the indent tag also created space above and below the text and with it gone it is now squishy.

How do I make it so there is a line between each question?

Add \r\n to the end of the answer bbcode

bananalive
02-27-2010, 02:39 PM
Hi op...

Love the mod but I have a few feature requests....

In order of realism...
1. Dates format.... (in the uk it's DD/MM/YY), perhaps a selectable format...
2. Prefix's I would for the user to be able to select a prefix...
3. Redirect to newly created thread...

5. If it's possible I would like my users to enter a postcode the first x digits will form the prefix... and the last x digits the rest of the title...

1. is available in latest version, edit appropriate question
3. use the following in : http://www.yoursite.com/forums/showthread.php?p=$newpost[postid]#post$newpost[postid]
5. You would have to use the form hooks to achieve that.

bananalive
02-27-2010, 02:42 PM
Bananalive i got a template that uses transparent to let the background see trough after upgrading to vb 4.0.2 the background of the forum was not transparent any more. Can you assist to fix this.

I'm not sure, i think it will be to do with class blockrow

bananalive
02-27-2010, 02:46 PM
Is there a way to make this mod post to 2 areas? We have them fill out a "review" form.. and then it is posting in the area of which they are reviewing... but we also need it to post to a moderator only area so they can get the proper points for filling out the review....

Only by copying the post thread php code to form hook: before submit:

/*change this*/
$secondforumid = 5;
if ($complete)
{
if (!$vbulletin->userinfo['userid'])
{
$vbulletin->input->clean_array_gpc('p', array(
'humanverify' => TYPE_ARRAY,
));
$newpost['humanverify'] = $vbulletin->GPC['humanverify'];
}
require_once(DIR . '/includes/functions_editor.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
require_once('./includes/functions_databuild.php');
if (!$closed)
{
$open = 1;
}
else
{
$open = 0;
}
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
/*$foruminfo = fetch_foruminfo($forumid);*/
$threaddm->set_info('forum',$foruminfo);
$threaddm->set_info('user', $vbulletin->userinfo);
$threaddm->set('forumid', $secondforumid);
$threaddm->set('userid', $vbulletin->userinfo['userid']);
$threaddm->set('title', $threadtitle);
$threaddm->set('pagetext', $formoutput);
$allow_smilie = '1';
$visible = '1';
$threaddm->set('open', $open);
if ($form[prefixid])
{
$threaddm->set('prefixid', $form[prefixid]);
}
if ($form[iconid])
{
$threaddm->set('iconid', $iconid);
}
$threaddm->set('allowsmilie', $allow_smilie);
$threaddm->set('visible', $visible);
$threaddm->pre_save();
$threadid = $threaddm->save();
unset($threaddm);
build_thread_counters($threadid);
build_forum_counters($forumid);
if (!empty($threaddm->errors))
{
$errorss .= $threaddm->errors;
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval(standard_error($errormessage));
}
$threadinfo = fetch_threadinfo($threadid);
$newpost['postid'] = $threadinfo['firstpostid'];
mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
/*($hook = vBulletinHook::fetch_hook('newthread_post_complete ')) ? eval($hook) : false;*/
if ($form[poll] == 1)
{
$question = $form[pollquestion];
$threadinfo = verify_id('thread', $threadid, 0, 1);
$polloptions = count($polloption);
$vbulletin->GPC['options'] = $polloption;
$counter = 0;
$optioncount = 0;
$badoption = '';
while ($counter++ < $polloptions)
{
if ($vbulletin->options['maxpolllength'] AND vbstrlen($vbulletin->GPC['options']["$counter"]) > $vbulletin->options['maxpolllength'])
{
$badoption .= iif($badoption, ', ') . $counter;
}
if (!empty($vbulletin->GPC['options']["$counter"]))
{
$optioncount++;
}
}
$poll = datamanager_init('Poll', $vbulletin, ERRTYPE_STANDARD);
$counter = 0;
while ($counter++ < $polloptions)
{
if ($vbulletin->GPC['options']["$counter"] != '')
{
$poll->set_option($vbulletin->GPC['options']["$counter"]);
}
}
$poll->set('question', $question);
$poll->set('dateline', TIMENOW);
$poll->set('active', '1');
$poll->set('public', $form['publicpoll']);
$poll->set('multiple', $form['multiplepoll']);
$pollid = $poll->save();
$threadman = datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('pollid', $pollid);
$threadman->save();
}
}

bananalive
02-27-2010, 02:47 PM
Hi,

Is this also solved yet... so the import of the 3.8.4 can be done in VB4 ? Would be a great help on it.. :)

Thanks.

Yes solved in the latest version

bananalive
02-27-2010, 02:48 PM
Can you attach images within the form?

You can use the attachment manager for posting new threads, but not for replies to existing threads.

bananalive
02-27-2010, 02:52 PM
This mod is a HUGE leap over Abe's old hack. How can I hide the forms list from registered users but still have the ability for admins to see it to edit?
You can set Form Permissions by Editing Form
What about users who have subscribe to threads on by default? Is there a way to block a form from being able to be subscribed?
Subscriptions dont currently work with the form so you wont have that problem.
Lastly, is there a way to deny anyone from using the form if they don't have enough posts or have not been registered for x amount of days?

Form Hook: Form Start
if ($vbulletin->userinfo['posts']<5)
{
print_no_permission();
}

bananalive
02-27-2010, 02:54 PM
Killer mod! Two questions.

1. How to place a form into a custom page/template?
2. I need to add a custom bbcode at the start of every form message section so that when the form first comes up there is already a bbcode in the message area and the users type below it and then submit.

1. Nope

2. Add the custom bbcode to beginning of: Edit Form -> Answer BB code:

bananalive
02-27-2010, 02:56 PM
The program works well to say the least. I love it so far!!!!

I am using it as a "thread starter" for products in my forums. It is running very smooth on 4.02, minus one issue...

I can't delete a form. I can create, modify, export, etc, just can't delete. It gives the option and even confirms do I wan to delete, but them it does nothing.

Any idea?

Is your Javascript enabled in your browser and have you uploaded the easyforms.js to \clientscript\

Martyh
02-27-2010, 03:22 PM
Remove this line from plugin: Easy Forms Part 1

$threadinfo['issubscribed'] = false;

That doesn't seem to do it, I also tried setting it to true.

Any help is appreciated.

steve71
02-27-2010, 06:48 PM
Some sort of glitch. The hack installed ok and I can view the forms but when I edit them I am missing some selections.

Post new thread text box is there, but does not show the drop-down menu to select the forum as shown in bananalive's screenshot: https://vborg.vbsupport.ru/attachment.php?attachmentid=111284&d=1264688078

Also I cannot delete forms or delete parts of a form like a text question etc.

VB 4.0.2

HolyKiller
02-27-2010, 08:04 PM
Hi, i have problem with setting group rights up for this hack. If i set which usergroup can do specific action and save settings, everything is fine, but when i edit vbulletin options via "Show All Settings" and then save changes, half of my usergroups lose their rights for Easy Forms. If i recheck settings, the are NOT marked.

Using vB 4.0.2 PL1

Please try && fix it ;)

Thanks

Holy

Selcor
02-27-2010, 09:41 PM
Is displayed wrong on my forum (vb 4.0.2). View the image: http://img705.imageshack.us/img705/4742/capr.png

Probe with several skins and does not change ...

rfsforums
02-28-2010, 02:50 AM
Questions proceeded by an asterisk (*) are compulsory.
but they are actually followed by an asterisk. I've searched everywhere I can think of, where would I find this statement so that I can change it?

Thanks again for a great Mod!

steve71
02-28-2010, 11:18 AM
Some sort of glitch. The hack installed ok and I can view the forms but when I edit them I am missing some selections.

Post new thread text box is there, but does not show the drop-down menu to select the forum as shown in bananalive's screenshot: https://vborg.vbsupport.ru/attachment.php?attachmentid=111284&d=1264688078

Also I cannot delete forms or delete parts of a form like a text question etc.

VB 4.0.2



My bad...wrong version xml. Working great now :)

angelimnot
02-28-2010, 07:48 PM
thank you very much~!!!!!!!!

misticjeff
02-28-2010, 07:52 PM
Need help....

Installed
JS file uploaded to /clientscript/
Java on in browser
Block PopUps disabled in browser
Tried in Firefox 3.6 and I.E. 8

Cannot do anything java related. Cannot delete a question or form.

Any advice?

I've tried overwriting the .xml file but no change.

Thanks

Edit:

I'd also like to know how to do the following:

I'd like to automatically populate the form for each person submitting with their:

username
all profile fields
current date

would this be done in a custom question and what might the code look like???

thanks again for a great add on!!!!

Edit #2:

And... can the email output be changed? I noticed that when sending as a PM the output is rather nice. But sent as an email it looks "fugly"

Selcor
02-28-2010, 08:17 PM
Is displayed wrong on my forum (vb 4.0.2). View the image: http://img705.imageshack.us/img705/4742/capr.png

Probe with several skins and does not change ...

Why nobody answer me?

RustyDogma
03-01-2010, 02:10 PM
my users submit the form and get 'please reduce the number of characters'.. I need to allow as many characters as they need... I've looked all over at permissions, have max chars for post at unlimited.. cannot find where to fix it for the form?

misticjeff
03-01-2010, 05:43 PM
my users submit the form and get 'please reduce the number of characters'.. I need to allow as many characters as they need... I've looked all over at permissions, have max chars for post at unlimited.. cannot find where to fix it for the form?
If you're using text input fields, after creating the question, click on "edit" and there you can adjust how many characters to allow in the answer.

bananalive
03-02-2010, 12:19 PM
my users submit the form and get 'please reduce the number of characters'.. I need to allow as many characters as they need... I've looked all over at permissions, have max chars for post at unlimited.. cannot find where to fix it for the form?

vBulletin Options > vBulletin Options > Message Posting and Editing Options -> Maximum Characters Per Post

0 to disable

bananalive
03-02-2010, 12:21 PM
Why nobody answer me?

It displays fine with default style, i cannot guess why it doesnt work with your skin/style

bananalive
03-02-2010, 12:27 PM
Need help....

Installed
JS file uploaded to /clientscript/
Java on in browser
Block PopUps disabled in browser
Tried in Firefox 3.6 and I.E. 8


Cannot do anything java related. Cannot delete a question or form.


Any advice?

I've tried overwriting the .xml file but no change.

Thanks


Edit:

I'd also like to know how to do the following:

I'd like to automatically populate the form for each person submitting with their:

username
all profile fields
current date

would this be done in a custom question and what might the code look like???

thanks again for a great add on!!!!

Edit #2:

And... can the email output be changed? I noticed that when sending as a PM the output is rather nice. But sent as an email it looks "fugly"
I'll work on a version which doesnt require javascript for you.

RE: Edit #1.

Yes you could do that by custom question usign the following php code:

$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[username] . '" class="textbox" />';
This is for the username, create more questions for other profile details.

RE: Edit #2

vBulletin does not send html emails, it converts the bb code/ html code into plain text

bananalive
03-02-2010, 12:28 PM
but they are actually followed by an asterisk. I've searched everywhere I can think of, where would I find this statement so that I can change it?

Thanks again for a great Mod!

Edit Phrase: compulsory_questions_explained

Selcor
03-02-2010, 05:53 PM
With the skin Default don't work ... :erm: