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)

bananalive 08-08-2009 05:35 PM

Quote:

Originally Posted by Navyr (Post 1862719)
Thanks for this hack.

No problem :)

bananalive 08-08-2009 05:37 PM

Quote:

Originally Posted by TROLL (Post 1863208)
I have a silly question! I have a form setup that submits a form for a contest that I am running on my site. The contest requires that the users attach an image to each submission, but the form posts that thread to a forum which the users cannot view. This results in the site not allowing them to add attachments. I have all permissions for Registered users set to "No" except for "Can Upload Attachments". This does not seem to affect it at all though.

I know this is different than posting in a forum as far as permissions go, but it seems that if the form can go around the fact that "Can Post Threads" is set to "No", it should be able to include attachments in a forum that they cannot view. Any insight?

Does it let the user upload the attachment?

Welshy2008 08-09-2009 07:09 PM

Quote:

Originally Posted by Welshy2008 (Post 1861228)

Before I go - Is it possible that I could add a search facility to only search through the forms/pages that I want.

IE. If I offer a free company advertising, The form would ask for Name, address, poscode phone number, website address and E-mail address.

I would like it to search through those listed in my example above.


Thank You Again.

Quote:

Originally Posted by bananalive (Post 1861781)

You can search through data stored in the form database? Is that what you meant?

Quote:

Originally Posted by Welshy2008 (Post 1862145)

Yes Mate - I would like it to search through the details entered in the forms only.



Any Ideas as to how I would do this please BA?

len backus 08-09-2009 08:42 PM

Does anyone know how to extract and export the form database contents to something like an Excel spreadsheet?

TaMpE 08-10-2009 07:00 AM

Quote:

Originally Posted by bananalive (Post 1863637)
Yep sorry it should be {q_7) in thread title.


And to remove the stuff from top/bottom of output:
AdminCP -> vBulletin Options -> General Options -> Add Template Name in HTML Comments -> No

I am so sorry to bother you again. The thing works in the thread title but it does not show the correct value in the thread. It will shows the option's number instead of showing the option's value.

:\

EDIT: It's types 3, 4 and 5. These three are Radio Buttons, Checkboxes and Dropdowns. These won't display their option values we set in the question maker but intead will show the option's numbers. This happens only inside the thread. In the thread title, it works just fine.

For example, if you have 3 options in a dropdown/radio button/checkboxes, it will show you "3" instead of showing you the last option's value you set. I don't know if this is a bug or not. Am I the only one having this problem? I am on 3.8.2 still.

bananalive 08-10-2009 09:07 AM

1 Attachment(s)
Quote:

Originally Posted by Welshy2008 (Post 1864181)
Any Ideas as to how I would do this please BA?

View Form Results then at top right there is a search box

bananalive 08-10-2009 09:09 AM

Quote:

Originally Posted by len backus (Post 1864215)
Does anyone know how to extract and export the form database contents to something like an Excel spreadsheet?

Nope there is no xls export function.

However if you go to the Form Results Table view and then highlight the whole table from form title right to last row then you should be able to paste it into a blank excel document. That will include links and text colours, etc.

(Tested with Microsoft Excel 2007 )

bananalive 08-10-2009 09:11 AM

Quote:

Originally Posted by TaMpE (Post 1864391)
I am so sorry to bother you again. The thing works in the thread title but it does not show the correct value in the thread. It will shows the option's number instead of showing the option's value.

:\

EDIT: It's types 3, 4 and 5. These three are Radio Buttons, Checkboxes and Dropdowns. These won't display their option values we set in the question maker but intead will show the option's numbers. This happens only inside the thread. In the thread title, it works just fine.

For example, if you have 3 options in a dropdown/radio button/checkboxes, it will show you "3" instead of showing you the last option's value you set. I don't know if this is a bug or not. Am I the only one having this problem? I am on 3.8.2 still.

In the custom output are you using $qo[4]?

TaMpE 08-10-2009 09:19 AM

Quote:

Originally Posted by bananalive (Post 1864440)
In the custom output are you using $qo[4]?

Hi, very sorry that little mistake I made. I didn't know they can be different. Now it's working perfectly :). Thank you so much. Hope I could donate to you soon as this is one of my fav mod for vB!

len backus 08-10-2009 09:37 AM

Banana

Thanks, now my life is complete!

TROLL 08-10-2009 04:25 PM

Quote:

Originally Posted by bananalive (Post 1863643)
Does it let the user upload the attachment?

