vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=201097)

dutchbb 02-23-2009 06:04 PM

So how do we add it, i do not see the option for it. tnx.

Edit: nvm, i see the option for it. However we can not choose where to add it in the form?

Andyrew 02-23-2009 06:18 PM

Quote:

Originally Posted by dutchbb (Post 1752532)
So how do we add it, i do not see the option for it. tnx.

Edit: nvm, i see the option for it. However we can not choose where to add it in the form?

It might be possible to do that with a custom question then put in php code, i'm not a coder so you will need to ask bananalive.

bananalive 02-24-2009 11:34 AM

Quote:

Originally Posted by dutchbb (Post 1752532)
So how do we add it, i do not see the option for it. tnx.

Edit: nvm, i see the option for it. However we can not choose where to add it in the form?

There is no option for that. You could however edit template form_view

bananalive 02-24-2009 11:35 AM

Quote:

Originally Posted by dutchbb (Post 1752395)
When can we expect the attachments option? This is the only thing keeping me from using this mod :)

Attachments are currently available for creating new thread but not for posting in a thread.

bananalive 02-24-2009 11:39 AM

Quote:

Originally Posted by Gizmo999 (Post 1752368)
How would I get it to include the forum users name and email address automatically in the output? I'd restrict use to members only.

it would need to save to database and send an email.

Either use custom output or use hook before complete:
PHP Code:

$formoutput .= $form[preq] . "Username:" $form[pstq];
$formoutput .= $form['prea'] . $vbulletin->userinfo[username] . $form[psta];
$formoutput .= $form[preq] . "Email:" $form[pstq];
$formoutput .= $form['prea'] . $vbulletin->userinfo[email] . $form[psta]; 


bananalive 02-24-2009 11:46 AM

Quote:

Originally Posted by Budget101 (Post 1752306)
How do I input a hidden field to automatically log the users IP address regardless of their Usergroup?

PHP Code:

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


A.Chakery 02-24-2009 12:15 PM

hi bro

really thnx for this gr8 mod (marked as installed :) )

zushiba 02-24-2009 02:14 PM

This is an excellent mod that will save me a LOT of time but I'm running VBAdvanced CMPS, is there any way to integrate the forms into the front end?

bananalive 02-24-2009 03:22 PM

Quote:

Originally Posted by zushiba (Post 1753339)
This is an excellent mod that will save me a LOT of time but I'm running VBAdvanced CMPS, is there any way to integrate the forms into the front end?

Probably. I did a quick google and found this post which might help you

Xencored 02-24-2009 03:26 PM

Installed Thanks mate epic this is!!

lazyseller 02-24-2009 03:29 PM

Quote:

Originally Posted by Andyrew (Post 1752526)
It's already got the attachments feature., i guess he forgot to update the first post. :)

Haha the attachment option was on like page 17 or something...

This gotta be one of the best mods out there right now. Most flexible.

ButtKrust 02-24-2009 08:53 PM

When i choose for it to store the information in the database, where do i go to find the stored information? Does it go into MySQL? I would like to be able to pull this information out through php if at all possible.

Michigan Morels 02-25-2009 06:23 AM

1. I have this in Custom Form Output
Code:

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

2. I get this display posted to the thread
Code:


<!-- BEGIN TEMPLATE: formoutput -->
widget one: 3: 5.00
widget two: 2: $10.00
widget three: 1: 30.00
<!-- END TEMPLATE: formoutput -->

3. I also have this in Form Hook: Before Submit: to remove bbcode from empty answers.
PHP Code:

