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

Just released v4.1.1 in first post

4.1.1 (16 May 2010)
- Fixed editing form result issue when 'Form Submit Limit' is reached
- Added additional permissions for editing form results and for deleting form results
- Added permission setting to allow all users the ability to view/edit/delete their result stored in database
- Added option of which question types NOT to display in Form Results Poll
- Enable bbcode parsing on Form Results Poll

riskofficer 05-16-2010 02:01 PM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 2037896)
Fixed in v4.1.1

Thank you very much, now trying to understand how new permissions work :)

BTW still bug in edit (attached)

your24hourstore 05-16-2010 02:11 PM

the user delete from database should be a huge deal.

riskofficer 05-16-2010 03:49 PM

1 Attachment(s)
just a small bug

riskofficer 05-16-2010 04:37 PM

1 Attachment(s)
It might be a bug too (please see attached)

I'm sorry for such big activity, it is because my forum uses your mod very often.

riskofficer 05-16-2010 04:42 PM

I think "Usergroups Allowed to Edit Form Results" and "Usergroups Allowed to Delete Form Results" should have priority on "Users Can Manage their own Form Results"

I mean that if "Users Can Manage their own Form Results" turned on, and groups are chosen in "Usergroups Allowed to Edit Form Results" and "Usergroups Allowed to Delete Form Results", that groups need permissions to edit/delete all entries, not only their own.

Now if "Users Can Manage their own Form Results" turned on, I can't see all entries in Form Results even if I choose my group in "Usergroups Allowed to Edit Form Results" and "Usergroups Allowed to Delete Form Results"

Alisa Lindsay 05-16-2010 07:54 PM

Hello,

Does anyone else have this problem?

When I have to edit the order of the questions in a form and then click display I get sent to a Redirect Page with the following message: Question Deleted, You are being redirected to the form now. (See Screen Shot)

And it hangs there...I have to manually go back to the forum via my bookmark or back arrow.

When I check the form afterward, it has reordered the questions and not deleted any.

I have uninstalled and reinstalled the product (to the server and the XML to my site).

Thanks and Regards,

Alisa

bananalive 05-17-2010 01:03 PM

Quote:

Originally Posted by Alisa Lindsay (Post 2038106)
Hello,

Does anyone else have this problem?

When I have to edit the order of the questions in a form and then click display I get sent to a Redirect Page with the following message: Question Deleted, You are being redirected to the form now. (See Screen Shot)

And it hangs there...I have to manually go back to the forum via my bookmark or back arrow.

When I check the form afterward, it has reordered the questions and not deleted any.

I have uninstalled and reinstalled the product (to the server and the XML to my site).

Thanks and Regards,

Alisa

I should be fixed in latest version (v4.1.2)

bananalive 05-17-2010 01:05 PM

Quote:

Originally Posted by riskofficer (Post 2038015)
I think "Usergroups Allowed to Edit Form Results" and "Usergroups Allowed to Delete Form Results" should have priority on "Users Can Manage their own Form Results"

I mean that if "Users Can Manage their own Form Results" turned on, and groups are chosen in "Usergroups Allowed to Edit Form Results" and "Usergroups Allowed to Delete Form Results", that groups need permissions to edit/delete all entries, not only their own.

Now if "Users Can Manage their own Form Results" turned on, I can't see all entries in Form Results even if I choose my group in "Usergroups Allowed to Edit Form Results" and "Usergroups Allowed to Delete Form Results"

Fixed in v4.1.2

bananalive 05-17-2010 01:07 PM

Quote:

Originally Posted by riskofficer (Post 2038009)
It might be a bug too (please see attached)

I'm sorry for such big activity, it is because my forum uses your mod very often.

Fixed form title issue in v4.1.2

bananalive 05-17-2010 01:07 PM

Quote:

Originally Posted by riskofficer (Post 2037975)
just a small bug

Fixed tabs not being highlighted for formresults_poll and formresults_table in v4.1.2

bananalive 05-17-2010 01:10 PM

Quote:

Originally Posted by riskofficer (Post 2037918)
Thank you very much, now trying to understand how new permissions work :)

