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)

TheSupportForum 02-02-2010 06:06 AM

BUG: when using Field using vBulletin editor

there is no title above the box so users dont know what the question is

would like to see:

Field that already holds there username
fields that holds the users IP Address - useful to stop spammers

s810car 02-02-2010 06:35 AM

Thank you SOO much for porting this, I was dreading having to port my forms over manually :D As soon as I am able to get my PayPal account set (economy has definitely hurt the funds I do get from my forum), donation heading your way!

You should seriously consider adding a lot more features to assist programming the forms for people with less php/mySQL knowledge and make it a commercial mod, it definitely has the potential. I have used this mod for all sorts of functional code for my site and it has really became a major part of the backbone to my site's system. Thanks again! Installing and nominating MOTM :D

imagirlgeek 02-02-2010 02:35 PM

Quote:

Originally Posted by simonhind (Post 1972822)
BUG: when using Field using vBulletin editor

there is no title above the box so users dont know what the question is

What I did for this was added a 'Section' field right above it. And then used Bold tags on the Section text. It worked really well.

imagirlgeek 02-02-2010 02:39 PM

Quote:

Originally Posted by Martyh (Post 1972721)
Hi BL, and thanks for continuing your work on this mod, it's a great one.

I am wondering if I can have the multi-line box that appears for the user to write in, default to a larger size automatically , please let me know if that is possible. I am figuring I need to click "increase" about three times to get to the size I would want. So I would like it to just default to that for the user.

Thanks

Mark

You can do this now. Just click edit on your Multi-line box. You'll see options to increase the 'Text area rows' and 'Text area columns'.

bananalive 02-02-2010 09:13 PM

1 Attachment(s)
Quote:

Originally Posted by simonhind (Post 1972822)
BUG: when using Field using vBulletin editor

there is no title above the box so users dont know what the question is

would like to see:

Field that already holds there username
fields that holds the users IP Address - useful to stop spammers

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]; 


bananalive 02-02-2010 09:15 PM

Quote:

Originally Posted by valendono (Post 1972465)
Hi Banana,

Yea I knew, its only work with bold and size bbcode only.. I attach the screenshoot.. I cant use[list] or [img] on the description..

You can enable [img]:
AdminCP -> Settings-> vBulletin Options -> BB Code Settings -> Allow [IMG] Code in Non Forum Specific Areas -> Yes

Otherwise for the list you will need another modification to enable list bbcode in non-forum areas.

bananalive 02-02-2010 09:18 PM

1 Attachment(s)
Quote:

Originally Posted by Sarcoth (Post 1972357)
If I do the question in html, it looks fine on the editform page, but not on the actual form. If I do the question in bbcode, it looks fine on the actual form, but not on the editform page.

Corrected in attached product file. BB Code in the question parses on both pages properly now

bananalive 02-02-2010 09:38 PM

Quote:

Originally Posted by adamdavidconn (Post 1972350)
ok, thanks. So I guess the code I need to edit is
PHP Code:

if ($complete)  

$userinfo $vbulletin->userinfo
$user['usergroupid'] = 4
if (empty(
$user['usergroupid'])) 

$user['usergroupid'] = 2


Could you explain how I would configure this. The numbers at the end reference the usergroup id, but what do the 2 variables corrolate to?

EDIT: I worked out that
PHP Code:

$user['usergroupid'] = 4

moves a user to a new usergroup. However, I am unsure how to add a additional usergroup, and not make them change their primary

Yes that would only change the primary usergroup, use the following code to add a secondary usergroup.

You will need to change $a_userid to the desired userid of the user you want to change the usergroup of.

Also you will need to change the two occurances of 4 to the desired additional usergroup's usergroupid.

Form Hook: Before Submit
PHP Code:

if ($complete)  
{
/*alter this userid*/
$a_userid 2;
$userinfo fetch_userinfo($a_userid);
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']);
$userdata->save();



Scooterpig 02-03-2010 07:32 AM

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..:)

noknowledgenoho 02-03-2010 09:29 AM

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.


All times are GMT. The time now is 07:04 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.03333 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)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
  • (3)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