$formoutput str_replace(""""$formoutput); 

How do I remove those Template tags from example #2.?

bananalive 02-25-2009 12:21 PM

Quote:

Originally Posted by Michigan Morels (Post 1753976)
1. I have this in Custom Form Output
Code:

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

2. I get this display posted to the thread
Code:


<!-- BEGIN TEMPLATE: formoutput -->
widget one: 3: 5.00
widget two: 2: $10.00
widget three: 1: 30.00
<!-- END TEMPLATE: formoutput -->

3. I also have this in Form Hook: Before Submit: to remove bbcode from empty answers.
PHP Code:

$formoutput str_replace(""""$formoutput); 

How do I remove those Template tags from example #2.?

AdminCP -> vBulletin Options -> General Options -> Add Template Name in HTML Comments -> No

Michigan Morels 02-25-2009 04:40 PM

Thank you. I knew it was something simple I was overlooking.
I forgot I had that turned on. DUH

dknelson 02-25-2009 06:18 PM

Quote:

Originally Posted by bananalive (Post 1726249)
You could use custom question to get birthday of user from their profile.

PHP Code:

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

Can't think of any easy way of easy way to do all states/ countries. But for US/Canada you could use this custom question with following php code:
PHP Code:

$answer '<select id="q_' $formbit[id] . '" name="' $formbit[id] . '"><option value="">Select One</option><optgroup label="Canadian Provinces"><option value="AB">Alberta</option><option value="BC">British Columbia</option><option value="MB">Manitoba</option><option value="NB">New Brunswick</option><option value="NF">Newfoundland</option><option value="NT">Northwest Territories</option><option value="NS">Nova Scotia</option><option value="NU">Nunavut</option><option value="ON">Ontario</option><option value="PE">Prince Edward Island</option><option value="QC">Quebec</option><option value="SK">Saskatchewan</option><option value="YT">Yukon Territory</option></optgroup>        <optgroup label="U.S. States"><option value="AK">Alaska</option><option value="AL">Alabama</option><option value="AR">Arkansas</option><option value="AZ">Arizona</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DC">District of Columbia</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="HI">Hawaii</option><option value="IA">Iowa</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="MA">Massachusetts</option><option value="MD">Maryland</option><option value="ME">Maine</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MO">Missouri</option><option value="MS">Mississippi</option><option value="MT">Montana</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="NE">Nebraska</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NV">Nevada</option><option value="NY">New York</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="PR">Puerto Rico</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VA">Virginia</option><option value="VT">Vermont</option><option value="WA">Washington</option><option value="WI">Wisconsin</option><option value="WV">West Virginia</option><option value="WY">Wyoming</option></optgroup></select>';
$selected "value=\"" $q_{$formbit[id]} . "\"";
$answer str_replace($selected$selected"selected=\"seleceted\""$answer); 


This is about perfect for what I am trying to do. My members want a list of recommended restaurants across the USA and Canada. Members from various states will submit their favorites via the forms. Here is my question.

I want to output the results to a "Recommended Restaurant" forum. I guess I could manually create a thread for each state and province. Then a member will submit the forum and it should go to the correct state/province thread. Do I have to create 57 different forms to do this? Is there any way that the form could use this drop-down state/province field to know which thread to post to?

stratfan87 02-25-2009 07:48 PM

***IGNORE THIS***
When I hit "submit" after filling out my form, I get the following error.

Unable to add cookies, header already sent.
File: /home/stratfan/public_html/forum/includes/class_core.php
Line: 3254

I am very new to all of this, I was attempting to "create a new thread" with the forms information, any help would be appreciated.

(great product btw!)
***END OF IGNORE***

I figured it out! Thanks for the great Product!

ilanyon 02-25-2009 08:07 PM

Hi, fantastic mod!

A quick question - after the form has been submitted, a message appears stating "Form Submitted - Click here to go to the thread" (or similar). Trouble is, that only Admins have permission for the forum that the thread is posted in and if they follow the 'click here' they get an another error message...

I would therefore like to change this wording and have edited the "form_submit_message" and "form_submit_message_explain" via the phrase manager, but despite such, the message remains the same (ie the standard phrase remains unaltered)...

No doubt it is something I am doing wrong but any ideas would be very much appreciated....

stratfan87 02-25-2009 08:15 PM

I have a question related to ilanyon..

Like he said, you have the option to change what the user sees after submitting a form.

To change the message you put your own message in the text box below
Form Submit Message:
Message the user sees when the form is submitted successfully. Leave blank to use the default message."

I want to use this message to direct them to a different url, what code can I use? I tried [URL] tags and <a href> tags and they didn't work..

I understand there is a redirect option, but I want to display a message first, and also give a few options for where to go after the form is completed.

Lone Gunman 02-26-2009 12:31 AM

when i click manage attachments on the form i made i get this on the new screen...

Invalid Post specified. If you followed a valid link, please notify the administrator


form is set to post new thread and attachments allowed. logged in as admin

edit...
nevermind. i see what i did wrong. just need forum id # not link.

great mod!

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

Quote:

Originally Posted by Lone Gunman (Post 1754839)
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

Quote:

Originally Posted by stratfan87 (Post 1754613)
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

Quote:

Originally Posted by ilanyon (Post 1754604)
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

Quote:

Originally Posted by dknelson (Post 1754499)
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

1 Attachment(s)
Questions on number and dollar formating.

Problem 1. In a single line text field I put this
PHP Code:

/(d+)/ 

in the Regular Expression:

However when I try to submit a form I get the invalid format error.
See attach. Attachment 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

Quote:

Originally Posted by bananalive (Post 1755270)
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

1 Attachment(s)
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

Quote:

Originally Posted by dknelson (Post 1756323)
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: [B]$qn[1][/B] $q[1] [B]$qn[2][/B] $q[2] [B]$qn[3][/B] $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

Quote:

Originally Posted by dknelson (Post 1756405)
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.

[CENTER][B][SIZE=4][COLOR=Red]United states[/COLOR][/SIZE][/B][/CENTER]

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

Quote:

Originally Posted by dknelson (Post 1756592)
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

Quote:

Originally Posted by dknelson (Post 1756323)
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

Quote:

Originally Posted by DontWannaName (Post 1756757)
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:
PHP Code:

/*$newpost['prefixid'] =& '';*/ 

Replace:
PHP Code:

$newpost['prefixid'] =& 1''

Replace 1 with the appropriate prefixid

bananalive 02-28-2009 10:06 AM

Quote:

Originally Posted by ilanyon (Post 1755819)
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?


All times are GMT. The time now is 05:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10833 seconds
  • Memory Usage 1,884KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (9)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete