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)

bananalive 02-04-2010 11:36 AM

Quote:

Originally Posted by simonhind (Post 1974372)
thank you, but still not sure where to put this, also i think that this should be implented if possible

for now please help me with this

Click Edit Form then scroll down to Form Hooks

Add it to the textbox 'Form Hook: Before Submit'

PHP Code:

$ip $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" $form[pstq];
$formoutput .= $form['prea'] . $ip $form[psta]; 


freexav 02-04-2010 11:58 AM

hi there,

this mod looks awesome!
I would like to know if ever you could implement it with the following function :
- being able to select the values of a drop-down dynamically from a table in the database
- dynamically update the next drop down menus according to the previous dropdown choice of the user.
For instance, imagine a member choses its country from a drop down list. And then, when he has to chose for its state, only his country's states will appear in the state dropdown.

Best regards and keep up the good work!
very nice mod!

jimfries 02-05-2010 01:00 AM

Amazing Mod, and is just what I need for my World of Warcaft Guild website. We are using this as a recruitment form for new and interested players to apply to our guild.

My problem: When the forum is submitted, it is quite long, so there are 20 some questions listed. Many of these are single line question - answers, but are listed in the forum in 2-3 lines.

My request: Is it possible to have an option, or is there a way, to make all one line question - answers appear on just one line when submitted in the forums?

-----------------
My Problem: When I use a Section, it appears on the same line as the first question after the Section.

Solution: Unknown.

Alex@Mk3OC 02-05-2010 07:51 AM

Excellent mod, it has an issue with vBAdvanced Beta 2m but I'm pretty sure it's an issue with vBadvanced and not this mod so have reported it over there

Scooterpig 02-05-2010 09:01 AM

1 Attachment(s)
Ok I'm still having viewing permissions issues. Here is a pic of my settings as instructed and as an admin I can see the 1 form I have no worries, but if I log in as a member, the Forms link is there but when I go to the page it's showing as no forms.

What am I doing wrong please?

denman75 02-05-2010 10:44 AM

one of the best mods

*nominated

one question ,is there a way to delete the Form Results Table
al the test stats remain in the database ,or do i have to trash the table manual in mysql?

bananalive 02-05-2010 01:45 PM

Quote:

Originally Posted by denman75 (Post 1975329)
one of the best mods

*nominated

one question ,is there a way to delete the Form Results Table
al the test stats remain in the database ,or do i have to trash the table manual in mysql?

Next to each result on Form Results there is a delete button.

bananalive 02-05-2010 01:47 PM

Quote:

Originally Posted by Scooterpig (Post 1975277)
Ok I'm still having viewing permissions issues. Here is a pic of my settings as instructed and as an admin I can see the 1 form I have no worries, but if I log in as a member, the Forms link is there but when I go to the page it's showing as no forms.

What am I doing wrong please?

Looking at your screenshot that all looks fine.

If you go to Edit Form, scroll down to Form Permissions, have you changed anything?

bananalive 02-05-2010 01:48 PM

Quote:

Originally Posted by jimfries (Post 1975109)
Amazing Mod, and is just what I need for my World of Warcaft Guild website. We are using this as a recruitment form for new and interested players to apply to our guild.

My problem: When the forum is submitted, it is quite long, so there are 20 some questions listed. Many of these are single line question - answers, but are listed in the forum in 2-3 lines.

Edit Form -> Answer BB code
First box: [I]
Second box: [/I]\r\n
Quote:

Originally Posted by jimfries (Post 1975109)
My request: Is it possible to have an option, or is there a way, to make all one line question - answers appear on just one line when submitted in the forums?

Quote:

Originally Posted by jimfries (Post 1975109)
-----------------
My Problem: When I use a Section, it appears on the same line as the first question after the Section.

Solution: Unknown.

On Edit Form page, add to the end of the right hand box of 'Section BB code' add \r\n

Sarcoth 02-05-2010 05:12 PM

Quote:

Originally Posted by bananalive (Post 1974207)
Use this:

Form Hook: Before Submit
PHP Code:

if ($complete)  
{
$userinfo $vbulletin->userinfo;
if (empty(
$user['membergroupids']))
{
/*alter this number below*/
$user['membergroupids'] = '4';
} else {
/*alter this number below, but leave the comma*/
$user['membergroupids'] .=  ',4';
}
$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids'$user['membergroupids']);
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$userdata->save();



Very nice. I got this working without any problems. I notice that it removes the userid from all membergroups and then just adds them to the one. If I know the membergroup id, can I remove them from just one and add them to the other. For example, when they submit this form, I'd like to remove them from 17 and add them to 18.

Also, is there a way for me to update their "Display Usergroup" to the usergroup (18) they are added to? I've done coding with membergroups before, but I've never seen anything update the display part.

Fun stuff, thanks!


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