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)

Supramania 04-05-2010 04:19 AM

Hi,

I responded back in post #338

No help for my issue at all?

If I export the form xml and reimport it into a new form I have the same issue.

I have tried upgrading to 4.0.7 - no change.

Cadellin 04-05-2010 10:19 AM

Would it be possible to have a DD/MM/YYYY date format option? Many of my users are entering the date the incorrectly because we're not used to the US format :)

Thanks

munsonfan15 04-05-2010 02:04 PM

I was looking to install this for members to rate classes given by other members. Before I do this I was making sure it is capable of what I want to do.

I want to be able to have a link in a certain user groups postbit where when you click that link and persons user name (the one that made that post) will become one of the variable answers. When the peson fills out the form the title of the thread that is created will be of that members name (the variable).

Example:

Im in User A's post - I click on the link, fill out the form and when the thread is created the title of the form is 'User A etec etc etc'

Can this be done and if so how?

**** I want to change this - Actually I will have the link go to a form but i would like one of the variables by a drop down list of all the members in a first and seconday user group.

drainpan 04-05-2010 11:39 PM

1 Attachment(s)
I love this thing... it is the greatest other than the minor problem I am having. I read through this entire thread and didn't see anyone else having the same problem so it must be something I am doing wrong.

I create my form with 14 questions and it is set to make a thread in a specific forum and it does that.... however it doesn't display all of the questions and answers... only the first 4 and they are a bit strange as you can see from the screenshots...

As you can see... I have the Custom Form Output set to show all of the questions and the answers but the first one shows up fine then there is a crap load of space before 2, 3 and 4 show and 5-14 don't show at all.

any ideas?

jaryx 04-06-2010 07:17 AM

How can I do something like that?:

if form posted by normal user, then post on threadid = X
if form posted by vip, then post on threadid = Y

bananalive 04-06-2010 09:58 AM

Quote:

Originally Posted by jaryx (Post 2016669)
How can I do something like that?:

if form posted by normal user, then post on threadid = X
if form posted by vip, then post on threadid = Y

Add the following php code to Form Hook: Before Submit:
PHP Code:

if ($vbulletin->userinfo['usergroupid']==6)
{
$form['threadid'] = 2;
}
else
{
$form['threadid'] = 3;


Assuming 6 is vip usergroup

bananalive 04-06-2010 10:00 AM

1 Attachment(s)
Quote:

Originally Posted by drainpan (Post 2016504)
I love this thing... it is the greatest other than the minor problem I am having. I read through this entire thread and didn't see anyone else having the same problem so it must be something I am doing wrong.

I create my form with 14 questions and it is set to make a thread in a specific forum and it does that.... however it doesn't display all of the questions and answers... only the first 4 and they are a bit strange as you can see from the screenshots...

As you can see... I have the Custom Form Output set to show all of the questions and the answers but the first one shows up fine then there is a crap load of space before 2, 3 and 4 show and 5-14 don't show at all.

any ideas?

I think you will be using the wrong question hashes for custom output - see image below.

https://vborg.vbsupport.ru/external/2010/04/61.jpg

bananalive 04-06-2010 10:05 AM

Quote:

Originally Posted by munsonfan15 (Post 2016176)
I was looking to install this for members to rate classes given by other members. Before I do this I was making sure it is capable of what I want to do.

I want to be able to have a link in a certain user groups postbit where when you click that link and persons user name (the one that made that post) will become one of the variable answers. When the peson fills out the form the title of the thread that is created will be of that members name (the variable).

Example:

Im in User A's post - I click on the link, fill out the form and when the thread is created the title of the form is 'User A etec etc etc'

Can this be done and if so how?

**** I want to change this - Actually I will have the link go to a form but i would like one of the variables by a drop down list of all the members in a first and seconday user group.

Yes, it is possible with Easy Forms

For dropdown list of members, create a custom question with following php code:
PHP Code:

$answer .= '<select name="'.$formbit[id].'">';
$members $db->query_read("SELECT * FROM " TABLE_PREFIX "user
WHERE usergroupid = 2
ORDER BY username ASC"
);
    while(
$row $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if (
$row[username] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>'

Change 2 to the desired usergroupid

bananalive 04-06-2010 10:07 AM

Quote:

Originally Posted by Cadellin (Post 2016078)
Would it be possible to have a DD/MM/YYYY date format option? Many of my users are entering the date the incorrectly because we're not used to the US format :)

Thanks

When creating the date question you have the option for date format

bananalive 04-06-2010 10:09 AM

Quote:

Originally Posted by Supramania (Post 2015958)
Hi,

I responded back in post #338

No help for my issue at all?

If I export the form xml and reimport it into a new form I have the same issue.

I have tried upgrading to 4.0.7 - no change.

I've tried importing your forms and they work for me

There is nothing in Easy Forms code which limits the strings so I've got no idea what could be causing it.


All times are GMT. The time now is 09:13 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.04267 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)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