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-03-2010 03:16 PM

Quote:

Originally Posted by Scooterpig (Post 1973732)
I have this installed and an excellent product and exactly what I need, but for the life of me I can't get it to do what I want it to.

I want it so that the form is available to be viewed and completed by members, but those members not having permission to edit, add, update, install .xml etc, like admins can do. I've tried all different settings in options and I either get it that I can see all options as a member or none at all including not being able to see the form.

Can anyone please help if this is possible and if so what is the right settings?

Thank you..:)

Can View Form List: Everyone

Can Edit Forms: Administrators

Can View Forms: Everyone

When selecting usergroups, it is the highlighted ones which you will be enabling the feature for. use ctrl to select more than one usergroup.

bananalive 02-03-2010 03:18 PM

Quote:

Originally Posted by noknowledgenoho (Post 1973793)
Ok, so I am not at all technical.

My problem is that once I've gone through the process of creating a form I get an error message tat the top of the screen which says:

Parse error: syntax error, unexpected T_STRING in /var/websites/sunnylab/www/community/misc.php(89) : eval()'d code(830) : eval()'d code on line 1

There are styling issues with my form but it actually does work. So ca anyone tell me what this message means and what I can do about it?

Many thanks for any help received.

This will be occuring due to either incorrect code in form hooks or a custom question

Do you have anthing in the form hook boxes? (They are mid way down the edit form page)

Second do you have any custom questions?

All of them should contain php code, invalid php code in any of the above would code error message you have listed.

adamdavidconn 02-03-2010 07:39 PM

thanks for your support bl.

Ok, thanks for the code to add secondry usergroup, it works well. However, how do you make ti that the submitter of the form is added, rather than a numbered user. For example, you wrote
PHP Code:

/*alter this userid*/
$a_userid 2;
$userinfo fetch_userinfo($a_userid);
if (empty(
$user['membergroupids']))


I tried adding {userid} but that didnt work. That was a bad guess, its not php :P

What would you put to fetch the id of the person who filled in the form?

valendono 02-03-2010 08:27 PM

dear banana,

thanks, [img] its worked now, but[list] not yet..

bananalive 02-03-2010 09:08 PM

Quote:

Originally Posted by adamdavidconn (Post 1974142)
thanks for your support bl.

Ok, thanks for the code to add secondry usergroup, it works well. However, how do you make ti that the submitter of the form is added, rather than a numbered user. For example, you wrote
[PHP.../PHP]
I tried adding {userid} but that didnt work. That was a bad guess, its not php :P

What would you put to fetch the id of the person who filled in the form?

Use this:

Form Hook: Before Submit
PHP Code:

if ($complete)  
{
$userinfo $vbulletin->userinfo;
if (empty(
$userinfo['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();



Martyh 02-04-2010 12:32 AM

Hi, Is there any possibility that this ( the form ) will / is or can become a widget that we can put into the CMS of 4.0 suite ?

Scooterpig 02-04-2010 02:12 AM

Quote:

Originally Posted by bananalive (Post 1974001)
Can View Form List: Everyone

Can Edit Forms: Administrators

Can View Forms: Everyone

When selecting usergroups, it is the highlighted ones which you will be enabling the feature for. use ctrl to select more than one usergroup.

Thanks for that and as I have it but still can't see the form as a member but can as admin...:(

TheSupportForum 02-04-2010 02:23 AM

Quote:

Originally Posted by bananalive (Post 1973406)
Fixed vBulletin editor issue with attached file.

Username is already held in hidden field.

IP address could be added as hidden field (there are 3 hiddenfields added into template and a template hook) or add it to the end of the form output

Add to bottom of 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]; 



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

PeteBlume 02-04-2010 07:32 AM

Hi,

first I have to say: a great mod.

Now to my question: Is the any possibiliity to export the form resulst for example as xls?

bananalive 02-04-2010 11:35 AM

Quote:

Originally Posted by PeteBlume (Post 1974493)
Hi,

first I have to say: a great mod.

Now to my question: Is the any possibiliity to export the form resulst for example as xls?

No

But you can highlight the table and then paste it into excel.


All times are GMT. The time now is 11:14 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.02684 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)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