vb.org Archive

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

finalcut 03-03-2010 11:33 PM

Hi,

I used the form to subscribe a film to a film event. It works graet!!!!

Now I have some questions:

All the form data (several film entries) is stored in the database.

How can I handover a parameter-value from an URI to the form so it gets the formtitle (filmtitle) form a thread title?

In order to reedit the stored data, can I fill the form fields with data from the database? If yes, how?

Martyh 03-04-2010 11:51 PM

Quote:

Originally Posted by bananalive (Post 1972263)
No need for a query for that, it is already cached in vBulletin userinfo

1. Create 'Custom' question
2. Use following php Code:

PHP Code:

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


I'm using that code and it works fine, just wondering if the box that it appears in can be larger, can the size of that box be controlled on the form ? Columns and rows.

Dubi 03-05-2010 11:58 AM

Amazing mod bananalive, for sure. :up: Installed and nominated.

Is there a way to auto-close the thread output of a form?

I have seen that there's a plugin called "Force thread close", but setting it to active don't close the new thread created by the form.

Can you help me on this?

Thank you in advance.

bananalive 03-05-2010 02:20 PM

Quote:

Originally Posted by Martyh (Post 1997406)
I'm using that code and it works fine, just wondering if the box that it appears in can be larger, can the size of that box be controlled on the form ? Columns and rows.

If you use a <textarea> then you can add in columns and rows, like this:

PHP Code:

$answer '<textbox columns="40" rows="3" class="textbox" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $vbulletin->userinfo[field8] . '" />'


bananalive 03-05-2010 02:26 PM

Quote:

Originally Posted by Dubi (Post 1997714)
Amazing mod bananalive, for sure. :up: Installed and nominated.

Is there a way to auto-close the thread output of a form?

I have seen that there's a plugin called "Force thread close", but setting it to active don't close the new thread created by the form.

Can you help me on this?

Thank you in advance.

Use the following code in Form Hook: Before Submit:
PHP Code:

$closed=true


bananalive 03-05-2010 02:27 PM

1 Attachment(s)
Quote:

Originally Posted by Selcor (Post 1995417)
With the skin Default don't work ... :erm:

Try importing attached product file overwriting current one.

Dubi 03-05-2010 03:19 PM

Quote:

Originally Posted by bananalive (Post 1997799)
Use the following code in Form Hook: Before Submit:
PHP Code:

$closed=true


Works like a charm :)

Thanks a lot for your support :up:

Martyh 03-05-2010 05:31 PM

Quote:

Originally Posted by bananalive (Post 1997795)
If you use a <textarea> then you can add in columns and rows, like this:

PHP Code:

$answer '<textbox columns="40" rows="3" class="textbox" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $vbulletin->userinfo[field8] . '" />'


I can't get that to work. It doesn't show up at all.

niko236 03-05-2010 05:46 PM

Hi,
Great mod, but when i put "0" in a field, i have a "-" in my thread, how can i do, to display "0" in the thread ?

Selcor 03-05-2010 09:41 PM

It works perfect the 4.0.4, thank you very much!. :D

Edit: Before was wrong visualized by a mistake of mine, i used wrong the option "Form Hooks".


All times are GMT. The time now is 07:30 PM.

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.02354 seconds
  • Memory Usage 1,755KB
  • 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
  • (5)bbcode_php_printable
  • (6)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