View Full Version : New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge
SnowBot
02-02-2009, 02:52 AM
EDIT
Got it working
nascartr
02-02-2009, 03:05 AM
I have an idea that I think would be a useful feature.
Allow an email field for the user.
A member can enter their email into an optional field and if they do then they get a duplicate confirmation to the email of the submitted form.
Dax IX
02-02-2009, 03:18 AM
I have an idea that I think would be a useful feature.
Allow an email field for the user.
A member can enter their email into an optional field and if they do then they get a duplicate confirmation to the email of the submitted form.
That could open the door to spam, but if it were to be sent to the user's account email, that would be nice...
Ah...yes, if you're using it as a registration form, I guess that wouldn't work too well. :(
nascartr
02-02-2009, 03:27 AM
What about have an option to include a checkbox that if the member checks it then the form data is sent as a confirmation to the email address on file for them.
I am using this form system for a fantasy sports game and the results go into a private topic. Some of the members would like confirmation of their votes since they can't view the private topic.
bananalive
02-02-2009, 09:41 AM
Thanks for the great modification. I am just starting to use it and have two questions.
Question 1:
How do I get the form results to be saved to the database? When I creating a new form I see a drop down box with the following options:
PM Form to User
Post New Thread
Post in Thread
Email Form
I do not see anything that allows me to "save to database".
I checked the tables after creating a form and using the form and the formresults tables is empty.
Question 2:
Ideally I want a user to fill out a form and submit it. When it is submitted it is posted to a thread and saved to a database. Is this possible?
Thanks!
A1. I missed the option of new form, I'll correct this in next version. In the meanwhile just create the form and then when you edit it the option t save to database will appear.
A2. Yes. Use the following code in Form Hook: Before Submit:
if ($complete)
{
$db->query_write("INSERT INTO " . TABLE_PREFIX . "formresults
(fid, userid, username, time, title, output)
VALUES ('".$form[fid]."', '".$vbulletin->userinfo['userid']."', '".addslashes($vbulletin->userinfo['username'])."', ".TIMENOW.", '".addslashes($threadtitle)."', '".addslashes($formoutput)."')
");
}I discover that the form is submited or not depending of the order of the variable options that I indicate in the "Thread/ PM/ Email Title: " field:
Example: It's ok with "{q_1}: {q_2}" but not submit the form if I wrote "{q_2}: {q_1}"
In other form it's ok with "{q_6} {q_5}" but not with "{q_5} {q_6}"
:confused: :confused: What's wrong?
Thank you bananlive! ;)
I'm not sure why this is happening, but I've found a fix for next release.
whats the point of this mod ?
You can collect data in the form you want from your users.
Im able to access the form via misc.php?do=form&fid=10&threadid=(dynamic) but the script is unable to figure out which thread to post in.
I left "Threadid where Post is Created:*" blank since this would need to be dynamic. Unsure where to proceed from here.
What exactly do you mean by dynamic? Do you mean if misc.php?do=form&fid=10&threadid=12345 it gets posted in thread 12345.
Thanks for this mod!!.
I have a question. In my form I have a field with this custom form output.
{q_1}
When the answer is blank it shows code because this field is not compulsory, like this
[IMG].
If the field is blank I don?t want to show BBcode, how could I correct this??
Form Hook: Before Submit:
$formoutput = str_replace("", "", $formoutput);What about have an option to include a checkbox that if the member checks it then the form data is sent as a confirmation to the email address on file for them.
I am using this form system for a fantasy sports game and the results go into a private topic. Some of the members would like confirmation of their votes since they can't view the private topic.
Create yesno option
Form Hook: Before Submit:
if ($qo_{54} == $vbphrase[yes] && $complete && $vbulletin->userinfo['email'])
{
$formoutput = preg_replace('/(\[(.*?)\])/is', '', $formoutput);
vbmail($vbulletin->userinfo['email'], $threadtitle, $formoutput);
}
Hi, Banana,
At last, got enougth time to study latest changes in your form constructor. Thanks a lot for your work. I have some proposals, may be, youll find those useful for your 3.0 version :) .
1. Processing can be switched from "form parameters" to "form actions". That will spin flexibility to the next level, and will simplify / improve coding & interface for each action.
Each action can have a custom parameter & action can be added to form in the same manner, as questions. The big advantage is, that you can have several action in one time (or just skip unnecessary one). Here is actions examples:
- posting
Create Thread
PM form
Email Form
... (other types of data processing)- customisations
Custom success message (? with JS redirect to URL)
Custom error message if no permissions to use form (? with JS redirect to URL)Of cause, that can be done via hooks, but that method is much more complicated, than just push mouse buttons :) . And you are not limited to add new actions, when required. That's a kind of "advanced hooks conctructor" :)
(*) Don't know what is better: to keep title & template common, or make it individual for each posting action. Probably, second method is better and simplify main form editing page.
2. "Only for guest" questions.
Reason is simple: User should not care, which form to select for feedback. That's extremly significant for advertiser and payed visitors. If he is registered, then additional information is taken from profile. If not - he is asked to fill additional input fields.
Solution is trivial: add flag "only for guests" for all questions.
3. Full template language support in form templates.
AFAIK only macroses are supported now. But it would be useful to support <if> <else> and all internal forum variables in form templates. It seems, there are no serious barriers to do that. vBulletin have a powerful templates parser, that can be used. It's useful with proposal (2), when you can easily fix template output, depending on user permissions.
4. Please, check vulnerabilities issues
- What happens, if user enter macros name in text field? Are such patterns stripped (or converted to safe style) prior to process form?
5. It's better so send Emails in HTML. Вetter look, when use several actions (make post and send email)
(*) If you'll switch to "actions", it's possible to create new one "send email as HTML" :) . If each action has personal template, that's not a problem at all.
6. Don't know, if it's useful, but I'd enlarge default form description font to SIZE=2. And would remove "Form Description" from border.
7. It would be useful to have form active for user, but hidden from public list. No ideas, why you use 2 access settings in product options, but only sigle setting for each form. Parameter "who can view form in list" can solve it.
8. Date question format. Some prefer dd-mm-yy. May be, format type to this question?
9. Does "send email" support multiple addresses?
(*) Useful, but not critical if multiple actions are supported.
Regards,
Vitaly.
1&2. These would require alot of edits, but will probably be available in the future.
3. I've tried and failed to find easy way to allow <if> in form custom output
4. Shouldn't do, I'll check this
5. vbulletin mail system doesn't allow html or bbcode :(
6. You can use bbcode to do that
7. ? I don;t understand what you're saying
8. You can change that by editing form_formbit_date and:
$qo_{$formbit[id]} = implode("/", $q_{$formbit[id]});to
$qo_{$formbit[id]} = implode(" ", $q_{$formbit[id]});9. Should do, haven't actually tested it
Vitaly
02-02-2009, 12:06 PM
1&2. These would require alot of edits, but will probably be available in the future.
PM me, if you need some help. I don't want to make a separate product and support it, but can invest some time/money to improve your one.
Another good option is to import-export actions in XML.
7. ? I don;t understand what you're saying
If user have access to form, then form is listed on the main product page. But when this page is used as "contacts", it's better to hide some (liks to those can be shown on another pages).
For example, I have english contact form, rarely used. And I don't wish to show it to russian-speaking visitors, that are 99% at my site.
lazyseller
02-02-2009, 01:28 PM
Originally Posted by lazyseller
Im able to access the form via misc.php?do=form&fid=10&threadid=(dynamic) but the script is unable to figure out which thread to post in.
I left "Threadid where Post is Created:*" blank since this would need to be dynamic. Unsure where to proceed from here.
What exactly do you mean by dynamic? Do you mean if misc.php?do=form&fid=10&threadid=12345 it gets posted in thread 12345.
Yes you are exactly correct.
All i would have to do is a simple template edit on the reply button and we would have
reply to thread (forum based)
bananalive
02-02-2009, 01:45 PM
Yes you are exactly correct.
All i would have to do is a simple template edit on the reply button and we would have
reply to thread (forum based)
http://www.bananalive.co.cc/misc.php?do=form&fid=2&threadid=92
Uses Form Hook: Form Start:
$form['where'] = $vbulletin->input->clean_gpc('g', 'threadid', TYPE_UNIT);
if(!$form['where'])
{
$errormessage = "Error, no threadid specified.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
lazyseller
02-02-2009, 01:53 PM
Thanks for the help.
Im getting "Parse error: syntax error, unexpected $end in /home/log/public_html/beta/misc.php(97) : eval()'d code(983) : eval()'d code on line 5
"
Attempted to fill the form out anyhow and it wasnt able to redirect or link to the right page. (broken link)
bananalive
02-02-2009, 02:00 PM
Thanks for the help.
Im getting "Parse error: syntax error, unexpected $end in /home/log/public_html/beta/misc.php(97) : eval()'d code(983) : eval()'d code on line 5
"
Attempted to fill the form out anyhow and it wasnt able to redirect or link to the right page. (broken link)
Double check you have the right php code and then try putting the code in both form hooks
$form['where'] = $vbulletin->input->clean_gpc('g', 'threadid', TYPE_UNIT);
if(!$form['where'])
{
$errormessage = "Add &threadid=92 to your url to make it work.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
nascartr
02-02-2009, 02:14 PM
Create yesno option
Form Hook: Before Submit:
if ($qo_{54} == $vbphrase[yes] && $complete && $vbulletin->userinfo['email'])
{
$formoutput = preg_replace('/(\[(.*?)\])/is', '', $formoutput);
vbmail($vbulletin->userinfo['email'], $threadtitle, $formoutput);
}
Ok, I entered the code as you posted but it didn't work so I changed the "54" to the actual # of the question. That works, it will email the votes to the users email however the layout is badly messed up. There is no formatting after it submits...everything is on one line.
RaceWeek THUNDER EZ Form
Pole Sitter -----Pole Sitter----- Wreckers -----Wreckers----- Checkers -----Checkers----- Dominator -----Dominator----- Underachiever -----Underachiever----- Wildcard -----Wildcard----- Email Confirmation? Yes
This is before...
RaceWeek THUNDER EZ Form
Pole Sitter 24-Jeff Gordon Wreckers 77-Sam Hornish Checkers 14-Tony Stewart Dominator 88-Dale Earnhardt Jr Underachiever 55-Michael Waltrip Wildcard 20-Joey Logano
bananalive
02-02-2009, 02:17 PM
That works, it will email the votes to the users email however the layout is badly messed up. There is no formatting after it submits...everything is on one line.
add \r\n at end of the question bbcode, answer bbcode and section bbcode
nascartr
02-02-2009, 02:22 PM
add \r\n at end of the question bbcode, answer bbcode and section bbcode
That works a little better. Still not like before but at least everything's not on one line.
RaceWeek THUNDER EZ Form
Email Confirmation?
Yes
Pole Sitter
-----Pole Sitter-----
Wreckers
-----Wreckers-----
Checkers
-----Checkers-----
Dominator
-----Dominator-----
Underachiever
-----Underachiever-----
Wildcard
-----Wildcard-----
lazyseller
02-02-2009, 02:25 PM
Made a donation for you help bananna. Thanks so much.
I was able to get it to work!
nascartr
02-02-2009, 02:45 PM
Ok, what if I had the option to PM confirmation to user instead of emailing it. How would I get it to do that and still submit to the threadid?
vBulletin's mail system must not allow formatting, but maybe the PM system would?
Simon Lloyd
02-02-2009, 03:03 PM
Ok, what if I had the option to PM confirmation to user instead of emailing it. How would I get it to do that and still submit to the threadid?
vBulletin's mail system must not allow formatting, but maybe the PM system would?It can be custom formatted in the custom output, here's mine:
[COLOR=black]Top Tip[/COLro][/SIze]
Submitted By: {q_14}
[SIez=3]Date: {q_16}
Tip Description
{q_10}
Posted Top Tip
{q_12}all bbcode changed so they dont parse here!
alduren
02-02-2009, 03:09 PM
Form Hook: Before Submit:
$formoutput = str_replace("", "", $formoutput);
Thanks for your support!!!, it works perfect.
Sc00by22
02-02-2009, 05:37 PM
Could you add custom user groups into the selection?
bananalive
02-02-2009, 05:38 PM
Ok, what if I had the option to PM confirmation to user instead of emailing it. How would I get it to do that and still submit to the threadid?
vBulletin's mail system must not allow formatting, but maybe the PM system would?
The PM system allows BBcode
if ($vbulletin->userinfo['userid'] AND $complete)
{
global $vbulletin, $botpermissions;
$fromuserid = $vbulletin->userinfo['userid'];
$fromusername = $vbulletin->userinfo['username'];
$title = $threadtitle;
$recipients = $vbulletin->userinfo['username'];
$message = $formoutput;
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', $fromuserid);
$pmdm->set('fromusername', $fromusername);
$pmdm->set('title', $title);
$pmdm->set('message', $message);
$pmdm->set_recipients($recipients, $botpermissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->overridequota = true;
$errors = $pmdm->errors;
if ($errors) {
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
$pmdm->save();
unset($pmdm);
}
Thanks for your support!!!, it works perfect.
I'm not sure if you worked it out but there were meant to be [img] tags in the str_replace but they got removed
Could you add custom user groups into the selection?
Whereabouts? For the questions?
brainfood
02-02-2009, 06:42 PM
Thanks bananalive for the quick response on my other questions. I have that working now.
I have another question. When customizing the Custom Form Output:, I noticed that the customized output only applies to newly created thread posts. Is it possible to get the previous posts updated so they incorporated the customized Custom Form Output?
Thanks again!
nascartr
02-03-2009, 04:25 AM
Thanks!
brainfood
02-03-2009, 07:43 AM
Hi,
Is it possible to organize the answers to the form questions so they are displayed in a table when the form is posted to a thread?
I don't think there is a bbcode table tag. I might use HTML but do not want to turn it on for the whole forum. Plus I tried using HTML and it is displayed in the preview and looks really bad.
Thanks
bananalive
02-03-2009, 08:01 AM
Hi,
Is it possible to organize the answers to the form questions so they are displayed in a table when the form is posted to a thread?
I don't think there is a bbcode table tag. I might use HTML but do not want to turn it on for the whole forum. Plus I tried using HTML and it is displayed in the preview and looks really bad.
Thanks
Use BB Code [table] (https://vborg.vbsupport.ru/showthread.php?t=107985)
Is it possible to get the previous posts updated so they incorporated the customized Custom Form Output?
Sorry no, unless you manually edit them.
bananalive
02-03-2009, 01:14 PM
v2.8 Beta has just been released (see first post), it includes the following new features:
- Added security to prevent possible use of macroses in form inputs
- Guest only questions
- Modify post top with macroses & bbcode
- Search Form Results saved to database
- Option to not show form on form list (only applicable for those who cannot edit forms)
- Added rel="nofollow" to links on formlist
- Increased performance by consolidating preg_replace functions
Simon Lloyd
02-03-2009, 02:44 PM
Bananalive, i noticed you visited my forum and made a slight change to the plugin code on my top tips form....Thanks!, it's beyond the call of free support!
One question what does the && do?, i was going to delete one but ten thought better of it hence me asking.
bananalive
02-03-2009, 03:44 PM
One question what does the && do?, i was going to delete one but then thought better of it hence me asking.
When using php conditionals:
if ($a & $b) if $a is true it will exec php code
if ($a && $b) requires both $a and $b to be true to exec php code
Vitaly
02-03-2009, 05:03 PM
7. ? I don;t understand what you're saying
Sometime it's useful to have form, accessible by direct link, but hidden from list in main easyforms page.
Current rules doesn't allow to do that.
For example, I have rаrely user for for english feedback, but I don't like to abuse russian-speaking users with it (those are 99% visitors of my site).
I don't know, which implementation is more correct from ideological point of view:
Separate setting for each group "can see this form in global list"
Just a flag "hide from global list".
bananalive
02-03-2009, 05:13 PM
Sometime it's useful to have form, accessible by direct link, but hidden from list in main easyforms page.
Current rules doesn't allow to do that.
For example, I have rаrely user for for english feedback, but I don't like to abuse russian-speaking users with it (those are 99% visitors of my site).
I don't know, which implementation is more correct from ideological point of view:
Separate setting for each group "can see this form in global list"
Just a flag "hide from global list".
'Show on Form List ' is a checkbox feature of v2.7+ (default = checked/ true)
Vitaly
02-03-2009, 06:24 PM
Thanks. Probably, I've missed that.
Vaupell
02-03-2009, 09:55 PM
tx for the update ;)
pursuited
02-05-2009, 01:50 AM
Great addon!
I have a question I am not too good on the php part, but what would I put in the form start to prevent users from filling the form out who does not have 200 posts?
Thank you!
bananalive
02-05-2009, 09:34 AM
Great addon!
I have a question I am not too good on the php part, but what would I put in the form start to prevent users from filling the form out who does not have 200 posts?
Thank you!
Form Hook: Form Start:
if($vbulletin->userinfo['posts'] < 200)
{
$errormessage = "You need 200 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
nelson.cabral
02-05-2009, 01:27 PM
Hi !
I installed the plugin, but I cannot access the page misc.php?do=forms
Is there something to do after the installation to enable the product?
Answered : I should have read more carefully the description... Sorry for annoyance
nelson.cabral
02-05-2009, 01:38 PM
When choosing the action "post to thread" or "post to new thread", is it possible to set the destination thread and/or the destination forum as a form argument?
bananalive
02-05-2009, 01:59 PM
When choosing the action "post to thread" or "post to new thread", is it possible to set the destination thread and/or the destination forum as a form argument?
Yes use the form output complete hook.
$form[where] = $q_{1};
(Replace 1 with appropriate # of the question)
nelson.cabral
02-05-2009, 02:11 PM
Wow that was quick! Thank you!
If I want to set the list of all threads in a specific forum as a dropdown question items, is it also possible?
EDIT : more generally is it possible to generate forms choices with php?
bananalive
02-05-2009, 02:19 PM
Wow that was quick! Thank you!
If I want to set the list of all threads in a specific forum as a dropdown question items, is it also possible?
Custom Question
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>';
(Change forumid = '10' to the forumid you want)
EDIT : more generally is it possible to generate forms choices with php?
What do you mean?
nelson.cabral
02-05-2009, 02:26 PM
You just answered my second question, I meant generate dropdown items with php (so that i can access database).
Is it possible to link questions? Ie. in a first dropdown list select a forum and in a second one select a thread in that forum?
TheFocusElf
02-05-2009, 03:58 PM
Ban, the latest update is fabublous, my LAST question would be VBACMPS integration, survey of the month, for instance. Does it exist? Has anyone had success?
Copying the form elements and using as an HTML code has rendered FAIL for me so far!
Thanks in advance!
ssslippy
02-05-2009, 05:35 PM
How do we search?
myke2008
02-05-2009, 06:07 PM
Great Mod, thank you!
I wasl struggling with the moderated post thing.
I had the form set to post new thread in a forum.
I thought I had edited all the permissions for the forum to allow new posts from everybody but it still was moderating the new posts until I found this place that also needed to set to yes.
Follow Forum Moderation Rules If no, posts are always placed into moderation queue
Now it works as intended.
I do have one question however, how can I change this url so that it opens the link without opening a new tab or page?
/misc.php?do=form&fid=1
Thanks again,
myke
brainfood
02-05-2009, 07:19 PM
Hi,
Is it possible to organize the answers to the form questions so they are displayed in a table when the form is posted to a thread?
I don't think there is a bbcode table tag. I might use HTML but do not want to turn it on for the whole forum. Plus I tried using HTML and it is displayed in the preview and looks really bad.
Thanks
Use BB Code [table] (https://vborg.vbsupport.ru/showthread.php?t=107985)
Sorry no, unless you manually edit them.
Hi, Are there any plans to save each question response to a database as a seperate field so that answers can later be pulled from the database. It will allow the answers to be used for any number of reasons.
Alternatively is it possible to apply the formatting after the answer is stored in the database? Right now the formatting is being saved as part of the response so any changes to the formatting is not retroactive. If the responses to each question are stored in a seperate field in the database then the answers can be formatted as they are pulled form the database and any subsequent changes to formatting will always be applied to the answers as they are pulled from the DB.
Thanks for the great mod!
Kiint
02-05-2009, 09:52 PM
Well I've been using Form Hack for a long time now and I've just stumbled upon Easy Forms and to be honest I am amazed at how good this is, it's easy to use, it's easy to install and easy to configure.
Thanks for this :)
I'll be converting my forms over to this when I get some time, but one question for you:
My users sometimes create a checklist of things they have to do/achieve and then edit their list as and when they need to update things, something similar to this:
[ ] step 1
[X] step 2
[ ] step 3
[X] step 4
I've noticed that you can creat multiple checklist forms to create something like this, but is there any way to get it so that it creates its output like above and includes all the options but with a [] or [X] instead of just the selected options once a user submits the form?
Or is there anyway of re-editing a submitted form back into the original form template that created it? (so a user could change previous options they had saved)
Thanks again, and I will be nominating this for motm, nice work.
bananalive
02-06-2009, 08:39 AM
Well I've been using Form Hack for a long time now and I've just stumbled upon Easy Forms and to be honest I am amazed at how good this is, it's easy to use, it's easy to install and easy to configure.
Thanks for this :)
I'll be converting my forms over to this when I get some time, but one question for you:
My users sometimes create a checklist of things they have to do/achieve and then edit their list as and when they need to update things, something similar to this:
[ ] step 1
[X] step 2
[ ] step 3
[X] step 4
I've noticed that you can creat multiple checklist forms to create something like this, but is there any way to get it so that it creates its output like above and includes all the options but with a [] or [X] instead of just the selected options once a user submits the form?
Or is there anyway of re-editing a submitted form back into the original form template that created it? (so a user could change previous options they had saved)
Thanks again, and I will be nominating this for motm, nice work.
Sorry, I can't think of a way to do this atm
Hi, Are there any plans to save each question response to a database as a seperate field so that answers can later be pulled from the database. It will allow the answers to be used for any number of reasons.
Alternatively is it possible to apply the formatting after the answer is stored in the database? Right now the formatting is being saved as part of the response so any changes to the formatting is not retroactive. If the responses to each question are stored in a seperate field in the database then the answers can be formatted as they are pulled form the database and any subsequent changes to formatting will always be applied to the answers as they are pulled from the DB.
Thanks for the great mod!
I decided against doing this as I thought it was over-complicated. Maybe storing the answers in php variables which could be eval'ed and then put through into the form layout. (It would be more server intensive though)
I do have one question however, how can I change this url so that it opens the link without opening a new tab or page?
/misc.php?do=form&fid=1
Thanks again,
myke
Glad it's working now.
target="_self"
You just answered my second question, I meant generate dropdown items with php (so that i can access database).
Is it possible to link questions? Ie. in a first dropdown list select a forum and in a second one select a thread in that forum?
I don't think so, I think that would require both addition JavaScript/ajax. Although if your experienced with java-script you could try adding your own java-script with $headinclude
How do we search?
See attached screenshot
designerweb
02-06-2009, 12:08 PM
It is important to be able to call these via variable in other parts of the site. I thought that this is possible since you are now saving answers to database. Am I wonrg? If I am, Any plans to do this?
Vaupell
02-06-2009, 02:20 PM
alright just testet the beta,,
Tx i needed that, it includes all my usergroups, where the other didnt.
Lovely.. :up:
biocyberman
02-06-2009, 04:59 PM
This mod looks very promising. I am trying to make use of it. And I have a question: when I save to database, how do I do some kind of statistics from form submission data. After that I want to present the statistics in form of graphs. This mod then will work like a survey kit which make it very practical. Is is possible? If yes, a "hello world" tutorial, including form one time form submission limit, will be really helpful. I am sorry if the question has been asked cause I couldn't find it.
Kiint
02-06-2009, 10:14 PM
How would I go about changing the output of the form so that it displays the answer next to the question, instead of underneath it?
Currently it's like this:
This is the question?
......This is the answer.
I would prefer it like this:
This is the Question? This is the answer
Edit: figured it out, just removed the Indent bb codes from the Answer BBcode: section and added \r\n\r\n in the 2nd box.
bananalive
02-07-2009, 09:47 AM
This mod looks very promising. I am trying to make use of it. And I have a question: when I save to database, how do I do some kind of statistics from form submission data. After that I want to present the statistics in form of graphs. This mod then will work like a survey kit which make it very practical. Is is possible? If yes, a "hello world" tutorial, including form one time form submission limit, will be really helpful. I am sorry if the question has been asked cause I couldn't find it.
The form results are currently saved into the database like a post all in one field, so this wouldn't be possible.
pursuited
02-09-2009, 09:41 AM
First thank you for answering my question! However in your help file you have an error:
Question:
How can I limit form access to users who have at least 10 posts?
if($vbulletin->userinfo['posts'] < 10)
{
$errormessage = "You need 200 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
Should be:
if($vbulletin->userinfo['posts'] < 10)
{
$errormessage = "You need 10 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
Not a big change, but might confuse some people.
Could you also help me in providing an example of a 'Custom Form Output'? I do not know where to even start there. Your help files states:
Custom Form Output: (optional) You can create your own layout to the thread/ pm/ post/ email the form created. BB code and all macroses allowed. Leave blank to use default layout.
What do you mean by macros?
So could you provide a simple example of a custom form output please?
Thank you and for sure I nominated this mod!
Thanks Again!
tehtide
02-09-2009, 11:36 AM
Is there a way that we could PM a notification to a different user on our forums when this form has been submitted?
Right now I'm using this as an application on our website. When the form is completed a poll is created in a forum that the submitting user cannot access. However I'd like the ability to shoot a notification pm off to another user in the forum to let them know that a new application has been submitted. Is there any easy way of doing this?
tehtide
02-09-2009, 12:47 PM
Is there any way to keep the new thread when posted to not show-up in the users subscribed threads list?
bananalive
02-09-2009, 02:15 PM
First thank you for answering my question! However in your help file you have an error:
Question:
How can I limit form access to users who have at least 10 posts?
if($vbulletin->userinfo['posts'] < 10)
{
$errormessage = "You need 200 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
Should be:
if($vbulletin->userinfo['posts'] < 10)
{
$errormessage = "You need 10 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
Not a big change, but might confuse some people.
Could you also help me in providing an example of a 'Custom Form Output'? I do not know where to even start there. Your help files states:
What do you mean by macros?
So could you provide a simple example of a custom form output please?
Thank you and for sure I nominated this mod!
Thanks Again!
OK thanks updated help file.
{username}'s Form
{qn_3}: {q_3}
{qn_1}: {q_1}
{qn_2}: {q_2}
bananalive
02-09-2009, 02:21 PM
Is there any way to keep the new thread when posted to not show-up in the users subscribed threads list?
Try adding:
$newpost['emailupdate'] = '0';
after
$newpost['disablesmilies'] = '0';
bananalive
02-09-2009, 02:24 PM
Is there a way that we could PM a notification to a different user on our forums when this form has been submitted?
Right now I'm using this as an application on our website. When the form is completed a poll is created in a forum that the submitting user cannot access. However I'd like the ability to shoot a notification pm off to another user in the forum to let them know that a new application has been submitted. Is there any easy way of doing this?
Form hook, before submit
global $vbulletin, $botpermissions;
$fromuserid = $vbulletin->userinfo['userid'];
$fromusername = $vbulletin->userinfo['username'];
$title = $threadtitle;
$recipients = "ADMIN";
$message = "New application here (http://google.com)";
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', $fromuserid);
$pmdm->set('fromusername', $fromusername);
$pmdm->set('title', $title);
$pmdm->set('message', $message);
$pmdm->set_recipients($recipients, $botpermissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->overridequota = true;
$errors = $pmdm->errors;
if ($errors)
{
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
$pmdm->save();
unset($pmdm);
Welshy2008
02-09-2009, 10:54 PM
Installed and "Install" clicked.
Sorry for what may sound a dumb question, But - How do I select the usergroups that I want to see and use the forms that I make Please?
I , as Admin - am the only one that is allowed to make the form / put the forum together.
It appears that the E-mail form is not being E-mailed to me either. :(
Thanks in advance for your help.
Battle_Ring
02-10-2009, 01:42 AM
Im using this for memebrs to submit Reviews
IS there a way that will lett the memebr filling out the form input a title that it will use for a thread title??
bananalive
02-10-2009, 12:41 PM
Im using this for memebrs to submit Reviews
IS there a way that will lett the memebr filling out the form input a title that it will use for a thread title??
Use macrose (replacement variables) in the form {q_X} where X is the # number of the question. So for question 1 being the title use {q_1}
bananalive
02-10-2009, 12:44 PM
Installed and "Install" clicked.
Sorry for what may sound a dumb question, But - How do I select the usergroups that I want to see and use the forms that I make Please?
I , as Admin - am the only one that is allowed to make the form / put the forum together.
It appears that the E-mail form is not being E-mailed to me either. :(
Thanks in advance for your help.
To set usergroup permissions for all form:
vbulletin options -> Easy Forms Options -> Select Usergroups
(hold down ctrl to select more than one usergroup)
To set usergroups permissions for one form
Edit Form -> Usergroup Permissions -> Check the usergoups allowed to view form
Blank = uses vbulletin options settings
Lone Gunman
02-10-2009, 02:09 PM
have you released 2.9 yet? i just got this installed and saw there wasnt yet an option to redirect to a custom page after submitting form. was going to ask about that, but looks like youre already working on it.
also is there a way to choose multiple submit options on submit.... email and pm or email and post or post and pm, etc.... (if already answered my appologies and ill find it tonight when i read through the whole thread).
great job btw! thanks!
bananalive
02-10-2009, 02:49 PM
have you released 2.9 yet? i just got this installed and saw there wasnt yet an option to redirect to a custom page after submitting form. was going to ask about that, but looks like youre already working on it.
also is there a way to choose multiple submit options on submit.... email and pm or email and post or post and pm, etc.... (if already answered my appologies and ill find it tonight when i read through the whole thread).
great job btw! thanks!
I'm working on v2.9 atm. A beta of it will be released soon. It will include optional redirect to url and allow multiple actions (eg. pm'ing & emailing the form).
RedeemedWarrior
02-11-2009, 07:04 AM
This page is not designed to be access directly. whenever i submit a form
though i notice the forms do submit
Welshy2008
02-11-2009, 09:18 AM
To set usergroup permissions for all form:
vbulletin options -> Easy Forms Options -> Select Usergroups
(hold down ctrl to select more than one usergroup)
To set usergroups permissions for one form
Edit Form -> Usergroup Permissions -> Check the usergoups allowed to view form
Blank = uses vbulletin options settings
Hi - thanks for your reply,
Although that does work - the problem I get is that I cannot selct individual usergroups.
ie:
Administrators
Banned Users
Moderators
Not loggin
Super Moderators
I click on Administors and that is highlighted, I then click on moderators and the "Banned Users" between the two highlights. I have tried all ways to do it - but the Only way that I could get it to work is Add an "A" before the ones that I want to be able to view the form.
Also, how do I get it as a link please? It shows in the address bar as "http:// mywebsite.com/admin/index.php" or words to that effect, Sorry.
I can not get the security / Anti-spam question to work either.
I type the question, and the answer, but Both the question and answer show on my form. (Is the answer case sensitive? The reason I ask is that I entered the answer twice, once with a capital and agin with a lower case letter at the start of the answer. Maybe this is the reason).
I cannot get the Capatcha image on, by itself - I have to type a security question in for it to show.
Your help on the above matters would be very much appreciated.
RedeemedWarrior
02-11-2009, 10:56 AM
ah as for my issue its talkerbot related
as for welshy have you tried ctrl as you select options?
that works for me :)
Welshy2008
02-11-2009, 11:40 AM
Hi Redeemed - I followed the Mod's Instructions to the tee and used the "CTRL" Key.
It did work upto the point maentioned in my post above. post number 313 (https://vborg.vbsupport.ru/showpost.php?p=1740638&postcount=313")
With regards to my question on the "Human Verification Question", It still don't work with just the one answer.
When I select the "HVQ" it shows the CaPacha image also. I just want one or the other.
Your help is appreciated and congratualations on a great hack.
bananalive
02-11-2009, 12:59 PM
Hi - thanks for your reply,
Although that does work - the problem I get is that I cannot selct individual usergroups.
ie:
Administrators
Banned Users
Moderators
Not loggin
Super Moderators
I click on Administors and that is highlighted, I then click on moderators and the "Banned Users" between the two highlights. I have tried all ways to do it - but the Only way that I could get it to work is Add an "A" before the ones that I want to be able to view the form.
Also, how do I get it as a link please? It shows in the address bar as "http:// mywebsite.com/admin/index.php" or words to that effect, Sorry.
I can not get the security / Anti-spam question to work either.
I type the question, and the answer, but Both the question and answer show on my form. (Is the answer case sensitive? The reason I ask is that I entered the answer twice, once with a capital and agin with a lower case letter at the start of the answer. Maybe this is the reason).
I cannot get the Capatcha image on, by itself - I have to type a security question in for it to show.
Your help on the above matters would be very much appreciated.
If you only want one usergroup selected then don't hold down ctrl. To deselect a usergroup ctrl+click it.
That's due to the frames used in the admin control panel:
admincp/options.php?do=options&dogroup=easyforms
The human verification question is the default vBulletin human verification question.
There was error with human verification question which is causing it to display twice, which will be fixed in next version.
bananalive
02-11-2009, 02:01 PM
Attached v3.0 Screenshots - Editing Form
v3.0
- Edit Form Redesigned
- Multiple Form Actions
- Redirect to url after form is submitted (accepts $newpost[postid] for newthread being created and $postid for new post in thread being created)
- Custom Form Output Conditionals: <if condition="$q[4]">$qn[4]: $q[4]<else />Field left blank</if>
nascartr
02-11-2009, 02:18 PM
I have an error in beta 3.
At the top of the specific form's page there's this.
Warning: in_array() [function.in-array (http://diecastcrazy.com/community/function.in-array)]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 3552
nascartr
02-11-2009, 02:20 PM
Also, when trying to submit the forum I get errors saying the form was not filled out.
The form did not submit as the following questions are unanswered:
Pole Sitter
Wreckers
Checkers
Dominator
Underachiever
Wildcard
nascartr
02-11-2009, 02:20 PM
Link to form
http://diecastcrazy.com/community/misc.php?do=form&fid=1
Options selected are post to thread and pm form to user.
bananalive
02-11-2009, 02:31 PM
Thanks,
Fixed above errors in v3.0 Beta2 - attached in first post
nascartr
02-11-2009, 02:34 PM
Now I have this at the top of the page.
Warning: in_array() [function.in-array (http://diecastcrazy.com/community/function.in-array)]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 3306
Form submits fine now though.
Also, where the option to PM form to user, what value would I use to submit to the user that voted?
nascartr
02-11-2009, 02:38 PM
Guests also see this as well as the last argument
Warning: in_array() [function.in-array (https://vborg.vbsupport.ru/function.in-array)]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 3370
bananalive
02-11-2009, 02:43 PM
Now I have this at the top of the page.
Form submits fine now though.
Also, where the option to PM form to user, what value would I use to submit to the user that voted?
Try v3.0 beta 3
{username}
Vaupell
02-11-2009, 02:46 PM
use your easy forms, for various tasks and registrations
plus usergroup surway ;) love them.
is there a way i can change the ansver layout from
Question :
Ansver :
to something like this
Question : ansver
was thinking in terms when posting responses to a thread
nascartr
02-11-2009, 02:48 PM
Warning: in_array() [function.in-array (https://vborg.vbsupport.ru/function.in-array)]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 2660
Warning: in_array() [function.in-array (https://vborg.vbsupport.ru/function.in-array)]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 2724
PM to user option worked, thanks!
bananalive
02-11-2009, 02:49 PM
use your easy forms, for various tasks and registrations
plus usergroup surway ;) love them.
is there a way i can change the ansver layout from
Question :
Ansver :
to something like this
Question : ansver
was thinking in terms when posting responses to a thread
Remove answer bbcode [indent]
bananalive
02-11-2009, 03:44 PM
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 2660
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 2724
Fixed in v3.0 Beta 4
nascartr
02-11-2009, 03:46 PM
Yep, all errors fixed now! Thanks!
mk craig 42
02-11-2009, 03:52 PM
This shows up for me at the top of the forms page
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/misc.php(100) : eval()'d code on line 1644
Also when i try to submit it form this shows up..
vBulletin Message
Unable to add cookies, header already sent.
File: /home/mkcraig/public_html/forum/includes/class_core.php
Line: 3254
and this at the top of the forum
Warning: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php on line 394
ChrisChristian
02-11-2009, 05:14 PM
THANK YOUUUUUUUUU!!!!!!!!
This modification is absolutely FANTASTIC!!!!!
It?s exactly what I was looking for! God bless you! Thank you! :up::up::up::up::up:
shadowedsoul
02-11-2009, 05:51 PM
I'm getting a very similar error:
Warning: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php on line 394
vBulletin Message
Unable to add cookies, header already sent.
File: /homepages/38/d268453651/htdocs/forums/includes/class_core.php
Line: 3254
This was on a form that was set to submit to a thread and an email address.
mk craig 42
02-11-2009, 06:06 PM
Yup, same error message as me..
Could somebody help us please?
Lone Gunman
02-11-2009, 06:46 PM
im getting some blank pages when posting new thread after upgrading. if i disable this then everything works. i think its just a conflict with something else i got.
Vaupell
02-11-2009, 07:52 PM
again.. love the mod.
i use this form for all kinds of beuracratic tasks,
on a few gameing forums, great for user feedback and suggestion forms.. LOVELY!!
specially love that feature add to database, so i can extract the data for my
own display.. lovely.
if i had any money this is worth donating to.
Lone Gunman
02-11-2009, 08:57 PM
im getting some blank pages when posting new thread after upgrading. if i disable this then everything works. i think its just a conflict with something else i got.
ok got it working....
does the usergroup that submits the form have to have access to the thread/forum in which it posts in or can i have it post in an admin only forum?
P.Cahill
02-11-2009, 09:29 PM
ok got it working....
does the usergroup that submits the form have to have access to the thread/forum in which it posts in or can i have it post in an admin only forum?
its easy enough to find out that for yourself.
create a test account, edit the form so that it submits to an admin only area. fill in the form on the test account and see what happens
Lone Gunman
02-11-2009, 10:43 PM
its easy enough to find out that for yourself.
create a test account, edit the form so that it submits to an admin only area. fill in the form on the test account and see what happens
it only emailed it and didnt post it. thats why i was asking
n.sinha.p
02-11-2009, 11:54 PM
Marked for use!
mk craig 42
02-12-2009, 06:32 AM
I downloaded the product-easyforms.xml as the Beta v.30 isn't working..
and it sumbits fine, but the Multi line text don;t work when i submit it
bananalive
02-12-2009, 09:09 AM
Warning: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php on line 394
This should be fixed with attached file
Blackheart_72
02-12-2009, 09:54 AM
Will look like and idiot but when i submit the form i get this error:
Form failed to submit. The following error(s) occured:
You did not specify a username for your post.
I have set it to post a new thread. :o
metalguy639
02-12-2009, 11:53 AM
I've noticed with my hack of this that it automatically marks the thread that I submitted via the form as a subscribed to thread. Is there any way to stop it from doing this?
Vitaly
02-12-2009, 01:09 PM
Attached v3.0 Screenshots - Editing Form
1. Consider form hooks as actions. That's more "proper" design structure, and simplify interface.
2. Consider limited access to form editing only for superadmins & admin permissions (look imlementation in my pm log mod). Possibility to grant access to hook code not for admin makes me neurvous :)
Welshy2008
02-12-2009, 03:51 PM
bananalive; If you only want one usergroup selected then don't hold down ctrl. To deselect a usergroup ctrl+click it.
Yes Sir, I understand that, unfortunately, It doesn't work for me. If I deselect a usergroup (From several that has been highlighted) the one that I select it highlighted and the others - which I want to remain selected/highlighted - Don't. :(
That's due to the frames used in the admin control panel:
admincp/options.php?do=options&dogroup=easyforms
? Sorry, although I am getting better daily, I am still new to this? I don't understand what you mean.
The human verification question is the default vBulletin human verification question.
I did notice. :)
There was error with human verification question which is causing it to display twice, which will be fixed in next version.
Brilliant. I appreciate that - Thank You. Could you tell me what your latest version is please? Do I need to un-install the one that I have/ Or overwirte it all?
Thank You in advance for such a fantastic Mod and Fantastic Support and Patience.
Welshy2008
02-12-2009, 03:53 PM
I see the latest version is V3.0 Beta5. :)
Welshy2008
02-12-2009, 04:08 PM
Remove answer bbcode [indent]
I would like to do this too, But I am new - Would be able to explain this for me please? If not - No problem. :D
Welshy2008
02-12-2009, 04:26 PM
The problem that I had with the multi selection of Usergroups has now gone by uploading the beta 5 and overwriting my previous version.
I get the following " </i> " at the end of my question on the "Radio Button" selection?
Any Ideas Please?
Many Thanks.
Welshy2008
02-12-2009, 04:32 PM
PS:
I like the new "Guest Only Question: This question is for guests only" option that you have added to this version too. :p
Altered
02-12-2009, 04:45 PM
1 small thing i noticed, on my install anyway, when using 'Field using vbulletin editor' under the smiles section where it should display [More] it just displays [].
Anyway to get this to show the more button?
Thanks for the updates, love the mod! :up:
Vaupell
02-12-2009, 07:36 PM
hmm gonna update,,,, feel free to test this should work for "unregistrered" but it dosent submit.. some odd bug..
http://www.evisystems.org/forums/misc.php?do=form&fid=9
gonna get new beta and try that.. naa dosent work either, connection lost when submitting.
such a shame,.
Page can not be shown, page using invalid compression, not supported by this browser
both in IE8 and firefoxchrome no errors but no submission either.
plus my moderation que grows, and nothign to moderate..
EDIT 4 : got the beta 5 working.. lol :D
Simon Lloyd
02-13-2009, 06:22 AM
Bananalive, i upgraded to beta 5 and now get Warning: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php on line 394
and cannot post a for to a thread, any ideas?
EDIT: I reverted back and have now lost the date fields!
Vaupell
02-13-2009, 01:26 PM
and over night WITH no changes, it dosent work anymore again
wth worked yesterday and there WASENT a rechapta box
but now there is..
http://www.evisystems.org/forums/misc.php?do=editform&fid=9
i dont get it.
bananalive
02-13-2009, 01:28 PM
I would like to do this too, But I am new - Would be able to explain this for me please? If not - No problem. :D
Edit Form -> Answer BBcode:
Remove indent bbcode/ tags from both boxes.
bananalive
02-13-2009, 01:29 PM
The problem that I had with the multi selection of Usergroups has now gone by uploading the beta 5 and overwriting my previous version.
I get the following " </i> " at the end of my question on the "Radio Button" selection?
Any Ideas Please?
Many Thanks.
Have you used any special characters in the radio button options? Like &%$?*#'@...
bananalive
02-13-2009, 01:34 PM
1 small thing i noticed, on my install anyway, when using 'Field using vbulletin editor' under the smiles section where it should display [More] it just displays [].
Anyway to get this to show the more button?
Thanks for the updates, love the mod! :up:
Odd, the [More] link shows for me. What vbulletin version are you using?
Edit: I'll add 'posting' phrase group to $phrasegroups array but it should not be needed as $vbphrase[more] is also included in global phrasegroup.
bananalive
02-13-2009, 01:37 PM
and over night WITH no changes, it dosent work anymore again
wth worked yesterday and there WASENT a rechapta box
but now there is..
http://www.evisystems.org/forums/misc.php?do=editform&fid=9
i dont get it.
Posting to a new thread by a guest/ unregistered user requires a human verification question.
bananalive
02-13-2009, 01:38 PM
Bananalive, i upgraded to beta 5 and now get and cannot post a for to a thread, any ideas?
EDIT: I reverted back and have now lost the date fields!
The previous version probably didn't include the date fields question.
Bananalive, Its really a fantastic mod, Great Job buddy! :)
Please guide me how can i disable Italic style of description text.
94815
Thanks.
Simon Lloyd
02-13-2009, 02:22 PM
I am using your latest Beta 5, but i still get the Warning: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php on line 394message, the post then says i have already posted, taking you to thread but then get the admin message saying i have followed an invalid thread...and of course the post hasn't been made in forum id 52.
EDIT: is it possible to have the username and date entered automatically? right now i have a field for Enter your username and one for Enter todays date.
EDIT 2: you latest Beta 6, works fine except it doesn't show the date from the date boxes, not a problem if you could point me on how to do the above
bananalive
02-13-2009, 02:47 PM
Bananalive, Its really a fantastic mod, Great Job buddy! :)
Please guide me how can i disable Italic style of description text.
94815
Thanks.
Open all templates beginning form_formbit_
Find
<if condition="$formbit[description]!=''"><br /><i><span style="font-weight: normal;">$formbit[description]</span></i></if>
Replace with
<if condition="$formbit[description]!=''"><br /><span style="font-weight: normal;">$formbit[description]</span></if>
bananalive
02-13-2009, 02:54 PM
I am using your latest Beta 5, but i still get the message, the post then says i have already posted, taking you to thread but then get the admin message saying i have followed an invalid thread...and of course the post hasn't been made in forum id 52.
EDIT: is it possible to have the username and date entered automatically? right now i have a field for Enter your username and one for Enter todays date.
EDIT 2: you latest Beta 6, works fine except it doesn't show the date from the date boxes, not a problem if you could point me on how to do the above
The fix for beta 5 would be...
Find in plugin: Easy Forms Part 1
$foruminfo = verify_id('forum', $formforumid, 0, 1);
Replace with
$foruminfo = verify_id('forum', $forumid, 0, 1);
Username Field:
Create custom question:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo . '" />';
[U]Today's Date Field:
Create custom question:
$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]] . '" />';
Simon Lloyd
02-13-2009, 02:58 PM
As ever fantastic support!, i am now using Beta 6, are those changes ok with that?
bananalive
02-13-2009, 02:58 PM
As ever fantastic support!, i am now using Beta 6, are those changes ok with that?
Beta 6 should work without any changes applied to it.
Simon Lloyd
02-13-2009, 03:05 PM
You are right, i made the form changes for custom question and looks good in the preview, however, using beta 6, one of my dropdown fields is showing the number of the selection rather than the words....dropdown 1 just has numbers, choose a number and thats ok, the next question also has a dropdown with words in the list but this is just returning the position of the word rather than the word.
Is it something i have done?
Altered
02-13-2009, 03:21 PM
Odd, the [More] link shows for me. What vbulletin version are you using?
Edit: I'll add 'posting' phrase group to $phrasegroups array but it should not be needed as $vbphrase[more] is also included in global phrasegroup.
I'm using Vbulletin 3.8.0
Using default style and EZ form 3.0 Beta 6 - [More] hasn't worked on any versions I've tried yet.
Thanks for great support!!
bananalive
02-13-2009, 03:43 PM
You are right, i made the form changes for custom question and looks good in the preview, however, using beta 6, one of my dropdown fields is showing the number of the selection rather than the words....dropdown 1 just has numbers, choose a number and thats ok, the next question also has a dropdown with words in the list but this is just returning the position of the word rather than the word.
Is it something i have done?
Use $qo[18] instead of $q[18]
For dropdown select questions if you want the value shown to the user use $qo rather than $q
bananalive
02-13-2009, 03:44 PM
I'm using Vbulletin 3.8.0
Using default style and EZ form 3.0 Beta 6 - [More] hasn't worked on any versions I've tried yet.
Thanks for great support!!Same vbulletin version as me
Are you using any modifications which alter the vb editor or vb smilies?
Simon Lloyd
02-13-2009, 03:47 PM
Great!, thanks for the reply, and thanks for the change....i really appreciate it! ;)
Simon Lloyd
02-13-2009, 03:49 PM
Same vbulletin version as me
Are you using any modifications which alter the vb editor or vb smilies?I'm using 3.8.1 and get the same no [More] just [], i had this before using sunrise2006 Quick Editor improver and still have it afterwards....smilies aren't important for me, i just mentioned it for your information.
Altered
02-13-2009, 03:59 PM
Same vbulletin version as me
Are you using any modifications which alter the vb editor or vb smilies?
I only have 2 modifications installed.
Easy Forms 3.0
vBadvanced CMPS 3.1.0
I don't think VBA changes anything in editor.
CPOWA
02-13-2009, 07:27 PM
Just installed and tested on 3.8.1, It works great! Thank you! :)
Anybody wanna fill out my new questionnaire? Heheh, just kidding about filling it out but, It works great!
Regards,
Nita
Kiint
02-13-2009, 08:55 PM
I'm using 3.8.1 and get the same no [More] just [], i had this before using sunrise2006 Quick Editor improver and still have it afterwards....smilies aren't important for me, i just mentioned it for your information.
I'm getting the same problem on my forms, [] instead of [more] on the smilies, I'm running 3.8.1vbulletin and 3.6beta of forms, I have extra smilies installed.
On the Edit Form section of the Edit page, when I try to "Increase Size" on the Description: text box it doesn't work. All other text boxes allow me to increase their sizes, I've tried this on 3 different computers running IE7, IE8 and Firefox, it doesn't work on any of them.
Also, when installing from 2.8 to 3.6 my Advanced Navbar Links dissappeared from my navbar template, I had to re-install the product and restore the database links to get them back. Does the installation modify any templates?
Apart from those problems, it's working fine :)
Hi bananalive, there is something missing in "Section" type question, the result of this option is not looks good, check the result screen shot:
94889
ZeepySea
02-15-2009, 06:52 AM
I just installed this as I had the other and it screwed up on me.
I got just 2 small questions.
For some reason the {value=x} put in the drop down box shows when form is submitted. I need the value to just know what forum to post it to.
Also I can't get the redirect to work. I don't see an option to specify what page to redirect to. Being posted to a forum, I would of thought it would redirect to that thread by default.
If these where discussed I'm sorry, but 25 pages to look thru. I got to page 11
bananalive
02-15-2009, 09:40 AM
Hi bananalive, there is something missing in "Section" type question, the result of this option is not looks good, check the result screen shot:
94889
Edit Form -> Section BBcode:
Use \r\n to add new line
bananalive
02-15-2009, 09:49 AM
I just installed this as I had the other and it screwed up on me.
I got just 2 small questions.
For some reason the {value=x} put in the drop down box shows when form is submitted. I need the value to just know what forum to post it to.
Also I can't get the redirect to work. I don't see an option to specify what page to redirect to. Being posted to a forum, I would of thought it would redirect to that thread by default.
If these where discussed I'm sorry, but 25 pages to look thru. I got to page 11
It's easier to use form hooks $qo[x] (x is the question #)
if ($qo[4] == "Forum1")
{
$form[forumid] = 1;
}
elseif ($qo[4] == "Forum2")
{
$form[forumid] = 2;
}
----------------------------------------------------
Check 'Redirect user after form is submitted'
URL of webpage user is redirected to:
http://www.yoursite.com/forum/showthread.php?p=$newpost[postid]#post$newpost[postid]
Kiint
02-15-2009, 11:56 AM
Is there any way to get the output of a Multi-line text field to appear on the next line?
So instead of my result looking like this:
This is my Question? This is my answer
it would appear like this:
This is my Question?
This is my answer
bananalive
02-15-2009, 12:05 PM
Is there any way to get the output of a Multi-line text field to appear on the next line?
So instead of my result looking like this:
it would appear like this:
For all questions:
Add \r\n to end of question bbcode.
If you only want it for one question, then you could use the custom output.
CPOWA
02-15-2009, 02:23 PM
Hi bananalive,
I was trying to edit my first form this morning at I got a runtime error. I'm not sure if I did something wrong or I found a bug. Here's what I did:
Brought the form up (using an admin ID):
1. Edited line 4 of my form. T'was a good edit.
2. Edited line 3 of my form. When I clicked Submit I got the following error:
Runtime Error: Line 308
Error: ?vB_Editor.? Is null of not an object
I ran debug on the script. The code is below. Line 308 is the last line.
Edit Question
</strong></td> </tr> </table> </td> <td class="alt2" nowrap="nowrap"> <div class="smallfont"> <strong>Welcome, <a href="members/fcradvocate/">FCRAdvocate</a>.</strong><br /><strong>No <a rel="nofollow" href="search.php?do=getnew">Unread Posts</a></strong> since your last visit.<strong></strong><br />
You last visited: 02-15-2009 at <span class="time">07:32 AM</span> <div> <script language="Javascript" type="text/javascript">
var cyb_pm_phrase = '<a href="pm/">Private Messages</a>: Unread 0, Total 20.';
var cyb_pm_phrase_stripped = cyb_pm_phrase.replace('</a>:', '</a>:<span id="navbar_cybppenh">');
with (document) {
write (cyb_pm_phrase_stripped);
}
vbmenu_register("navbar_cybppenh");
</script> </span> <div class="vbmenu_popup" id="navbar_cybppenh_menu" style="display:none;"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Private Messages</td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=0" accesskey="4" rel="nofollow">Inbox</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=-1" accesskey="4" rel="nofollow">Sent Items</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/new/" accesskey="4" rel="nofollow">Send New Message</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/track/" accesskey="4" rel="nofollow">Track Messages</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/folders/" accesskey="4" rel="nofollow">Edit Folders</a></td> </tr> </table> </div></div> </div> </td> </tr> </table> <div class="tborder" style="padding:1px; border-top-width:0px"> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr align="center"> <td class="vbmenu_control"><a href="myaccount/">User CP</a></td> <td class="vbmenu_control"><a id="vbbloglinks" href="blogs/">Blogs</a><script type="text/javascript">vbmenu_register("vbbloglinks");</script></td> <td class="vbmenu_control"><a id="community" href="/forums/misc.php?do=editq&id=3&nojs=1#community" rel="nofollow" accesskey="6">Community</a> <script type="text/javascript"> vbmenu_register("community"); </script></td> <td class="vbmenu_control"><a href="calendar/">Calendar</a></td> <td class="vbmenu_control"><a rel="nofollow" href="search.php?do=getnew" accesskey="2">New Posts</a></td> <td class="vbmenu_control"><a id="navbar_search" href="search.php" accesskey="4" rel="nofollow">Search</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td> <td class="vbmenu_control"><a rel="nofollow" id="usercptools" href="/forums/misc.php?do=editq&id=3&nojs=1#usercptools" accesskey="3">Quick Links</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td> </tr> </table> </div> <br /> <div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Community Links</td></tr> <tr><td class="vbmenu_option"><a href="groups/">Social Groups</a></td></tr> <tr><td class="vbmenu_option"><a href="album.php">Pictures & Albums </a></td></tr> <tr><td class="vbmenu_option"><a href="profile/friends/">Contacts & Friends</a></td></tr> <tr><td class="vbmenu_option"><a href="members/list/">Members List</a></td></tr> </table> </div> <div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Search Forums</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="search.php?do=process" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="childforums" value="1" /> <input type="hidden" name="exactname" value="1" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="Go" tabindex="1004" /></div> <div style="margin-top:6px"> <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />Show Threads</label>
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />Show Posts</label> </div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="tags/" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a href="search.php" accesskey="4" rel="nofollow">Advanced Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="post_thanks.php?do=findallthanks">Find All Thanked Posts</a></td> </tr><tr> <td class="thead">Search Blogs</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="blog_search.php?do=dosearch" method="post"> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <input type="hidden" name="do" value="dosearch" /> <input type="hidden" name="quicksearch" value="1" /> <div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="Go" tabindex="2004" /></div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="blog_tag.php" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="blog_search.php?do=search">Advanced Search</a></td> </tr> </table> </div> <div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Quick Links</td></tr> <tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Today's Posts</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr> <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?do=buddylist&focus=1','buddy list','statusbar=no,menubar=no,toolbar=no,scrollba rs=yes,resizable=yes,width=250,height=300'); return false;">Open Contacts Popup</a></td></tr> <tr><td class="thead"><a href="myaccount/">User Control Panel</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/signature/">Edit Signature</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/edit/">Edit Your Details</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/options/">Edit Options</a></td></tr> <tr><td class="thead">Miscellaneous</td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=cybaregman">Advanced Registration Management</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=cybmodstats">Moderating Stats</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=donlist">View Donations</a></td></tr> <tr><td class="vbmenu_option"><a href="pm/" rel="nofollow">Private Messages</a></td></tr> <tr><td class="vbmenu_option"><a href="subscription.php" rel="nofollow">Subscribed Threads</a></td></tr> <tr><td class="vbmenu_option"><a href="members/fcradvocate/">Your Profile</a></td></tr> <tr><td class="vbmenu_option"><a href="activeusers/">Who's Online</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=forms">Forms</a></td></tr> </table> </div> <div class="vbmenu_popup" id="pagenav_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead" nowrap="nowrap">Go to Page...</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="http://www.usfcralliance.org/forums/" method="get" onsubmit="return this.gotopage()" id="pagenav_form"> <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" /> <input type="button" class="button" id="pagenav_ibtn" value="Go" /> </form> </td> </tr> </table> </div> <form action="" method="post" enctype="multipart/form-data" name="vbform" onsubmit="return vB_Editor[''].prepare_submit(this.question.value, 5)"> <input type="hidden" name="do" value="updateq" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="fid" value="1" /> <input type="hidden" name="id" value="3" /> <input type="hidden" name="type" value="5" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat"> Edit Question</td> </tr> <tr> <td class="thead">Dropdown Select</td> </tr> <tr> <td class="panelsurround" align="center"><div class="panel"> <div style="width:640px" align="left"> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Question:</td> </tr> <tr> <td><input name="question" type="text" id="question" class="bginput" size="40" maxlength="255" value="What state do you live in?" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Description:</td> </tr> <tr> <td><textarea name="description" id="description" class="bginput" rows="2" cols="60">Please select the state you live in from the dropdown list.</textarea> <div class="smallfont"><a href="#" onclick="return resize_textarea(1, 'description')">Increase Size</a> <a href="#" onclick="return resize_textarea(-1, 'description')">Decrease Size</a></div> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Display Order:</td> </tr> <tr> <td><input name="displayorder" type="text" id="displayorder" class="bginput" size="40" maxlength="3" value="20" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Options: <br /> <i>Enter the options that the user can choose from. Separate each option with a new-line (carriage return).</i></td> </tr> <tr> <td><textarea name="options" id="options" class="bginput" rows="10" cols="60">Alabama
As I mentioned, I'm not sure if I'm using it right or not but, it seems pretty striaght forward.
Regards,
Nita
bananalive
02-15-2009, 02:29 PM
Hi bananalive,
I was trying to edit my first form this morning at I got a runtime error. I'm not sure if I did something wrong or I found a bug. Here's what I did:
Brought the form up (using an admin ID):
1. Edited line 4 of my form. T'was a good edit.
2. Edited line 3 of my form. When I clicked Submit I got the following error:
Runtime Error: Line 308
Error: ‘vB_Editor.’ Is null of not an object
I ran debug on the script. The code is below. Line 308 is the last line.
Edit Question
</strong></td> </tr> </table> </td> <td class="alt2" nowrap="nowrap"> <div class="smallfont"> <strong>Welcome, <a href="members/fcradvocate/">FCRAdvocate</a>.</strong><br /><strong>No <a rel="nofollow" href="search.php?do=getnew">Unread Posts</a></strong> since your last visit.<strong></strong><br />
You last visited: 02-15-2009 at <span class="time">07:32 AM</span> <div> <script language="Javascript" type="text/javascript">
var cyb_pm_phrase = '<a href="pm/">Private Messages</a>: Unread 0, Total 20.';
var cyb_pm_phrase_stripped = cyb_pm_phrase.replace('</a>:', '</a>:<span id="navbar_cybppenh">');
with (document) {
write (cyb_pm_phrase_stripped);
}
vbmenu_register("navbar_cybppenh");
</script> </span> <div class="vbmenu_popup" id="navbar_cybppenh_menu" style="display:none;"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Private Messages</td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=0" accesskey="4" rel="nofollow">Inbox</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=-1" accesskey="4" rel="nofollow">Sent Items</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/new/" accesskey="4" rel="nofollow">Send New Message</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/track/" accesskey="4" rel="nofollow">Track Messages</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/folders/" accesskey="4" rel="nofollow">Edit Folders</a></td> </tr> </table> </div></div> </div> </td> </tr> </table> <div class="tborder" style="padding:1px; border-top-width:0px"> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr align="center"> <td class="vbmenu_control"><a href="myaccount/">User CP</a></td> <td class="vbmenu_control"><a id="vbbloglinks" href="blogs/">Blogs</a><script type="text/javascript">vbmenu_register("vbbloglinks");</script></td> <td class="vbmenu_control"><a id="community" href="/forums/misc.php?do=editq&id=3&nojs=1#community" rel="nofollow" accesskey="6">Community</a> <script type="text/javascript"> vbmenu_register("community"); </script></td> <td class="vbmenu_control"><a href="calendar/">Calendar</a></td> <td class="vbmenu_control"><a rel="nofollow" href="search.php?do=getnew" accesskey="2">New Posts</a></td> <td class="vbmenu_control"><a id="navbar_search" href="search.php" accesskey="4" rel="nofollow">Search</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td> <td class="vbmenu_control"><a rel="nofollow" id="usercptools" href="/forums/misc.php?do=editq&id=3&nojs=1#usercptools" accesskey="3">Quick Links</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td> </tr> </table> </div> <br /> <div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Community Links</td></tr> <tr><td class="vbmenu_option"><a href="groups/">Social Groups</a></td></tr> <tr><td class="vbmenu_option"><a href="album.php">Pictures & Albums </a></td></tr> <tr><td class="vbmenu_option"><a href="profile/friends/">Contacts & Friends</a></td></tr> <tr><td class="vbmenu_option"><a href="members/list/">Members List</a></td></tr> </table> </div> <div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Search Forums</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="search.php?do=process" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="childforums" value="1" /> <input type="hidden" name="exactname" value="1" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="Go" tabindex="1004" /></div> <div style="margin-top:6px"> <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />Show Threads</label>
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />Show Posts</label> </div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="tags/" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a href="search.php" accesskey="4" rel="nofollow">Advanced Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="post_thanks.php?do=findallthanks">Find All Thanked Posts</a></td> </tr><tr> <td class="thead">Search Blogs</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="blog_search.php?do=dosearch" method="post"> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <input type="hidden" name="do" value="dosearch" /> <input type="hidden" name="quicksearch" value="1" /> <div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="Go" tabindex="2004" /></div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="blog_tag.php" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="blog_search.php?do=search">Advanced Search</a></td> </tr> </table> </div> <div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Quick Links</td></tr> <tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Today's Posts</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr> <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?do=buddylist&focus=1','buddy list','statusbar=no,menubar=no,toolbar=no,scrollba rs=yes,resizable=yes,width=250,height=300'); return false;">Open Contacts Popup</a></td></tr> <tr><td class="thead"><a href="myaccount/">User Control Panel</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/signature/">Edit Signature</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/edit/">Edit Your Details</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/options/">Edit Options</a></td></tr> <tr><td class="thead">Miscellaneous</td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=cybaregman">Advanced Registration Management</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=cybmodstats">Moderating Stats</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=donlist">View Donations</a></td></tr> <tr><td class="vbmenu_option"><a href="pm/" rel="nofollow">Private Messages</a></td></tr> <tr><td class="vbmenu_option"><a href="subscription.php" rel="nofollow">Subscribed Threads</a></td></tr> <tr><td class="vbmenu_option"><a href="members/fcradvocate/">Your Profile</a></td></tr> <tr><td class="vbmenu_option"><a href="activeusers/">Who's Online</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=forms">Forms</a></td></tr> </table> </div> <div class="vbmenu_popup" id="pagenav_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead" nowrap="nowrap">Go to Page...</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="http://www.usfcralliance.org/forums/" method="get" onsubmit="return this.gotopage()" id="pagenav_form"> <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" /> <input type="button" class="button" id="pagenav_ibtn" value="Go" /> </form> </td> </tr> </table> </div> <form action="" method="post" enctype="multipart/form-data" name="vbform" onsubmit="return vB_Editor[''].prepare_submit(this.question.value, 5)"> <input type="hidden" name="do" value="updateq" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="fid" value="1" /> <input type="hidden" name="id" value="3" /> <input type="hidden" name="type" value="5" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat"> Edit Question</td> </tr> <tr> <td class="thead">Dropdown Select</td> </tr> <tr> <td class="panelsurround" align="center"><div class="panel"> <div style="width:640px" align="left"> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Question:</td> </tr> <tr> <td><input name="question" type="text" id="question" class="bginput" size="40" maxlength="255" value="What state do you live in?" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Description:</td> </tr> <tr> <td><textarea name="description" id="description" class="bginput" rows="2" cols="60">Please select the state you live in from the dropdown list.</textarea> <div class="smallfont"><a href="#" onclick="return resize_textarea(1, 'description')">Increase Size</a> <a href="#" onclick="return resize_textarea(-1, 'description')">Decrease Size</a></div> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Display Order:</td> </tr> <tr> <td><input name="displayorder" type="text" id="displayorder" class="bginput" size="40" maxlength="3" value="20" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Options: <br /> <i>Enter the options that the user can choose from. Separate each option with a new-line (carriage return).</i></td> </tr> <tr> <td><textarea name="options" id="options" class="bginput" rows="10" cols="60">Alabama
As I mentioned, I'm not sure if I'm using it right or not but, it seems pretty striaght forward.
Regards,
Nita
What are you editing? the plugins?
CPOWA
02-15-2009, 02:38 PM
What are you editing? the plugins?
No. From FORUMHOME/Quick Links/Forms/form name/Edit Form
Changed Description field and checked the "This is a compulsory question" box. Clicked Submit and got the runtime error. I just did it again to make sure the steps above are correct and I got the same error. I didn't go into debug this time and the changes are reflected in the form now. It's still catching the error though.
I doubt if this will help but, here's a link to the form that my user would see: FORM (http://www.usfcralliance.org/forums/misc.php?do=form&fid=1)
bananalive
02-15-2009, 03:57 PM
No. From FORUMHOME/Quick Links/Forms/form name/Edit Form
Changed Description field and checked the "This is a compulsory question" box. Clicked Submit and got the runtime error. I just did it again to make sure the steps above are correct and I got the same error. I didn't go into debug this time and the changes are reflected in the form now. It's still catching the error though.
I doubt if this will help but, here's a link to the form that my user would see: FORM (http://www.usfcralliance.org/forums/misc.php?do=form&fid=1)
Find and delete in template form_editq
<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.question.value, 5)"</if>
CPOWA
02-15-2009, 04:21 PM
Find and delete in template form_editq
<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.question.value, 5)"</if>
Deleted per instruction. Works perfect!
Thanks bananalive, this is the best mod I have. I can't vote for MOTM though because I already voted.
Also changed form_editq in my style and it's working fine as well. :)
Regards,
Nita
Heldenverband
02-16-2009, 07:08 AM
I missed the clock field :(
We need this to create a date / time for meeting ( example ).
s810car
02-16-2009, 07:09 AM
maybe i totally missed it, but I'm trying to incorporate the prefixids to assign to new threads, I can't figure out how to set this when creating the new thread. Is it just something I can add to the process/submit hook, or am I missing something totally?
AWESOME work on this btw, It has allowed me to do some special applications I've been scratching my head about for almost a year:D Nominated for sure!
xlguy
02-16-2009, 02:02 PM
How do I pass a hidden variable to the form before it's submitted? Thanks :)
Like if I want to pass the referring URL from where the form link is clicked?
bananalive
02-16-2009, 02:11 PM
How do I pass a hidden variable to the form before it's submitted? Thanks :)
Use Form Hook: Before Submit
bananalive
02-16-2009, 02:12 PM
maybe i totally missed it, but I'm trying to incorporate the prefixids to assign to new threads, I can't figure out how to set this when creating the new thread. Is it just something I can add to the process/submit hook, or am I missing something totally?
AWESOME work on this btw, It has allowed me to do some special applications I've been scratching my head about for almost a year:D Nominated for sure!
Find in plugin: Easy Forms Part 1
$newpost['title'] =& $threadtitle;
Add Below:
$newpost['prefixid'] =& '';
You'll need to specify the prefixid in the single quotes
xlguy
02-16-2009, 02:16 PM
Use Form Hook: Before Submit
Thanks, I should have been more specific. What I'd like is this:
misc.php?do=form&fid=1&refurl=http://www.something.com/page.php?p=1
How can I pass the refurl value through the form (behind the scenes) and output the other end?
Thanks in advance, this would be ideal :)
bananalive
02-16-2009, 02:25 PM
I'm sure you could make it hidden without editing form_view
Here's how to do it without making it hidden.
Form Hook: Form Start
$refurl = $vbulletin->input->clean_gpc('g', 'refurl', TYPE_NOHTML);
Custom Question with following php code:
if (!$q[$formbit[id]]) $q[$formbit[id]] = $refurl;
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $q[$formbit[id]] . '" />';
xlguy
02-16-2009, 02:38 PM
Wow, that's perfect : thanks a lot :)
Blackheart_72
02-16-2009, 03:30 PM
Will look like and idiot but when i submit the form i get this error:
Form failed to submit. The following error(s) occured:
You did not specify a username for your post.
I have set it to post a new thread. :o
Still an idiot and still cant figure this one out.:(
bananalive
02-16-2009, 03:34 PM
Will look like and idiot but when i submit the form i get this error:
Form failed to submit. The following error(s) occured:
You did not specify a username for your post.
I have set it to post a new thread. :oStill an idiot and still cant figure this one out.:(
Odd, what version of Easy Forms are you using?
What vb version?
Are you logged in when you get the error?
xlguy
02-16-2009, 03:37 PM
Found something interesting. If you are having the form contents sent to a private forum, if the user submits their form twice, they get a "duplicate warning" and then they are attempted to be redirected to this hidden forum. This gives them the hidden forum ID and can cause confusion. Anyway of skipping the duplicate check or perhaps skipping the redirect?
Blackheart_72
02-16-2009, 03:41 PM
Odd, what version of Easy Forms are you using?
What vb version?
Are you logged in when you get the error?
Easyforms 3.0 beta6
vBulletin 3.8.1
I am logged in but i also had the same error with beta5, thought i was missing something but cant find an option to add a user for the post.
TROLL
02-16-2009, 04:15 PM
I have a quick question before I begin testing this mod.
I have a forum which is devoted to selling/buying on my site and we currently use formhack. What we need is to require a user to input name/price/location, ect. The problem that we currently have is that the hack we use lets anyone submit a thread.
I want to require users to have 25 posts to post or reply to a thread, but 0 posts to view. Is this currently possible with this mod?
Thanks!
metalguy639
02-17-2009, 06:07 AM
Again I still have the problem of although I have it marked not to subscribe to a new thread in my UserCP this hack is only subscribing to the things that I have submitted thorugh it as a thread. Is there a way to stop this from happening please.
bananalive
02-17-2009, 07:45 AM
Easyforms 3.0 beta6
vBulletin 3.8.1
I am logged in but i also had the same error with beta5, thought i was missing something but cant find an option to add a user for the post.
There isn't one, it uses the username of the user.
$newpost['username'] =& $vbulletin->userinfo['username'];
What PHP version are you using?
bananalive
02-17-2009, 07:47 AM
Again I still have the problem of although I have it marked not to subscribe to a new thread in my UserCP this hack is only subscribing to the things that I have submitted thorugh it as a thread. Is there a way to stop this from happening please.
I've fixed this in v3.1, to be released.
bananalive
02-17-2009, 07:48 AM
I have a quick question before I begin testing this mod.
I have a forum which is devoted to selling/buying on my site and we currently use formhack. What we need is to require a user to input name/price/location, ect. The problem that we currently have is that the hack we use lets anyone submit a thread.
I want to require users to have 25 posts to post or reply to a thread, but 0 posts to view. Is this currently possible with this mod?
Thanks!
A user can post form without forum permissions - so you could deny everyone posting access
Add to Form Hook: Form Start
if($vbulletin->userinfo['posts'] < 25)
{
$errormessage = "You need at least 25 posts to post in this forum.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
Blackheart_72
02-17-2009, 08:24 AM
There isn't one, it uses the username of the user.
$newpost['username'] =& $vbulletin->userinfo['username'];
What PHP version are you using?
Apache 2.2.8
PHP 5.2.5
MySQL 5.0.67
Just upgraded to 3.1 and still the same.
metalguy639
02-17-2009, 08:35 AM
I've fixed this in v3.1, to be released.
Great thanks!
bananalive
02-17-2009, 08:53 AM
Apache 2.2.8
PHP 5.2.5
MySQL 5.0.67
Just upgraded to 3.1 and still the same.
I thought it might be php 4 error but obviously not. You could try replacing:
$newpost['username'] =& $vbulletin->userinfo['username'];
with
$newpost['username'] = $vbulletin->userinfo['username'];
Blackheart_72
02-17-2009, 10:17 AM
changed it in the plugin and still no joy.
bananalive
02-17-2009, 10:35 AM
changed it in the plugin and still no joy.This won't solve it but it will help me find the problem.
Find in plugin: Easy Forms Part 1
build_new_post('thread', $foruminfo, $threadinfo, array(), $newpost, $errors);Add Before:
print_r($newpost);
exit;
Blackheart_72
02-17-2009, 11:03 AM
Resulting info
Array ( [parseurl] => 1 [poststarttime] => [posthash] => [title] => Veccy 150 Area Rep Application [userid] => 1 [username] => Veccy 150 [message] => Area RepWhat is your forum username? xxxxxx What is your real name? xxxxxx What is your email? xxxxxxxxxx What area are you interested in? xxxxxxx Can you spare one or two days a month for meets? Yes About you? xxxxxxx [openclose] => 1 [disablesmilies] => 0 [visible] => 1 [stickunstick] => 0 [folderid] => 0 [emailupdate] => 9999 )
mk craig 42
02-17-2009, 07:42 PM
could someone help me when i click submit this comes up
https://vborg.vbsupport.ru/
bananalive
02-17-2009, 07:56 PM
could someone help me when i click submit this comes up
http://img21.imageshack.us/img21/1068/help1xm7.png
Try upgrading to version 3.1
SouthpawK
02-17-2009, 08:40 PM
Can someone please tell me where to go to set up my form? I swear I am not a stupid person, I have downloaded and installed this just fine. I can see the options in vb options for allowing usergroups, navbar links and such but I am missing where to set up my forms at. Yes, I followed the installation instructions but nothing.
I feel like I am in the twilight zone...what am I missing?
Thanks
Andyrew
02-17-2009, 08:50 PM
Can someone please tell me where to go to set up my form? I swear I am not a stupid person, I have downloaded and installed this just fine. I can see the options in vb options for allowing usergroups, navbar links and such but I am missing where to set up my forms at. Yes, I followed the installation instructions but nothing.
I feel like I am in the twilight zone...what am I missing?
Thanks
http://your-forum.com/forums/misc.php?do=forms
It says this at the top of every page in this thread. :p
SouthpawK
02-17-2009, 09:21 PM
http://your-forum.com/forums/misc.php?do=forms
It says this at the top of every page in this thread. :p
I understand that and again I have done that. When I go there it says... The requested document was not found on this server.
What could be the cause of this?
Thank you for your response
Andyrew
02-17-2009, 09:24 PM
I understand that and again I have done that. When I go there it says... The requested document was not found on this server.
What could be the cause of this?
Thank you for your response
Not sure, you are changing that link to suit your forums. ?
SouthpawK
02-17-2009, 09:38 PM
Yes I am. I have also uninstalled and reinstalled and same thing happens.
d0nbiz
02-17-2009, 10:53 PM
Looks very good. Reserved ;)
Anung Mwka
02-18-2009, 01:11 AM
I have a question, I need a form where people can assign a amount of points. What I'm basically looking for is a way to add up each row (about 25-30 in total). Is this possible?
bananalive
02-18-2009, 07:56 AM
I have a question, I need a form where people can assign a amount of points. What I'm basically looking for is a way to add up each row (about 25-30 in total). Is this possible?
Yes, use form hook: before submit
$total = $q[1] + $q[2] + $q[3] + $q[4];
bananalive
02-18-2009, 07:57 AM
Yes I am. I have also uninstalled and reinstalled and same thing happens.
misc.php is a standard page, included with vBulletin
Kiint
02-18-2009, 08:15 AM
Yes I am. I have also uninstalled and reinstalled and same thing happens.
It looks like you have your forums in the root directory of your server, not in a subdirectory, so you need to change the link to:
http://forums.yourwebsite.com/misc.php?do=forms
change "yourwebsite" to your website name.
abdelghani68
02-18-2009, 08:38 AM
Thanks for this good add-on. I have a little problem :
Parse error: syntax error, unexpected $end in /homez.83/home/www/forum/misc.php(100) : eval()'d code(3792) : eval()'d code on line 1
thanks for your help
bananalive
02-18-2009, 09:00 AM
Thanks for this good add-on. I have a little problem :
Parse error: syntax error, unexpected $end in /homez.83/home/www/forum/misc.php(100) : eval()'d code(3792) : eval()'d code on line 1
thanks for your help
Have you got any code in the form hooks?
dutchbb
02-18-2009, 09:26 AM
Will this form spit out the data like a regular post in the forum, or is every answer listed in the database separately? (hopefully the latter)
bananalive
02-18-2009, 09:38 AM
Will this form spit out the data like a regular post in the forum, or is every answer listed in the database separately? (hopefully the latter)
Like a regular post.
dutchbb
02-18-2009, 10:02 AM
Ok, it's a very good add on , a lot easier than the other form hack, thank you :)
dutchbb
02-18-2009, 10:23 AM
I'm trying to use the 'Custom Form Output', but it's not working correctly, this is my code:
Rating: {a_12} {a_13}
$q[1] {a_1}
$q[2] {a_2}
$q[3] {a_3}
$q[4] {a_4}
$q[5] {a_5}
$q[6] {a_6}
$q[7] {a_7}
$q[8] {a_8}
$q[9] {a_9}
$q[10] {a_10}
$q[11]
{a_11}
The drop down does not show the content answer , it shows the drop down order number instead.
In case you are wondering why I'm using $q[1] instead of {q_1} this was actually automatically changed when saving the form.
bananalive
02-18-2009, 12:16 PM
I'm trying to use the 'Custom Form Output', but it's not working correctly, this is my code:
Rating: {a_12} {a_13}
$q[1] {a_1}
$q[2] {a_2}
$q[3] {a_3}
$q[4] {a_4}
$q[5] {a_5}
$q[6] {a_6}
$q[7] {a_7}
$q[8] {a_8}
$q[9] {a_9}
$q[10] {a_10}
$q[11]
{a_11}
The drop down does not show the content answer , it shows the drop down order number instead.
In case you are wondering why I'm using $q[1] instead of {q_1} this was actually automatically changed when saving the form.
$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)
dutchbb
02-18-2009, 02:38 PM
Thank you!
Just one question: is there a way to make the img tag work in the drop down menu (create new form page)?
SouthpawK
02-18-2009, 03:50 PM
It looks like you have your forums in the root directory of your server, not in a subdirectory, so you need to change the link to:
http://forums.yourwebsite.com/misc.php?do=forms
change "yourwebsite" to your website name.
Thank you Kiint
I didn't even think about that being the problem but should have because I had the same problem with something else I was doing. It is one of those Duh moments.
I did have to change it a bit to http://yourwebsite.com/forum/misc.php?do=forms to make it work but it works! :D The vBulletin guys installed my forums for me and that's where they put it. I am going to make myself a note to check the url when I have a problem like this again.
Anyway, thank you so much for pointing me in the right direction. I really do appreciate it! ;)
Kimberly
Andyrew
02-18-2009, 07:21 PM
I'm using {q_1} {q_2} {q_3} For sale, as a thread title but it's only posting as {q_1} For sale. :confused:
SAT2M
02-18-2009, 08:11 PM
Hello
I have this error message at top of my form page that I created :
Parse error: syntax error, unexpected T_STRING in /home/sat2mnet/public_html/misc.php(100) : eval()'d code(1442) : eval()'d code on line 1
dgkrob
02-18-2009, 09:37 PM
I have been looking through all the posts and i havn't come accross this question yet..
The mod is fantastic and i have had no issues at all however what i would like to do is change the name of the link thats placed in my navigation bar from "Forms" to "Join Us"
Could you tell me where i can find this info to change it?
I've tried adding a direct link in the navigation/breadcrumb templates > Navbar using this code "<td class="vbmenu_control"><a href="/misc.php?do=forms$session[sessionurl_q]">Join Us</a></td>" but that doesn't work it just takes me to a page about the smilies available on my site.
Help please??
Kind Regards
Rob
Andyrew
02-18-2009, 10:00 PM
Just edit the phrase as the link is put there for you.
Go to admincp > Search in Phrases
Type in forms then pick the product Easy forms
Then press find, it will be the first one under GLOBAL Phrases Containing 'forms'
Click edit and type Join us in the box. :up:
dgkrob
02-18-2009, 11:19 PM
Thanks buddy really appreciate it!
bananalive
02-19-2009, 08:12 AM
I'm using {q_1} {q_2} {q_3} For sale, as a thread title but it's only posting as {q_1} For sale. :confused:
Are you using the # values for the macroses? See screenshot
bananalive
02-19-2009, 08:13 AM
Thank you!
Just one question: is there a way to make the img tag work in the drop down menu (create new form page)?
I'm sorry I don't understand?
dutchbb
02-19-2009, 10:06 AM
I'm sorry I don't understand?
I'm sorry , this screenshot will help explain
I would like to use rating stars in the topic, but they show up in the drop down menu with img tags. Also please let us know how we can donate :)
bananalive
02-19-2009, 10:11 AM
I'm sorry , this screenshot will help explain
I would like to use rating stars in the topic, but they show up in the drop down menu with img tags.
Oh I see. It's not possible to have images in html dropdown menus
Kiint
02-19-2009, 11:05 AM
I've just installed version 3.1 and the smilie [] problem is fixed now, thanks.
I am still getting some problems with the Increase Size/Decrease size links under multi-line text boxes.
If I edit a form, the first Increase Size link you encounter doesn't work, and if I attempt to edit/create a Multi-line text field I get the same problem, On IE 8 I'm getting the following error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Timestamp: Thu, 19 Feb 2009 13:00:44 UTC
Message: Invalid argument.
Line: 11
Char: 14091
Code: 0
URI: http://www.mywebsite.co.uk/forums/clientscript/vbulletin_global.js?v=381
I've also tried this in IE7 with the same results, neither works.
In Firefox it works ok...
any ideas?
Andyrew
02-19-2009, 11:13 AM
Are you using the # values for the macroses? See screenshot
Thanks now i see what was wrong, as i had kept deleting questions and adding others the numbers were different. :o:up:
bananalive
02-19-2009, 11:15 AM
I am still getting some problems with the Increase Size/Decrease size links under multi-line text boxes.
If I edit a form, the first Increase Size link you encounter doesn't work, and if I attempt to edit/create a Multi-line text field I get the same problem, On IE 8 I'm getting the following error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Timestamp: Thu, 19 Feb 2009 13:00:44 UTC
Message: Invalid argument.
Line: 11
Char: 14091
Code: 0
URI: http://www.mywebsite.co.uk/forums/clientscript/vbulletin_global.js?v=381
I've also tried this in IE7 with the same results, neither works.
In Firefox it works ok...
any ideas?
Have you modified the template form_formbit_textarea?
SAT2M
02-19-2009, 05:26 PM
Hello
I have this error message at top of my form page that I created :
Parse error: syntax error, unexpected T_STRING in /home/sat2mnet/public_html/misc.php(100) : eval()'d code(1442) : eval()'d code on line 1
Hello Again
I think you forget to answer me in last page ... !!!!
Thanks a lot
dgkrob
02-19-2009, 09:05 PM
Hi Again,
Quick question around permissions.
I have the mod working 100% and love it however i have an issue that when someone completes the form it posts a new thread in a particular forum that i want, This forum is only available to a select few via usergroups permissions but when the form is submitted it always puts the thread into a moderation que that i then have to go to and authorise before the post is made.
I have tried many different things from completely deleting the set forum and re adding them along with deleting the usergroups and starting again but i have the same issue.
I have been through every usergroup and made sure that the moderation is not on at all but every time someone submits a form it always gets put in the moderation que.
Could you help me get round this or point out my stupid mistake that im making.
Cheers
Rob
Kiint
02-19-2009, 09:11 PM
Have you modified the template form_formbit_textarea?
Nope, not modified.
It's strange because the other text boxes on the page increase/decrease fine.
This is the error message I am getting when I attempt to decrease the size:
Line: 12
Char: 14091
Error: Invalid argument.
URL: http://www.mywebsite.co.uk/forums/misc.php?do=editform&fid=2
As mentioned earlier, works fine in firefox, but not in IE7 or IE8 on 2 different computers....
Andyrew
02-20-2009, 04:47 AM
Hi Again,
Quick question around permissions.
I have the mod working 100% and love it however i have an issue that when someone completes the form it posts a new thread in a particular forum that i want, This forum is only available to a select few via usergroups permissions but when the form is submitted it always puts the thread into a moderation que that i then have to go to and authorise before the post is made.
I have tried many different things from completely deleting the set forum and re adding them along with deleting the usergroups and starting again but i have the same issue.
I have been through every usergroup and made sure that the moderation is not on at all but every time someone submits a form it always gets put in the moderation que.
Could you help me get round this or point out my stupid mistake that im making.
Cheers
Rob
Edit:
I have the same problem, hadn't noticed that before. :confused:
bananalive
02-20-2009, 08:20 AM
Hello
I have this error message at top of my form page that I created :
Parse error: syntax error, unexpected T_STRING in /home/sat2mnet/public_html/misc.php(100) : eval()'d code(1442) : eval()'d code on line 1
Have you got anything in the form hooks?
bananalive
02-20-2009, 08:21 AM
Nope, not modified.
It's strange because the other text boxes on the page increase/decrease fine.
This is the error message I am getting when I attempt to decrease the size:
Line: 12
Char: 14091
Error: Invalid argument.
URL: http://www.mywebsite.co.uk/forums/misc.php?do=editform&fid=2
As mentioned earlier, works fine in firefox, but not in IE7 or IE8 on 2 different computers....
Could you pm/email me the page source and I'll try and find an error.
bananalive
02-20-2009, 08:38 AM
Hi Again,
Quick question around permissions.
I have the mod working 100% and love it however i have an issue that when someone completes the form it posts a new thread in a particular forum that i want, This forum is only available to a select few via usergroups permissions but when the form is submitted it always puts the thread into a moderation que that i then have to go to and authorise before the post is made.
I have tried many different things from completely deleting the set forum and re adding them along with deleting the usergroups and starting again but i have the same issue.
I have been through every usergroup and made sure that the moderation is not on at all but every time someone submits a form it always gets put in the moderation que.
Could you help me get round this or point out my stupid mistake that im making.
Cheers
Rob
Try attached file
Andyrew
02-20-2009, 01:58 PM
Works for me. :up:
Reece^B
02-20-2009, 04:54 PM
Hey,
Is there a way to make this mod work so when you post a thread, you have to fill in a form?
dgkrob
02-20-2009, 05:04 PM
Try attached file
If i upload this will it delete the forms i currently have? or will it keep them?
Cheers
Rob
basilrath
02-20-2009, 06:20 PM
Great idea and works great as feedback form with a floating image linked as a target to the form.
Nice one
Andyrew
02-20-2009, 08:09 PM
Bug?
Options per row, does not show when creating a radio button or check box question.
You have to create question then go back to edit questions screen and then edit question to get the option for options per row.
Kiint
02-20-2009, 08:10 PM
Could you pm/email me the page source and I'll try and find an error.
Thanks, I've sent you an email via this site :)
PimvanJ
02-21-2009, 06:11 AM
I have a forum with prefixes.
It seems that this hack can't handle a forum with prefixes or do I miss something?
By the way this is a very good job after all!
Andyrew
02-21-2009, 10:45 AM
Custom form output.
How do you make it pull the text that was next to the selected radio button, at the moment i can only get it to display what number radio button was picked eg: 1 2 or 3 :confused:
Simon Lloyd
02-21-2009, 10:59 AM
Custom form output.
How do you make it pull the text that was next to the selected radio button, at the moment i can only get it to display what number radio button was picked eg: 1 2 or 3 :confused:
look here (https://vborg.vbsupport.ru/showpost.php?p=1747872&postcount=426)
Andyrew
02-21-2009, 11:15 AM
Thanks, missed that.
Chet T16
02-21-2009, 12:02 PM
Slightly related...
Does anyine know how i would make the "new thread" link point to a specific form for different sub-forums?
i.e. I want to use the forms as a template for posting new classifieds in the for sale forum but have the new thread link go to a different form if trying to post from the wanted section
Simon Lloyd
02-21-2009, 01:45 PM
Just change the new thread button in your particular forum and add the link to the form id like this <a href="http://www.yourforum.com/forums/misc.php?do=form&fid=1" />this will point to form id 1 (fid=1)
bananalive
02-21-2009, 05:13 PM
If i upload this will it delete the forms i currently have? or will it keep them?
Cheers
Rob
keeps the data
bananalive
02-21-2009, 05:16 PM
Hey,
Is there a way to make this mod work so when you post a thread, you have to fill in a form?
Slightly related...
Does anyine know how i would make the "new thread" link point to a specific form for different sub-forums?
i.e. I want to use the forms as a template for posting new classifieds in the for sale forum but have the new thread link go to a different form if trying to post from the wanted section
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' ) ;
}
bananalive
02-21-2009, 05:17 PM
Thanks, I've sent you an email via this site :)
I've had quick look through and couldn't find an error, I'll have another look later when I'm less tired
bananalive
02-21-2009, 05:18 PM
Bug?
Options per row, does not show when creating a radio button or check box question.
You have to create question then go back to edit questions screen and then edit question to get the option for options per row.
Nope, deliberate.
theczech
02-21-2009, 08:53 PM
Great product, banana, thank you.
Would it be hard to make another option for this form to update user profile fields with the answers?
mk craig 42
02-22-2009, 08:22 AM
Hi i think i'm having problems, when my members try to use the forum it says
vBulletin Message
test, 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.
And i have made it so that users CAN view and use it, I cant think what could be wrong, ive tried everything i can think of, also i get this message when i click 'add new user' in the admin panel
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/admincp/user.php(544) : eval()'d code on line 11
i can still access the page, it just says this right at the top, could this have anything to do with why its not working?
Edit: also i should mention i can access the page fine, but I'm administrator
thank you.
bananalive
02-22-2009, 08:59 AM
Hi i think i'm having problems, when my members try to use the forum it says
And i have made it so that users CAN view and use it, I cant think what could be wrong, ive tried everything i can think of, also i get this message when i click 'add new user' in the admin panel
i can still access the page, it just says this right at the top, could this have anything to do with why its not working?
Edit: also i should mention i can access the page fine, but I'm administrator
thank you.
Check you have no usergroups selected on 'Edit Form' (hence disabling this feature)
Have you tried disabling this mod? If so do you still get the error? (This mod does not run or change anything in the admincp)
bananalive
02-22-2009, 09:01 AM
Great product, banana, thank you.
Would it be hard to make another option for this form to update user profile fields with the answers?
Sorry that's not possible.
bananalive
02-22-2009, 09:02 AM
Hello,
I installed your modification, "Easy Forms", and my forum is right-to-left aligned, but the forms are still aligned left-to-right.
Can you please tell me how can I change it to r-t-l?
Import attached file
Andyrew
02-22-2009, 09:15 AM
Can forms created by forum owners be used on any other forum owners site, or will they only work on the forum they were created on.
bananalive
02-22-2009, 09:18 AM
Can forms created by forum owners be used on any other forum owners site, or will they only work on the forum they were created on.
If you export a form you can transfer the form, but some of the question hash numbers will be different (for custom output, thread title, etc.)
Blackheart_72
02-22-2009, 10:15 AM
Form failed to submit. The following error(s) occured:
You did not specify a username for your post.
Any joy with this problem yet matey, would rather use this one over the one we have now.:)
bananalive
02-22-2009, 10:31 AM
Any joy with this problem yet matey, would rather use this one over the one we have now.:)
Try attached file
Blackheart_72
02-22-2009, 11:14 AM
Sorry, still the same error, honestly cant understand why.
Going to have to stick with the forms hack for now.
Chet T16
02-22-2009, 11:31 AM
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' ) ;
}
Thanks, that works perfectly :)
Hayek
02-23-2009, 04:02 AM
This is a great mod, just one question.
I am holding a contest that is valid from a certain date. I know according to the FAQ, how to set a minimal post requirement to signup.
Is there anyway to count if the users have had at least X posts starting on a certain date?
For example, contest starts on 2/23/2009 and ends on 2/26/2009. Even if a user has 100 overall, he must still make 5 NEW posts between 2/23 and 2/26 in order to qualify to register.
bananalive
02-23-2009, 12:36 PM
This is a great mod, just one question.
I am holding a contest that is valid from a certain date. I know according to the FAQ, how to set a minimal post requirement to signup.
Is there anyway to count if the users have had at least X posts starting on a certain date?
For example, contest starts on 2/23/2009 and ends on 2/26/2009. Even if a user has 100 overall, he must still make 5 NEW posts between 2/23 and 2/26 in order to qualify to register.
No sorry. Information about when the posts were created is not stored, by vbulletin
Budget101
02-23-2009, 01:45 PM
How do I input a hidden field to automatically log the users IP address regardless of their Usergroup?
Gizmo999
02-23-2009, 03:03 PM
How would I get it to include the forum users name and email address automatically in the output? I'd restrict use to members only.
it would need to save to database and send an email.
dutchbb
02-23-2009, 03:27 PM
When can we expect the attachments option? This is the only thing keeping me from using this mod :)
Andyrew
02-23-2009, 05:59 PM
When can we expect the attachments option? This is the only thing keeping me from using this mod :)
It's already got the attachments feature., i guess he forgot to update the first post. :)
dutchbb
02-23-2009, 06:04 PM
So how do we add it, i do not see the option for it. tnx.
Edit: nvm, i see the option for it. However we can not choose where to add it in the form?
Andyrew
02-23-2009, 06:18 PM
So how do we add it, i do not see the option for it. tnx.
Edit: nvm, i see the option for it. However we can not choose where to add it in the form?
It might be possible to do that with a custom question then put in php code, i'm not a coder so you will need to ask bananalive.
bananalive
02-24-2009, 11:34 AM
So how do we add it, i do not see the option for it. tnx.
Edit: nvm, i see the option for it. However we can not choose where to add it in the form?
There is no option for that. You could however edit template form_view
bananalive
02-24-2009, 11:35 AM
When can we expect the attachments option? This is the only thing keeping me from using this mod :)
Attachments are currently available for creating new thread but not for posting in a thread.
bananalive
02-24-2009, 11:39 AM
How would I get it to include the forum users name and email address automatically in the output? I'd restrict use to members only.
it would need to save to database and send an email.
Either use custom output or use hook before complete:
$formoutput .= $form[preq] . "Username:" . $form[pstq];
$formoutput .= $form['prea'] . $vbulletin->userinfo[username] . $form[psta];
$formoutput .= $form[preq] . "Email:" . $form[pstq];
$formoutput .= $form['prea'] . $vbulletin->userinfo[email] . $form[psta];
bananalive
02-24-2009, 11:46 AM
How do I input a hidden field to automatically log the users IP address regardless of their Usergroup?
$ip = $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" . $form[pstq];
$formoutput .= $form['prea'] . $ip . $form[psta];
A.Chakery
02-24-2009, 12:15 PM
hi bro
really thnx for this gr8 mod (marked as installed :) )
zushiba
02-24-2009, 02:14 PM
This is an excellent mod that will save me a LOT of time but I'm running VBAdvanced CMPS, is there any way to integrate the forms into the front end?
bananalive
02-24-2009, 03:22 PM
This is an excellent mod that will save me a LOT of time but I'm running VBAdvanced CMPS, is there any way to integrate the forms into the front end?
Probably. I did a quick google and found this post (http://www.vbadvanced.com/forum/showpost.php?p=61866&postcount=1) which might help you
Xencored
02-24-2009, 03:26 PM
Installed Thanks mate epic this is!!
lazyseller
02-24-2009, 03:29 PM
It's already got the attachments feature., i guess he forgot to update the first post. :)
Haha the attachment option was on like page 17 or something...
This gotta be one of the best mods out there right now. Most flexible.
ButtKrust
02-24-2009, 08:53 PM
When i choose for it to store the information in the database, where do i go to find the stored information? Does it go into MySQL? I would like to be able to pull this information out through php if at all possible.
Michigan Morels
02-25-2009, 06:23 AM
1. I have this in Custom Form Output
$qo[1]: $qo[2]: $qo[7]
$qo[3]: $qo[4]: $qo[8]
$qo[5]: $qo[6]: $qo[9]
2. I get this display posted to the thread
<!-- BEGIN TEMPLATE: formoutput -->
widget one: 3: 5.00
widget two: 2: $10.00
widget three: 1: 30.00
<!-- END TEMPLATE: formoutput -->
3. I also have this in Form Hook: Before Submit: to remove bbcode from empty answers.$formoutput = str_replace("", "", $formoutput);
How do I remove those Template tags from example #2.?
bananalive
02-25-2009, 12:21 PM
1. I have this in Custom Form Output
$qo[1]: $qo[2]: $qo[7]
$qo[3]: $qo[4]: $qo[8]
$qo[5]: $qo[6]: $qo[9]
2. I get this display posted to the thread
<!-- BEGIN TEMPLATE: formoutput -->
widget one: 3: 5.00
widget two: 2: $10.00
widget three: 1: 30.00
<!-- END TEMPLATE: formoutput -->
3. I also have this in Form Hook: Before Submit: to remove bbcode from empty answers.$formoutput = str_replace("", "", $formoutput);
How do I remove those Template tags from example #2.?
AdminCP -> vBulletin Options -> General Options -> Add Template Name in HTML Comments -> No
Michigan Morels
02-25-2009, 04:40 PM
Thank you. I knew it was something simple I was overlooking.
I forgot I had that turned on. DUH
dknelson
02-25-2009, 06:18 PM
You could use custom question to get birthday of user from their profile.
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[birthday] . '" />';
Can't think of any easy way of easy way to do all states/ countries. But for US/Canada you could use this custom question with following php code:
$answer = '<select id="q_' . $formbit[id] . '" name="' . $formbit[id] . '"><option value="">Select One</option><optgroup label="Canadian Provinces"><option value="AB">Alberta</option><option value="BC">British Columbia</option><option value="MB">Manitoba</option><option value="NB">New Brunswick</option><option value="NF">Newfoundland</option><option value="NT">Northwest Territories</option><option value="NS">Nova Scotia</option><option value="NU">Nunavut</option><option value="ON">Ontario</option><option value="PE">Prince Edward Island</option><option value="QC">Quebec</option><option value="SK">Saskatchewan</option><option value="YT">Yukon Territory</option></optgroup> <optgroup label="U.S. States"><option value="AK">Alaska</option><option value="AL">Alabama</option><option value="AR">Arkansas</option><option value="AZ">Arizona</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DC">District of Columbia</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="HI">Hawaii</option><option value="IA">Iowa</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="MA">Massachusetts</option><option value="MD">Maryland</option><option value="ME">Maine</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MO">Missouri</option><option value="MS">Mississippi</option><option value="MT">Montana</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="NE">Nebraska</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NV">Nevada</option><option value="NY">New York</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="PR">Puerto Rico</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VA">Virginia</option><option value="VT">Vermont</option><option value="WA">Washington</option><option value="WI">Wisconsin</option><option value="WV">West Virginia</option><option value="WY">Wyoming</option></optgroup></select>';
$selected = "value=\"" . $q_{$formbit[id]} . "\"";
$answer = str_replace($selected, $selected. "selected=\"seleceted\"", $answer);
This is about perfect for what I am trying to do. My members want a list of recommended restaurants across the USA and Canada. Members from various states will submit their favorites via the forms. Here is my question.
I want to output the results to a "Recommended Restaurant" forum. I guess I could manually create a thread for each state and province. Then a member will submit the forum and it should go to the correct state/province thread. Do I have to create 57 different forms to do this? Is there any way that the form could use this drop-down state/province field to know which thread to post to?
stratfan87
02-25-2009, 07:48 PM
***IGNORE THIS***
When I hit "submit" after filling out my form, I get the following error.
Unable to add cookies, header already sent.
File: /home/stratfan/public_html/forum/includes/class_core.php
Line: 3254
I am very new to all of this, I was attempting to "create a new thread" with the forms information, any help would be appreciated.
(great product btw!)
***END OF IGNORE***
I figured it out! Thanks for the great Product!
ilanyon
02-25-2009, 08:07 PM
Hi, fantastic mod!
A quick question - after the form has been submitted, a message appears stating "Form Submitted - Click here to go to the thread" (or similar). Trouble is, that only Admins have permission for the forum that the thread is posted in and if they follow the 'click here' they get an another error message...
I would therefore like to change this wording and have edited the "form_submit_message" and "form_submit_message_explain" via the phrase manager, but despite such, the message remains the same (ie the standard phrase remains unaltered)...
No doubt it is something I am doing wrong but any ideas would be very much appreciated....
stratfan87
02-25-2009, 08:15 PM
I have a question related to ilanyon..
Like he said, you have the option to change what the user sees after submitting a form.
To change the message you put your own message in the text box below
Form Submit Message:
Message the user sees when the form is submitted successfully. Leave blank to use the default message."
I want to use this message to direct them to a different url, what code can I use? I tried [URL] tags and <a href> tags and they didn't work..
I understand there is a redirect option, but I want to display a message first, and also give a few options for where to go after the form is completed.
Lone Gunman
02-26-2009, 12:31 AM
when i click manage attachments on the form i made i get this on the new screen...
Invalid Post specified. If you followed a valid link, please notify the administrator
form is set to post new thread and attachments allowed. logged in as admin
edit...
nevermind. i see what i did wrong. just need forum id # not link.
great mod!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.