View Full Version : New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge
the_bolo
06-16-2010, 08:39 AM
Also can we please have the help files made available once more?
Thanks
the_bolo
06-17-2010, 09:29 AM
Guess this isnt being supported any longer then..
Uninstalled
godtfred
06-18-2010, 11:08 PM
Awesome, one of best mods out there, thanks a bunch !!!
sburns1992
06-23-2010, 09:49 PM
I am setting up a simple form but I need to have the answer in the PM to be the actual answer. Because when a user selects a radio button or a dropdown it just shows the answer as a number and not the answer, I am using a custom template.
Cheers
Andyrew
06-24-2010, 02:30 PM
If you want posts to go to moderation queue $newpost['visible'] should be 0. If you don't then $newpost['visible'] should be 1.
Where do I find this setting, or does this need to be entered in to the Form Hook: Before Submit: ??
metalguy639
07-01-2010, 01:39 AM
After I upgraded a forum from 3.6 to 3.8 this mod stopped making it where if a member clicked on the "new post" or New thread" button in the forums that the forms are in they are getting a normal newpost sheet to fill out instead of the forms. Is there a way to fix this?
I'm running vb 3.8.5 and I upgraded to the more recent 3.7 version of this hack. I have saved my forms before starting this so I have backups already as well.
Daisyboo
07-04-2010, 04:56 PM
Installed and working great, one problem - in the nav bar where it says 'forms' if I click on that I get the list of the forms but also a box which says - Upload the XML file for the form from your computer and then a box to upload.
This isn't normal is it?
Daisyboo
07-04-2010, 06:26 PM
Never mind I removed it and made a new link.
Simon Lloyd
07-04-2010, 06:43 PM
Installed and working great, one problem - in the nav bar where it says 'forms' if I click on that I get the list of the forms but also a box which says - Upload the XML file for the form from your computer and then a box to upload.
This isn't normal is it?It's normal because you are admin, others shouldn't see that.
metalguy639
07-06-2010, 05:34 AM
Fixed my above issue but now I have a different one, seems the developer has bailed :( now my moderated posts are not showing as moderated. They are being posted anyways even though I want my forms moderated, any fix for this?
wmlvb
07-07-2010, 03:11 AM
I have box check for forms to show up in quick links but it is not there. It seems it was there before about 1 month ago when I used them. I do I get the link to show up? Thanks
wmlvb
07-07-2010, 08:10 PM
Ok fixed the error with no seeing form. NOw I get error message when try to view results: Error, this form does not have any results stored in the database.
Where do I find the results? PLease help
gettingbetter
07-12-2010, 03:27 AM
This mod is SO awesome. Flawless, totally user-intuitive, hasn't had a hitch yet. Bravo to the developer(s).
Does this work with vb 4.0?
wmlvb
07-12-2010, 02:56 PM
I need and Excel copy of this form for manipulation. How do I export to excel??
I can see the form table results saved as data. Thanks
Welshy2008
07-12-2010, 04:39 PM
This mod is SO awesome. Flawless, totally user-intuitive, hasn't had a hitch yet. Bravo to the developer(s).
Does this work with vb 4.0?
I agree, He is a fantastic Coder and he does support his mods, above and beyond too.
The 4.0 version is here: https://vborg.vbsupport.ru/showthread.php?t=234385
ImNotKibs
07-21-2010, 01:05 AM
I'm not really into the idea of sifting through 100+ pages of comments, was it ever discussed how to have the thread/post/PM results be posted as anonymous/a specific user, for privacy?
DontWannaName
07-22-2010, 11:58 PM
Is it possible to move users to a different usergroup or change their forum title when they submit a form? I cant seem to find if it was ever done in the thread.
Welshy2008
07-31-2010, 09:42 AM
Hello BA,
I am currently using this Mod to create a post within a specified thread (with present fields for our members to answer - IE: Name, Address etc).
There is a field on there that I would like my members to answer, if applicable. And if they have filled that field out and is applicable to them, I would like for that field to display "To be Confirmed" - or words to that effect - Once, I have checked the details, I would like the details in that field to be displayed.
Is the highlighted part; above, possible please? Is so, how would I go about doing it, Please, BA?
Many Thanks,
Welshy.
loucfer
08-05-2010, 09:28 PM
Hi,
After several months using it :up: , I'm having my first problem with EasyForms. The group permissions doesn't seem to apply to exclusion group overrides so banned users can see the forms allowed to his primary group (registered users) while they should see ONLY the banned user complain form :D
How can I do that? :confused:
Regards!
Elenna
09-07-2010, 12:07 AM
Good evening!
I have a MySQL query run once a week to update some profile fields for my members. Part of the query is to keep a "log" of where the numbers in the profile fields are coming from, in case someone questions those.
I would like to know if there is a way, using the Before Submit Hook, to have it run a MySQL query and then send the results via a PM?
I have all of the MySQL queries, but I am not sure how to use the PHP variables (i.e. $out for the PM output) in the EasyForms output box.
Any ideas? :D
SpeedyHire
09-10-2010, 11:59 AM
Hi,
Gotta say this is a cracking little mod, well done to the author.
I have 1 quick question.
When you makd the form then go to the page that you fill out. where can i chnage the text from black to white.
We have a dark style and the text on the application for is black.lol
Regards
Speedy
Simon Lloyd
09-10-2010, 07:52 PM
Hi,
Gotta say this is a cracking little mod, well done to the author.
I have 1 quick question.
When you makd the form then go to the page that you fill out. where can i chnage the text from black to white.
We have a dark style and the text on the application for is black.lol
Regards
SpeedyEdit your form and look in advanced for this:
Form BBcode
Form Output Top BBcode:
Your text
And custom format:
Your text
It's all down to html in these areas
SpeedyHire
09-11-2010, 10:21 AM
Hi thanx for the reply, found it and changed:)
have to say it works a treat:) good work
Regards
speedy
SpeedyHire
09-11-2010, 02:30 PM
Hi All,
I am getting this error
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57
I can only prosume it is because the unregged user is on in the databae
Simon Lloyd
09-12-2010, 03:20 AM
Hi All,
I am getting this error
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57
I can only prosume it is because the unregged user is on in the databaeWrong thread, you need to post that in the "Post Thanks" modification thread :)
Jeff Bade
09-17-2010, 01:52 PM
This works great...
I can't believe I haven't installed this till now..
it solves a ton of outstanding projects I haven't had time to get too..
Only issue so far is when I add new fields to a form,
it adds the field.. but it doesn't redirect me back to the form..
Even the "click here" link doesn't work..
I have to use my back button..
Any thoughts?
Simon Lloyd
09-19-2010, 08:41 PM
This works great...
I can't believe I haven't installed this till now..
it solves a ton of outstanding projects I haven't had time to get too..
Only issue so far is when I add new fields to a form,
it adds the field.. but it doesn't redirect me back to the form..
Even the "click here" link doesn't work..
I have to use my back button..
Any thoughts?I asked this question a while ago here https://vborg.vbsupport.ru/showpost.php?p=1825727&postcount=1072 but use the search this thread option on the top left of the mod thread title :)
bennie900
10-08-2010, 04:37 PM
Hi, Ive just updated this script to latest and every time i try to acess misc.php?do=forms it takes me to the smiliey page, any ideas? (Other info just ask)
EDIT: Updated to the latest version in this topic: https://vborg.vbsupport.ru/showthread.php?t=234385 all aspects working now.
cmmguy
10-15-2010, 12:15 PM
I use this mod to manage user want ad creation, it helps to keep the format standardized and cleaner.
My forms create new threads in a forum that is closed for editing.
This mod works great except for the following two items.
I cannot get the form to close the thread.
-I am using the latest version
-I use the hook $closed = true; in the Form Hook: Before Submit: but the threads still come out unClosed.
I cannot get the form to put the thread into moderation.
The forum is set to put all threads into moderation but the forum posts the threads approved. I thought this was caused by my status as an adminstrator so I tested it with my "test User" and the same thing happens. How do I get the form to stop over-riding the forum default of Moderation.
Thanks to anyone who can help.
J
cmmguy
10-15-2010, 12:22 PM
This works great...
I can't believe I haven't installed this till now..
it solves a ton of outstanding projects I haven't had time to get too..
Only issue so far is when I add new fields to a form,
it adds the field.. but it doesn't redirect me back to the form..
Even the "click here" link doesn't work..
I have to use my back button..
Any thoughts?
I have the latest version of this mod but have very little other mods and mine works fine regarding all aspects of editing and using the forms(except for my post above). Maybe you have something else installed that is making this not work like a skin? have you tried unistalling and reinstalling - sorry that is not very helpful but it is all I have.
soundbarrierpro
10-15-2010, 01:55 PM
Does anybody have a sample site I can see how this works, or looks?
Thank you
fortforum
10-20-2010, 08:04 AM
Hi,
just made my first salesform, and it looks good. The issue i have is to redirect the user to the form when hitting the new thread button in the sales section.
How can this be achived? Thanks.
viper357
10-20-2010, 08:34 AM
Hi,
just made my first salesform, and it looks good. The issue i have is to redirect the user to the form when hitting the new thread button in the sales section.
How can this be achived? Thanks.
I use this, works perfectly on 3.8.5 - https://vborg.vbsupport.ru/showthread.php?t=102923
fortforum
10-20-2010, 12:10 PM
Thanx. I also found a plugin by the original coder. Works just fine too.
fortforum
10-22-2010, 12:09 PM
I really do want the manual for this great plugin. If available, please PM me.
SilabGarza
10-28-2010, 02:12 PM
is there a way to make it send the senders ip address with it?
Phototrope
11-03-2010, 06:09 AM
I imported the product and activated in Options, but when I go to the misc.php?do=forms page, I get a bunch or warning messages like the following on the top of the page, and it goes to the Smiles faq page!!
Quite strange.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(331) : eval()'d code on line 3
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: form_list_top in [path]/includes/functions.php on line 4007
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1280) : eval()'d code on line 47
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1280) : eval()'d code on line 51
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: form_list_none in [path]/includes/functions.php on line 4007
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: form_list_bot in [path]/includes/functions.php on line 4007
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4007
Welshy2008
11-10-2010, 11:17 AM
Hi BA,
I am using this form, to be sent to me as an e-mail.
Could I add a field to it where I can allow the sender to add an inage or file that will be e-mailed to me as well please? (as an attachment?).
Both in 3.8.X and 4.0.X please.
Also, I have just PM'd you. :)
Welshy2008
11-16-2010, 09:27 AM
Hello BA,
I am using the custom Form Output for the questions and answers that are submitted as posts.
What is the code, please - to show Multiple tick box selections as "Bullet points" on a seperate line of their own, please?
Speaking of tick boxes - On the selection form, is it possible to add a "Select all" and deselect all box too, please?
Many Thanks.
PS. I will add the same question to your vB4 thread as I need the same thing(s) for that one too. Thank You.
xcesivvs
11-23-2010, 11:43 PM
I am using a "(Dropdown Select)" box and the results are being posted as numbers not the actual answer of the in that field.
how would i change this to show the field details instead of the number.
Thanks
Digma
11-27-2010, 09:29 PM
I love this modification. It was just what we were looking for as we wanted to tidy up a few forums by using a 'set format'. Together with the mod for changing new thread links, this works like a charm (on 3.7.3).
Thanks a lot for this.
Shanj
11-29-2010, 02:51 AM
I am working my way through 50 pages of posts about this marvellous mod!
I am hoping it is possible to post to
- existing threads not create new thread? I think this is OK from my reading.
- to submit post to not one but multiple destinations?
that is send a post to not one forum but a list of them, and add the duplicate posts to existing threads in those forums.
The list of forums and the threads to be pre-loaded.
Lookus
12-18-2010, 11:48 AM
How do I change the text for this plugin in the navbar, I want to change it from "Forms" to "Staff Applications"
andie215
01-10-2011, 10:07 AM
Can anyone please give me a clue of how to change the Custom Form Output. Is this php, html ? sorry total noob copy and paste guy.:o Great mod btw :)
SORTED :)
Sir Jake
01-12-2011, 01:10 AM
Hello there, I'm trying to setup this so it can have a prefix such as "New" if someone fills out an application to join us.
I've looked at a lot of posts on here and never found what I was looking for.
I've noticed someone say it's in there if you edit the form yet I don't see it.
I'm running the latest beta of this 3.7
Thank you very much in advance for your help.
markb5900
03-14-2011, 10:45 PM
Can someone help with the output?
I want the form to output to a new thread (which it does now) but want it to basically be in two columns instead of one.
I have messed with it for hours now and just can't get it right.
Do I need "custom output" code, or can it be done in the "boxes"?
Thanks
My head hurts!!
zushiba
03-15-2011, 12:17 AM
So far as I know the table BBCode you can use in the CMS is not available in the forum yet. (http://tracker.vbulletin.com/browse/VBIV-9588) I'm sure there's some custom bbcode you could create to accomplish this though.
EDIT: http://i.imgur.com/qWAi8.png see, possible.
markb5900
03-16-2011, 01:43 AM
I have been working with the custom output for HOURS now and still can't get it to do what I want.
Does anyone know a way to put a space's between things.
What I want it to look like is:
Question 1 ........................................Question 2 "," would be blank spaces
Answer 1 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Answer 2
What it looks like now:
Question 1 Question 2
Answer 1 Answer 2
I can't get it to put say 40 spaces between question 1 and 2 etc..
bananalive
03-16-2011, 08:35 AM
I have been working with the custom output for HOURS now and still can't get it to do what I want.
Does anyone know a way to put a space's between things.
What I want it to look like is:
Question 1 ........................................Question 2 "," would be blank spaces
Answer 1 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Answer 2
What it looks like now:
Question 1 Question 2
Answer 1 Answer 2
I can't get it to put say 40 spaces between question 1 and 2 etc..
vBulletin removes multiple spaces between words.
Two solutions that i can think of:
1. try using [table] bbcode
2. Use ___ to space out question 2 but make them the same text colour as the post background, see below
Question 1 ........................................Question 2 "," would be blank spaces
Answer 1 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Answer 2
markb5900
03-16-2011, 11:18 AM
vBulletin removes multiple spaces between words.
Two solutions that i can think of:
1. try using [table] bbcode
2. Use ___ to space out question 2 but make them the same text colour as the post background, see below
Question 1 ........................................Question 2 "," would be blank spaces
Answer 1 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Answer 2
YOUR THE MAN!!!
Got it just like I want it. At least I think I do. LOL
THANKS
markb5900
03-16-2011, 12:35 PM
I am THIS close now.
I am posting the form results to a new thread.
On that thread, it puts the form title left justified at the top as part of the post.
I would like to control it's position and font etc..
Where would I go so it does not automatically put it there (know how to use formtitle now in custom code) or if it "has" to put it there, where can I control how it looks.
Thanks again for all the help. What a great mod!!!!
bananalive
03-16-2011, 01:04 PM
I am THIS close now.
I am posting the form results to a new thread.
On that thread, it puts the form title left justified at the top as part of the post.
I would like to control it's position and font etc..
Where would I go so it does not automatically put it there (know how to use formtitle now in custom code) or if it "has" to put it there, where can I control how it looks.
Thanks again for all the help. What a great mod!!!!
Edit Form -> Form Output Top BB code:
markb5900
03-16-2011, 02:16 PM
Thanks again for the help.
When I use that, I basically get two "form titles" then. (see attached)
On the upper left, it is there all the time, no matter what I do. That is the one I would like to get rid of.
In the center is when I add the code to the form top output.
Joemadden1989
04-15-2011, 04:47 PM
Hi there
First of all thanks for the mod, its awesome.
However i am trying to get the Regular Expression on one of the questions to give me a DD/MM/YYYY but cant get it to work, has anyone done anything similar?
Thanks
Joe
floggerss
05-01-2011, 10:49 PM
I need help:
I want to create a form that is submitted after a user create a thread, similar to a poll. Well it will be a poll but with a combobox, not a sigle selection. I want diferents question and a combobox, that the users have to select all of them. It will be to calificate the thread.
How i can do this?
Zarxrax
05-05-2011, 08:22 PM
When users submit a form and it creates a thread, is there any way I can take some of the data that they have entered and output it at the bottom of the post?
I want to format some of their answers in such a way that I can copy and paste it all at once.
floggerss
05-10-2011, 04:32 PM
we need support!
want to create a form that is submitted after a user create a thread, similar to a poll. Well it will be a poll but with a combobox, not a sigle selection. I want diferents question and a combobox, that the users have to select all of them. It will be to calificate the thread.
Nook_Neformat
06-06-2011, 05:26 PM
Is there's a way too somehow choose in which thread the post will be posted?
Simon Lloyd
06-06-2011, 07:16 PM
Is there's a way too somehow choose in which thread the post will be posted?When creating a new form you will see this option:
Post in ThreadPost in Thread when clicking the checkbox, click elsewhere and then the following and textbox for thread id should appear:
Threadid where Post is Created:
Nook_Neformat
06-06-2011, 07:22 PM
i mean, i need an option to choose from the form in wich one thread the post will be going.
so it can be posted to any thread from form, not just to one
Simon Lloyd
06-06-2011, 08:02 PM
The Author would have to custom that for you as there isn't that option to send it to whichever thread the user of the form chooses, unless you can use stuff like you can in the title like this:
Check the checkbox for which thread to post to and then put {q_1} so question one on your form would be a textbox for a thread id, this is only a guess, give it a go, if not you'll have to wait for the author to answer :)
Nook_Neformat
06-06-2011, 09:22 PM
i tried, it doesn't work(
Robert Waanders
07-01-2011, 12:43 PM
This is a really great mod! Thank you for this!
hossenpheffer
07-23-2011, 02:39 PM
I'm trying to change the New Thread icon/button code to go directly to a specific form. I found a prior post here: Post 459 (https://vborg.vbsupport.ru/showpost.php?p=1750702&postcount=459) telling what to do, but I'm not sure "where" to do it.
Can anyone expound on exactly what form and how, where it needs to be altered? I understand the code, just not where to put it.
Much thanks for any help.
Simon Lloyd
07-23-2011, 11:51 PM
Take a lookat Bananalive's post below it https://vborg.vbsupport.ru/showpost.php?p=1750850&postcount=461 with this go to Admincp>Plugins & Products>Add new plugin
Product: leave this alone
Hook location: newthread_start
Title: Form Button
Excecution Order: leave this alone
Plugin code: add the below changing the forum id's to that of the ones you want to control.if (in_array($forumid, array(1,2,3))) {
header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ;
}
twista46
07-25-2011, 06:41 PM
How can i insert my Forum Prefix`s in this Mod and a field for Images ??
hossenpheffer
07-25-2011, 11:00 PM
Thanks much to Simon Lloyd. That clarification was just what I needed!
TROLL
07-27-2011, 07:26 PM
I have what is probably a very simple question for anyone with PHP experience... (which I unfortunately do not).
In the Form Hook: Form Start: field, I currently have the following code which requires users to have a post count of at least 30 to use the form:
if($vbulletin->userinfo['posts'] < 30)
{
$errormessage = "You need 30 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
I would like to add a second requirement here, which also requires users to have joined at least 30 days ago in order to use the form.
I found the following code, but am not sure how to properly add it to what I have currently:
$vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30)
Again, I am looking to require that users have at least 30 posts AND have joined at least 30 days ago in order to use the form.
Thanks in advance for the help!
HMBeaty
07-27-2011, 07:32 PM
Try this
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
$errormessage = "You need 30 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
TROLL
07-27-2011, 07:48 PM
Thank you sir! That appears to work with some basic testing. Very much appreciated.
For the record, this is the final code I used, changing the error message to be more approprate:
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
$errormessage = "You do not have permission to create a thread in the Personal Marketplace because you need a post count of at least 30 and to have been a member for at least 30 days to create a thread here.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
HMBeaty
07-27-2011, 07:53 PM
Thank you sir! That appears to work with some basic testing. Very much appreciated.
For the record, this is the final code I used, changing the error message to be more approprate:
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
$errormessage = "You do not have permission to create a thread in the Personal Marketplace because you need a post count of at least 30 and to have been a member for at least 30 days to create a thread here.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
To shorten that up, I believe you could also use something like this:
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
standard_error(fetch_error('YOUR_ERROR_PHRASE'));
}
And go to Add New Phrase > Error Phrase > input your varname, text, etc. and change YOUR_ERROR_PHRASE to the varname you defined
b6gm6n
07-27-2011, 11:18 PM
Hi, how can i chose the ID of the thread maker for a submitted form? it seems it's always choosing the admin and posting a thread, just so happens I'm the admin who posted a test and it looked ok, but i wanted my forum bot to make the post, i inserted the bot ID and yet although it takes that information it just appends a a comma and my admin ID in the edit section, how can i get past this?
twista46
08-03-2011, 05:04 PM
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
$errormessage = "You do not have permission to create a thread in the Personal Marketplace because you need a post count of at least 30 and to have been a member for at least 30 days to create a thread here.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
Nice Tool
but it works not in 3.7 :(:(
twista46
08-06-2011, 09:26 PM
No Idea??
hossenpheffer
08-08-2011, 11:30 AM
I'm using the first three fields of a form to use as the new thread title. It's critical that the new title display all capital letters. Can some one explain the best way to force uppercase/caps for a given set of questions or field?
Using the 'description' to request the user input only caps is often ignored.
hossenpheffer
08-11-2011, 06:35 PM
I've been using the mod New Thread Notification for quite a while, but the instant email alerts have stopped sending with the installation and activation of Easy Forms in the forums that use a form to start a new thread.
I've tried adjusting the execution order around with both of them to no avail. Has anyone else seen this? Thanks in advance for any ideas or solutions.
Simon Lloyd
08-12-2011, 02:25 PM
maybe one of them is rewriting the hook thats used
hossenpheffer
08-12-2011, 03:01 PM
I expect you're right, or by-passing one? Reviewing the plugin hooks, they don't appear to have any shared hook locations.
Moon Moose
09-05-2011, 11:34 AM
I've installed this mod but can't find anywhere to create the form?? Or any clues from endless amounts of posts I have looked through. I just want to put a small "Send your name and address for tickets" form on a an events page in the cms. ??
blind-eddie
09-06-2011, 02:23 AM
I've installed this mod but can't find anywhere to create the form?? Or any clues from endless amounts of posts I have looked through. I just want to put a small "Send your name and address for tickets" form on a an events page in the cms. ??
In your quick links drop down, click Forms. It should be at the bottom.
Once you get to the form page the link to create new forms is dead center of page.
http://yoursitecom/forum/misc.php?do=forms
TROLL
09-19-2011, 09:35 PM
To shorten that up, I believe you could also use something like this:
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
standard_error(fetch_error('YOUR_ERROR_PHRASE'));
}
And go to Add New Phrase > Error Phrase > input your varname, text, etc. and change YOUR_ERROR_PHRASE to the varname you defined
Hello,
I found I am having an issue with some users being able to post even though they do not have both requirements: at least 30 posts and have been a member for 30 days. After reviewing the code, it appears that it is currently presented as:
"If you have less than 30 posts AND have been a member for less than 30 days, you receive an error message."
What I would like it to be is:
"If you have less than 30 posts OR have been a member for less than 30 days, you receive an error message."
This will require that users meet both a minimum post requirement and join date requirement, not that they only have to meet one or the other. To accomplish this, can I simply change the "AND" to "OR" in my current code, copied below?
if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30))
{
$errormessage = "You do not have permission to create a thread in the Personal Marketplace because you need a post count of at least 30 and to have been a member for at least 30 days to create a thread here.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
rnmcd
09-21-2011, 07:22 PM
What happened to the developers web site that had sample forms on it?:(
Uberguilds
10-17-2011, 10:19 PM
Did anyone fix the re-direct issue with vbseo on editing a form's options and saving?
The url is going to index.php#misc after I click "Save Changes."
Example:
The checkboxes, such as "Save to database" don't have a check mark when I marked it so before clicking "Save Changes" and being redirected to #misc.
Uberguilds
10-18-2011, 11:46 PM
resolved manually.
"Save to Database" mysql> update vb3_forms set action=5;
Field | Type | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+-----------------------------------------------------------------------------+----------------+
| fid | int(11) | NO | PRI | NULL | auto_increment |
| title | varchar(255) | NO | | | |
| description | text | NO | | NULL | |
| displayorder | int(10) | NO | | NULL | |
| action | varchar(255) | NO | | NULL | |
| threadtitle | varchar(255) | NO | | | |
| category | varchar(255) | NO | | | |
| polloptions | longtext | NO | | NULL | |
| poll | int(1) | NO | | NULL | |
| publicpoll | int(1) | NO | | NULL | |
| multiplepoll | int(1) | NO | | NULL | |
| pollquestion | varchar(255) | NO | | NULL | |
| usergroups | text | NO | | NULL | |
| submitmessage | text | NO | | NULL | |
| formoutput | longtext | NO | | NULL | |
| attach | int(1) | NO | | 0 | |
| preq | varchar(255) | NO | | | |
| pstq | varchar(255) | NO | |
| |
| prea | varchar(255) | NO | | | |
| psta | varchar(255) | NO | |
| |
| pres | varchar(255) | NO | | | |
| psts | varchar(255) | NO | |
| |
| pref | varchar(255) | NO | | | |
| pstf | varchar(255) | NO | | | |
| beforesubmit | longtext | NO | | NULL | |
| formstart | longtext | NO | | NULL | |
| top | varchar(255) | NO | |{formtitle}
| |
| showonfl | int(1) | NO | | 1 | |
| redirect | int(1) | NO | | 0 | |
| redirecturl | varchar(255) | NO | | NULL | |
| pmrec | varchar(255) | NO | | NULL | |
| threadid | varchar(255) | NO | | NULL | |
| forumid | varchar(255) | NO | | NULL | |
| email | varchar(255) | NO | | NULL | |
| polltimeout | int(3) | NO | | 0 | |
| prefixid | varchar(255) | NO | | | |
| preview | int(1) | NO | | 1 | |
| userids | text | NO | | NULL | |
| submitlimitperuser | varchar(255) | NO | | | |
|Jordan|
01-09-2012, 05:01 AM
I know thread prefix support is already available, but i dont want the form to be locked to one prefix, i want users to be able to choose the prefix. How could i do this?
CoffeeLovesYou
01-22-2012, 12:30 AM
How do you allow users to edit their submission without letting them see and edit everyone's submission?
Read up to page 50 so far ..still reading but not found any one with the same query/mod.
I would like it to post as a new thread in my mgc chatbox notification window as it use to do when I used the standard thread in that forum now im using the form there by default it does not show.
I'm guessing I need to change the code in Newthread_form_complete in the mgc chatbox product to look for forms created as well?
I think it just looks for this at the moment
$vbulletin->db->query_write
Can some one help or at least tell me if i'm on the right track.
Great mod by the way, and amazing support I have seen reading this far, off to read some more because I'll learn more :)
Update read every page and although I see the same old questions being raised, mine never has been it a new question! shame it took me to long to find this mod and it's not supported any more! Ill try posting in the new version.
I know thread prefix support is already available, but i dont want the form to be locked to one prefix, i want users to be able to choose the prefix. How could i do this?
see here
https://vborg.vbsupport.ru/showpost.php?p=1803542&postcount=963
tansu
02-09-2012, 09:36 AM
Hello,
How can I prevent my users to submit the form more than once?
tansu
02-16-2012, 05:43 AM
Hello,
How can I prevent my users to submit the form more than once?
Any ideas?
CoffeeLovesYou
03-03-2012, 08:24 PM
Is there a way to add a search function to the Form Results Table?
hpidriver
03-09-2012, 08:36 PM
Is there a way to add a search function to the Form Results Table?
I believe in the latest version of this there is a search button when you view the Form Results Table
You could use custom question for this:
require_once(DIR . '/includes/functions_prefix.php');
$prefix_options = fetch_prefix_html($form['forumid'], $q["$formbit[id]"], true);
$answer = '<select name="q_' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';
I am using this custom question code, and it shows me the correct choices of prefixes when filling out a form.
However, when I click submit, Easy Forms does not recognize that any prefix was chosen. ie. if the custom coded prefix question is made "compulsory" it always throws the error of : "The form did not submit as the following questions are unanswered: "
Anyone have the prefix option for posting to a new thread working? on vb3.8.6
nascartr
03-25-2012, 11:43 PM
This requires Easy Forms v3.3
Add this into postbit template somewhere (or postbit_legacy)
<a href="misc.php?do=form&fid=2&username=$post[username]">Trade with $post[username]</a>Import attached file.
form Hook: Form start
$hiddenfield1 = $vbulletin->input->clean_gpc('g', 'username', TYPE_NOHTML);
if (empty($hiddenfield1))
{
$errormessage = "Error, this form needs a username.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
} form Hook: Before Submit
$hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_NOHTML);
$formoutput = str_replace('{param}', "$hiddenfield1", $formoutput); Then you can use {param} in custom output.
if you don't want to use custom output then add a custom question with php code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $hiddenfield1 . '" />';
I'm using this one my site but when a member tries to create the form with a username that contains opening characters such as the username #93forever they get an error...
"Error, this form needs a username."
Any idea how to fix this so that the system recognizes characters?
SilverBoy
04-06-2012, 09:25 AM
I just installed this great product, and I have a Q, How I can add a forum drop-down list as an answer for multi-choice drop-down type? I just want it to know the favorites forums to my users.
blind-eddie
04-06-2012, 10:14 AM
When adding new question select "Dropdown Select"....:p
SilverBoy
04-06-2012, 11:29 AM
Thanks blind-eddie but how I can get the forums list automatically?
SilverBoy
04-06-2012, 01:02 PM
As I said before I want to make multi selection from that drop-down list.
blind-eddie
04-07-2012, 02:17 AM
You mean a drop down with dropdowns at each forum name to show sub-forums and to be added automatically?
I can't see that happening with this modification.
You would have to add each forum name you want added to the drop down selection.
If you want multiple dropdowns within that drop down you will have to hard code it to get that to work.
Good Luck....
SilverBoy
04-07-2012, 02:38 AM
Yes I mean that and I know it is not built in in the hack :)
BTW I'm looking for a way to add drop-down list with multi-selection not only one selection at time.
Thanks in advance.
SilverBoy
04-20-2012, 11:15 PM
I have some user groups in my forum that all posts of them goes to moderation queue, so how I can make threads created by forms goes to moderation queue if the user behind one of that user groups??? (the are primary groups and some user effected by some groups because of infraction system).
SilverBoy
05-28-2012, 10:28 PM
I have a big problem.
I have one form (for survey purpose) saved to database, and I have until now more than 2000 participation, every thing was OK, but after the number of participations growth to more than 1400 I get problem with display results (even poll result and table), the page continuing loading to long time and thin display (page not found error).
How I can divide the results to multi-pages to display them?
Please help, it is an urgent case.
SilverBoy
05-29-2012, 10:14 PM
no body can help in this?
Simon Lloyd
05-29-2012, 11:12 PM
Which version do you have installed?
SilverBoy
05-29-2012, 11:40 PM
3.7
Thanks for reply
SilverBoy
06-12-2012, 03:07 PM
What is the problem with show poll results !!
Why it didn't work if the number of forms submitted over 1000?
KrU$ty
06-28-2012, 11:19 AM
I'm getting the following error on install. Couldn't find anything about it in the thread. Anyone know anything about it?
Database error in vBulletin 3.8.7:
Invalid SQL:
CREATE TABLE IF NOT EXISTS `forms` (
`fid` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`displayorder` int(10) NOT NULL,
`action` int(3) NOT NULL,
`where` varchar(200) NOT NULL default '',
PRIMARY KEY (`fid`)
) TYPE=MyISAM;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 9
Error Number : 1064
Request Date : Thursday, June 28th 2012 @ 07:15:59 AM
Error Date : Thursday, June 28th 2012 @ 07:16:00 AM
Script : http://mysite.com/admincp/plugin.php?do=productimport
Referrer : http://mysite.com/admincp/plugin.php?do=productadd
IP Address : MyIP
Username : MyUsername
Classname : vB_Database
MySQL Version : 5.5.23-55
I've tried all versions of the mod, even the 3.7 one and I get the same error. No problems with any other mods.
I'm wondering if I just create the table 'forms' manually, will that work?
kotkerk
06-28-2012, 03:11 PM
find in product file TYPE=MyISAM;
and replace with ENGINE=MyISAM;
all instances
KrU$ty
06-28-2012, 10:21 PM
find in product file TYPE=MyISAM;
and replace with ENGINE=MyISAM;
all instances
Thanks. Worked like a charm.
imported_polygrinder
07-07-2012, 09:35 PM
Does anyone know of a tutorial on how to use this product? Never mind. I figured it out.
vBMerkezi
07-12-2012, 09:41 AM
thank you
nlwin
07-13-2012, 06:18 PM
Hey buddy, this is definitely a great add-on, and I have installed it on my vb3, one of the large boards. All Admins and Mods love this add-on. Would you be considering to add reCaptcha option to your plugin in the future release for vb3 series?
Thanks again for your great contribution.
viper357
07-25-2012, 07:26 AM
Hi bananalive, Does this work seamlessly with your Articles mod?
pattycake
08-28-2012, 07:05 PM
Wow! Helpfile :) . Product seems to become solid :) .
May be, question _content_ macro ? That's not absilutely necessary, but convenient: no needs to duplicate text in template, and no needs to syncronise template when you clarify question text.
Example:
----------
Question1text: {q_1}
Question2text: {q_1}
----------
Will be:
----------
{qn_1}: {q1}
{qn_2}: {q2}
----------
No ideas about macro name. Just an example.
None of this works....
If you put {q_1} in the email body, it gets changed to $[q_1] and does not show the answer to question 1. Ditto for {q1} - shows nothing when the email gets sent.
{qn_1} in the email body does nothing, displays nothing when the email gets sent.
pattycake
08-28-2012, 07:46 PM
$q[1] is the new format for v3.x
Use $qo[1] for drop down menu
$qn[8] to show question 1 eg. Age
$q[8] $qo[8] to show question 1 answer eg. 45
And make sure you are using the # of the question eg. 8 not 2(see screenshot)
I can't for the life of me figure out how to output the question and the answer in the custom email output for a radio button.
I have tried:
{qn_1}
{q1}
{qo_1}
$qo[1]
$qo[1]
{qo1}
$q[1] {a_1}
None of this works.
pattycake
08-28-2012, 08:05 PM
I can't for the life of me figure out how to output the question and the answer in the custom email output for a radio button.
I have tried:
{qn_1}
{q1}
{qo_1}
$qo[1]
$qo[1]
{qo1}
$q[1] {a_1}
None of this works.
Never mind. I figured it out. I was using {q_1} becuase it was the first question in that particular form.
It was question #16 though of ALL questions of ALL forms.
Once I changed the "{q_1}" to "{q_16}", everything worked.
singabaloo
09-12-2012, 01:17 PM
I'm using Easy Forms 3.7 on a 3.8.5 VB install. I've had Easy Forms running for a while ands it's been great, but my forms were/are very basic.
The form(s) create a new thread in a forum when they are submitted. At the moment I ask people to fill in their Username, path to their public profile and even do some simple maths (like field 3 = Field 1 - Field2)
Is there a way I can get Easy Forms to populate some of those fields/questions for me instead of asking the User to fill it in ? I imagine {userrname} and something like [URL="$vboptions[bburl]/member.php?u=$user_userid"] for the username and public transport, but I can't work out how I can make the form return these values and add it to the post created by the form submission.
Is there a simple way to do it that I can't see, or is it going to require some PHP coding ?
Simon Lloyd
09-12-2012, 01:32 PM
For the username to be entered put this in the php code box for the answer$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[username] . '" />';
singabaloo
09-12-2012, 01:37 PM
Thanks, that worked nicely.
I managed to pull gender out too following your example.
Time to try the profile URL.
Thanks again.
singabaloo
09-13-2012, 02:54 AM
I keep being impressed by Easy Forms. Thanks bananalive and Simon for the pointer on pulling DB fields out. I even took a leap of faith and found I could get more complicated results. here's my current effort for grabbing the Gender but displaying just for the first letter.
$tgen = $vbulletin->userinfo[field6];
if ($tgen=='Male') {$gen = 'M';
}
elseif ($tgen=='Female') {$gen = 'F';
}
else {$gen = '';}
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $gen . '" />';
I'm sure someone could cut that down to 1 line but I'm not fussed.
One question I have is the custom layout. What this particular form does is grab information from a user that an admin will use to add to a table we have on the site. It's a bit manual at the moment but if I could some how format the output like this:
[ url={q_2}]{q_1}[ /url]|{q_3}|{q_4}|{q_5}|{q_6}|{q_7}|[ URL={q_8}]Diary [/URL]
then everyone's life would become a lot easier.
Actually, what would be perfect is to use the default layout and then tack the above example at the bottom so the admin just needs to copy and then paste and it's all done.
I can't find any examples of custom templates that I can start to hack away with so if anyone knows how to do the above, or could point me to some examples, that would be great.
singabaloo
09-17-2012, 12:57 AM
Is there any way I can get the "Form Output Top" to include some of the form answers ?
I can get {formtitle} which is a fixed value for each form. Ideally I want to be able to have the form output to parse the values of {q_1}:{q_2}
asabet
09-26-2012, 02:07 PM
Is there any way to prevent users from submitting a form more than once per X hours? I am using it to allow people to submit listings in a classifieds forum.
Previously the members just created regular threads in that forum, and I used this mod (https://vborg.vbsupport.ru/showthread.php?t=96848) to prevent them from posting more than one listing per 8 hours. However, that mod seems to have no effect when the threads are auto created by submitting a form.
This is the code used by my current max posts mod:
if ($foruminfo['forumid'])
{
$ugroupids = $vbulletin->userinfo['usergroupid'] . iif($vbulletin->userinfo['membergroupids'], "," .
$vbulletin->userinfo['membergroupids']);
$fids = $forumid . iif($foruminfo['parentlist'], "," . $foruminfo['parentlist']);
$result1 = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "forumpermission
WHERE ( forumid IN($fids) AND usergroupid IN ($ugroupids)) AND
(maxthread=0 AND perhour=0)");
if (empty($result1))
$result = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "forumpermission
WHERE forumid IN($fids) AND usergroupid IN ($ugroupids)
ORDER BY forumid DESC, maxthread DESC");
if ($result)
{
$maxtime = TIMENOW - ($result['perhour'] * 3600);
$sql = $db->query_first("SELECT count(*) as totalthread FROM " . TABLE_PREFIX . "thread WHERE dateline >=
$maxtime
AND forumid IN($fids)
AND postuserid = " . $vbulletin->userinfo['userid'] . " ");
if ($sql['totalthread'] >= $result['maxthread'])
eval(standard_error(fetch_error('no_new_thread_per mission', $result[maxthread], $result[perhour])));
}
}
I want to limit all users to a max of 1 form submission per 8 hours in forum # 17. Is there a modified version of the above code I could put in the Form Hook: Form Start: field to have it work?
bulbasnore
09-29-2012, 06:13 PM
Installed.
Anyone have the help file cached? I've searched through the forum for it, and can't come up with an alternate location to download it (link is failed).
blind-eddie
10-09-2012, 02:04 PM
I know this is old, but I have questions.
I am running 3.8.4.
I have an extra unused vbulletin lic & am throwing up an ibproarcade site for my son/extended family & their friends without really using forums exept for automaticaly sending game reports to new thread, with no posting allowed. Its in the beginning stages with default games only, I have thousands of games still to load & a many site edits to make to have it the way I want.
================================================== ======
Do you know of (or can you add) a way to view the forms without forum header and footer? (ideally add an option with the definition of each form to use a given vB style)
Im trying to use the forms inside an iframe on page outside of the main forums, and this page already has its own separate header/footer,
Thanks!
Find in Plugin: Easy Forms Part 1:
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
Replace:
eval('print_output("' . fetch_template('form_view') . '");');
Exactly what I needed, Thank you.
I have the report game form showing in a popup with your edits above, but I loose all site colors.
What would I need to do too get the site colors to show on form popup?
Note: Site colors are lost on all forms even normal forms not in a popup.
================================================== ============
thanks bananalive!
Any idea how to achieve this per form (some forms are specifically for a site outside of the forums and other are for the forums themselves)
PS: currently using a conditional in the header, footer and navbar templates to remove them globally for misc.php.
Find in Plugin: Easy Forms Part 1:
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
Replace:
if (!$noheader)
{
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
}
else
{
eval('print_output("' . fetch_template('form_view') . '");');
}
Form Hook: Form Start:
$noheader = true;
How does this work on a per form basis?
Thank you
jorge_kai
11-08-2012, 04:38 PM
best mod ever!
TheKdd
11-13-2012, 05:30 PM
Does anyone know if there is a way to make this sit on the "Thank you for filling out the form" page longer before redirect? It goes so fast that people can't read what I wrote. I could turn redirect off, but then it just has a button that takes them back to the form.
Or... could I change the address of the button so when they click it, it takes them elsewhere?
brad heffernan
01-09-2013, 06:11 AM
If people are having problems installing this open the product-easyforms v3.6.xml
search for
TYPE= MYISAM
replace with
ENGINE= MYISAM
The keyword TYPE is removed since MySQL 5.1, use ENGINE
I did not read through all 109 pages as i dont have that amount of spare time on my hands so, Im sorry if this is already posted. Just like to help.
hpidriver
02-15-2013, 09:49 PM
https://vborg.vbsupport.ru/attachment.php?attachmentid=94628&d=1234368938
Is there any way to dynamically set the Forum ID where thread is posted?
NomNomNom
02-17-2013, 10:21 PM
Hi,
I'm sure this is possible, but I'm having trouble with it. Can EasyForm be setup so that a user can see the results of their submissions, but not see anybody elses responses? I permissioned it as I thoght appropriate, and the use gets a 'view your results' link, but when clicked, they get a 'do not have permission' page. The other way I configured it allowed them to view *all* results. Is it possible to do this for just their results?
Many thanks, and good work on a great plugin.
Hamma
02-28-2013, 04:24 PM
Does this allow attachments yet?
Simon Lloyd
03-01-2013, 01:19 PM
Yet? it does already allow them :)
Hamma
03-01-2013, 02:34 PM
Ok cool, original post doesn't specify that. :P Says its coming soon.
xlguy
03-12-2013, 09:42 PM
I have a price input box setup, but some people are entering "0". Anyone know the code so I can ensure they have to enter at least 1?
blind-eddie
03-22-2013, 08:55 PM
I created a template edit that shows you how to use the easy forms as a classifieds... check it out.
https://vborg.vbsupport.ru/showthread.php?t=296406
dutchbb
04-28-2013, 04:48 PM
Is this still being developed? Some of us like to keep running vb3.8 since vb4 kinda sucks so...
One feature I really need is the ability to re-order the "Dropdown Select" option fields and add new ones where I want. Currently if I want to add a new one I have to completely change the fields with copy/paste which is ridiculous and takes ages. Could you add a feature to re-order them quickly and add new options in any location?
Thanks
reverse1312
05-03-2013, 09:38 AM
Hello,
I saw users getting the error message :
"Error, this form does not have any results stored in the database."
But I did not see how they solved it...
Could anyone help me. I almost succeeded but no result is writen in the result table...
Thank you
SwalyAaron
05-27-2013, 04:23 PM
How can I make it that all users can see a form? I had this on a previous forum worked great but now it only allows the usergroup I choose to see the form.
Gator Bite
06-13-2013, 12:28 PM
This is a very powerful add on. Very cool. Thanks to the developpers.
Can anybody tell me how to add a Regular Expression to a Custom Question?
My question looks like this right now:
$answer = '<input type="text" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[field24] . '" size="20" maxlength="17" />';
I want to add the following Regular Expression:
/[W][P]0[A-Z]{2}[0-9][A-Z0-9]{4}[A-Z][0-9]{6}/
I'm asking for a VIN and trying to make sure it's entered correctly.
SBlueman
10-01-2013, 02:15 AM
I am stoked to have finally figured out this modification some. I am not the best when it comes to coding and/or PHP. With that said, some questions:
1. Can this modification work with the new threads created by members? Auto-Capitalize First Letter of Each Word In Thread Title (https://vborg.vbsupport.ru/showthread.php?t=168831)
2. How can I add topic tags to new threads created with the easy forms? Is there a way to code that in?
3. Does anyone have a copy of the original help file? I spent all weekend scouring for a copy and came up with nothing.
Alfa1
10-04-2013, 09:48 PM
Here you go:
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}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[U]How can I... ?
These are solutions to commonly asked questions.
How can I change the navbar/ quick links "forms" to another name?Find and replace '$vbphrase[forms]' in plugin 'Easy Forms AutoInsert Links' with your alternative textHow can I add a new line at the end of a question?You can use \r\n in the question bbcode for a new line. This is the same for section bbcode, answer and form bbcode.Will upgrading loss all of my forms?No, but if you are worried export them as a backup to your computer.Can I have more than one question with vb message editor?No, vbulletin code prevents you.The rest can be found here: http://web.archive.org/web/20090501220910/http://www.bananalive.co.cc/showthread.php?t=119
SBlueman
10-06-2013, 03:52 PM
Thank you for that great post Alfa1! That helped big time!
So some questions:
We use this modification on our site: Auto-Capitalize First Letter of Each Word In Thread Title (https://vborg.vbsupport.ru/showthread.php?t=168831)
So it seems to get it to work you need to add something to the form's
"Form Hook: Before Submit:" field. Right now I have this in there:
if ($qo[16] == "NFL General Discussion")
{
$form[forumid] = 108;
}
elseif ($qo[16] == "Arizona Cardinals")
{
$form[forumid] = 330;
}
elseif ($qo[16] == "Atlanta Falcons")
{
$form[forumid] = 306;
}
elseif ($qo[16] == "Baltimore Ravens")
{
$form[forumid] = 313;
}
elseif ($qo[16] == "Buffalo Bills")
{
$form[forumid] = 310;
}
elseif ($qo[16] == "Carolina Panthers")
{
$form[forumid] = 327;
}
elseif ($qo[16] == "Chicago Bears")
{
$form[forumid] = 323;
}
elseif ($qo[16] == "Cincinnati Bengals")
{
$form[forumid] = 312;
}
elseif ($qo[16] == "Cleveland Browns")
{
$form[forumid] = 311;
}
elseif ($qo[16] == "Dallas Cowboys")
{
$form[forumid] = 321;
}
elseif ($qo[16] == "Detroit Lions")
{
$form[forumid] = 324;
}
elseif ($qo[16] == "Denver Broncos")
{
$form[forumid] = 303;
}
elseif ($qo[16] == "Green Bay Packers")
{
$form[forumid] = 305;
}
elseif ($qo[16] == "Houston Texans")
{
$form[forumid] = 315;
}
elseif ($qo[16] == "Indianapolis Colts")
{
$form[forumid] = 314;
}
elseif ($qo[16] == "Jacksonville Jaguars")
{
$form[forumid] = 316;
}
elseif ($qo[16] == "Kansas City Chiefs")
{
$form[forumid] = 318;
}
elseif ($qo[16] == "Miami Dolphins")
{
$form[forumid] = 308;
}
elseif ($qo[16] == "Minnesota Vikings")
{
$form[forumid] = 325;
}
elseif ($qo[16] == "New England Patriots")
{
$form[forumid] = 300;
}
elseif ($qo[16] == "New Orleans Saints")
{
$form[forumid] = 326;
}
elseif ($qo[16] == "New York Giants")
{
$form[forumid] = 304;
}
elseif ($qo[16] == "New York Jets")
{
$form[forumid] = 309;
}
elseif ($qo[16] == "Oakland Raiders")
{
$form[forumid] = 317;
}
elseif ($qo[16] == "Philadelphia Eagles")
{
$form[forumid] = 322;
}
elseif ($qo[16] == "Pittsburgh Steelers")
{
$form[forumid] = 301;
}
elseif ($qo[16] == "San Diego Chargers")
{
$form[forumid] = 319;
}
elseif ($qo[16] == "San Francisco 49ers")
{
$form[forumid] = 307;
}
elseif ($qo[16] == "Seattle Seahawks")
{
$form[forumid] = 331;
}
elseif ($qo[16] == "St. Louis Rams")
{
$form[forumid] = 329;
}
elseif ($qo[16] == "Tampa Bay Buccaneers")
{
$form[forumid] = 328;
}
elseif ($qo[16] == "Tennessee Titans")
{
$form[forumid] = 302;
}
elseif ($qo[16] == "Washington Redskins")
{
$form[forumid] = 320;
}
elseif ($qo[16] == "NFL Draft Discussion")
{
$form[forumid] = 208;
} so people can send the form in the right forum. What would I add to have the modification work?
Now, on our site we use a custom tag modification that lists some preset tags to insert. We use this modification: https://vborg.vbsupport.ru/showthread.php?t=159646. We now use the template edit in the new thread template, replacing the default tag form. How can I A) include the tags in a new form and B) have different tags for different forms?
Also, just a thought....but can a moderator or the mod author add the FAQ to the first post, so people don't have to search 110 pages before they find this major piece of information?
SBlueman
10-11-2013, 11:25 PM
$vbulletin->GPC['subject'] = ucwords($vbulletin->GPC['subject']);
This is the code for the Auto-Caps. Is this as simple as pasting that line of code to the
Form Hook: Before Submit: field? And if so, what would the correct setup be to work with this existing code:
if ($qo[16] == "NFL General Discussion")
{
$form[forumid] = 108;
}
elseif ($qo[16] == "Arizona Cardinals")
{
$form[forumid] = 330;
}
elseif ($qo[16] == "Atlanta Falcons")
{
$form[forumid] = 306;
}
elseif ($qo[16] == "Baltimore Ravens")
{
$form[forumid] = 313;
}
elseif ($qo[16] == "Buffalo Bills")
{
$form[forumid] = 310;
}
elseif ($qo[16] == "Carolina Panthers")
{
$form[forumid] = 327;
}
elseif ($qo[16] == "Chicago Bears")
{
$form[forumid] = 323;
}
elseif ($qo[16] == "Cincinnati Bengals")
{
$form[forumid] = 312;
}
elseif ($qo[16] == "Cleveland Browns")
{
$form[forumid] = 311;
}
elseif ($qo[16] == "Dallas Cowboys")
{
$form[forumid] = 321;
}
elseif ($qo[16] == "Detroit Lions")
{
$form[forumid] = 324;
}
elseif ($qo[16] == "Denver Broncos")
{
$form[forumid] = 303;
}
elseif ($qo[16] == "Green Bay Packers")
{
$form[forumid] = 305;
}
elseif ($qo[16] == "Houston Texans")
{
$form[forumid] = 315;
}
elseif ($qo[16] == "Indianapolis Colts")
{
$form[forumid] = 314;
}
elseif ($qo[16] == "Jacksonville Jaguars")
{
$form[forumid] = 316;
}
elseif ($qo[16] == "Kansas City Chiefs")
{
$form[forumid] = 318;
}
elseif ($qo[16] == "Miami Dolphins")
{
$form[forumid] = 308;
}
elseif ($qo[16] == "Minnesota Vikings")
{
$form[forumid] = 325;
}
elseif ($qo[16] == "New England Patriots")
{
$form[forumid] = 300;
}
elseif ($qo[16] == "New Orleans Saints")
{
$form[forumid] = 326;
}
elseif ($qo[16] == "New York Giants")
{
$form[forumid] = 304;
}
elseif ($qo[16] == "New York Jets")
{
$form[forumid] = 309;
}
elseif ($qo[16] == "Oakland Raiders")
{
$form[forumid] = 317;
}
elseif ($qo[16] == "Philadelphia Eagles")
{
$form[forumid] = 322;
}
elseif ($qo[16] == "Pittsburgh Steelers")
{
$form[forumid] = 301;
}
elseif ($qo[16] == "San Diego Chargers")
{
$form[forumid] = 319;
}
elseif ($qo[16] == "San Francisco 49ers")
{
$form[forumid] = 307;
}
elseif ($qo[16] == "Seattle Seahawks")
{
$form[forumid] = 331;
}
elseif ($qo[16] == "St. Louis Rams")
{
$form[forumid] = 329;
}
elseif ($qo[16] == "Tampa Bay Buccaneers")
{
$form[forumid] = 328;
}
elseif ($qo[16] == "Tennessee Titans")
{
$form[forumid] = 302;
}
elseif ($qo[16] == "Washington Redskins")
{
$form[forumid] = 320;
}
elseif ($qo[16] == "NFL Draft Discussion")
{
$form[forumid] = 208;
}
TNCclubman
11-05-2013, 02:01 AM
Is there a way to block more than 1 vote attempt per IP? Ive got people voting multiple times just by registering new accounts.
blind-eddie
02-18-2014, 04:04 PM
For those that are still using this on their 3.8 board and are using VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=123481&page=96&highlight=image+Hosting)
, were you able to add the code to the form editor, if so, would you mind sharing the "how to" with me?
EDIT: I can get the code to show in editor below smilie box as per instructions but it will not post image info in message area.
viper357
02-19-2014, 07:01 PM
For those that are still using this on their 3.8 board and are using VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=123481&page=96&highlight=image+Hosting)
, were you able to add the code to the form editor, if so, would you mind sharing the "how to" with me?
EDIT: I can get the code to show in editor below smilie box as per instructions but it will not post image info in message area.I experienced the same thing, would upload fine but not post, even hired a coder to try and get it to work but with no luck, eventually ended up enabling attachments.
blind-eddie
02-19-2014, 07:08 PM
I have a coder looking at it as we speak.... I am sure he will either share his edits here or allow me to.
dany_danay
04-01-2014, 05:31 AM
Suposse this is anserw but i cant find it... How can i add a form into a vbulletin internal page?
goxy63
10-01-2014, 07:54 PM
I would need something like this to use as an petition on my forums
Will this work on VB4?
Also if I modify this in order that user sign in for petition, will I be able to print out somehow all data in order to take this as proof for real petition?
Bunch of details as every user birthday, id number, address and such....making things visible only for me not for public and so on...
Was searching for petition hack but there is no any, only some ppl mention that this can be used as such
Please give me some ideas, or opinions
Thanks
bananalive
10-04-2014, 12:11 PM
I would need something like this to use as an petition on my forums
Will this work on VB4?
Also if I modify this in order that user sign in for petition, will I be able to print out somehow all data in order to take this as proof for real petition?
Bunch of details as every user birthday, id number, address and such....making things visible only for me not for public and so on...
Was searching for petition hack but there is no any, only some ppl mention that this can be used as such
Please give me some ideas, or opinions
Thanks
vbulletin 4 version here - https://vborg.vbsupport.ru/showthread.php?t=234385
Jo_RHU
10-28-2014, 03:57 PM
Hi, I've created a basic test form with one question with 3 checkboxes for answers.
It works fine with the default settings but when I try to customise the form output by using:
$q[1]
I just get the text 'array' posted in the thread, instead of the answer. Am I doing something wrong?
I'm using vb 3.8.5 and the plugin version 3.6.
Thanks!
Jo_RHU
10-28-2014, 10:09 PM
I am using this custom question code, and it shows me the correct choices of prefixes when filling out a form.
However, when I click submit, Easy Forms does not recognize that any prefix was chosen. ie. if the custom coded prefix question is made "compulsory" it always throws the error of : "The form did not submit as the following questions are unanswered: "
Anyone have the prefix option for posting to a new thread working? on vb3.8.6
I was having this same problem on 3.8.5, it showed the dropdown menu to choose the prefix but when the thread was published no prefix had been added.
It's now working using the code as below and since I upgraded the plugin to the 3.7 beta and (in the xml file) changed all instances of TYPE=MyISAM to ENGINE=MyISAM. (I don't know if that's related to the issue but just posting here in case it helps someone else tearing their hair out like I was!) This is the code used (as has been posted previously in this thread)
In a custom question called 'prefix':
require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';
and in the 'Form Hook: Before Submit:' section:
$form['prefix'] = $form['prefixid'] = $qo['15'];
*where 15 is the question # for the prefix custom question
Thank you developer, awesome plugin! (I tried to get this working years ago and struggled but I guess my vb brain has evolved since then :))
tbworld
10-29-2014, 03:07 AM
Thanks for sharing! :) I do not use this modification, but it is a popular modification. I am just thanking you in case others do not.
m7sen
10-29-2014, 11:35 PM
any support for vb3.8.8 please
bananalive are u a live
m7sen
10-31-2014, 01:36 PM
hi guys
can anyone help me
# I want to do select a specific time (like 24 hourse) so that member would be able to re- fill the form again
can i do it from ip members and guest too
# I want to make the forms can not be submitted until approved by the Administration (i try $newpost['visible'] = '0';)
# I want to put The option to search for answers on the form fields in theard
# I want put new post button in theard if i use Post in Thread and new Thread button in forumdisplay if i use Forumid where Thread is posted
# i want to add fields answers in header moving bar
help me please :(
i hope to support this mod again :(
must upgrade to 4.3 for vb3.8.8
posontyclanole
11-06-2014, 07:09 PM
It works in VB5?
ozzy47
11-06-2014, 07:10 PM
It works in VB5?
No this is for vB3 only.
posontyclanole
11-06-2014, 07:11 PM
No this is for vB4 only.
There is something for vb5? or some way to put codes in the titles? like this for example. Thank you.
http://www.vbulletin.com/forum/filedata/fetch?filedataid=64702
ozzy47
11-06-2014, 07:14 PM
Nope, if there was I would have linked you to it. :)
There is not many mods at all for vB5
posontyclanole
11-06-2014, 07:23 PM
Nope, if there was I would have linked you to it. :)
There is not many mods at all for vB5
I want to create a community of photography, Setting You think is best for her vb4 or vb5?
ozzy47
11-06-2014, 07:30 PM
Imo I would start with vB4, as vB5 has very little to offer for addons, and it is still missing a lot in the core software that vB4 has.
m7sen
11-07-2014, 09:16 AM
I add a question
What is your sex ?
There are two options
one is Male
two is Female
i want to add icon for option one and another for option two
and answer is be icon
can i do it ?
or if i want add blue color for male and Pink for female !
and i add another question
Choose your country ?
i want the answer be icons of state flag
Jo_RHU
11-14-2014, 06:42 AM
For info for the developer - I just went to copy a form, it seems to have copied fine but gave me the message 'could not find the phrase 'copyform' after copying. So there could just be a small error with phrases there.
Jo_RHU
11-16-2014, 06:16 PM
Edited to add: Solved! See end of post
---------------
I'm not sure if others are experiencing this issue (I've searched the thread but it's very long so hard to say) -
I've added the vbulletin editor as a question in order to allow image attachments/uploads - but the toolbar that is displayed on the form does not include the IMG bbcode button (all other editor buttons seems as normal) and the paper clip icon for attachments does nothign when clicked (checked in Firefox and IE). The forum that the form is being submitted to does allow images/attachments so I'm not sure if there's something wrong, or a setting somewhere that I've missed? Any advice would be much appreciated :)
-------------
Apologies, my bad! There is an 'allow attachments' checkbox that appears if the form is set to submit to a new thread (which luckily my form does). But still no IMG bbcode button which I really need to avoid our server being filled with images people could save elsewhere. For now I can ask people to write the bbcode by hand but if anyone can give me any tips on why this is happening or how to fix, please let me know. Thanks!
bananalive
11-17-2014, 01:15 PM
Apologies, my bad! There is an 'allow attachments' checkbox that appears if the form is set to submit to a new thread (which luckily my form does). But still no IMG bbcode button which I really need to avoid our server being filled with images people could save elsewhere. For now I can ask people to write the bbcode by hand but if anyone can give me any tips on why this is happening or how to fix, please let me know. Thanks!
Enable bbcode [img] on non-forum pages (vbulletin options -> bbcode settings)
m7sen
11-22-2014, 04:56 PM
hi guys
can anyone help me
# I want to do select a specific time (like 24 hourse) so that member would be able to re- fill the form again
can i do it from ip members and guest too
# I want to make the forms can not be submitted until approved by the Administration (i try $newpost['visible'] = '0';)
# I want to put The option to search for answers on the form fields in theard
# I want put new post button in theard if i use Post in Thread and new Thread button in forumdisplay if i use Forumid where Thread is posted
# i want to add fields answers in header moving bar
help me please :(
i hope to support this mod again :(
must upgrade to 4.3 for vb3.8.8
I add a question
What is your sex ?
There are two options
one is Male
two is Female
i want to add icon for option one and another for option two
and answer is be icon
can i do it ?
or if i want add blue color for male and Pink for female !
and i add another question
Choose your country ?
i want the answer be icons of state flag
Enable bbcode [img] on non-forum pages (vbulletin options -> bbcode settings)
bananalive please help me
Simon Lloyd
11-23-2014, 04:44 AM
m7sen, that is a lot of "I want...."'s maybe it would be best to Support the Developer (https://vborg.vbsupport.ru/showthread.php?t=201097&page=111&nojs=1#gtdonate) and then ask or PM him/her and ask for a quote to do all that work, after all coders need to eat too! :)
m7sen
11-24-2014, 04:11 PM
m7sen, that is a lot of "I want...."'s maybe it would be best to Support the Developer (https://vborg.vbsupport.ru/showthread.php?t=201097&page=111&nojs=1#gtdonate) and then ask or PM him/her and ask for a quote to do all that work, after all coders need to eat too! :)
i can not pm hem coz his pm is full !!!!!!!!!!!!!
and what if i Support hem and he didnt answer me and help me
must help coz this is his mod !!!
if he will help me no porblem with me do supported hem
Simon Lloyd
11-28-2014, 06:15 AM
I understand there's a lnguage barrier, but "Must help" no he doesn't have to, it is his mod, he built it and gave it to the community for free and the mod is marked unsupported which means he rarely has time to work anything extra or provide a support service.
I guess you'll just have to wait to see if he has time to answer in this thread.
iyihost
06-22-2017, 05:17 PM
l want to show new thread page.
l created form and if you members click a new thread show form and than create thead.
Who can help me ?
blind-eddie
06-23-2017, 08:38 AM
l want to show new thread page.
l created form and if you members click a new thread show form and than create thead.
Who can help me ?
Open the FORUMDISPLAY template and create a backup.
Find:
<td class="smallfont"><if condition="$show['newthreadlink']">
Add above:
<if condition="$forumid == ??">
<a href="/misc.php?do=form&fid=??">
<img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
</if>
<if condition="$forum[forumid] != ??">
Scroll down a few lines, just below:
</a><else /> </if>
Add below:
</if>
Now repeat these steps again further down the template to edit to lower New Thread Button
Happy editing!:up:
iyihost
06-23-2017, 06:42 PM
Open the FORUMDISPLAY template and create a backup.
Find:
<td class="smallfont"><if condition="$show['newthreadlink']">
Add above:
<if condition="$forumid == ??">
<a href="/misc.php?do=form&fid=??">
<img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
</if>
<if condition="$forum[forumid] != ??">
Scroll down a few lines, just below:
</a><else /> </if>
Add below:
</if>
Now repeat these steps again further down the template to edit to lower New Thread Button
Happy editing!:up:
My version is 4.x :)
Can you write a 4.x code ?
macgyvers
12-03-2018, 11:29 AM
User still able to create new thread bypassing the form by doing /newthread.php?do=newthread&f=x
How to prevent this?
Budget101
12-19-2018, 11:02 PM
User still able to create new thread bypassing the form by doing /newthread.php?do=newthread&f=x
How to prevent this?
open newthread.php and add the following after <?php:
if (!$_SERVER['HTTP_REFERER']) die(' Direct Access Denied.');
so the entire line 1 should look like this:
<?php if (!$_SERVER['HTTP_REFERER']) die(' Direct Access Denied.');
This prevents someone from typing in a new thread, rather than using the buttons
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.