View Full Version : New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge
Lone Gunman
02-26-2009, 01:59 AM
ok new question. how can i allow unregistered users to upload files on the form i created. form shows image verification in that spot for unregistered users.
http://brianslawn.com/forum/misc.php?do=form&fid=4
bananalive
02-26-2009, 02:13 PM
ok new question. how can i allow unregistered users to upload files on the form i created. form shows image verification in that spot for unregistered users.
http://brianslawn.com/forum/misc.php?do=form&fid=4
It's not possible. vBulletin attachment system requires a userid which guests don't have
bananalive
02-26-2009, 02:13 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.
You should be able to use html, I'll check this out.
bananalive
02-26-2009, 02:14 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....
Edit form -> Form Submit Message
bananalive
02-26-2009, 02:26 PM
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?
I'll have to have think about this. There is probably a way to use the hooks so that you only have to have one form.
alkank
02-26-2009, 04:43 PM
hey there. great application. but i have a same problem that is like in the past posts. i use 3.1 and when i disallow registered users to edit forms they can not see the forms. i want them to see. use thr forms but not to edit or delete. thenk you so much..
vbulletin ver. : 3.81
www.amatorbalikcilar.net
Michigan Morels
02-26-2009, 08:53 PM
Questions on number and dollar formating.
Problem 1. In a single line text field I put this /(d+)/ in the Regular Expression:
However when I try to submit a form I get the invalid format error.
See attach. 95542
I'm using vB 3.7.4 and Easy Forms 3.1
Question 2. Is it possible to force number in text field so that both (5) and (5.00) would show as 5.00 (with decimal) and not 5 (without decimal), on submitted post? or make them both a dollar number ($5.00)
I can live without the dollar format if too difficult, but would like the other options.
frogster
02-27-2009, 01:40 AM
Hello,
I installed and can submit a form with and without a picture attachment. However, when I attach a picture and click preview I get this:
Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 807
ilanyon
02-27-2009, 08:11 AM
Edit form -> Form Submit Message
Thanks mate,
Yep, changed that to what I wanted and it even shows up in italics above the field in the edit form -> Form Submit Message....however, the standard "Form was submitted successfully. Click here to view the thread." message continues to show when the form is submitted...
Cheers,
Ian
dknelson
02-27-2009, 06:33 PM
When a form is submitted, it takes a lot of space due to each question being on a different line. What do I edit to give it a more horizontal layout. Attached is a picture of what is posted now. I would like to be able to have two or three of the questions on one line so that it is not such a long post.
Andyrew
02-27-2009, 08:04 PM
When a form is submitted, it takes a lot of space due to each question being on a different line. What do I edit to give it a more horizontal layout. Attached is a picture of what is posted now. I would like to be able to have two or three of the questions on one line so that it is not such a long post.
Use the custom form output
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
So just put then on the same line.
$qn[1] $q[1] $qn[2] $q[2] $qn[3] $q[3] replace numbers with your question numbers, and use bb code around the questions for bold font.
eg: $qn[1] $q[1] $qn[2] $q[2] $qn[3] $q[3]
dknelson
02-27-2009, 08:36 PM
hmmm....I thought I did it right but now when I try to submit the form, I get this error message.
The message you have entered is too short. Please lengthen your message to at least 3 characters.
This is what I entered in the custom output box.
$qn[1] $q[1]
$qn[2] $q[2]
$qn[3] $q[3] $qn[4] $q[4]
$qn[5] $q[5]
$qn[6] $q[6] $qn[7] $q[7] $qn[8] $q[8]
$qn[9] $q[9] $qn[10] $q[10]
$qn[11] $q[11]
Andyrew
02-27-2009, 10:57 PM
hmmm....I thought I did it right but now when I try to submit the form, I get this error message.
The message you have entered is too short. Please lengthen your message to at least 3 characters.
Try putting some text in somewhere, like a header.
United states
Or just some dots right at the bottom of your form.
dknelson
02-28-2009, 01:16 AM
OK...when I tried that...the form submitted but the post only showed the "United States" centered in red. None of the other questions and answers showed up.
If I remove it all and just use the default, everything shows up fine but not if I try the custom output.
dknelson
02-28-2009, 01:36 AM
OK....the problem was that I had my head too far up where the sun doesn't shine. I was using the order of the questions instead of the actual question number. Sorry about that.
One ...hopefully last...question. For yes/no questions, the output is 1 or 2 whether I use yes/no type question or a drop down box with yes and no as answers. How can I get it to actually show yes or no instead of the numbers?
Andyrew
02-28-2009, 06:56 AM
One ...hopefully last...question. For yes/no questions, the output is 1 or 2 whether I use yes/no type question or a drop down box with yes and no as answers. How can I get it to actually show yes or no instead of the numbers?
$qo[x] replace x with your question number. :)
DontWannaName
02-28-2009, 09:36 AM
How would one add a prefix setup in the admincp to the new thread when they submit it?
bananalive
02-28-2009, 10:02 AM
When a form is submitted, it takes a lot of space due to each question being on a different line. What do I edit to give it a more horizontal layout. Attached is a picture of what is posted now. I would like to be able to have two or three of the questions on one line so that it is not such a long post.
Remove [indent] bbcode for answer bbcode, and add \r\n at end of answer bbcode. Or use custom output.
bananalive
02-28-2009, 10:05 AM
How would one add a prefix setup in the admincp to the new thread when they submit it?
Edit plugin: Easy Forms Part 1
Find:
/*$newpost['prefixid'] =& '';*/
Replace:
$newpost['prefixid'] =& 1'';
Replace 1 with the appropriate prefixid
bananalive
02-28-2009, 10:06 AM
Thanks mate,
Yep, changed that to what I wanted and it even shows up in italics above the field in the edit form -> Form Submit Message....however, the standard "Form was submitted successfully. Click here to view the thread." message continues to show when the form is submitted...
Cheers,
Ian
Are you sure you're not editing Form Description?
bananalive
02-28-2009, 10:07 AM
Hello,
I installed and can submit a form with and without a picture attachment. However, when I attach a picture and click preview I get this:
Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 807
What vbulletin version are you using? Are you using any modifications which alter the attachment system?
bananalive
02-28-2009, 10:16 AM
Questions on number and dollar formating.
Problem 1. In a single line text field I put this /(d+)/ in the Regular Expression:
However when I try to submit a form I get the invalid format error.
See attach. 95542
I'm using vB 3.7.4 and Easy Forms 3.1
Question 2. Is it possible to force number in text field so that both (5) and (5.00) would show as 5.00 (with decimal) and not 5 (without decimal), on submitted post? or make them both a dollar number ($5.00)
I can live without the dollar format if too difficult, but would like the other options.
Use
/(\d+)/
Use php code at Form hook: Form Start:
$q[8] = $vbulletin->input->clean_gpc('p', 8, TYPE_NUM);
$q[8] = vb_number_format($q[8], 2);
$_POST['8'] = $q[8];
replace 8 with appropriate question hash
bananalive
02-28-2009, 10:17 AM
hey there. great application. but i have a same problem that is like in the past posts. i use 3.1 and when i disallow registered users to edit forms they can not see the forms. i want them to see. use thr forms but not to edit or delete. thenk you so much..
vbulletin ver. : 3.81
www.amatorbalikcilar.net
Change their permissions to view forms in vbulletin options
Gizmo999
02-28-2009, 01:18 PM
Is it possible to edit a completed form if its saved to database? currently admins can view the results, delete the results but not edit the results
dknelson
02-28-2009, 02:32 PM
I'll have to have think about this. There is probably a way to use the hooks so that you only have to have one form.
WOW...I sure hope so. I thought I would go ahead and just create 60 something forms but they have custom output so I just realized that I can't just cut and past the custom output because the question numbers are different for each one, even though they are the same questions. :(
frogster
02-28-2009, 03:26 PM
What vbulletin version are you using? Are you using any modifications which alter the attachment system?
I am using vB 3.8. I have the VB blog installed, and the FB Connect mod installed besides yours. I installed the update and now I get this when trying to preview...pretty much the same.
Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 1704
Also, when a user submits a form to a new thread, it goes into moderation. I already made sure the newpost visable is set to 1 and checked all my forum options and everything seems to be set right. Not sure what the problem is. Hopefully I can get this fixed as this is a great mod that I would love to use.
bananalive
02-28-2009, 03:35 PM
Is it possible to edit a completed form if its saved to database? currently admins can view the results, delete the results but not edit the results
Nope
bananalive
02-28-2009, 03:43 PM
WOW...I sure hope so. I thought I would go ahead and just create 60 something forms but they have custom output so I just realized that I can't just cut and past the custom output because the question numbers are different for each one, even though they are the same questions. :(
Create 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 .= '>'.htmlspecialchars($row[title]).'</option>';
}
$answer .= '</select>';
Replace 10 with appropriate forumid
Edit Form Hook: Before Submit $form['threadid'] = $q[1];
Replace 1 with appropriate question hash
Andyrew
02-28-2009, 04:26 PM
Is it possible to make a form that will add the output into an existing bbcode table in a thread, :)
even if the form can be only used by me, it would make it a lot easier than keep editing a bbcode table.
DontWannaName
02-28-2009, 10:13 PM
Edit plugin: Easy Forms Part 1
Find:
/*$newpost['prefixid'] =& '';*/
Replace:
$newpost['prefixid'] =& 1'';
Replace 1 with the appropriate prefixid
I get this error:
Parse error: syntax error, unexpected T_LNUMBER, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/topnotch/public_html/forums/misc.php(100) : eval()'d code on line 438
Michigan Morels
03-01-2009, 05:21 AM
First of all... Thank you bananalive, for your quick help and responses to everyone in thread. I also see you have actually updated your help file yesterday too!
Hats off to you my friend, for being so diligent and helpful.
Of course you knew there was gonna be a question or two along with this. HA!
1. I changed the code to make a single line field into a number only field From this /(d+)/ to this: /(\d+)/ and that did get rid of the error even when a number was correctly entered.
But... now, when a non-compulsory number only question, is left empty, it is showing the same error and not letting the form being submited.
2. I've noticed that when I use a dropdown box field, and it is Not Compulsory, that when posted, it will print the 1st option in the post. Even though not selected by user. (I haven't tried the radios or check boxes yet, but I suspect they may do the same.)
How can I make a blank/empty space at top of dropdown list, so that this doesn't happen?
3. What exactly is the Section option for and what does it do?
(I've read the help file, but still haven't a clue.)
bananalive
03-01-2009, 11:21 AM
I get this error:
Parse error: syntax error, unexpected T_LNUMBER, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/topnotch/public_html/forums/misc.php(100) : eval()'d code on line 438
Sorry, my fault the 1 should be inside the ''
Edit plugin: Easy Forms Part 1
Find:
/*$newpost['prefixid'] =& '';*/
Replace:
$newpost['prefixid'] =& '1';
Replace 1 with the appropriate prefixid
dknelson
03-01-2009, 12:00 PM
OK...I've pretty much got this working the way I like it to. I still wish there was a way to use one form instead of the 60 something that I had to create to post basically the same output but to different threads. It's done though and I can change it later if a solution is found.
I do have a question about URL links though. I have one question where a user can enter a URL. It posts fine the the URL is posted just as text and not as an actual link. Can I change something so that it posts as an actual link?
bananalive
03-01-2009, 12:13 PM
First of all... Thank you bananalive, for your quick help and responses to everyone in thread. I also see you have actually updated your help file yesterday too!
Hats off to you my friend, for being so diligent and helpful.
Of course you knew there was gonna be a question or two along with this. HA!
1. I changed the code to make a single line field into a number only field From this /(d+)/ to this: /(\d+)/ and that did get rid of the error even when a number was correctly entered.
But... now, when a non-compulsory number only question, is left empty, it is showing the same error and not letting the form being submited.
2. I've noticed that when I use a dropdown box field, and it is Not Compulsory, that when posted, it will print the 1st option in the post. Even though not selected by user. (I haven't tried the radios or check boxes yet, but I suspect they may do the same.)
How can I make a blank/empty space at top of dropdown list, so that this doesn't happen?
3. What exactly is the Section option for and what does it do?
(I've read the help file, but still haven't a clue.)
Fixed issues in attached file
The Section is not a question but more like a heading.
bananalive
03-01-2009, 12:16 PM
OK...I've pretty much got this working the way I like it to. I still wish there was a way to use one form instead of the 60 something that I had to create to post basically the same output but to different threads. It's done though and I can change it later if a solution is found.
I do have a question about URL links though. I have one question where a user can enter a URL. It posts fine the the URL is posted just as text and not as an actual link. Can I change something so that it posts as an actual link?
I told you how to do it in this post (https://vborg.vbsupport.ru/showpost.php?p=1756964&postcount=528)
You could use conditional statement in custom output:
<if condition"$q[8]">$q[8]</if>
dknelson
03-01-2009, 12:29 PM
OK...sorry I didn't see it. I did search the thread for an answer before posting the question but missed it somehow. My apologies.
dknelson
03-01-2009, 12:43 PM
OK...here is the issue. Maybe I'm trying to use this in a way that it was really not intended for and just need to find another solution.
My members wanted a place to post their favorite restaurants. I have members all across the USA and Canada plus some other countries.
I created a new forum area called Restaurant Reviews. Within that forum, I created threads for all the states, provinces and "other countries".
I created 60 something forms so that they click a form for their state/province and the review goes to the appropriate thread.
To make the URL clickable, I would have to create custom outputs for all of those 60 something forms. Any change I make I would have to do this also. That's why it would be great if one form could be used and then the drop down question that lists all the states and provinces would direct it to the proper thread.
If that can't be done though, is there another way to make URLs clickable without having to create custom outputs for all the forms?
Michigan Morels
03-01-2009, 06:49 PM
Fixed issues in attached file
The Section is not a question but more like a heading.
Thank you. That updated file worked.
Here's another question for you.
I'm sure there's an easy way to do this, but I don't understand php. I'm strictly a copy and paste guy.
Questions that depend on another question.
Question 4 [your item for sale] is not compulsory - but...
Question 5 [how many of item one?]
relates to question 4 and must be filled in, if 4 is used
Question 6 {your price for item?]
relates to question 4 and must be filled in, if 4 is used
________________
if question 4 if filled in then both questions 5 and 6 must be filled in as well. If question 4 is left blank, then 5 and 6 must be left blank as well.
I hope I've explained it well enough.
Thank you for your help. So far I really like this Mod and can see a lot of uses for it.
Chet T16
03-01-2009, 07:52 PM
I'm having issues with all posts (from non admin/mods) from the forms being put in the moderation queue.
I searched this thread and checked
$newpost['visible'] = '1';
The people posting always had permission to post in these forums but are now being redirected to the forms as directed in this post (https://vborg.vbsupport.ru/showpost.php?p=1750850&postcount=461)
Any ideas?
DontWannaName
03-01-2009, 08:07 PM
Sorry, my fault the 1 should be inside the ''
Edit plugin: Easy Forms Part 1
Find:
/*$newpost['prefixid'] =& '';*/
Replace:
$newpost['prefixid'] =& '1';
Replace 1 with the appropriate prefixid
I did exactly that and I get
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/topnotch/public_html/forums/misc.php(100) : eval()'d code on line 438
It takes me to a page with all of my smilies.
frogster
03-02-2009, 12:14 AM
I'm having issues with all posts (from non admin/mods) from the forms being put in the moderation queue.
I searched this thread and checked
$newpost['visible'] = '1';
The people posting always had permission to post in these forums but are now being redirected to the forms as directed in this post (https://vborg.vbsupport.ru/showpost.php?p=1750850&postcount=461)
Any ideas?
I am still having the same issue as well and I already changed it to 1. I am also still having an error when I click preview as well. Anyone have any ideas on how to fix these 2 issues?
Thanks,
Maria
ssslippy
03-02-2009, 12:11 PM
Moderation is an issue for me also.
bananalive
03-02-2009, 02:35 PM
I did exactly that and I get
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/topnotch/public_html/forums/misc.php(100) : eval()'d code on line 438
It takes me to a page with all of my smilies.
Are you replacing 1 with the appropriate prefixid?
bananalive
03-02-2009, 02:40 PM
Thank you. That updated file worked.
Here's another question for you.
I'm sure there's an easy way to do this, but I don't understand php. I'm strictly a copy and paste guy.
Questions that depend on another question.
Question 4 [your item for sale] is not compulsory - but...
Question 5 [how many of item one?]
relates to question 4 and must be filled in, if 4 is used
Question 6 {your price for item?]
relates to question 4 and must be filled in, if 4 is used
________________
if question 4 if filled in then both questions 5 and 6 must be filled in as well. If question 4 is left blank, then 5 and 6 must be left blank as well.
I hope I've explained it well enough.
Thank you for your help. So far I really like this Mod and can see a lot of uses for it.php for hook before form submit
if ($q[4] && (empty($q[5]) || empty($q[6])))
{
$complete = false;
if (empty($q[5])) $iqs[] = 5;
if (empty($q[6])) $iqs[] = 6;
}
bananalive
03-02-2009, 02:58 PM
RE: Moderation issues
Have you checked their permissions to follow forum moderation rules?
frogster
03-02-2009, 03:06 PM
Have you checked their permissions to follow forum moderation rules?
Yes I've tried it with and without and neither work.
Michigan Morels
03-02-2009, 05:50 PM
php for hook before form submit
if ($q[4] && (empty($q[5]) || empty($q[6])))
{
$complete = false;
if (empty($q[5])) $iqs[] = 5;
if (empty($q[6])) $iqs[] = 6;
}
Thank you again bananalive, it worked exactly as I asked. You Da Man!
However, I didn't think it through all the way.
What I really needed was if 'any' of the three question were used, then the other two would have to be filled in too.
So I just repeated the code and changed the q#'s around like this
if ($q[4] && (empty($q[5]) || empty($q[6])))
{
$complete = false;
if (empty($q[5])) $iqs[] = 5;
if (empty($q[6])) $iqs[] = 6;
}
if ($q[5] && (empty($q[4]) || empty($q[6])))
{
$complete = false;
if (empty($q[4])) $iqs[] = 4;
if (empty($q[6])) $iqs[] = 6;
}
if ($q[6] && (empty($q[4]) || empty($q[5])))
{
$complete = false;
if (empty($q[4])) $iqs[] = 4;
if (empty($q[5])) $iqs[] = 5;
} and it works ok.
But I'm wondering if this is the proper way to do it for each set of questions, or if it should be written a different way.
Thanks again for your help. *nominated for Mod of Month*
hobbybox
03-02-2009, 06:15 PM
Everything works great except that if I change to a custom layout and questions I have that have a drop down box or check box will no longer display the correct answer.
Example - Is this a trade or sale (dropdown is Trade,Sale)
In the custom output I Put 'This is a: {q_2}
With the the answer will be 'This is a : Array'
It replaces the correct answer with 'Array'
If I dont change the custom output it shows the correct answer...is there something else I need to do?
Also with a custom layout none of the BBCode applies - everything is normal text
UPDATE - with a drop down box no information is put into the output - checkbox shows ARRAY
bananalive
03-02-2009, 06:46 PM
Everything works great except that if I change to a custom layout and questions I have that have a drop down box or check box will no longer display the correct answer.
Example - Is this a trade or sale (dropdown is Trade,Sale)
In the custom output I Put 'This is a: {q_2}
With the the answer will be 'This is a : Array'
It replaces the correct answer with 'Array'
If I dont change the custom output it shows the correct answer...is there something else I need to do?
Also with a custom layout none of the BBCode applies - everything is normal text
UPDATE - with a drop down box no information is put into the output - checkbox shows ARRAY
Use
This is a: $qo[2]
bananalive
03-02-2009, 06:49 PM
Thank you again bananalive, it worked exactly as I asked. You Da Man!
However, I didn't think it through all the way.
What I really needed was if 'any' of the three question were used, then the other two would have to be filled in too.
So I just repeated the code and changed the q#'s around like this
and it works ok.
But I'm wondering if this is the proper way to do it for each set of questions, or if it should be written a different way.
Thanks again for your help. *nominated for Mod of Month*
if ($q[4] || $q[5] || $q[6])
{
if (empty($q[5]))
{
$iqs[] = 5;
$complete = false;
}
if (empty($q[6]))
{
$iqs[] = 6;
$complete = false;
}
if (empty($q[4]))
{
$iqs[] = 4;
$complete = false;
}
}
ssslippy
03-02-2009, 06:57 PM
The moderation issue only happens to users and not to admins. I login as a user account and it goes into moderation que.
Also note preview button does not work with attachment.
hobbybox
03-02-2009, 06:57 PM
Use
This is a: $qo[2]
This results in the following:
This is a: Array{2}
hobbybox
03-02-2009, 07:08 PM
Another question...
One of my questions requires inputting another members name...
Is there anyway to make it so the form would check to make sure that the name being type in matches a members username?
bananalive
03-02-2009, 07:14 PM
Another question...
One of my questions requires inputting another members name...
Is there anyway to make it so the form would check to make sure that the name being type in matches a members username?
Use hook before submit. run a simple query and if it returns empty set $complete = false;
bananalive
03-02-2009, 07:17 PM
This results in the following:
This is a: Array{2}
Just tested this it works for me. Are you using the question hash and not the question number?
frogster
03-02-2009, 08:17 PM
How many people is this happening to?
I have VB 3.8.1 installed and the following mods:
FB Connect
VB Classifieds
Open Inviter
VBblog
I am willing to pay someone to fix this for me.
1. All new threads submitted through easy forms go into moderation when logged in as a user (not when logged in as admin). I'm pretty sure I have everything set up right but I may need a set of second eyes.
2. Preview button. I get an error.
Please help.
Andyrew
03-02-2009, 09:26 PM
I have had the odd error when previewing a form, but it was because i had put some incorrect code in when setting up the form. plus i have 33 other mods installed and it works fine. :D
hobbybox
03-02-2009, 10:43 PM
That was the problem - thank you...
As for the form checking the members name im not great with hooks and queries. Can you elaborate more on how to check for a real member username before the form is submitted.
xcesivvs
03-03-2009, 12:19 AM
Great modifications.
I have a slight question
I have my form being used in 1 section of my forum where i want to set forced Prefix's
Is there a way to have it auto default the prefix to the first prefix on the list or something.
I dont want to have the form user to choose the prefix, I want it that i decide the prefix level
Thanks
Warren
Michigan Morels
03-03-2009, 05:48 AM
Thank you Dom. Once again you made it easier! ( this post (https://vborg.vbsupport.ru/showpost.php?p=1758728&postcount=550))
I sure do appreciate all your effort and time spent, explaining to us non-coders how to do things.
:up: Your support of this mod is excellent!
DontWannaName
03-03-2009, 06:14 AM
Are you replacing 1 with the appropriate prefixid?
Yes I even set it to 1 to try. Its a prefix id inside a category, its the first area to edit when you add one and its called prefix id.
Michigan Morels
03-03-2009, 06:54 AM
A weird request now.
A few years ago I had a buy/sell/advertise forum on the honor system. I just asked member to donate a certain small amt to the site fund for each item sold. It was abused greatly. They sold and I recieved almost nothing.
So.... is there a way with easy forms
to NOT submit post as "the member posting it", but rather as an "un-registered member", or "a chosen member ID#", mine or someone else.
or maybe even just collect the posters ID# and post it in the post, without the name and without the posters info in the postbit.
To reply they would be forced to use easy form rather than normal reply button. (I think I seen that somewhere in this mod).
That way, PM's and emails would not quite so easily over ride my knowledge of a sale.
Yes, I know they can still post in other forums or pm's, which item is theirs, but I can discourage that somewhat in the posts at least. At any rate I may get a little better portion than I was before.
Poor bananalive.... so many request, so little time. :)
zushiba
03-03-2009, 03:35 PM
This is odd. I've got a form that does not have any Human verification question on it however I cannot submit the form I get
Form failed to submit. The following error(s) occured:
The string you entered for the image verification did not match what was displayed.
I exported the form, deleted it and reuploaded it but it still throws this error. Whats going on?
EDIT: I've attached the form XML.
bananalive
03-03-2009, 03:46 PM
That was the problem - thank you...
As for the form checking the members name im not great with hooks and queries. Can you elaborate more on how to check for a real member username before the form is submitted.
Form hook before submit
if ($q[8])
{
$user = $db->query_first_slave("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . $db->escape_string($q[8]) . "'");
if (!$user)
{
$complete = false;
$inputerror[8] = "Invalid User";
$iqs[] = '8';
$incompleteqs[] = $qn[8];
}
}
bananalive
03-03-2009, 03:47 PM
Great modifications.
I have a slight question
I have my form being used in 1 section of my forum where i want to set forced Prefix's
Is there a way to have it auto default the prefix to the first prefix on the list or something.
I dont want to have the form user to choose the prefix, I want it that i decide the prefix level
Thanks
Warren
Edit plugin: Easy Forms Part 1
Find:
/*$newpost['prefixid'] =& '';*/
Replace:
$newpost['prefixid'] =& '1';
Replace 1 with the appropriate prefixid
bananalive
03-03-2009, 03:52 PM
A weird request now.
A few years ago I had a buy/sell/advertise forum on the honor system. I just asked member to donate a certain small amt to the site fund for each item sold. It was abused greatly. They sold and I recieved almost nothing.
So.... is there a way with easy forms
to NOT submit post as "the member posting it", but rather as an "un-registered member", or "a chosen member ID#", mine or someone else.
or maybe even just collect the posters ID# and post it in the post, without the name and without the posters info in the postbit.
To reply they would be forced to use easy form rather than normal reply button. (I think I seen that somewhere in this mod).
That way, PM's and emails would not quite so easily over ride my knowledge of a sale.
Yes, I know they can still post in other forums or pm's, which item is theirs, but I can discourage that somewhat in the posts at least. At any rate I may get a little better portion than I was before.
Poor bananalive.... so many request, so little time. :)
This isn't an ideal way to do it, but it works.
hook: before submit
$vbulletin->userinfo['userid'] = 0;
$vbulletin->userinfo['username'] = 'Unregistered';
bananalive
03-03-2009, 03:57 PM
This is odd. I've got a form that does not have any Human verification question on it however I cannot submit the form I get
I exported the form, deleted it and reuploaded it but it still throws this error. Whats going on?
EDIT: I've attached the form XML.
Are you posting as guest? (Checked form looks alright to me.)
zushiba
03-03-2009, 04:07 PM
Are you posting as guest? (Checked form looks alright to me.)
Nope, Administrator. Haven't tested it with any other permission levels and I don't have any guest only questions.\
EDIT: It seems to be doing this for every form I create : /
None of them work.
I've cleared my browser cache, deleted all cookies and saved variables and I'm still having this problem.
frogster
03-03-2009, 04:18 PM
How many people is this happening to?
I have VB 3.8.1 installed and the following mods:
FB Connect
VB Classifieds
Open Inviter
VBblog
I am willing to pay someone to fix this for me.
1. All new threads submitted through easy forms go into moderation when logged in as a user (not when logged in as admin). I'm pretty sure I have everything set up right but I may need a set of second eyes.
2. Preview button. I get an error.
Please help.
As apparently I am the only dumb one who has this issue...bananalive can I donate to your mod or something so maybe you can take a look at my setup as to why the form goes into moderation and why my preview button creates an error. I REALLY want to use this mod. I've used the preview button on other areas and I did not get an error.
Thanks,
Maria
bananalive
03-03-2009, 05:14 PM
As apparently I am the only dumb one who has this issue...bananalive can I donate to your mod or something so maybe you can take a look at my setup as to why the form goes into moderation and why my preview button creates an error. I REALLY want to use this mod. I've used the preview button on other areas and I did not get an error.
Thanks,
Maria
do you still get the preview error if you disable attachments?
Michigan Morels
03-03-2009, 05:38 PM
Thank you Dom. I think I've asked enough questions of you that I can now go play with the forms for awhile without botherin you.
Thanks again.
hobbybox
03-03-2009, 06:06 PM
works like a charm - thank you.
frogster
03-03-2009, 06:26 PM
do you still get the preview error if you disable attachments?
As long as there is no attachment on the form I can preview it. So whether the attachment is disabled or not, I can only preview the form if there is no attachment. However, I can upload an attachment to this forum for example without a problem. The error I get is:
Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 1704
I even uploaded and attached an item to this post to test.
bananalive
03-03-2009, 06:35 PM
As long as there is no attachment on the form I can preview it. So whether the attachment is disabled or not, I can only preview the form if there is no attachment. However, I can upload an attachment to this forum for example without a problem. The error I get is:
Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 1704
I even uploaded and attached an item to this post to test.
Does it post attachments if you click submit?
I think I might have found problem.
bananalive
03-03-2009, 06:48 PM
I think I might have found problem.
Try attached file.
frogster
03-03-2009, 09:31 PM
Try attached file.
Worked like a charm. It fixed my preview and moderation problem. I want to send you a sincere thank you for a great mod and for fixing my issue. I'm new to this and I don't see a donate button so I'm not sure if you take donations.
Thanks again.
nascartr
03-03-2009, 09:37 PM
You can support this great developer by clicking on "Support Developer" up top. I
Mod Information
Add A Comment (https://vborg.vbsupport.ru/newreply.php?do=newreply&noquote=1&p=1705441)
Edit Settings (https://vborg.vbsupport.ru/vborg_miscactions.php?do=editsettings&threadid=201097)
Mark as Uninstalled (https://vborg.vbsupport.ru/vborg_miscactions.php?do=uninstallhack&threadid=201097)
Tag Modification (https://vborg.vbsupport.ru/vborg_miscactions.php?do=tagmod&threadid=201097)
Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=201097&type=1)
Jump To Comments (https://vborg.vbsupport.ru/showthread.php?t=201097&page=39#posts)
The Developer
https://vborg.vbsupport.ru/external/2009/03/2.gif About Developer (https://vborg.vbsupport.ru/member.php?u=223075)
https://vborg.vbsupport.ru/external/2011/12/12.gif Support Developer (https://vborg.vbsupport.ru/showthread.php?t=201097&page=39&nojs=1#gtdonate)
https://vborg.vbsupport.ru/external/2009/03/5.gif Visit Web Site (http://www.bananalive.co.cc/)
frogster
03-03-2009, 09:44 PM
You can support this great developer by clicking on "Support Developer" up top. I
Duh...done. Thanks again.
zushiba
03-03-2009, 09:54 PM
Okay so that error I'm getting
Form failed to submit. The following error(s) occured:
The string you entered for the image verification did not match what was displayed.
is only for me
ADMINISTRATORS
Anyone with "Administrators" privileges and under have no problem submitting the form.
xcesivvs
03-03-2009, 11:24 PM
Edit plugin: Easy Forms Part 1
Find:
/*$newpost['prefixid'] =& '';*/
Replace:
$newpost['prefixid'] =& '1';
Replace 1 with the appropriate prefixid
I Was receiving errors and couldnt even view the forms using these
$newpost['prefixid'] =& 'Ordered';
$newpost['prefixid'] =& Ordered;
Then I looked to see the others with $ signs.
I tried this and the error the error before trying to view the forms stopped
$newpost['prefixid'] =& $Ordered;
But i still receive the error
"Form failed to submit. The following error(s) occured:
You must select a thread prefix."
DontWannaName
03-04-2009, 04:03 AM
Ya I get the same kind of stuff when doing that. :(
dknelson
03-04-2009, 11:05 AM
Create 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 .= '>'.htmlspecialchars($row[title]).'</option>';
}
$answer .= '</select>';
Replace 10 with appropriate forumid
Edit Form Hook: Before Submit $form['threadid'] = $q[1];
Replace 1 with appropriate question hash
Thanks MUCH. Will try this tonight.
frogster
03-04-2009, 02:33 PM
Hi Bananalive,
The xml file I uploaded worked like a charm to fix the preview and moderation problem I was having with the forms. However, I also have FB Connect installed and when a new thread is submitted by a FB user it gets posted on their FB wall. I have the form set up to submit to a new thread on a forum and before installing your new xml file, the forms submitted were creating these new threads and the submission of the form/creation of the new thread was creating a note on the user's facebook wall. Once I installed the new xml file, it no longer creates a new note on the facebook wall when a user submits the form (hence creating a new thread). I check all my options and they are all the same. Could the XML form I updated have overwritten something?
Thanks,
Maria
bananalive
03-04-2009, 04:17 PM
Hi Bananalive,
The xml file I uploaded worked like a charm to fix the preview and moderation problem I was having with the forms. However, I also have FB Connect installed and when a new thread is submitted by a FB user it gets posted on their FB wall. I have the form set up to submit to a new thread on a forum and before installing your new xml file, the forms submitted were creating these new threads and the submission of the form/creation of the new thread was creating a note on the user's facebook wall. Once I installed the new xml file, it no longer creates a new note on the facebook wall when a user submits the form (hence creating a new thread). I check all my options and they are all the same. Could the XML form I updated have overwritten something?
Thanks,
Maria
I assume it works by using the newthread_post_complete hook location.
Find in plugin: Easy Forms Part 1
/*($hook = vBulletinHook::fetch_hook('newthread_post_complete ')) ? eval($hook) : false;*/
Replace with
($hook = vBulletinHook::fetch_hook('newthread_post_complete ')) ? eval($hook) : false;
dwheeler
03-04-2009, 06:18 PM
Hi
On my forms I am using several dropdown select questions. When submitted, the select answers are changed to "1" "2" "3" etc to correspond with the answer in the dropdown. I would like the answer dropdown answer to be used instead of being replaced. Am I missing something, or do I need to use a <if> statement in the output?
Running vB 3.8.1 with Easy Forms 3.1
Thanks
Dan
bananalive
03-04-2009, 06:51 PM
Hi
On my forms I am using several dropdown select questions. When submitted, the select answers are changed to "1" "2" "3" etc to correspond with the answer in the dropdown. I would like the answer dropdown answer to be used instead of being replaced. Am I missing something, or do I need to use a <if> statement in the output?
Running vB 3.8.1 with Easy Forms 3.1
Thanks
Dan
I'm not entirely sure what you are referring to.
If it's to do with the custom output and dropdown select answers, use $qo[1] instead of $q[1]
frogster
03-04-2009, 09:12 PM
I assume it works by using the newthread_post_complete hook location.
Find in plugin: Easy Forms Part 1
/*($hook = vBulletinHook::fetch_hook('newthread_post_complete ')) ? eval($hook) : false;*/
Replace with
($hook = vBulletinHook::fetch_hook('newthread_post_complete ')) ? eval($hook) : false;
Okay so that worked for the initial post .... don't kill me... but now anytime the same user posts anything else instead of adding a new note to the facebook wall, it replaces the old post with the new post. I would normally ask the FB developer/thread for help but the thing is that it just started happening when I installed the new xml file. Sorry for the trouble and I really do appreciate your help.
dknelson
03-04-2009, 09:47 PM
Well, I thank you very much for the guidance but I can't get this:
https://vborg.vbsupport.ru/showthread.php?t=201097&page=39
to work. When I press submit, I just get a blank message where the "Click here to go to thread" would normally appear.
I'm sure I'm doing something wrong. I'm actually not sure to select, if anything, where you would normally select to submit to thread, email, forumID, etc. I tried selecting nothing and also selecting "Submit to Thread" but leaving the threadID blank. Neither worked.
I would like to say that this is a FANTASTIC mod and is as well supported as any mod I've ever seen here.
I'm sending a donation now because this is worth it regardless of whether or not this issue is figured out.
xcesivvs
03-06-2009, 02:58 AM
I Was receiving errors and couldnt even view the forms using these
$newpost['prefixid'] =& 'Ordered';
$newpost['prefixid'] =& Ordered;
Then I looked to see the others with $ signs.
I tried this and the error the error before trying to view the forms stopped
$newpost['prefixid'] =& $Ordered;
But i still receive the error
"Form failed to submit. The following error(s) occured:
You must select a thread prefix."
sorry to be a pain mate... i asked this a bit back and still stuck... thanks
Darkne55
03-06-2009, 09:37 PM
Great hack bananalive! Hands down the most useful I've found so far. Installed and working flawlessly.
I do however have a question.
Is it possible upon form submittal to have the submitter put into a new user user group?
What I'm attempting to do is this. I'm using your product for a membership application. The prospect fills out the form and when completed the form creates a new thread with the prospects name as the title of the thread. The thread is created in a members only area. If there was a way to put the submitter into a new user group upon form completion, I could create a forum specifically for that user group where they could go and monitor any responses to their applications. I have a tendancy to explain things to death, if I've done that I apologize.
Thanks again
http://www.theknifersedge.com/WaterPic/d4rk.jpg
admin0
03-07-2009, 02:23 AM
Hi,
If there is say form1 and user have already submitted to it, is it possible to pull off the old values or if the user submits again, just update the new values rather than insert new lines in the database ?
bananalive
03-07-2009, 10:02 AM
Well, I thank you very much for the guidance but I can't get this:
https://vborg.vbsupport.ru/showthread.php?t=201097&page=39
to work. When I press submit, I just get a blank message where the "Click here to go to thread" would normally appear.
I'm sure I'm doing something wrong. I'm actually not sure to select, if anything, where you would normally select to submit to thread, email, forumID, etc. I tried selecting nothing and also selecting "Submit to Thread" but leaving the threadID blank. Neither worked.
I would like to say that this is a FANTASTIC mod and is as well supported as any mod I've ever seen here.
I'm sending a donation now because this is worth it regardless of whether or not this issue is figured out.
Make sure you are using the right question hash: see attachment
I've checked it works: http://www.bananalive.co.cc/misc.php?do=form&fid=13
bananalive
03-07-2009, 10:03 AM
Hi,
If there is say form1 and user have already submitted to it, is it possible to pull off the old values or if the user submits again, just update the new values rather than insert new lines in the database ?
I don't think so.
bananalive
03-07-2009, 10:04 AM
sorry to be a pain mate... i asked this a bit back and still stuck... thanks
ok, i'll test this, and try to make it easier.
bananalive
03-07-2009, 10:04 AM
Okay so that worked for the initial post .... don't kill me... but now anytime the same user posts anything else instead of adding a new note to the facebook wall, it replaces the old post with the new post. I would normally ask the FB developer/thread for help but the thing is that it just started happening when I installed the new xml file. Sorry for the trouble and I really do appreciate your help.
Is this for all posts, or just ones created with Easy Forms?
dknelson
03-07-2009, 10:22 AM
OK....I will try the restaurant form again. I thought I was using the correct question hash. I tried yours and it worked fine so what are you selecting where it asks how the forum is to be submitted. Submit to thread? If so, since the script is choosing the thread ID, what are you just leaving it blank?
bananalive
03-07-2009, 11:29 AM
OK....I will try the restaurant form again. I thought I was using the correct question hash. I tried yours and it worked fine so what are you selecting where it asks how the forum is to be submitted. Submit to thread? If so, since the script is choosing the thread ID, what are you just leaving it blank?
Here's a screenshot which shows all the settings:
http://img9.imageshack.us/img9/2391/editform.png
dknelson
03-07-2009, 12:01 PM
OK.....thanks. I understand my problem now. Here is the php for my custom "location" question. As you can see, there are no question hashes. So I need to add question hashes to all of these answers. Do I just assign them manually?
$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);
bananalive
03-07-2009, 12:21 PM
OK.....thanks. I understand my problem now. Here is the php for my custom "location" question. As you can see, there are no question hashes. So I need to add question hashes to all of these answers. Do I just assign them manually?
No question hashs are to identify a question's output. Your custom question should be this:
For usa restaurant reviews form
$answer = '<select name="'.$formbit[id].'">';
$answer .= '<option></option>';
$thisanswer = $q[$formbit[id]];
$threads = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread
WHERE forumid = '111'
ORDER BY title ASC");
while($row = $db->fetch_array($threads)) {
$answer .= '<option value="'.$row[threadid].'"';
if ($row[threadid] == $thisanswer) {
$answer .= ' selected="selected"';
}
$answer .= '>'.htmlspecialchars($row[title]).'</option>';
}
$answer .= '</select>';
dknelson
03-07-2009, 01:12 PM
WOW...I am so close now. Or I should say that YOU are so close to explaining it to a complete dummy. I replaced my drop down state selection question for the USA forum with that code. It works. The only thing now is that here is what I get posted.
Name of Restaurant: test
Street Address: test
City: test
Location 32653
Website (Optional): -
Quality of Food: Bad
Quality of Service: Bad
Biker Friendly? Yes
Kind of Food? (Mexican, Chinese, etc.) tetst
Alcohol Served? Yes
Additional Comments: -
As you can see, it is posting the threadID for location instead of the actual state. I am not using custom output. Is the only way to correct this to use custom output with $qo
bananalive
03-07-2009, 01:50 PM
As you can see, it is posting the threadID for location instead of the actual state. I am not using custom output. Is the only way to correct this to use custom output with $qo
Not that i can think of.
$qo won't work as it's custom question.
You could use custom output and some extra code in form hook before submit to do it. 9you would use $state in custom output)
Form hook: before submit
$threadinfo = fetch_threadinfo($q[8]);
$state = $threadinfo[title];
Replacing 8 with appropriate question hash
Edit: this won't work the hook is after the form output is done.
nascartr
03-07-2009, 02:19 PM
I don't suppose there's anyway to embed this into a post is there? I always post a topic for my fantasy game each week with the link to vote but it's be nice to have the form inside of the post so a user wouldn't have to click twice.
I have a link in the navbar to the form so it's no big deal but thought it'd be neat to be able to embed in somehow into a post.
I'm sure I can do it with iframes but the my header would take up a bit of space in the frame.
bananalive
03-07-2009, 02:29 PM
I don't suppose there's anyway to embed this into a post is there? I always post a topic for my fantasy game each week with the link to vote but it's be nice to have the form inside of the post so a user wouldn't have to click twice.
I have a link in the navbar to the form so it's no big deal but thought it'd be neat to be able to embed in somehow into a post.
I'm sure I can do it with iframes but the my header would take up a bit of space in the frame.
no.
dknelson
03-07-2009, 02:36 PM
Not that i can think of.
$qo won't work as it's custom question.
You could use custom output and some extra code in form hook before submit to do it. 9you would use $state in custom output)
Form hook: before submit
$threadinfo = fetch_threadinfo($q[8]);
$state = $threadinfo[title];
Replacing 8 with appropriate question hash
Edit: this won't work the hook is after the form output is done.
OK...thanks. No big deal, I'll figure out another way to work around it or just create a custom output and not even output that answer. It will be in the states thread anyway so that should be obvious. Thanks for all your help on this. I think this is about the best supported mod I have ever seen here. Nominating for MOTM.
dknelson
03-07-2009, 05:52 PM
OK...I started trying to get the URLs to post as live links. Here is my custom output:
$qn[599] $q[599]
$qn[600] $q[600]
$qn[601] $q[601]
$qn[603] <if condition"$q[603]">$q[603]</if>
$qn[604] $qo[604]
$qn[605] $qo[605]
$qn[788] $qo[788]
$qn[607] $q[607]
$qn[789] $qo[789]
$qn[609] $q[609]
The posted result though shows the entire conditional instead of just the URL.
bananalive
03-07-2009, 08:35 PM
OK...I started trying to get the URLs to post as live links. Here is my custom output:
The posted result though shows the entire conditional instead of just the URL.
Can you post the custom output in [php] https://vborg.vbsupport.ru/external/2009/03/39.gif tags so that I can see the unparsed code
hobbybox
03-07-2009, 09:34 PM
REgular users form posts are going into moderation Que - I have checked this thread and I have made sure that 'follow Moderation: YES' and the forum the posts are going into are allowed for that so im not sure what the problem can be....any help
cookiepants
03-08-2009, 02:20 AM
Thanks so much for this mod! I've looked through as much as I can but can't find an answer to my question.
I installed this mod, then made sure admins could edit the forms. I point here:
/misc.php?do=forms
I can see everything except where it says "questions" there is nothing -- no box for code, nothing. Just the word "questions" and a save button.
Any help is appreciated.
Megan
cookiepants
03-08-2009, 02:35 AM
Never mind. I just saw the drop down field. Easier than I expected!!! THANK you so much!!!
Nutmeg
cookiepants
03-08-2009, 05:19 AM
Here's a real question. I'd like to remove the "POLL:" text in the title of the forum where the forms are posted. Is that possible?
I'd also like to automatically close the threads posted using the forms, as soon as they submit the form, is that possible?
Thanks so much!
Nutmeg
bananalive
03-08-2009, 06:50 PM
Here's a real question. I'd like to remove the "POLL:" text in the title of the forum where the forms are posted. Is that possible?
I'd also like to automatically close the threads posted using the forms, as soon as they submit the form, is that possible?
Thanks so much!
Nutmeg
'Poll:' is from vbulletin as thread is a poll.
Import attached file and add to form hook: before submit
$closed = true;
bananalive
03-08-2009, 06:51 PM
REgular users form posts are going into moderation Que - I have checked this thread and I have made sure that 'follow Moderation: YES' and the forum the posts are going into are allowed for that so im not sure what the problem can be....any help
Try attached file
cookiepants
03-08-2009, 07:11 PM
'Poll:' is from vbulletin as thread is a poll.
Import attached file and add to form hook: before submit
$closed = true;
Wow thanks!
I think this is my favorite mod ever. Thank you so much!
Vitaly
03-08-2009, 08:07 PM
I'm in process of creating forms and collecting a long list of notices :)
For now, 3 small qwestions:
1. How to define date field value in template? My template looks like this:
---------
Пользователь: {username}
URL: http://forum.dev.rcdesign.ru/member.php?u={userid}
$qn[5]: $q[5]
$qn[6]: $q[6]
$qn[7]: $q[7]
$qn[8]: $q[8]
---------
All other fields are ok, but date returns "Array" instead. Tryed this one "$q[8][day].$q[8][month].$q[8][year]" - doesn't help too. Form is used to send email.
2. How to get user email for registered users? Didn't found variable.
3. Which $ variable to use instead of {username} and {userid}?
bananalive
03-08-2009, 08:30 PM
I'm in process of creating forms and collecting a long list of notices :)
For now, 3 small qwestions:
1. How to define date field value in template? My template looks like this:
---------
Пользователь: {username}
URL: http://forum.dev.rcdesign.ru/member.php?u={userid}
$qn[5]: $q[5]
$qn[6]: $q[6]
$qn[7]: $q[7]
$qn[8]: $q[8]
---------
All other fields are ok, but date returns "Array" instead. Tryed this one "$q[8][day].$q[8][month].$q[8][year]" - doesn't help too. Form is used to send email.
2. How to get user email for registered users? Didn't found variable.
3. Which $ variable to use instead of {username} and {userid}?
1. $qo[8]
2. {email}
3. either {username}, {userid} or $thisuser[username], $thisuser[userid]
Vitaly
03-08-2009, 08:37 PM
Thanks.
What's the difference between $q[x] and $qo[x]? Is there any logic, or "qo" is reserved for date?
ahmedipa
03-08-2009, 08:45 PM
thank you so much
bananalive
03-08-2009, 08:53 PM
Thanks.
What's the difference between $q[x] and $qo[x]? Is there any logic, or "qo" is reserved for date?
$q is how it is submitted, ie. as an array for date or as a number for dropdown select, whilst $qo is output or the text, ie. imploded date array, number converted into text, etc.
Vitaly
03-08-2009, 09:21 PM
Ah... thanks... now i see, that have to use $qo[x] in template for safety.
One more problem with Date field. Got email with value, but it looks like this:
1[crap]13[crap]1976
"& #92 ;" - HTML code. It was instead of \
PS. If that's a bug, but not my mistake, please wait a couple of days, until i make complete buglist
skYfIrE
03-08-2009, 09:34 PM
Thanks for the mod :)
Darkne55
03-09-2009, 12:31 AM
Hello bananalive,
I've already asked, so if you answered and I missed it I apologize. I was wondering, would it be possible when someone fills out a form and submits it to have the program place that person into a different user group?
Love your mod,
Darkne55
Vitaly
03-09-2009, 08:08 AM
I'd like to use main forms page as general place of feedback.
Forms are grouped by categories. It there now a proper way to define categories order? I've found ordering only for forms, but not categories.
J3rico
03-09-2009, 01:33 PM
Hi, thanks for this great mod !!
I'm sorry for my noob level, but, where i can find the Form Hook: Form Start: for limit access to users who have at least 10 posts?
thanks in advance
bananalive
03-09-2009, 01:45 PM
Hi, thanks for this great mod !!
I'm sorry for my noob level, but, where i can find the Form Hook: Form Start: for limit access to users who have at least 10 posts?
thanks in advance
'Edit Form'
bananalive
03-09-2009, 01:46 PM
I'd like to use main forms page as general place of feedback.
Forms are grouped by categories. It there now a proper way to define categories order? I've found ordering only for forms, but not categories.
Nope.
J3rico
03-09-2009, 02:02 PM
'Edit Form'
many thank's, i had not seen :up: .
bananalive
03-09-2009, 02:02 PM
Hello bananalive,
I've already asked, so if you answered and I missed it I apologize. I was wondering, would it be possible when someone fills out a form and submits it to have the program place that person into a different user group?
Love your mod,
Darkne55I'm reluctant to post this code, all I can say is be very very careful.
Form Hook: Before Submit
if ($complete)
{
$userinfo = $vbulletin->userinfo;
$user['usergroupid'] = 4;
if (empty($user['usergroupid']))
{
$user['usergroupid'] = 2; // sanity check
}
$getusergroupid = iif($userinfo['displaygroupid'] != $userinfo['usergroupid'], $userinfo['displaygroupid'], $user['usergroupid']);
$user_usergroup =& $vbulletin->usergroupcache["$user[usergroupid]"];
$display_usergroup =& $vbulletin->usergroupcache["$getusergroupid"];
// init user data manager
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('usergroupid', $user['usergroupid']);
$userdata->set_usertitle(
$user['customtitle'] ? $user['usertitle'] : '',
false,
$display_usergroup,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true : false,
($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true : false
);
require_once(DIR . '/includes/functions_ranks.php');
if ($user['userid'] == $vbulletin->userinfo['userid'])
{
$vbulletin->userinfo['usergroupid'] = $user['usergroupid'];
$vbulletin->userinfo['displaygroupid'] = $user['usergroupid'];
}
$userdata->save();
}
bananalive
03-09-2009, 02:06 PM
Ah... thanks... now i see, that have to use $qo[x] in template for safety.
One more problem with Date field. Got email with value, but it looks like this:
1[crap]13[crap]1976
"& #92 ;" - HTML code. It was instead of \
PS. If that's a bug, but not my mistake, please wait a couple of days, until i make complete buglist
Have you tried just putting '\' in the box. It seems to work for me.
Vitaly
03-09-2009, 03:31 PM
Tryed this template:
----------
Пользователь: $thisuser[username]
URL: http://forum.dev.rcdesign.ru/member.php?u=$thisuser[userid]
email: $thisuser[email]
$qn[5]: $qo[5]
$qn[6]: $qo[6]
$qn[7]: $qo[7]
$qn[8]: $qo[8] (Месяц.День.Год) \\\\\
----------
1. Preview (HTML) is ok
2. In email (text) last \\\\\ are ok, but date separator is in HTML format, not correct. In my email program i see "& # 92;"
PS. By the way, it's better to use date format string from VB options (not from language one). That will solve problem for european format (day first, then months, then year)
dazed12
03-09-2009, 04:17 PM
is anyone else's forms being moderated when posted as a thread to forum? id really like to have it where it does not moderate apps. members are starting to copy and paste info from posted app and make an additional thread so it is not moderated at that time.
any fix to form?
Vitaly
03-09-2009, 04:59 PM
For some form, i need to implement such functionality:
1. Add 1 UINT parameter to form URL, when form is addressed
2. Disable form, if no parameter given
3. Send whis parameter in custom template via email (it will bу used to compose URL, such as "baselink/xxx/"."parameter")
That should be hidden from user interface.
What's the proper way to do that?
Vitaly
03-09-2009, 06:32 PM
Almost finished testing Easy-Forms as "feedback system". Here is list of comments, applyed to such use-case.
1. No option to "disable preview button".
Preview is good for forum posts, but very bad for feedback emails. User should not see, if additional information generated.
Possible solution - one more form option.
2. "Add field" has only basic fields set.
Almost any field have to be edited twice. Once - created. Second - to edit additional parameters.
Not critical. Just unconvenient.
3. Date separator is sent as HTML code in text emails
And date format is hardcoded. It's better to use format string from VB options (not from language preferences).
4. Form description is not "templateable" (no conditions, no variables)
Not convenient, when you wish to automatically generate helper lins, for example, based on user id, and so on.
It would be good to have the same power there, as in form template. With the same variables, just without questions.
(*) Don't know, if the same needed for field descriptions. For now - not, in my case.
5. Additional Notice would be sweet for page with forms list.
(shown as standard VB notice at the top)
Possible solution - one more product setting.
6. When form is hidden from list, it's good to hide "Forms" link from navbar path.
Imagine, that you have multiple forms, used for contacts, forum posts and so on. When user fill "hidden" form for forum post, he will see link to contacts page (forms list) in navbar. That's confusing.
Dont's know, what is better:
- separate option
- hide if form is not listed
- hide if preview button disabled
7. When user fill form, navbar shows text "Viewing form: FormName"
"Viewing form:" - absulutely unnecesary and confusing. Looks like strange debug message.
8. I'd show asterisks (*) for compulsory question with red color.
Can do so with template edit, but think, that would be useful for all as general template.
9. Email has wrong return-path.
If someone write me email via contacts (forms list) page, I expect reply back, but not to forum administrator's email :)
Possible solution:
- add "email" field and use it automatically in return-path, if filled. Also automatic check can be done, that email conforms to standard.
- if no such field used (or empty) - try to take from member profile
- can be done by hooks, but not convenient (and i don't know how now :) )
10. Captcha takes the whole row and have unnecessary border (group separator with name)
Is is possible to
- move captcha to right column, as other fields
- remove border
?
=================================================
More general things:
1. Form IDs and fields IDs are absolute and fixed.
That can cause huge problems, if you wish to export form to another site. If those IDs are already reserver to another form, information can be destroyed.
Possible solution:
- address form by text tag.
- numerate field in form namespace and allow duplicated field IDs, if those used for different forms.
- It would be also good to call form not by id, but by tag (as option). For example: misc.php?do=form&ftag=myformname
2. Mass import/export
It's normal practice to develop forms on debug site and then setup those on production. Function "export all" and "import all" would be convenient. At least for backups.
====================================
That's all for interface. Will review code a bit later.
alduren
03-10-2009, 04:30 PM
I have various post icons in my forum.
It´s possible to select the post icon that you want to show in your new thread before form submitted??
bananalive
03-10-2009, 04:48 PM
I have various post icons in my forum.
It?s possible to select the post icon that you want to show in your new thread before form submitted??
Import attached file
add following to Form Hook: Before Submit
$iconid = 3; where 3 is the post icon id
bananalive
03-10-2009, 05:13 PM
For some form, i need to implement such functionality:
1. Add 1 UINT parameter to form URL, when form is addressed
2. Disable form, if no parameter given
3. Send whis parameter in custom template via email (it will bу used to compose URL, such as "baselink/xxx/"."parameter")
That should be hidden from user interface.
What's the proper way to do that?
Import attached file.
form Hook: Form start
$hiddenfield1 = $vbulletin->input->clean_gpc('g', 'param', TYPE_UINT);
if (empty($hiddenfield1))
{
$errormessage = "Error, this form needs a parameter.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}form Hook: Before Submit
$hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_UINT);
$formoutput = str_replace('{param}', "$hiddenfield1", $formoutput);
Then you can use {param} in custom output.
Vitaly
03-10-2009, 06:36 PM
...Then you can use {param} in custom output.
Thanks for details.
alduren
03-10-2009, 10:22 PM
Import attached file
add following to Form Hook: Before Submit
$iconid = 3; where 3 is the post icon id
Worked like a charm. Thanks again!!!
Ok, I'm finally redoing my old form and I have to say... this really is easy! Nice work!
I've found one bug though (no idea if it's been reported already or not, too much to sort through in this thread.)
Anyway, if you don't end your form question with a ? it will automatically add a : to the end of your sentence, even if you don't want it. ;) Not a big deal, but a little annoying to assume what I want. ;)
Anyway, excellent work!
SnowBot
03-11-2009, 04:21 AM
Hi
Great Mod
Have you got any example .xml form files so that people can see all the features?
lazyseller
03-11-2009, 05:01 AM
It be nice if someone could come up with some a form pack. Im not volunteering!
cookiepants
03-11-2009, 05:18 AM
'Poll:' is from vbulletin as thread is a poll.
Import attached file and add to form hook: before submit
$closed = true;
Will that remove or delete previous posts using this hack?
SnowBot
03-11-2009, 09:16 AM
It be nice if someone could come up with some a form pack. Im not volunteering!
I would even pay a little for it
bananalive
03-11-2009, 02:00 PM
Will that remove or delete previous posts using this hack?
no, only new posts are created.
bananalive
03-11-2009, 02:03 PM
Ok, I'm finally redoing my old form and I have to say... this really is easy! Nice work!
I've found one bug though (no idea if it's been reported already or not, too much to sort through in this thread.)
Anyway, if you don't end your form question with a ? it will automatically add a : to the end of your sentence, even if you don't want it. ;) Not a big deal, but a little annoying to assume what I want. ;)
Anyway, excellent work!
That was intention.
Find
$formbit['question'] = $formbit['question'] . ":";
Replace
/*$formbit['question'] = $formbit['question'] . ":";*/
Gizmo999
03-11-2009, 07:29 PM
is it possible to change the date formatting on question and output to D/M/Y not M/D/Y?
frogster
03-12-2009, 01:32 AM
Is this for all posts, or just ones created with Easy Forms?
Just saw you had replied...It happens for any post BUT it didn't happen before I installed your update for the moderated posts issue...not sure what happened.
Thanks.
Gizmo999
03-12-2009, 12:53 PM
I've got a problem where the recipient of hte email sent is getting blank emails, the PM works fine, database stores the record and if I set the email to me I see it but the person I need to can't. I'm not sure but I think it might be because the form output starts each line with an * and this seems to make the content invisible, is tere anyway to alter the character used?
its really useful to have that character before and after the question as I'm using them as delimiters to allow data import into excel, previous to this update I had to start each question with my delimiter and end each question with my delimiter.
bananalive
03-12-2009, 02:16 PM
is it possible to change the date formatting on question and output to D/M/Y not M/D/Y?
Edit template: form_formbit_date
<tr>
<td class="smallfont" style="vertical-align: top; font-weight: bold;">$formbit[question]
<if condition="$formbit[description]!=''"><br /><i><span style="font-weight: normal;">$formbit[description]</span></i></if><if condition="$iqs && in_array($formbit[id], $iqs)"><br />$vbphrase[empty_field]</if><if condition="$formbit[inputerror]"><br />$formbit[inputerror]</if></td>
<td class="smallfont">
<table border="0" cellpadding="0" cellspacing="3">
<tbody><tr>
<td>
<input class="bginput" style="font-size: 11px;" name="$formbit[id][day]" value="$formbit[day]" size="3" maxlength="2" title="$vbphrase[day]" tabindex="1" type="text">
<select name="$formbit[id][month]" title="$vbphrase[month]" tabindex="1">
<option value="1" <if condition="$formbit[month] == 1">selected="selected"</if>>$vbphrase[january]</option>
<option value="2" <if condition="$formbit[month] == 2">selected="selected"</if>>$vbphrase[february]</option>
<option value="3" <if condition="$formbit[month] == 3">selected="selected"</if>>$vbphrase[march]</option>
<option value="4" <if condition="$formbit[month] == 4">selected="selected"</if>>$vbphrase[april]</option>
<option value="5" <if condition="$formbit[month] == 5">selected="selected"</if>>$vbphrase[may]</option>
<option value="6" <if condition="$formbit[month] == 6">selected="selected"</if>>$vbphrase[june]</option>
<option value="7" <if condition="$formbit[month] == 7">selected="selected"</if>>$vbphrase[july]</option>
<option value="8" <if condition="$formbit[month] == 8">selected="selected"</if>>$vbphrase[august]</option>
<option value="9" <if condition="$formbit[month] == 9">selected="selected"</if>>$vbphrase[september]</option>
<option value="10" <if condition="$formbit[month] == 10">selected="selected"</if>>$vbphrase[october]</option>
<option value="11" <if condition="$formbit[month] == 11">selected="selected"</if>>$vbphrase[november]</option>
<option value="12" <if condition="$formbit[month] == 12">selected="selected"</if>>$vbphrase[december]</option>
</select>
<input class="bginput" style="font-size: 11px;" name="$formbit[id][year]" value="$formbit[year]" size="5" maxlength="4" title="$vbphrase[year]" tabindex="1" type="text">
</td>
</tr>
</tbody></table>
</td>
</tr>
bananalive
03-12-2009, 02:18 PM
Just saw you had replied...It happens for any post BUT it didn't happen before I installed your update for the moderated posts issue...not sure what happened.
Thanks.
Odd, the script only runs on misc.php pages
Try disabling Easy Forms and see if you still get the problem.
bananalive
03-12-2009, 02:21 PM
I've got a problem where the recipient of hte email sent is getting blank emails, the PM works fine, database stores the record and if I set the email to me I see it but the person I need to can't. I'm not sure but I think it might be because the form output starts each line with an * and this seems to make the content invisible, is tere anyway to alter the character used?
its really useful to have that character before and after the question as I'm using them as delimiters to allow data import into excel, previous to this update I had to start each question with my delimiter and end each question with my delimiter.
bold bbcode tags get replaced with asterisks by vbulletin's plain bbcode parser. so if you remove all the [b] bbcode then you won't get any asterisks interfering
hobbybox
03-12-2009, 08:53 PM
First - Thank you for a great application and your support in helping people modify.
With that I have a question.
I have created one form to help members trade items. They fill out the form and it posts to a thread. I have been asked to have a button in someones post where if it is clicked, you would go to the form and that persons name would be in the form already.
I have it now as {username} / $qo1 (or whatever the variable is) so when the form is filled out that information is the thread title - example if I filled out the form would be 'Me / Name of person i type in box"
Is it possible to somehow carry the username of the persons post I am in so that $qo1 spot automaticly fills in so I would not have to type the persons name when a link from that post is clicked and you are taken to the form?
I hope im clear on what im asking - thank you in advance for your help.
anuanu
03-12-2009, 09:23 PM
Maybe im dumb but everytime someone submits a new application it goes to the forum and is moderated and I have to approve it before its displayed...
It was never like this untill I updated it and im not sure how to change that.
hobbybox
03-13-2009, 12:22 AM
Maybe im dumb but everytime someone submits a new application it goes to the forum and is moderated and I have to approve it before its displayed...
It was never like this untill I updated it and im not sure how to change that.
there is a version 3.3 xmlf file floating around here that will take care of that problem.
koolasia
03-13-2009, 01:48 AM
Hey,
Is it possible that when a form has optional questions and if they are not filled than these questions dont appear in the thread created ??
Vitaly
03-13-2009, 05:04 AM
Looked into class_mail.php
It contains such strings:
$fromemail = empty($vbulletin->options['bounceemail']) ? $vbulletin->options['webmasteremail'] : $vbulletin->options['bounceemail'];
$headers .= 'Return-Path: ' . $fromemail . $delimiter;
So, it's not a problem to set right "Return-Path" (set $vbulletin->options['bounceemail'] before calling vbmail, and then restore back). "FROM" should be left intact (webmaster/admin email), to avoid trubles with spam protection.
The email selection algorithm:
1. If email field exist & filled in form - then take from there.
2. If not - then from user profile.
anuanu
03-13-2009, 10:56 AM
there is a version 3.3 xmlf file floating around here that will take care of that problem.
Thank you that worked!
SSG.D
03-13-2009, 12:29 PM
Fantastic mod!!
Got a question though: I'm trying to make a contest registration form thats e-mailed on submit.
When the E-mail arrives it looks like this:
MASTER O WAR TOURNAMENTWhat is your game name? PHOENIX What is your E-mail Address? yourname@email.net Are you a Clan Admin? Yes If Clan Admin, are you Registering your clan Or a small unit? Bulldog, nerdboy
How can I fix this to look like this:
MASTER O WAR TOURNAMENT:
What is your game name? PHOENIX
What is your E-mail Address? yourname@email.net
Are you a Clan Admin? Yes
If Clan Admin, are you Registering your clan Or a small unit? Yes
Bulldog, nerdboy
Any help would be great!!:D
LloydApter
03-13-2009, 03:44 PM
Many thanks for the mod - it's exactly what I need :up:
How can I show the individual results of all submitted form replies to the relevant forum members in easy viewable format?
Something like this (in table format):
Number Name City Reply
1. John London Yes
2. Lloyd Paris No
ect.
Thanks again!
Heldenverband
03-14-2009, 07:46 AM
At the moment its not working for me and i dont know why :confused:
Here the error message :
Warnung: Cannot use a scalar value as an array in [path]/misc.php(100) : eval()'d code (Zeile 2178)
Warnung: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php (Zeile 394)
Warnung: Cannot use a scalar value as an array in [path]/vbcms_global_modules/vbcmsmodul_lasttopics.php (Zeile 129)
LloydApter
03-14-2009, 07:58 AM
Many thanks for the mod - it's exactly what I need :up:
How can I show the individual results of all submitted form replies to the relevant forum members in easy viewable format?
Something like this (in table format):
Number Name City Reply
1. John London Yes
2. Lloyd Paris No
ect.
Thanks again!
I have reviewed all the material and postings and didn't find any explanation of how to order the results from the form.
Say it's a form to invite people to an event and then afterwards people want to see who is going with their relevant contact details that they completed in the form and also see their names on the list. Or it's a survey and people want to see the results of the survey in worksheet format so they can analyse them... How can this be done?
Many thanks
Simon Lloyd
03-14-2009, 09:25 AM
Fantastic mod!!
Got a question though: I'm trying to make a contest registration form thats e-mailed on submit.
When the E-mail arrives it looks like this:
MASTER O WAR TOURNAMENTWhat is your game name? PHOENIX What is your E-mail Address? yourname@email.net Are you a Clan Admin? Yes If Clan Admin, are you Registering your clan Or a small unit? Bulldog, nerdboy
How can I fix this to look like this:
MASTER O WAR TOURNAMENT:
What is your game name? PHOENIX
What is your E-mail Address? yourname@email.net
Are you a Clan Admin? Yes
If Clan Admin, are you Registering your clan Or a small unit? Yes
Bulldog, nerdboy
Any help would be great!!:D
You have to use the custom form output, here's mine, it displays something like you want:
Top Tip
Submitted By: $q[20]
Date: $q[21]
Tip Description
$q[10]
Difficulty Of Implementation Level(1 = Easy......5 = Difficult)
$qo[17]
User Level Required to Adapt Tip
$qo[18]
Posted Top Tip
$q[12] and here's a link for how it looks http://www.thecodecage.com/forumz/top-tips/70356-word-selecting-characters-words-lines-keyboard-new-post.html
I had to use php tags to stop it parsing!
bananalive
03-14-2009, 10:36 AM
Fantastic mod!!
Got a question though: I'm trying to make a contest registration form thats e-mailed on submit.
When the E-mail arrives it looks like this:
MASTER O WAR TOURNAMENTWhat is your game name? PHOENIX What is your E-mail Address? yourname@email.net Are you a Clan Admin? Yes If Clan Admin, are you Registering your clan Or a small unit? Bulldog, nerdboy
How can I fix this to look like this:
MASTER O WAR TOURNAMENT:
What is your game name? PHOENIX
What is your E-mail Address? yourname@email.net
Are you a Clan Admin? Yes
If Clan Admin, are you Registering your clan Or a small unit? Yes
Bulldog, nerdboy
Any help would be great!!:D
Add to end of second Answer BBcode: box
\r\n
bananalive
03-14-2009, 10:38 AM
At the moment its not working for me and i dont know why :confused:
Here the error message :
Warnung: Cannot use a scalar value as an array in [path]/misc.php(100) : eval()'d code (Zeile 2178)
Warnung: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php (Zeile 394)
Warnung: Cannot use a scalar value as an array in [path]/vbcms_global_modules/vbcmsmodul_lasttopics.php (Zeile 129)
check your options for creating new thread
bananalive
03-14-2009, 10:42 AM
Hey,
Is it possible that when a form has optional questions and if they are not filled than these questions dont appear in the thread created ??
not unless you use custom output
bananalive
03-14-2009, 10:47 AM
First - Thank you for a great application and your support in helping people modify.
With that I have a question.
I have created one form to help members trade items. They fill out the form and it posts to a thread. I have been asked to have a button in someones post where if it is clicked, you would go to the form and that persons name would be in the form already.
I have it now as {username} / $qo1 (or whatever the variable is) so when the form is filled out that information is the thread title - example if I filled out the form would be 'Me / Name of person i type in box"
Is it possible to somehow carry the username of the persons post I am in so that $qo1 spot automaticly fills in so I would not have to type the persons name when a link from that post is clicked and you are taken to the form?
I hope im clear on what im asking - thank you in advance for your help.
This requires Easy Forms v3.3
Add this into postbit template somewhere (or postbit_legacy)
<a href="misc.php?do=form&fid=2&username=$post[username]">Trade with $post[username]</a>
Import attached file.
form Hook: Form start
$hiddenfield1 = $vbulletin->input->clean_gpc('g', 'username', TYPE_NOHTML);
if (empty($hiddenfield1))
{
$errormessage = "Error, this form needs a username.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
form Hook: Before Submit
$hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_NOHTML);
$formoutput = str_replace('{param}', "$hiddenfield1", $formoutput);
Then you can use {param} in custom output.
if you don't want to use custom output then add a custom question with php code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $hiddenfield1 . '" />';
bananalive
03-14-2009, 11:30 AM
Many thanks for the mod - it's exactly what I need :up:
How can I show the individual results of all submitted form replies to the relevant forum members in easy viewable format?
Something like this (in table format):
Number Name City Reply
1. John London Yes
2. Lloyd Paris No
ect.
Thanks again!I have reviewed all the material and postings and didn't find any explanation of how to order the results from the form.
Say it's a form to invite people to an event and then afterwards people want to see who is going with their relevant contact details that they completed in the form and also see their names on the list. Or it's a survey and people want to see the results of the survey in worksheet format so they can analyse them... How can this be done?
Many thanks
this uses BB Code Table (https://vborg.vbsupport.ru/showthread.php?t=107985) & Easy Forms v3.3
Create thread/post eg.column1|column2|column3
Form Hook: Before Submit
if ($complete)
{
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
$postid = 245;
$postinfo = fetch_postinfo($postid);
$postpagetext = str_replace('[/table]', "\r\n $formoutput [/table]", $postinfo[pagetext]);
$postdm = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$postdm->set_existing($postinfo);
$postdm->set('pagetext', $postpagetext);
$postdm->pre_save();
if(count($postdm->errors) < 1)
{
$postdm->save();
}
else
{
foreach ($errors as $error) {
$errorss .= $error. "<br />";
}
$errormessage = "Following errors occurred".$errorss;
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
unset($postdm);
if ($form[submitmessage])
{
$errormessage = $form[submitmessage];
}
else
{
$errormessage = "Form was submitted successfully. Click <a href=\"showthread.php?" . $vbulletin->session->vars['sessionurl'] . "p=" . $postinfo[postid] . "#post" . $postinfo[postid] . "\">here</a> to view the post.";
}
}
Replace 245 with appropriate postid
Use custom output e.g. $qo[75] | $thisuser[username] | $qo[59]
hobbybox
03-14-2009, 12:12 PM
thank you for the info - im going to give it a try
I installed this on a second board - and all is working great (VB 3.8.1 and Easy forms 3.3) but if logged in as a ergular user I cannot upload an attachments...I can do it as an admin so I know it works but im drawing a blank as to why another group cannot do it....
Usergroup permission for attachments set to Yes - that usergroup can add attachments in regular posts but just not the form...any ideas where im not looking?
hobbybox
03-14-2009, 12:18 PM
This requires Easy Forms v3.3
Add this into postbit template somewhere (or postbit_legacy)
<a href="misc.php?do=form&fid=2&username=$post[username]">Trade with $post[username]</a>
Import attached file.
form Hook: Form start
$hiddenfield1 = $vbulletin->input->clean_gpc('g', 'username', TYPE_NOHTML);
if (empty($hiddenfield1))
{
$errormessage = "Error, this form needs a username.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
form Hook: Before Submit
$hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_NOHTML);
$formoutput = str_replace('{param}', "$hiddenfield1", $formoutput);
Then you can use {param} in custom output.
if you don't want to use custom output then add a custom question with php code:
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $hiddenfield1 . '" />';
When the member clicks the link how can I make it so the form shows the name of the person the member is going to trade with....I just would like it so the person can see something like 'Trading With: that members name' - I dont want there to be confusion when they are filling out the form now knowing if they have the right name.
****** Scratch this one - I got all to work but im just tinkering with it to figure out how to get the {parm} into the thread title
Ok I tried and I cannot figure out how to get that hiddenvalue into the thread title - the {param} varible works in the form itself but not in the thread title
LloydApter
03-14-2009, 02:19 PM
this uses BB Code Table (https://vborg.vbsupport.ru/showthread.php?t=107985) & Easy Forms v3.3
Create thread/post eg.column1|column2|column3
Form Hook: Before Submit
if ($complete)
{
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
$postid = 245;
$postinfo = fetch_postinfo($postid);
$postpagetext = str_replace('[/table]', "\r\n $formoutput [/table]", $postinfo[pagetext]);
$postdm = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$postdm->set_existing($postinfo);
$postdm->set('pagetext', $postpagetext);
$postdm->pre_save();
if(count($postdm->errors) < 1)
{
$postdm->save();
}
else
{
foreach ($errors as $error) {
$errorss .= $error. "<br />";
}
$errormessage = "Following errors occurred".$errorss;
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
unset($postdm);
if ($form[submitmessage])
{
$errormessage = $form[submitmessage];
}
else
{
$errormessage = "Form was submitted successfully. Click <a href=\"showthread.php?" . $vbulletin->session->vars['sessionurl'] . "p=" . $postinfo[postid] . "#post" . $postinfo[postid] . "\">here</a> to view the post.";
}
}
Replace 245 with appropriate postid
Use custom output e.g. $qo[75] | $thisuser[username] | $qo[59]
I get to this page when I tried making these updates:
Fatal error: Existing data passed is not an array
Called set_existing in [path]/misc.php(100) : eval()'d code(1039) : eval()'d code on line 9
Called eval in [path]/misc.php(100) : eval()'d code on line 1039
Called eval in [path]/misc.php on line 100
in [path]/includes/class_dm.php on line 235
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code(1039) : eval()'d code on line 9
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code on line 1039
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php on line 100
, /var/www/vhtdocs/userweb61076/html/forum/includes/class_dm.php, 235, Array ([existing] => ,[line] =>
Called set_existing in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code(1039) : eval()'d code on line 9
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php(100) : eval()'d code on line 1039
Called eval in /var/www/vhtdocs/userweb61076/html/forum/misc.php on line 100
....
Thanks for all your help
bananalive
03-14-2009, 02:24 PM
I get to this page when I tried making these updates:
Thanks for all your help
Check the postid. Below code checks postid is valid
Form Hook: Before Submit:
if ($complete)
{
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
$postid = 245;
$postinfo = fetch_postinfo($postid);
if (!$postinfo)
{
$errormessage = 'Post doesn\'t exist, please alter line $postid = 245 ';
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
$postpagetext = str_replace('[/table]', "\r\n $formoutput [/table]", $postinfo[pagetext]);
$postdm = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$postdm->set_existing($postinfo);
$postdm->set('pagetext', $postpagetext);
$postdm->pre_save();
if(count($postdm->errors) < 1)
{
$postdm->save();
}
else
{
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Following errors occurred".$errorss;
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
unset($postdm);
if ($form[submitmessage])
{
$errormessage = $form[submitmessage];
}
else
{
$errormessage = "Form was submitted successfully. Click <a href=\"showthread.php?" . $vbulletin->session->vars['sessionurl'] . "p=" . $postinfo[postid] . "#post" . $postinfo[postid] . "\">here</a> to view the post.";
}
}
bananalive
03-14-2009, 02:29 PM
Ok I tried and I cannot figure out how to get that hiddenvalue into the thread title - the {param} varible works in the form itself but not in the thread title
Form Hook: Before Submit
$threadtitle = str_replace("{param}", $hiddenfield1, $threadtitle);
LloydApter
03-14-2009, 03:38 PM
$qo[59]
Where do I get the $qo number from, i.e. 59?
Thanks for all your help, again!
bananalive
03-14-2009, 03:51 PM
Where do I get the $qo number from, i.e. 59?
Thanks for all your help, again!
That is the question hash. See circled number in attachment
LloydApter
03-14-2009, 07:46 PM
That is the question hash. See circled number in attachment
Thank you so much - works perfectly!
LloydApter
03-14-2009, 08:29 PM
How do I automatically insert a a timedate stamp - 3/5/2009 11:46:06?
Thanks again
Gizmo999
03-14-2009, 10:13 PM
thanks for the date change and bb code fix, all working how i want it now
Mrs.Winters
03-14-2009, 10:47 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
Ok, I hate to ask what I think is a very dumb question. I've read through 19 of these 46 pages before I found someone that asked the same question I'm about to ask. All because I didn't want to sound dumb, but I can't take it anymore. My right arm is going numb from clicking and scrolling. I also cannot access the page misc.php?do=forms. Can someone PLEASE tell me what I have not done correctly? Everything is installed and I am able to set my usergroups and go through all the vb options settings. But once I click the link to view/create forms, no access. :confused: What am I missing in the description? It's driving me NUTS!
Andyrew
03-14-2009, 10:51 PM
Are you getting a no permission message or what happens when you try to access forms.
Have you enabled these settings, by holding down your ctrl key while clicking the usergroups.
Mrs.Winters
03-14-2009, 11:08 PM
Are you getting a no permission message or what happens when you try to access forms.I'm getting this message:
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.
Also, before I installed, I wanted to make sure this was backwards compatiblae with my v3.6.5 and it indicates that is is compatible. But my usergroup settings does not look like yours! :eek:
The usergroup (6) admins was already selected when I went to settings. I read directions earlier in this thread that said to hold ctrl key to select more than one, so figured I'd be able to do that. Nope, can't do that at all.
Andyrew
03-14-2009, 11:19 PM
Hmmm strange that your does look different than mine, can you change the options in your usergroup setting or are they just stuck as your screen shot.
Mrs.Winters
03-14-2009, 11:25 PM
are they just stuck as your screen shot.
Stuck. When I first went into the vboptions, usergroup 6 was already there on it's own. I had to go into my usergroups to determine what group 6 was (it's admins). I can't do anything to add any other groups. If I can't add my moderators and one other small group, it is pointless. I REALLY would like to have this on my forum. When I created it two years ago, before I even allowed registration, I was trying to find a forms hack and nobody had one. Now I came across this today and was THRILLED, until I had no access (and the usergroup thing). I know the access thing has to be something simple that I have missed, but I can't figure out WHAT. :(
Andyrew
03-14-2009, 11:39 PM
Well something must be wrong if you cannot change the usergroups who are allowed to view/use forms. Have you tried installing again with allow overwrite selected.
Mrs.Winters
03-14-2009, 11:47 PM
Well, I downloaded the most current one attached in the developers' original post. But I'm going to uninstall, then reinstall and see if that works. I'm wondering if there is some kind of conflict with another mod. I only have 4 other mods installed on my forum (installed them all myself from developer's instructions) and I can't do without any of them.
Cyb - Forumhome Sub-Forums Manager,
Next/Previous Thread Title Replacement,
Similar thread check, and
Smilie Category
I am just so frustrated with why I can't get this one mod working. It's the very first mod I searched for way back in 2007 and will make posting things at my site SO MUCH EASIER. I am going to bed and try to figure it out tomorrow.
Thanks for trying to help though. I appreciate it. :)
Simon Lloyd
03-15-2009, 06:25 AM
How do you have your admin control panel options (vb options) set?
Here's mine:
xcesivvs
03-15-2009, 07:43 AM
thank you so much for the prefix update.
Works a treat...
Heldenverband
03-15-2009, 10:56 AM
check your options for creating new thread
Thank your for reply. In which area i have to change some settings ? Some versions before it works and i have nothing changed.
Vitaly
03-15-2009, 12:47 PM
Played a bit with "From" and "Reply-To" email headers. Used easy-forms to send different kinds of email.
1. For FAQ. Nice regular expression to check email
/^[\.\-_A-Za-z0-9]+?@[\.\-A-Za-z0-9]+?\.[A-Za-z0-9]{2,6}$/
2. To set correct "from" field, use something like this in before_submit hook:
$from = $thisuser['email'] ? $thisuser['email'] : $qo[16];
if field exist, then result taken from there, if not - from used profile.
NOTE. It's better to set $from = $thisuser['email'] just before hook. That eliminates additional actions, when form available only to requisteres users.
Mrs.Winters
03-15-2009, 02:50 PM
How do you have your admin control panel options (vb options) set?Mine are exactly the same.
Simon Lloyd
03-15-2009, 02:58 PM
Dru, if you truly cannot find the setting in VB Options Easyforms for usergroups then perhaps a pM to bananalive as for ver 3.6.x it may mean manual template edits.
Mrs.Winters
03-15-2009, 03:26 PM
I can see the settings, but there is no way to possibly change them. They were preset from the moment I accessed that panel and there's no dropdown or scroll "type" deal to make selections for one usergroup, let alone multiples. I'm going to now assume that I can't access the "create/view form" page because there's no way for me to even allow myself (as admin) to access the page. This is enough for me to just finally go ahead and upgrade. I really need this modification.
Andyrew
03-15-2009, 03:30 PM
Ive updated to 3.3 and now getting the problem with posts going in moderation cue.
bananalive
03-15-2009, 04:32 PM
I'm getting this message:
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.
Also, before I installed, I wanted to make sure this was backwards compatiblae with my v3.6.5 and it indicates that is is compatible. But my usergroup settings does not look like yours! :eek:
The usergroup (6) admins was already selected when I went to settings. I read directions earlier in this thread that said to hold ctrl key to select more than one, so figured I'd be able to do that. Nope, can't do that at all.
It appears that usergroup support in vBulletin options was added after vbulletin 3.6.5. I know someone who has it working on a vbulletin v3.6.8 forum.
bananalive
03-15-2009, 04:39 PM
How do I automatically insert a a timedate stamp - 3/5/2009 11:46:06?
Thanks again
Create 'Custom' question
Use following PHP Code:
$q[$formbit[id]] = vbdate("j/n/Y H:m:s", TIMENOW);
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $q[$formbit[id]] . '" />';
bananalive
03-15-2009, 04:50 PM
Ive updated to 3.3 and now getting the problem with posts going in moderation queue.
Do you have any modifications installed which affect the moderation of threads?
Mrs.Winters
03-15-2009, 04:51 PM
It appears that usergroup support in vBulletin options was added after vbulletin 3.6.5. I know someone who has it working on a vbulletin v3.6.8 forum.Oh poop. Well that explains my headache then! :p Thanks for responding. Either way, to use this wonderful modification, I still need to at least upgrade to 3.6.8. Of course, I am not comfortable trying to do that myself and will have to pay someone to do that for me. :erm:
Andyrew
03-15-2009, 05:50 PM
Do you have any modifications installed which affect the moderation of threads?
No, i don't use moderation at all in any forums, but saying that my form is a user name change request form that posts a thread in to an admin only forum. But it was working before i upgraded.
Just tried rolling back to 3.1 and everything works fine. :confused:
LloydApter
03-15-2009, 05:52 PM
Create 'Custom' question
Use following PHP Code:
$q[$formbit[id]] = vbdate("j/n/Y H:m:s", TIMENOW);
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $q[$formbit[id]] . '" />';
Perfect - thank you!
hobbybox
03-16-2009, 12:13 PM
Just a question - if you use the 'Save To Database' option - how do you recall the info?
bananalive
03-16-2009, 02:12 PM
Just a question - if you use the 'Save To Database' option - how do you recall the info?
Form List -> Form Results
/misc.php?do=formresults&fid=1
DontWannaName
03-16-2009, 07:30 PM
For some reason, im getting the question thats after the section name on the same row as the section name so they are right next to each other. The answer is below the 2.
bananalive
03-16-2009, 07:32 PM
For some reason, im getting the question thats after the section name on the same row as the section name so they are right next to each other. The answer is below the 2.
Add \r\n to the end of Section BBcode
DontWannaName
03-16-2009, 07:36 PM
ah, thanks. How would you be able to also add space after the section so they aren't directly under each other.
nvm, I just added it twice :D
hobbybox
03-17-2009, 11:31 AM
After upgrading all now works great except one user group cannot upload pictures via the form - this user group though can upload pictures in any other forum so it seems that it is not a user group issue.
the user group is ok to upload files, and the forum the form is posting in is ok for pictures. Im not sure what other place to look for a setting. When they click on the Manage Attachment button the no access page comes up - but again it is for the form only - all other forums are fine.
bananalive
03-17-2009, 01:15 PM
After upgrading all now works great except one user group cannot upload pictures via the form - this user group though can upload pictures in any other forum so it seems that it is not a user group issue.
the user group is ok to upload files, and the forum the form is posting in is ok for pictures. Im not sure what other place to look for a setting. When they click on the Manage Attachment button the no access page comes up - but again it is for the form only - all other forums are fine.
Check their attachment extension permissions.
Vitaly
03-17-2009, 07:52 PM
Imported forms from debug site to production (via XML). Noticed some bugs:
1. parameter "Show on form list" not stored.
2. parameter "Only for guests" (for field) not stored.
3. If form contains only 1 field (field type doesn't matter), that field become crapped.
4. All field numbers totally crapped (had to edit again custom templates and hooks)
That's not critical, because I don't import/export forms every day :) , just a bit inconvenient.
PS. But in general, product is exellent :) . Thanks a lot for your work and your support.
hobbybox
03-17-2009, 08:25 PM
Check their attachment extension permissions.
they have access to all - as I stated that they can upload with no problems to any forum (through making a post) however it only rejects them doing so through the form.
Vitaly
03-18-2009, 03:21 AM
Is is possible (? in next version) to grant full access for superadmins, even if no groups for edit selected in settings? Would be nice.
Loller
03-20-2009, 09:45 AM
Hello bananalive.
Thank you for this great (!) mod.
I have a question:
How i can customize thread title via Form Hook: Before Submit ? Can I do thread title = {q_1} [{q_2} - {q_3}] when {q_3} filled, and if not filled - thread title = {q_1} [{q_2}]
Can i do it using Form Hook?
UPD:
solved :)
It's a simply:
if ($q[8]<>'') $threadtitle = "$q[1] [$qo[6]] [$qo[7] | $q[8]]";
else $threadtitle = "$q[1] [$qo[6]] [$qo[7]]";
Altered
03-20-2009, 05:23 PM
Like another person on here i'm having trouble with forms going into moderation queue after updating to 3.3 Has anyone found a solution for this yet? Forum permissions are setup properly and it was working fine prior to the 3.3 update.
Thanks!
xcesivvs
03-21-2009, 08:42 AM
Is there a way to make the form work through a website page. Put the fields into a website page and when a person enters stuff it goes through to the forum
Thanks
Warren
bananalive
03-21-2009, 03:09 PM
Is there a way to make the form work through a website page. Put the fields into a website page and when a person enters stuff it goes through to the forum
Thanks
Warren
Not really
bananalive
03-21-2009, 03:12 PM
Like another person on here i'm having trouble with forms going into moderation queue after updating to 3.3 Has anyone found a solution for this yet? Forum permissions are setup properly and it was working fine prior to the 3.3 update.
Thanks!
Have you got any other mods installed altering usergroup permissions
bananalive
03-21-2009, 03:15 PM
Imported forms from debug site to production (via XML). Noticed some bugs:
1. parameter "Show on form list" not stored.
2. parameter "Only for guests" (for field) not stored.
3. If form contains only 1 field (field type doesn't matter), that field become crapped.
4. All field numbers totally crapped (had to edit again custom templates and hooks)
That's not critical, because I don't import/export forms every day :) , just a bit inconvenient.
PS. But in general, product is exellent :) . Thanks a lot for your work and your support.
Cheers fixes will be included im next release
hobbybox
03-21-2009, 05:45 PM
they have access to all - as I stated that they can upload with no problems to any forum (through making a post) however it only rejects them doing so through the form.
Any thoughts on picture upload problems through the form only
Altered
03-21-2009, 06:06 PM
Have you got any other mods installed altering usergroup permissions
No mods installed no - like i said this was working fine prior to the 3.3 update
jaffaman
03-22-2009, 12:42 PM
Added to test site works great will install it o live site when i have the time great mod.
|Jordan|
03-23-2009, 01:10 AM
In all the fields that i have a regex, i get the following error when a form is previewed/submitted: "Invalid input. Your answer is not in the required format."
Also at the top of the page i get: Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in [path]/misc.php(100) : eval()'d code on line 2048
I have the regex code in the same format as the regex i use for usernames.
bananalive
03-23-2009, 01:37 PM
In all the fields that i have a regex, i get the following error when a form is previewed/submitted: "Invalid input. Your answer is not in the required format."
Also at the top of the page i get: Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in [path]/misc.php(100) : eval()'d code on line 2048
I have the regex code in the same format as the regex i use for usernames.
Try adding / to start/end of string
Here's an example of what works:
/(\d+)/
bananalive
03-23-2009, 03:03 PM
Like another person on here i'm having trouble with forms going into moderation queue after updating to 3.3 Has anyone found a solution for this yet? Forum permissions are setup properly and it was working fine prior to the 3.3 update.
Thanks!
Try attached version
Derekclarke
03-23-2009, 03:27 PM
Can this be modified to accept either BBcode or HTML in the Questions?
I wish to add a rules agreement in with a link to the rules...
If anyone can help ASAP it would be most Appreciated.
Thanks
Derek
hobbybox
03-23-2009, 04:09 PM
Still cannot get a response to why a certain user groups cannot upload attachments with a form.
1) This usergroup has the ability to upload attachments in ALL OTHER FORUMS
2) Attachment permissions are fine.
Getting no access when trying to upload the attchment - however if you go to any other forum and try to upload attachment there are no problems - access denied ONLY with the use of the form.
bananalive
03-23-2009, 04:36 PM
Still cannot get a response to why a certain user groups cannot upload attachments with a form.
1) This usergroup has the ability to upload attachments in ALL OTHER FORUMS
2) Attachment permissions are fine.
Getting no access when trying to upload the attchment - however if you go to any other forum and try to upload attachment there are no problems - access denied ONLY with the use of the form.
try this file, it has line removed which was wrong and causing some posts to be moderated. It might be that line which was causing the attachment issue for you
https://vborg.vbsupport.ru/external/2012/01/5.gif product-easyforms v3.3.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=96883&d=1237824179) (152.0 KB)
bananalive
03-23-2009, 04:37 PM
Can this be modified to accept either BBcode or HTML in the Questions?
I wish to add a rules agreement in with a link to the rules...
If anyone can help ASAP it would be most Appreciated.
Thanks
Derek
You can use BB Code in questions.
hobbybox
03-23-2009, 08:56 PM
try this file, it has line removed which was wrong and causing some posts to be moderated. It might be that line which was causing the attachment issue for you
https://vborg.vbsupport.ru/external/2012/01/5.gif product-easyforms v3.3.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=96883&d=1237824179) (152.0 KB)
Still no permission
subvertbeats
03-23-2009, 11:26 PM
Just wanted to say thanks for the mod, excellent work!
subvertbeats
03-24-2009, 09:23 AM
Do you know of (or can you add) a way to view the forms without forum header and footer? (ideally add an option with the definition of each form to use a given vB style)
Im trying to use the forms inside an iframe on page outside of the main forums, and this page already has its own separate header/footer,
Thanks!
bananalive
03-24-2009, 01:33 PM
Do you know of (or can you add) a way to view the forms without forum header and footer? (ideally add an option with the definition of each form to use a given vB style)
Im trying to use the forms inside an iframe on page outside of the main forums, and this page already has its own separate header/footer,
Thanks!
Find in Plugin: Easy Forms Part 1:
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
Replace:
eval('print_output("' . fetch_template('form_view') . '");');
bananalive
03-24-2009, 01:34 PM
Still no permission
Doh.
hobbybox
03-24-2009, 02:27 PM
Doh.
this is my feeling - i cannot think of any other place that there would be a setting to check.
If they were not allowed to upload in other places it would be an easy fix - but it is only through the forum.
It was working (i think) prior to the 3.3 upgrade - however when i did the upgrade I was getting the moderation problem - when that was corrected it screwed up the attchments part.
CPOWA
03-24-2009, 04:01 PM
I can't get past the following form error (first thumbnail). I believe everything is coded correctly, but I must be missing something. Any idea what I'm doing wrong? Other than the questions on the form everything else is set to default. I'm using Ver: 3.3
EDIT: Just tested it with text in the: "Thread/ PM/ Email Title:" field verses {q_10} and it posted. http://www.usfcralliance.org/forums/f173/test-731/
Hmmm... Changed the "Thread/ PM/ Email Title:" to Sponsored By: {q_10} and the thread posted with only Sponsored By: in the title.
bananalive
03-24-2009, 05:43 PM
I can't get past the following form error (first thumbnail). I believe everything is coded correctly, but I must be missing something. Any idea what I'm doing wrong? Other than the questions on the form everything else is set to default. I'm using Ver: 3.3
EDIT: Just tested it with text in the: "Thread/ PM/ Email Title:" field verses {q_10} and it posted. http://www.usfcralliance.org/forums/f173/test-731/
Hmmm... Changed the "Thread/ PM/ Email Title:" to Sponsored By: {q_10} and the thread posted with only Sponsored By: in the title.
You're probably not using the correct question hash. See circle number in attachment
CPOWA
03-24-2009, 09:14 PM
You're probably not using the correct question hash. See circle number in attachment
That was it! I was using the Q# variable. Thanks Bananalive. :) This is an awesome product! :up:
Nominated!
subvertbeats
03-24-2009, 11:46 PM
thanks bananalive!
Any idea how to achieve this per form (some forms are specifically for a site outside of the forums and other are for the forums themselves)
PS: currently using a conditional in the header, footer and navbar templates to remove them globally for misc.php.
Find in Plugin: Easy Forms Part 1:
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
Replace:
eval('print_output("' . fetch_template('form_view') . '");');
anuanu
03-25-2009, 01:49 AM
Not sure if this was brought up already or not but when i make a question and have the character "&" in it. It outputs when someone is filling it out as this: "&"
FW FH-K?ln
03-25-2009, 11:44 AM
We have a problem with this mod.
First: it's a awesome mod
Second: When we create a form, we set sections for a better view. We don't fill anything in the descriptions, but when it post the form in a thread, it set us this result:
Anmeldung zur Erstifahrt im SS2009(form title)Persönliche Angaben(section)Matrikelnummer(question)
How we can change it to
form title
section
question
?
bananalive
03-25-2009, 01:56 PM
We have a problem with this mod.
First: it's a awesome mod
Second: When we create a form, we set sections for a better view. We don't fill anything in the descriptions, but when it post the form in a thread, it set us this result:
Anmeldung zur Erstifahrt im SS2009(form title)Pers?nliche Angaben(section)Matrikelnummer(question)
How we can change it to
form title
section
question
?
Add \r\n at the end of the bbcode for sections, questions, etc.
bananalive
03-25-2009, 01:57 PM
Not sure if this was brought up already or not but when i make a question and have the character "&" in it. It outputs when someone is filling it out as this: "&"
I'll look into this
bananalive
03-25-2009, 01:58 PM
thanks bananalive!
Any idea how to achieve this per form (some forms are specifically for a site outside of the forums and other are for the forums themselves)
PS: currently using a conditional in the header, footer and navbar templates to remove them globally for misc.php.
Find in Plugin: Easy Forms Part 1:
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
Replace:
if (!$noheader)
{
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
}
else
{
eval('print_output("' . fetch_template('form_view') . '");');
}
Form Hook: Form Start:
$noheader = true;
Altered
03-25-2009, 02:09 PM
Try attached version
https://vborg.vbsupport.ru/showpost.php?p=1775067&postcount=719
This fixed my problem with posts being moderated, thank you!!
bananalive
03-25-2009, 02:30 PM
Not sure if this was brought up already or not but when i make a question and have the character "&" in it. It outputs when someone is filling it out as this: "&"
Import attached file
Re-save question
FW FH-K?ln
03-25-2009, 05:27 PM
Thanks for \r\n.
We want to allow guests to use these form.
They write in a single line text field their e-mail ({q_6}). This form create a thread in a forum and send a e-mail to the e-mail-adress.
In the settings of the form we can set, that e-mail form send to {email} (only register users), but it doesn't work with {q_6} (guests)!
Can this be changed?
Max3D
03-25-2009, 07:30 PM
just wondering, when ever sombody creates a new form and its submitted and makes a new thread it always shows up as moderated. Why?
anuanu
03-26-2009, 01:02 AM
Import attached file
Re-save question
Fixed! Awsome!
subvertbeats
03-26-2009, 01:10 AM
Find in Plugin: Easy Forms Part 1:
...
....
Thank you :up:
Heldenverband
03-27-2009, 08:03 AM
Dear bananalive,
sorry again. My problem concerning error messages during creating thread still exist and i have no idea why.
With activated VBCMS i got this message ( see attached file )
After deactivated VBCMS the error following error message comes :
Warnung: Cannot use a scalar value as an array in [path]/misc.php(100) : eval()'d code (Zeile 2182)
Warnung: Cannot use a scalar value as an array in [path]/includes/functions_newpost.php (Zeile 394)
Any idea ?
Edit :
Problem is SOLVED. After updating to the latest version of EasyForms the forums ID was missing. Thanks to Christian from VBDesigns(VBCMS) (http://www.vbdesigns.de)
Altered
03-27-2009, 07:26 PM
Question:
I have a form i want to allow unregistered users to access/submit. I have the permissions all set and everything works great. My problem is this;
When the form is submitted it posts in a thread i selected and i also want it to send the user a private message. This works fine when a user is logged in but i get the following error message when an unregistered user is logged in.
Form failed to submit. The following error(s) occured:
The following users were not found:
Unregistered
Is there anyway to make it so it only sends the private message to logged in users?
bananalive
03-28-2009, 11:11 AM
Question:
I have a form i want to allow unregistered users to access/submit. I have the permissions all set and everything works great. My problem is this;
When the form is submitted it posts in a thread i selected and i also want it to send the user a private message. This works fine when a user is logged in but i get the following error message when an unregistered user is logged in.
Form failed to submit. The following error(s) occured:
The following users were not found:
Unregistered
Is there anyway to make it so it only sends the private message to logged in users?
Form Hook: Before Submit:
if ($vbulletin->userinfo['userid'] == 0)
{
foreach ($form['action'] as $id => $action)
{
if ($action == 1)
{
unset($form['action'][$id]);
}
}
}
skYfIrE
04-01-2009, 09:40 PM
Hi,
Thanks for the mod. Working fine on my board.
However, there is something "wrong" when using the vb_editor. The Image button is not shown. And, it's not only on my board, if I look at one of your attachement, this button is not shown too.
Is it possible for you to do something for reinstating it ?
Thanks for your help.
skYfIrE
zyxelts
04-01-2009, 11:08 PM
Awsome mod, worked great for my internal site. I do have one question if anyone has the answer, I am trying to format the Thread to be
Question: Answer
Question: Answer
I can get it to work in the preview page, however when it posts, it puts the answers under the question. Any suggestions?
Thanks in advanced.
wacodep
04-02-2009, 01:29 PM
Any hints on the 'Manage Attatchment' issue? The form works great, but when a registered user tries to use manage attachments (on the form ONLY), it gives the old access denied message. My test user is a 'Registered User', and that group has global attachment upload access.
Doe the usergroup need upload access for a specific forum, too? If so, which?
It seems as if the only way the 'Manage Uploads' works from the Form is if the user is a member of either 'Administrators' or 'Super Moderators'.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.