BTW still bug in edit (attached)

To fix date issue, upgrade to v4.1.2, then add the following to Form Hook: Form Start:
PHP Code:

$usealtdate true


TeknoSounds 05-17-2010 01:19 PM

geeze bananalive, you're on fire with all the fixes and upgrades :D

thanks!

riskofficer 05-17-2010 02:45 PM

bananalive, thank you very much! Everything works in proper way now! Ill post if find bugs.

Alisa Lindsay 05-17-2010 06:26 PM

Thank you for your quick responses to issues! This is a great mod and a life-saver for an RPG owner.

riskofficer 05-17-2010 08:01 PM

Quote:

Originally Posted by riskofficer (Post 2037058)
I have prepared some suggestions about Form's "first page". May be they could be interesting (see attached picture).

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.


Quote:

Originally Posted by riskofficer (Post 2026623)
P.S. And one more question, not so important, but, do you plan to do "depended quetion". I mean, for example, we have drop down menu, we choose option, then we got another question and options are depended on what you choose before. Sorry my english!

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

riskofficer 05-17-2010 09:20 PM

1 Attachment(s)
small bug (please see attached picture)

HolyKiller 05-18-2010 09:13 AM

Can anyone help me with this please?

THX

Alisa Lindsay 05-19-2010 01:49 PM

Good Day All,

I have a small cosmetic issue on the Form List page layout. This is not impacting functionality, just hard for an old person like me to read or I'd leave as is.

If someone could tell me how to fix...or what the issue is, I'd be grateful.

Steps I've Taken to Fix: Completely uninstalled the mod including clientscripts. Downloaded a clean version and reinstalled. Issue remains.

On the Forms List Page, the different form sections are not showing as they do in the screenshot attached to Post #1 here...

Screen shots below...

#1: How They Appear on My Forum (Custom and Default Styles)

https://vborg.vbsupport.ru/


#2: How They Should Appear Per Screenshot Here....

https://vborg.vbsupport.ru/

Please let me know if you can help.

Thanks for an amazing mod that my RPG site loves!

Warmest Regards,

Alisa:D

zeroality 05-20-2010 12:20 AM

Aw, well that's a shame that you can't have it post as a thread. Thanks for responding though. It seems to be rare these days to find authors who actually support their MODs. Great work, really appreciate it.

your24hourstore 05-20-2010 12:51 AM

Quote:

Originally Posted by Alisa Lindsay (Post 2039857)
Good Day All,

I have a small cosmetic issue on the Form List page layout. This is not impacting functionality, just hard for an old person like me to read or I'd leave as is.

If someone could tell me how to fix...or what the issue is, I'd be grateful.

Steps I've Taken to Fix: Completely uninstalled the mod including clientscripts. Downloaded a clean version and reinstalled. Issue remains.

On the Forms List Page, the different form sections are not showing as they do in the screenshot attached to Post #1 here...

Screen shots below...

#1: How They Appear on My Forum (Custom and Default Styles)

http://i156.photobucket.com/albums/t...rentScreen.jpg


#2: How They Should Appear Per Screenshot Here....

http://i156.photobucket.com/albums/t...msShouldBe.jpg

Please let me know if you can help.

Thanks for an amazing mod that my RPG site loves!

Warmest Regards,

Alisa:D

margins are bit less but
I think i see the blocks in the dark pic the style is just not highlighting them!
other than that it looks right nice styleing BTW

promoprompt 05-20-2010 03:52 PM

Great work, looks good.

I´f install it at a testforum. My biggest startproblem was, to find the adjustment of rights.

Here for VB4.0.3 Suite (CMS)
German: ACP --> VBulletin-Einstellungen --> last Entry in the List( Easy Forms Options)

English: ACP --> VBulletin-Setup --> last Entry in the List( Easy Forms Options)

It´s essential, to set on all options, the Admin-Rights (plus what you want). After THAT, you can start with EasyForms! Normaly nobody see Easyforms.

As I wish to add the functionality to post into the BLOG
What settings needed, for an unregistert user (normal Internetsurfer) to see sepcial Forms?