No, it gives them a page explaining that they do not have permission to do that.

|Jordan| 08-10-2009 05:07 PM

It would be great if specific styles can be forced on certain forms so that they always display in one style only. Right now im using htaccess with styleid to do this, but the problem with it is that it also changes the forum style to the form style and its very hard to return it to what i normally use.

Ov3rrun 08-11-2009 07:17 PM

hi bananalive, what about attachment when i select send to email???

Lance Carbuncle 08-12-2009 01:52 PM

Hi,

Can someone check out my form and let me know how to fix an issue I am having. I am using a form for a plant naming registry and have used the Section entry to to place dividing points. When I use a section and follow it by a single line text field question, the question name is inserted right next to the Section title without a space or anything. I would like the next question to be on the next LINE, the way the other questions show up... It is easier to show the results than explain I think.

The text "Cultivar Information" is the section entry, and the text "Cultivar Name" is the single line text entry that follows. You can see that they end up on the same line and I don't know how to fix it. I apologize if this should be an obvious answer, but I am not the most skilled at this stuff.

Thanks

Nysom 08-12-2009 07:01 PM

This is a Rock Star Application!!!!

chrisbeau 08-13-2009 02:49 AM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 1803542)
You could use custom question for this:

PHP Code:

require_once(DIR '/includes/functions_prefix.php');
$prefix_options fetch_prefix_html($form['forumid'], $q["$formbit[id]"], true);
$answer '<select name="q_' $formbit[id] . '" id="q_' $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>'


I used this, it worked at first then for no reason it stopped working. And keeps telling me a choice has'nt been selected and saying this field is compulsory.

Heres the form I created.
Attachment 103178

wmlvb 08-13-2009 08:28 PM

I would like to use the forms in both private and public forums for different things. Is there a way to do this? I only see global setting for all forms. Thanks

Loller 08-14-2009 09:02 PM

My form is creats thread in specific forum. And i have Cyb - Advanced Forum Rules installed.
How i can do, thats form, before creating new thread, will check - is user accepted rules on specific forum or not ?

Help me please..

bananalive 08-15-2009 10:03 AM

Quote:

Originally Posted by Ov3rrun (Post 1865309)
hi bananalive, what about attachment when i select send to email???

vBulletin email function does not support attachments

bananalive 08-15-2009 10:11 AM

Quote:

Originally Posted by wmlvb (Post 1866730)
I would like to use the forms in both private and public forums for different things. Is there a way to do this? I only see global setting for all forms. Thanks

You can set usergroup permission to view/submit forms for each form when editing form.

bananalive 08-15-2009 10:12 AM

Quote:

Originally Posted by Loller (Post 1867495)
My form is creats thread in specific forum. And i have Cyb - Advanced Forum Rules installed.
How i can do, thats form, before creating new thread, will check - is user accepted rules on specific forum or not ?

Help me please..

I'm not familiar with that mod, you'll have to ask the mod author how to integrate it.

bananalive 08-15-2009 10:14 AM

Quote:

Originally Posted by chrisbeau (Post 1866248)
I used this, it worked at first then for no reason it stopped working. And keeps telling me a choice has'nt been selected and saying this field is compulsory.

Heres the form I created.
Attachment 103178

'
If you wish people to be able to select 'no prefix' then you'll have to turn off compulsory question

bananalive 08-15-2009 10:21 AM

Quote:

Originally Posted by Lance Carbuncle (Post 1865852)
Hi,

Can someone check out my form and let me know how to fix an issue I am having. I am using a form for a plant naming registry and have used the Section entry to to place dividing points. When I use a section and follow it by a single line text field question, the question name is inserted right next to the Section title without a space or anything. I would like the next question to be on the next LINE, the way the other questions show up... It is easier to show the results than explain I think.

The text "Cultivar Information" is the section entry, and the text "Cultivar Name" is the single line text entry that follows. You can see that they end up on the same line and I don't know how to fix it. I apologize if this should be an obvious answer, but I am not the most skilled at this stuff.

Thanks

Add \r\n at the end of Section bbcode
\r\n is equivalent of new line so if you add it twice then you'll get two line break.

TaMpE 08-15-2009 10:26 AM

hi bananalive, I have a question. Do you know how I can have a custom question like this? Either single text field or multi-text field.

https://vborg.vbsupport.ru/external/2009/08/15.png

https://vborg.vbsupport.ru/external/2009/08/16.png

