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 05-24-2010 08:50 PM

Quote:

Originally Posted by riskofficer (Post 2038781)
small bug (please see attached picture)

I've removed blank answers from poll result

bananalive 05-24-2010 08:55 PM

Quote:

Originally Posted by HolyKiller (Post 2027219)
Hi,

can anyone help me how to use that template hook in form before submit? I want to add some php confrim dialog when user click on "Submit". So for example user need to accept custom rules by clicking on "YES" button and form will be sent, otherwise nothing happend (stay on form page).

Thanks :)

Holy

Quote:

Originally Posted by HolyKiller (Post 2039063)
Can anyone help me with this please?

THX

Form Hook: Before Submit:
PHP Code:

if ($q[25]!=1)
{
$complete false;
$inputerror[25] = "Not accepted rules";


replace 25 with the question hash

bananalive 05-24-2010 08:56 PM

Quote:

Originally Posted by riskofficer (Post 2038714)
I still interesting in this, may be community will agree with me? :) I think first page of Forms page have to be more informative, include statistics and help about forms.



This will bring forms on new level, as I think :)


Another suggestion is to have different permissions for different forms. This thing is very demanded for me!



And the last but not least, is Form Results Statistics, for example:
who submitted answers and how many answers,
how many views have form,
who viewed it and how many times,
I don't know, for the beggining this is enough, at least we will have the place where we can see Form Results Statistic :)


And big respect to you! Thank you! Your mod is awesome!

Excuse my English please :)

Added forms views and number of form results in latest version

riskofficer 05-25-2010 05:06 AM

1 Attachment(s)
Small bug (tags in excel export)

bananalive 05-25-2010 03:14 PM

1 Attachment(s)
Quote:

Originally Posted by riskofficer (Post 2043018)
Small bug (tags in excel export)

Should be fixed in attached file. I won't release a separate version just for this one change

riskofficer 05-25-2010 03:29 PM

Quote:

Originally Posted by bananalive (Post 2043211)
Should be fixed in attached file. I won't release a separate version just for this one change

Thank you, but this patch does not work, everything are messed up in export after apply.

rfsforums 05-25-2010 05:48 PM

please tell me if I understand this correctly. I want to move the current users from user group 25 to user group 26 once they have submitted the form. using the following form hook, before submit will accomplish this?

PHP Code:

if ($complete)   

/*replace 18 with choosen usergroupid you want to add them to*/ 
$newmembergroupid '26'
$user['membergroupids']=explode(',',$user['membergroupids']); 
foreach(
$user['membergroupids'] AS $mi => $mii

/*replace 17 with usergroupid you want to remove them from*/ 
if ($mii==25

unset(
$user['membergroupids'][$mi]); 


$user['membergroupids'][]=$newmembergroupid
$display_usergroup $newmembergroupid
$user['membergroupids']=implode(',',$user['membergroupids']); 
$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD); 
$userdata->set_existing($userinfo); 
$userdata->set('membergroupids'$user['membergroupids']); 
$userdata->set_usertitle
        
$userinfo['usertitle'], 
        
true
        
$vbulletin->usergroupcache["$newmembergroupid"], 
        
false
        
true 
); 
$userdata->save();  


Many Thanks!

HolyKiller 05-25-2010 06:04 PM

Quote:

Originally Posted by bananalive (Post 2042860)
Form Hook: Before Submit:
PHP Code:

if ($q[25]!=1)
{
$complete false;
$inputerror[25] = "Not accepted rules";


replace 25 with the question hash

Thanks, i mean something elste, but this is good too :)

BTW: I mean ... user fill form, click on [Submit] button and PHP warning popped up with Text like "Do you accept the rules?" and [Yes] / [No] choice. Click on "Yes" - submit form, Click on "No" - nothing happend, just back on form (php warn disappear).

But thanx, your script is usefull for me too ;)

your24hourstore 05-25-2010 09:49 PM

1 Attachment(s)
OK i made this form but i want it to calculate the answers and rate them
its all in fun and not important , but by golly i want it :)

I have added the form so those who know something can look it over.
works fine except for the vbif and or but stuff

its a test and its basically 1 of 2 choice's but i want to average the score and based on that score i want it to rate the test

so score of 20 7 or highest and the score of 20 1 or lowest answers is lowest

and maybe a middle then i would like it to say in the final results the score that was calculated :D

any help would be rally appreciated ..rofl

Tiryaki 05-26-2010 12:30 AM

Hello,

I've downloaded, installed this addon and created a test form, but I don't now how to open the form automatically in a forum by clicking on the "New Thread" Button.

what must be done?

Thanks in advance.
-Tiryaki


All times are GMT. The time now is 12:46 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.02803 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
  • (3)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
  • (5)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