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-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


All times are GMT. The time now is 10:10 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.02630 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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