Greetings promoprompt

Sugoi na 05-21-2010 10:27 PM

Anyway to make it so usergroups can only edit THERE forms? My forum is designed to allow users to create forms so others on the forum can user them. If I allow everyone to edit, we may have 1 bad egg ruin the bunch...

Any ideas?

Yes I can create a "trusted" usergroup... I know but still have the fair of one of the "trusted" going rogue & deleting everyones.

Alisa Lindsay 05-21-2010 10:43 PM

Quote:

Originally Posted by harleyparts (Post 2040257)
margins are bit less but
I think i see the blocks in the dark pic the style is just not highlighting them!
other than that it looks right nice styleing BTW

I took another look and, unfortunately, no...the actual gradients are not showing as well as the margins being off and rows rather mushed together. I could live without the neat bars showing, etc., if I could get some space between the forms so they weren't so hard to read.

I've tried to look at the CSS and see if I could sort it, but I'm too much a novice at this... so... still in need of help if anyone has ideas.

Warmest Regards

Alisa...

PS: The style was created by BluePearl and suits our RPG to a T.

Welshy2008 05-23-2010 12:44 PM

1 Attachment(s)
I have been using this on my 3.8 board for a while, and on TWO threads, I replaced the "Post Reply" button, with one of my own.

The problem is, that is that it don't work on 4.0.3.

What I did before was to add two plugins as follows:


Code:

Product:  Easy Forms

Hook Location: showthread_complete
 
Title:  Form1

Execution Order: 1000

Plugin PHP Code: 
if ($threadinfo[threadid] == XXXX)
{
eval('$SHOWTHREAD = "' . fetch_template('SHOWTHREAD') . '";');
$SHOWTHREAD = str_replace("reply.gif","thread2.gif", $SHOWTHREAD);
print_output($SHOWTHREAD);
}
Plugin is Active:  Yes


Code:

Product:  Easy Forms

Hook Location:  newreply_form_start
 
Title:  Easy Forms Reply Button

Execution Order: 5