chrisbeau 08-15-2009 12:57 PM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 1867786)
'
If you wish people to be able to select 'no prefix' then you'll have to turn off compulsory question

You've read my question wrong or I explained it badly eitherway, I want them to select it and it is compulsory. But even when you do select a prefix it is saying that you did not, this happens whether I make it required or not in the forum settings.

Top of image is the unsubmitted form, bottom is what happens once I press submit.

Attachment 103270

So when you pick a prefix it acts as if you havent basically.

hostnetric 08-15-2009 01:18 PM

Installed

Great Hack

sdavis2702 08-16-2009 01:13 PM

This is an awesome addition to my site. Thank you so much for this.

nascartr 08-18-2009 03:57 AM

Hey bananalive, I have a question. I am using a form for a trade manager. User A fills out the form and has the field to put User B which is the person they are trading with. I know that I can have the form PM'd to User A but I'd also like to be able to have it PM'd to User B that was entered into the form field. Is that a possiblity? Thanks!

macc 08-18-2009 10:35 AM

1 Attachment(s)
Helllo!

Have one problem - when some click on forms in quick links - it show one picture from attachement .. and this picture is from slideshow which should be visible for guests only!
send pm to you - and hope that you have some solution or fix

nice product and works fine ...

regards

macc

AWJunkies 08-20-2009 05:53 PM

AWESOME MOD great work.

FOUR requests which I added to software but I know it would help others.

#1 Add a hook after the insert into database:
PHP Code:

    if ($form['action'] && in_array(5$form['action']) AND $complete)
    {
        
$sdata serialize($qo);
        
$db->query_write("INSERT INTO " TABLE_PREFIX "formresults
        (fid, userid, username, time, title, output, sdata)
        VALUES ('"
.$form[fid]."', '".$vbulletin->userinfo['userid']."', '".addslashes($vbulletin->userinfo['username'])."', ".TIMENOW.", '".addslashes($threadtitle)."', '".addslashes($formoutput)."', '".addslashes($sdata)."')
        "
);

    (
$hook $form[afterinsert]) ? eval($hook) : false;

        if (
$form[submitmessage])
        {
            
$errormessage $form[submitmessage];
        }
        else
        {
            
$errormessage "Form was submitted successfully.";
        }
    } 

#2 When posting new thread or post option is selected by default it should send forumid value in the forum html. This is because a lot of mods use forumid value in hooks BEFORE your mod initiates. global_start, global_complete, parse_templates etc and so on.

PHP Code:

$template_hook[form_hidden_fields].='<input type="hidden" name="forumid" value="'.$form[forumid].'" />'

ALTHOUGH you can just put this in the FORM START hook you have but many people might not know this and wondering why some mods are not working on the thread/post the forms are being posted too.

#3 Create a new table to handle who has voted on a form so a LOT more things can be done and compliant with database standards. This can open a lot more possibilities for people.

#4 Add appstatus system it is real easy I added an appstatus column in user table which:
0=no app
1=submitted
2=denied
3=reapply (didnt fill out completely or missed something or need more info from user)
You can have messages or whatever you want per status level. I have a message announcement telling them status on forum index. But that is for my case you can make this fully customizable can PM user status or whatever. Again up to the imagination. This option can also just be included in the form table that i mentioned in 3 which is BEST way to do it. In my case I have a single app and can apply once for this certain reg application system thing. But to make it fully workable to mod you should put this into the table I mentioned above real easy to implement this all.


But man this mod has made life a lot easier. I have even made a social group application system with it along with staff application system along with free account application system when sites are closed to registration.

Again great mod working perfect

Welshy2008 08-22-2009 08:31 PM

TWO Suggestions, If I may.

Or help to do them, rather. :)

1. I have added a field for an address. But when the address is entered and displayed on the forum, it shows as "ADDRESS:the first line of address
Then the second line of address here.

I would like that to be ADDRESS:
1st line of address here
and the rest in line like this
and this
etc.

