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)

Scooterpig 02-05-2010 06:38 PM

Quote:

Originally Posted by bananalive (Post 1975415)
Looking at your screenshot that all looks fine.

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

Mate thank you so much i missed that section and that has fixed it all up, thank you very much..:)

jimfries 02-05-2010 07:26 PM

Excellent Banana! That resolved so much. I'm afraid I just don't know enough php to solve that simple little thing, arg.

One more thing, is it possible to make the text box entries do a line return (not have the answer right after the question). So single line box's would have the answers right after the question (which I have now), but multi-line questions will have their answers under the question. Its just a cosmetics thing for me. I would like to do a line return after the answer for multi-line questions also.

God this is really an amazing addon brother, it looks GREAT...

jimfries 02-05-2010 10:54 PM

I was looking at the post in the forums, and my OCD kicked in. Do you know if its possible to write bbcode that will make the forum post into tables? So they are all even, kind of like tabing forward so the Answers are all started at the same place down the page.

I know it may be a silly thing to ask, I was just curious.

bananalive 02-06-2010 02:47 PM

Quote:

Originally Posted by jimfries (Post 1975689)
I was looking at the post in the forums, and my OCD kicked in. Do you know if its possible to write bbcode that will make the forum post into tables? So they are all even, kind of like tabing forward so the Answers are all started at the same place down the page.

I know it may be a silly thing to ask, I was just curious.

You would need a BB code [table] for that, not sure if one is avaliable for vB 4.

bananalive 02-06-2010 02:48 PM

Quote:

Originally Posted by jimfries (Post 1975586)
Excellent Banana! That resolved so much. I'm afraid I just don't know enough php to solve that simple little thing, arg.

One more thing, is it possible to make the text box entries do a line return (not have the answer right after the question). So single line box's would have the answers right after the question (which I have now), but multi-line questions will have their answers under the question. Its just a cosmetics thing for me. I would like to do a line return after the answer for multi-line questions also.

God this is really an amazing addon brother, it looks GREAT...

no.

you could always try a custom output

bananalive 02-06-2010 02:48 PM

Quote:

Originally Posted by Scooterpig (Post 1975564)
Mate thank you so much i missed that section and that has fixed it all up, thank you very much..:)

glad it working for you now.

bananalive 02-06-2010 02:57 PM

Quote:

Originally Posted by Sarcoth (Post 1975515)
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!

Woops it shouldn't have removed all other membergroups, there was a little mistake in the code :o. But if thats what you wanted then that alright :)

PHP Code:

if ($complete)  
{
$user $userinfo $vbulletin->userinfo;
$newmembergroupid '18';
$display_usergroup $user['membergroupids'] = $newmembergroupid;

$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids'$user['membergroupids']);
$userdata->set_usertitle
$user['customtitle'] ? $user['usertitle'] : ''
false
$display_usergroup
(
$user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true false
(
$user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true false 
); 
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$vbulletin->userinfo['displaygroupid'] = $newmembergroupid
$userdata->save();



Veer 02-06-2010 03:25 PM

Hi bananalive,

I want to change the Form width, currently it is 750px, I need to change it to 950px

Sarcoth 02-07-2010 04:42 AM

Quote:

Originally Posted by bananalive (Post 1976061)
Woops it shouldn't have removed all other membergroups, there was a little mistake in the code :o. But if thats what you wanted then that alright :)

PHP Code:

if ($complete)  
{
$user $userinfo $vbulletin->userinfo;
$newmembergroupid '18';
$display_usergroup $user['membergroupids'] = $newmembergroupid;

$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set('membergroupids'$user['membergroupids']);
$userdata->set_usertitle
$user['customtitle'] ? $user['usertitle'] : ''
false
$display_usergroup
(
$user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true false
(
$user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true false 
); 
$vbulletin->userinfo['membergroupids'] = $user['membergroupids'];
$vbulletin->userinfo['displaygroupid'] = $newmembergroupid
$userdata->save();



That didn't work either. It's still removing the user from all membergroups and it didn't successfully set the user to the new displaygroup either. My goal is to have them removed only from one group (17).

Is there a way to use one of the questions as a variable for this? I'd like to enter an userID in one of the questions, let's say question 1. When I enter that userID and submit, it will specifically remove that user from group 17 and and them to 18. As well as update their displaygroup to 18.

Cadellin 02-07-2010 07:26 PM

Fantastic mod - this is exactly what I've been hoping for!

Two queries though:

1. Guests get the following message "The string you entered for the image verification did not match what was displayed." - however no image verification is displayed.

2. I have a lot of questions in my form so could you add the option to have horizontal scrolling of the results table?

Thanks


All times are GMT. The time now is 04:40 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.02851 seconds
  • Memory Usage 1,772KB
  • 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
  • (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