Plugin PHP Code: 
if (in_array($threadinfo[threadid], array(ThreadID1)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=1') ; 
}
if (in_array($threadinfo[threadid], array(ThreadID2)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=2') ; 
}

Plugin is Active:  Yes

I also had to add the following to the SHOWTHREAD Template (I would also like the ""Border box around it all too) - which worked well in 3.8.X-Please see attachment:

Code:

<tr>
<if condition="$threadinfo['threadid'] == 'XXXX'">
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend><b><font size="3">Title Here</font> <font size="2"></b></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td colspan="2">
<tr>
<form action="search.php?do=process&searchthreadid=XXXX" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class=""><font size="2">Description Here<a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td align="left">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthreadid" value="$threadinfo[threadid] == 'XXXX'" />
<font size="3"><font color="green"><b>Search For:</b></font></font> <input type="text" class="bginput" name="query" size="25" /> <input type="image" src="http://www.Mywebaddress.com/images/search.png" alt="Click to search."><br/>
</td>
</tr>
</table>
</form>
</select></label>
</tr>
</fieldset></if>
<br />

Where "XXXX" is the ThreadID.


Naturally these no longer work and it also returns a securitytoken error too.


Any Ideas of what to replace this code with please? I have tried various ones, but no luck as yet.

Also, With the 4.0.X versions, we have to double click on the Post Reply button to get the full and proper text box, whereas a single click will show the Quick Reply Box. This naturally affects this. How would I overcome this, Please?


Many Thanks, Welshy.

thetgc 05-23-2010 11:48 PM

Doesnt matter :P Found what i was looking for ;)

sean-zigster 05-24-2010 06:55 PM

Hi

This is a cracking mod and i have installed it , but we are using it more like a database. Is there anyway i change change forms to database ie instead of a tab saying forms its says database

bananalive 05-24-2010 08:24 PM

Quote:

Originally Posted by sean-zigster (Post 2042797)
Hi

This is a cracking mod and i have installed it , but we are using it more like a database. Is there anyway i change change forms to database ie instead of a tab saying forms its says database

In AdminCP, Edit phrase entitled 'forms'

bananalive 05-24-2010 08:42 PM

Quote:

Originally Posted by Welshy2008 (Post 2042199)
I have been using this on my 3.8 board for a while, and on TWO threads, I replaced the "Post Reply" button, with one of my own.

The problem is, that is that it don't work on 4.0.3.

What I did before was to add two plugins as follows:


Code:

Product:  Easy Forms

Hook Location: showthread_complete
 
Title:  Form1

Execution Order: 1000

Plugin PHP Code: 
if ($threadinfo[threadid] == XXXX)
{
eval('$SHOWTHREAD = "' . fetch_template('SHOWTHREAD') . '";');
$SHOWTHREAD = str_replace("reply.gif","thread2.gif", $SHOWTHREAD);
print_output($SHOWTHREAD);
}
Plugin is Active:  Yes


Code:

Product:  Easy Forms

Hook Location:  newreply_form_start
 
Title:  Easy Forms Reply Button

Execution Order: 5

Plugin PHP Code: 
if (in_array($threadinfo[threadid], array(ThreadID1)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=1') ; 
}
if (in_array($threadinfo[threadid], array(ThreadID2)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=2') ; 
}

Plugin is Active:  Yes

I also had to add the following to the SHOWTHREAD Template (I would also like the ""Border box around it all too) - which worked well in 3.8.X-Please see attachment:

Code:

<tr>
<if condition="$threadinfo['threadid'] == 'XXXX'">
<td align="$stylevar[left]" valign="top" width="50%">
<fieldset class="fieldset" style="margin:0px">
<legend><b><font size="3">Title Here</font> <font size="2"></b></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td colspan="2">
<tr>
<form action="search.php?do=process&searchthreadid=XXXX" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class=""><font size="2">Description Here<a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td align="left">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthreadid" value="$threadinfo[threadid] == 'XXXX'" />
<font size="3"><font color="green"><b>Search For:</b></font></font> <input type="text" class="bginput" name="query" size="25" /> <input type="image" src="http://www.Mywebaddress.com/images/search.png" alt="Click to search."><br/>
</td>
</tr>
</table>
</form>
</select></label>
</tr>
</fieldset></if>
<br />

Where "XXXX" is the ThreadID.


Naturally these no longer work and it also returns a securitytoken error too.


Any Ideas of what to replace this code with please? I have tried various ones, but no luck as yet.

Also, With the 4.0.X versions, we have to double click on the Post Reply button to get the full and proper text box, whereas a single click will show the Quick Reply Box. This naturally affects this. How would I overcome this, Please?


Many Thanks, Welshy.

vB 4 no longer uses images for post reply button, if your board is still using images then you could use

PHP Code:

if ($threadinfo[threadid] == 31

$vbulletin->templatecache['SHOWTHREAD'] = str_replace("reply.gif","thread2.gif"$vbulletin->templatecache['SHOWTHREAD']); 
$show['quickreply'] = false;


(It also disables quick reply for that thread.)

If you use the vB 4 default buttons use this:

PHP Code:

if ($threadinfo[threadid] == 31

$show['quickreply'] = false;
$vbphrase['reply_to_thread'] = "Your Text";


You are getting the no securitytoken error because vBulletin now has different template syntax

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="searchthreadid" value="{vb:raw threadinfo.threadid]}'" />


Also use <vb:if> instead of <if>

bananalive 05-24-2010 08:50 PM

Quote:

Originally Posted by Alisa Lindsay (Post 2041647)
I took another look and, unfortunately, no...the actual gradients are not showing as well as the margins being off and rows rather mushed together. I could live without the neat bars showing, etc., if I could get some space between the forms so they weren't so hard to read.

I've tried to look at the CSS and see if I could sort it, but I'm too much a novice at this... so... still in need of help if anyone has ideas.

Warmest Regards

Alisa...

PS: The style was created by BluePearl and suits our RPG to a T.

Fixed? I went on your site just now and it looks as it should?

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 10: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.04604 seconds
  • Memory Usage 1,922KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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