2. How would I be able to Add a field where the "User" can enter a picture? by just adding their url to the pic Please?
(similar to vB with the function of this feature on the top of the reply text area... https://vborg.vbsupport.ru/)

The above two would be the icing on the cake of a fab product.


Many Thanks.

wmlvb 08-25-2009 12:22 AM

Quote:

Originally Posted by bananalive (Post 1867784)
You can set usergroup permission to view/submit forms for each form when editing form.

Thanks so much!

bananalive 08-26-2009 12:29 PM

Quote:

Originally Posted by nascartr (Post 1869538)
Hey bananalive, I have a question. I am using a form for a trade manager. User A fills out the form and has the field to put User B which is the person they are trading with. I know that I can have the form PM'd to User A but I'd also like to be able to have it PM'd to User B that was entered into the form field. Is that a possiblity? Thanks!

Add in Form Hook: Before submit:
PHP Code:

$form['pmrec']= $qo[152]; 

where 152 is the question hash of the question with the username of the member that the pm should go to.

bananalive 08-26-2009 12:33 PM

Quote:

Originally Posted by Welshy2008 (Post 1872300)
TWO Suggestions, If I may.

Or help to do them, rather. :)

1. I have added a field for an address. But when the address is entered and displayed on the forum, it shows as "ADDRESS:the first line of address
Then the second line of address here.

I would like that to be ADDRESS:
1st line of address here
and the rest in line like this
and this
etc.

2. How would I be able to Add a field where the "User" can enter a picture? by just adding their url to the pic Please?
(similar to vB with the function of this feature on the top of the reply text area... https://vborg.vbsupport.ru/)

The above two would be the icing on the cake of a fab product.


Many Thanks.

1. Edit Form Add "\r\n" to end of Question BBcode

2. You could use custom output.

bananalive 08-26-2009 12:38 PM

Quote:

Originally Posted by macc (Post 1869700)
Helllo!

Have one problem - when some click on forms in quick links - it show one picture from attachement .. and this picture is from slideshow which should be visible for guests only!
send pm to you - and hope that you have some solution or fix

nice product and works fine ...

regards

macc

I can't see it? Must have fixed it

Welshy2008 08-26-2009 04:54 PM

Quote:

Originally Posted by Welshy2008 (Post 1872300)
TWO Suggestions, If I may.

Or help to do them, rather. :)

1. I have added a field for an address. But when the address is entered and displayed on the forum, it shows as "ADDRESS:the first line of address
Then the second line of address here.

I would like that to be ADDRESS:
1st line of address here
and the rest in line like this
and this
etc.

2. How would I be able to Add a field where the "User" can enter a picture? by just adding their url to the pic Please?
(similar to vB with the function of this feature on the top of the reply text area... http://i586.photobucket.com/albums/s...nsertimage.gif)

The above two would be the icing on the cake of a fab product.


Many Thanks.

Quote:

Originally Posted by bananalive (Post 1874713)
1. Edit Form Add "\r\n" to end of Question BBcode

2. You could use custom output.

1. \r\n are already there Mate. (If I add another one to it, it will be the same space on all answers - whereas I would just like it for the Address field).

2. What exactly do I need to do Please? What do I enter in there etc? As you can tell, my experienced is very limited. :(


Did you get my PM?


Many Thanks.

macc 08-26-2009 06:19 PM

Quote:

Originally Posted by bananalive (Post 1874717)
I can't see it? Must have fixed it

no ...it is not fixed ... i disabled slideshow (which takes pictures from one thread) and now forms works and there is no picture on formslist.

i disable plugin for slideshow ...


reg

macc

DeeperImage 08-26-2009 07:55 PM

I just want to say great mod btw and thank you! I just have a small issue and I'm sure this has already been answer but I can't seem to find an answer in the thread.

I'm using the Email Form only because I want to go to our support group. The form and data comes through fine but the format is just one big block of text.

Example (current format):

Quote:

First Name Billy bob last name thorton company company name here address 4444 love you long time lane etc
I want the email out put to follow the same format as the online form

Example of what I'd like:

Quote:

First Name: Billy Bob
Last Name: Thorton
Company : Compane name here
Address: 555 Love you long time lane
How can I do this? Thank you!

bmckinley 08-27-2009 02:04 AM

Hey Banana,

First - very cool mod. It will make a difference on our forums. Thank you for the work.

Second - VERY COOL MOD!

Third - I am a newb - question: trying to use custom output from a radio button question with three options. When I format as follows:

Code:


Type: {q_2}

The output is:
Quote:

Type: 2
(pulls the question number vs. the radio button selection)

Any ideas????

Oh, and 1 more thing: Cool Mod!!

adamdavidconn 08-27-2009 12:09 PM

Hi
This mod will be great, for a site, but the link in your psot abotu creating/viewing forms (http://your-forum.com/forums/misc.php?do=forms) does not work

Adam


All times are GMT. The time now is 07:56 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.03024 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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