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)

deeshay 06-10-2010 05:10 PM

Any ideas how I can make this post in a certain forum based on an option selected from a dropdown box?

Example:

Dropdown box with options - PC, Mac, Linux

If you select PC it would post the form output in a PC forum and vice versa.

your24hourstore 06-10-2010 05:24 PM

you can do it its more complicated than i am .

its going to be some code in before submit hook probably.

i think i have seen the code posted in here way back there somewhere :>

bananalive 06-12-2010 05:38 PM

Quote:

Originally Posted by deeshay (Post 2051639)
Any ideas how I can make this post in a certain forum based on an option selected from a dropdown box?

Example:

Dropdown box with options - PC, Mac, Linux

If you select PC it would post the form output in a PC forum and vice versa.

Form Hook: Before Submit:
PHP Code:

if ($qo['89'] == 1)
{
/* first dropdown option forumid*/
$form['forumid'] = 87;
}
elseif (
$qo['89'] == 2)
{
/* second dropdown forumid*/
$form['forumid'] = 88;
}
elseif (
$qo['89'] == 3)
{
$form['forumid'] = 89;


where 89 is the question hash

bananalive 06-12-2010 05:40 PM

1 Attachment(s)
Quote:

Originally Posted by khet (Post 2051393)
Thank you.
I hope you will make update soon :)

Attache is version with it included so you don't have to wait.

bananalive 06-12-2010 05:43 PM

Quote:

Originally Posted by Cedric_FP (Post 2051405)
I want to use the following code below which creates a new thread to also create 2 or 3 replies in the same thread with the same form output.

What code would I need to add? I've tried adding the code which adds a new post when choosing that option in the edit forms page, but that doesn't work (yet returns no errors).

Thanks

You won't be able to create a new reply to a thread the same form creates as it won't have been created before the reply is being generated.

Veer 06-12-2010 06:41 PM

Quote:

Form Description text is always BOLD, Please fix it.
Quote:

that will be the css styling
So how do I fix it?

promoprompt 06-12-2010 07:29 PM

Hello Banalive,

great tool, I have a question.
If I use Easy Forms to create new Threads in a Forum, an inserted Picture will always inserted as an attachment.

Could you please insert an option to choose as Attachment, or as an Image direktly to the thread (not as Thumbnail)?
Inserted at the cursorposition.

Second, if I use the form to add a post to an existing Thread, how about a select button for the thread/forum instead of the ID number of the Forum.

Third: is it possible to have a select Button, for the users posts in an specific forum? Thats helpfull to edit users posts, without to use the forum itself.

The sequence is the importance for me. The first is urgent, if you are able to help quick.

Thanks in advance.

Dragonsys 06-13-2010 03:37 AM

This is awesome and just what I am needing for one of my customer's vBulletin site.

I have one request.

You currently have this with the ability to format the output of the form, but would it be possible to be able to format the display of the form itself?

For example:
I have a form requesting a mailing address, which has 4 questions related to it (Street, City, State, Zip). Currently this form would have each question on a separate line, but it would be nice if the City, State & Zip were on the same line.

Input Current:
{qn_1}: {qo_1}
{qn_2}: {qo_2}
{qn_3}: {qo_3}
{qn_4}: {qo_4}

Wanted Input:
{qn_1}:
{qo_1}
{qo_2}, {qo_3} {qo_4}

Similar to how you can customize the output display.

Also, the ability to have other user information (such as email) automatically entered from their vBulletin profile, such as how you can get their vb username inserted, would be absolute icing!

vilhiem 06-13-2010 06:26 AM

Quote:

Originally Posted by bananalive (Post 2050469)
Form Hook: Before Submit:
PHP Code:

$qo[4] = $qo[4]+1;
$q[4] = $q[4]+1

4 is the question hash

Thanks!

And would I be correct to assume that I could use more complex calculations ... for instance if I want to show % difference between two values ...?

sean-zigster 06-14-2010 05:08 AM

is there anyway we can make the Columns list alphabetically ? by clicking a button ?


All times are GMT. The time now is 06:45 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.05404 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
  • (2)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
  • (5)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