vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=201097)

bananalive 02-13-2009 02:47 PM

Quote:

Originally Posted by Pehchaan (Post 1742912)
Bananalive, Its really a fantastic mod, Great Job buddy! :)

Please guide me how can i disable Italic style of description text.
Attachment 94815

Thanks.

Open all templates beginning form_formbit_

Find
HTML Code:

<if condition="$formbit[description]!=''"><br /><i><span style="font-weight: normal;">$formbit[description]</span></i></if>
Replace with
Code:

<if condition="$formbit[description]!=''"><br /><span style="font-weight: normal;">$formbit[description]</span></if>

bananalive 02-13-2009 02:54 PM

Quote:

Originally Posted by Simon Lloyd (Post 1742929)
I am using your latest Beta 5, but i still get the message, the post then says i have already posted, taking you to thread but then get the admin message saying i have followed an invalid thread...and of course the post hasn't been made in forum id 52.

EDIT: is it possible to have the username and date entered automatically? right now i have a field for Enter your username and one for Enter todays date.

EDIT 2: you latest Beta 6, works fine except it doesn't show the date from the date boxes, not a problem if you could point me on how to do the above

The fix for beta 5 would be...

Find in plugin: Easy Forms Part 1
PHP Code:

 $foruminfo verify_id('forum'$formforumid01); 

Replace with
PHP Code:

 $foruminfo verify_id('forum'$forumid01); 

Username Field:

Create custom question:
PHP Code:

$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $vbulletin->userinfo[username] . '" />'

Today's Date Field:

Create custom question:
PHP Code:

$q[$formbit[id]] = vbdate($vbulletin->options['dateformat'], TIMENOW);
$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $q[$formbit[id]] . '" />'


Simon Lloyd 02-13-2009 02:58 PM

As ever fantastic support!, i am now using Beta 6, are those changes ok with that?

bananalive 02-13-2009 02:58 PM

Quote:

Originally Posted by Simon Lloyd (Post 1742961)
As ever fantastic support!, i am now using Beta 6, are those changes ok with that?

Beta 6 should work without any changes applied to it.

Simon Lloyd 02-13-2009 03:05 PM

You are right, i made the form changes for custom question and looks good in the preview, however, using beta 6, one of my dropdown fields is showing the number of the selection rather than the words....dropdown 1 just has numbers, choose a number and thats ok, the next question also has a dropdown with words in the list but this is just returning the position of the word rather than the word.

Is it something i have done?

Altered 02-13-2009 03:21 PM

Quote:

Originally Posted by bananalive (Post 1742874)
Odd, the [More] link shows for me. What vbulletin version are you using?

Edit: I'll add 'posting' phrase group to $phrasegroups array but it should not be needed as $vbphrase[more] is also included in global phrasegroup.


I'm using Vbulletin 3.8.0

Using default style and EZ form 3.0 Beta 6 - [More] hasn't worked on any versions I've tried yet.

Thanks for great support!!

bananalive 02-13-2009 03:43 PM

Quote:

Originally Posted by Simon Lloyd (Post 1742968)
You are right, i made the form changes for custom question and looks good in the preview, however, using beta 6, one of my dropdown fields is showing the number of the selection rather than the words....dropdown 1 just has numbers, choose a number and thats ok, the next question also has a dropdown with words in the list but this is just returning the position of the word rather than the word.

Is it something i have done?

Use $qo[18] instead of $q[18]

For dropdown select questions if you want the value shown to the user use $qo rather than $q

bananalive 02-13-2009 03:44 PM

Quote:

Originally Posted by Altered (Post 1742980)
I'm using Vbulletin 3.8.0

Using default style and EZ form 3.0 Beta 6 - [More] hasn't worked on any versions I've tried yet.

Thanks for great support!!

Same vbulletin version as me

Are you using any modifications which alter the vb editor or vb smilies?

Simon Lloyd 02-13-2009 03:47 PM

Great!, thanks for the reply, and thanks for the change....i really appreciate it! ;)

Simon Lloyd 02-13-2009 03:49 PM

Quote:

Originally Posted by bananalive (Post 1742992)
Same vbulletin version as me

Are you using any modifications which alter the vb editor or vb smilies?

I'm using 3.8.1 and get the same no [More] just [], i had this before using sunrise2006 Quick Editor improver and still have it afterwards....smilies aren't important for me, i just mentioned it for your information.

Altered 02-13-2009 03:59 PM

Quote:

Originally Posted by bananalive (Post 1742992)
Same vbulletin version as me

Are you using any modifications which alter the vb editor or vb smilies?

I only have 2 modifications installed.

Easy Forms 3.0
vBadvanced CMPS 3.1.0

I don't think VBA changes anything in editor.

CPOWA 02-13-2009 07:27 PM

Just installed and tested on 3.8.1, It works great! Thank you! :)

Anybody wanna fill out my new questionnaire? Heheh, just kidding about filling it out but, It works great!

Regards,
Nita

Kiint 02-13-2009 08:55 PM

Quote:

Originally Posted by Simon Lloyd (Post 1742999)
I'm using 3.8.1 and get the same no [More] just [], i had this before using sunrise2006 Quick Editor improver and still have it afterwards....smilies aren't important for me, i just mentioned it for your information.

I'm getting the same problem on my forms, [] instead of [more] on the smilies, I'm running 3.8.1vbulletin and 3.6beta of forms, I have extra smilies installed.

On the Edit Form section of the Edit page, when I try to "Increase Size" on the Description: text box it doesn't work. All other text boxes allow me to increase their sizes, I've tried this on 3 different computers running IE7, IE8 and Firefox, it doesn't work on any of them.

Also, when installing from 2.8 to 3.6 my Advanced Navbar Links dissappeared from my navbar template, I had to re-install the product and restore the database links to get them back. Does the installation modify any templates?

Apart from those problems, it's working fine :)

Veer 02-14-2009 08:17 PM

1 Attachment(s)
Hi bananalive, there is something missing in "Section" type question, the result of this option is not looks good, check the result screen shot:
Attachment 94889

ZeepySea 02-15-2009 06:52 AM

I just installed this as I had the other and it screwed up on me.

I got just 2 small questions.

For some reason the {value=x} put in the drop down box shows when form is submitted. I need the value to just know what forum to post it to.

Also I can't get the redirect to work. I don't see an option to specify what page to redirect to. Being posted to a forum, I would of thought it would redirect to that thread by default.

If these where discussed I'm sorry, but 25 pages to look thru. I got to page 11

bananalive 02-15-2009 09:40 AM

Quote:

Originally Posted by Pehchaan (Post 1744185)
Hi bananalive, there is something missing in "Section" type question, the result of this option is not looks good, check the result screen shot:
Attachment 94889

Edit Form -> Section BBcode:

Use \r\n to add new line

bananalive 02-15-2009 09:49 AM

Quote:

Originally Posted by ZeepySea (Post 1744610)
I just installed this as I had the other and it screwed up on me.

I got just 2 small questions.

For some reason the {value=x} put in the drop down box shows when form is submitted. I need the value to just know what forum to post it to.

Also I can't get the redirect to work. I don't see an option to specify what page to redirect to. Being posted to a forum, I would of thought it would redirect to that thread by default.

If these where discussed I'm sorry, but 25 pages to look thru. I got to page 11

It's easier to use form hooks $qo[x] (x is the question #)
PHP Code:

if ($qo[4] == "Forum1")
{
$form[forumid] = 1;
}
elseif (
$qo[4] == "Forum2")
{
$form[forumid] = 2;


----------------------------------------------------

Check 'Redirect user after form is submitted'

URL of webpage user is redirected to:
http://www.yoursite.com/forum/showthread.php?p=$newpost[postid]#post$newpost[postid]

Kiint 02-15-2009 11:56 AM

Is there any way to get the output of a Multi-line text field to appear on the next line?

So instead of my result looking like this:
Quote:

This is my Question? This is my answer
it would appear like this:
Quote:

This is my Question?
This is my answer

bananalive 02-15-2009 12:05 PM

Quote:

Originally Posted by Kiint (Post 1744771)
Is there any way to get the output of a Multi-line text field to appear on the next line?

So instead of my result looking like this:


it would appear like this:

For all questions:
Add \r\n to end of question bbcode.

If you only want it for one question, then you could use the custom output.

CPOWA 02-15-2009 02:23 PM

Hi bananalive,

I was trying to edit my first form this morning at I got a runtime error. I'm not sure if I did something wrong or I found a bug. Here's what I did:

Brought the form up (using an admin ID):
1. Edited line 4 of my form. T'was a good edit.
2. Edited line 3 of my form. When I clicked Submit I got the following error:

Runtime Error: Line 308
Error: ?vB_Editor.? Is null of not an object

I ran debug on the script. The code is below. Line 308 is the last line.

Code:

        Edit Question

</strong></td> </tr> </table> </td> <td class="alt2" nowrap="nowrap"> <div class="smallfont"> <strong>Welcome, <a href="members/fcradvocate/">FCRAdvocate</a>.</strong><br /><strong>No <a rel="nofollow" href="search.php?do=getnew">Unread Posts</a></strong> since your last visit.<strong></strong><br />
                You last visited: 02-15-2009 at <span class="time">07:32 AM</span> <div> <script language="Javascript" type="text/javascript">
                        var cyb_pm_phrase = '<a href="pm/">Private Messages</a>: Unread 0, Total 20.';
                        var cyb_pm_phrase_stripped = cyb_pm_phrase.replace('</a>:', '</a>:<span id="navbar_cybppenh">');
                        with (document) {
                                write (cyb_pm_phrase_stripped);
                        }
                        vbmenu_register("navbar_cybppenh");
                </script> </span> <div class="vbmenu_popup" id="navbar_cybppenh_menu" style="display:none;"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Private Messages</td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=0" accesskey="4" rel="nofollow">Inbox</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=-1" accesskey="4" rel="nofollow">Sent Items</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/new/" accesskey="4" rel="nofollow">Send New Message</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/track/" accesskey="4" rel="nofollow">Track Messages</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/folders/" accesskey="4" rel="nofollow">Edit Folders</a></td> </tr> </table> </div></div> </div> </td> </tr> </table>  <div class="tborder" style="padding:1px; border-top-width:0px"> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr align="center"> <td class="vbmenu_control"><a href="myaccount/">User CP</a></td> <td class="vbmenu_control"><a id="vbbloglinks" href="blogs/">Blogs</a><script type="text/javascript">vbmenu_register("vbbloglinks");</script></td>  <td class="vbmenu_control"><a id="community" href="/forums/misc.php?do=editq&amp;id=3&amp;nojs=1#community" rel="nofollow" accesskey="6">Community</a> <script type="text/javascript"> vbmenu_register("community"); </script></td> <td class="vbmenu_control"><a href="calendar/">Calendar</a></td> <td class="vbmenu_control"><a rel="nofollow" href="search.php?do=getnew" accesskey="2">New Posts</a></td> <td class="vbmenu_control"><a id="navbar_search" href="search.php" accesskey="4" rel="nofollow">Search</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td> <td class="vbmenu_control"><a rel="nofollow" id="usercptools" href="/forums/misc.php?do=editq&amp;id=3&amp;nojs=1#usercptools" accesskey="3">Quick Links</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>    </tr> </table> </div>  <br />  <div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Community Links</td></tr> <tr><td class="vbmenu_option"><a href="groups/">Social Groups</a></td></tr> <tr><td class="vbmenu_option"><a href="album.php">Pictures &amp; Albums </a></td></tr> <tr><td class="vbmenu_option"><a href="profile/friends/">Contacts &amp; Friends</a></td></tr> <tr><td class="vbmenu_option"><a href="members/list/">Members List</a></td></tr> </table> </div>  <div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Search Forums</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="search.php?do=process" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="childforums" value="1" /> <input type="hidden" name="exactname" value="1" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="Go" tabindex="1004" /></div> <div style="margin-top:6px"> <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />Show Threads</label>
                                                &nbsp;
                                                <label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />Show Posts</label> </div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="tags/" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a href="search.php" accesskey="4" rel="nofollow">Advanced Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="post_thanks.php?do=findallthanks">Find All Thanked Posts</a></td> </tr><tr> <td class="thead">Search Blogs</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="blog_search.php?do=dosearch" method="post"> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <input type="hidden" name="do" value="dosearch" /> <input type="hidden" name="quicksearch" value="1" /> <div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="Go" tabindex="2004" /></div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="blog_tag.php" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="blog_search.php?do=search">Advanced Search</a></td> </tr> </table> </div>  <div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Quick Links</td></tr> <tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Today's Posts</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr> <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">Open Contacts Popup</a></td></tr> <tr><td class="thead"><a href="myaccount/">User Control Panel</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/signature/">Edit Signature</a></td></tr>  <tr><td class="vbmenu_option"><a href="profile/edit/">Edit Your Details</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/options/">Edit Options</a></td></tr> <tr><td class="thead">Miscellaneous</td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=cybaregman">Advanced Registration Management</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=cybmodstats">Moderating Stats</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=donlist">View Donations</a></td></tr> <tr><td class="vbmenu_option"><a href="pm/" rel="nofollow">Private Messages</a></td></tr> <tr><td class="vbmenu_option"><a href="subscription.php" rel="nofollow">Subscribed Threads</a></td></tr> <tr><td class="vbmenu_option"><a href="members/fcradvocate/">Your Profile</a></td></tr> <tr><td class="vbmenu_option"><a href="activeusers/">Who's Online</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=forms">Forms</a></td></tr> </table> </div>    <div class="vbmenu_popup" id="pagenav_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead" nowrap="nowrap">Go to Page...</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="http://www.usfcralliance.org/forums/" method="get" onsubmit="return this.gotopage()" id="pagenav_form"> <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" /> <input type="button" class="button" id="pagenav_ibtn" value="Go" /> </form> </td> </tr> </table> </div>  <form action="" method="post" enctype="multipart/form-data" name="vbform"  onsubmit="return vB_Editor[''].prepare_submit(this.question.value, 5)"> <input type="hidden" name="do" value="updateq" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="fid" value="1" /> <input type="hidden" name="id" value="3" /> <input type="hidden" name="type" value="5" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat"> Edit Question</td> </tr> <tr> <td class="thead">Dropdown Select</td> </tr> <tr> <td class="panelsurround" align="center"><div class="panel"> <div style="width:640px" align="left"> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Question:</td> </tr> <tr> <td><input name="question" type="text" id="question" class="bginput" size="40" maxlength="255" value="What state do you live in?" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Description:</td> </tr> <tr> <td><textarea name="description" id="description" class="bginput" rows="2" cols="60">Please select the state you live in from the dropdown list.</textarea> <div class="smallfont"><a href="#"  onclick="return resize_textarea(1, 'description')">Increase Size</a> <a href="#"  onclick="return resize_textarea(-1, 'description')">Decrease Size</a></div> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Display Order:</td> </tr> <tr> <td><input name="displayorder" type="text" id="displayorder" class="bginput" size="40" maxlength="3" value="20" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Options: <br /> <i>Enter the options that the user can choose from. Separate each option with a new-line (carriage return).</i></td> </tr> <tr> <td><textarea name="options" id="options" class="bginput" rows="10" cols="60">Alabama

As I mentioned, I'm not sure if I'm using it right or not but, it seems pretty striaght forward.

Regards,
Nita

bananalive 02-15-2009 02:29 PM

Quote:

Originally Posted by CPOWA (Post 1744898)
Hi bananalive,

I was trying to edit my first form this morning at I got a runtime error. I'm not sure if I did something wrong or I found a bug. Here's what I did:

Brought the form up (using an admin ID):
1. Edited line 4 of my form. T'was a good edit.
2. Edited line 3 of my form. When I clicked Submit I got the following error:

Runtime Error: Line 308
Error: ‘vB_Editor.’ Is null of not an object

I ran debug on the script. The code is below. Line 308 is the last line.

Code:

        Edit Question

</strong></td> </tr> </table> </td> <td class="alt2" nowrap="nowrap"> <div class="smallfont"> <strong>Welcome, <a href="members/fcradvocate/">FCRAdvocate</a>.</strong><br /><strong>No <a rel="nofollow" href="search.php?do=getnew">Unread Posts</a></strong> since your last visit.<strong></strong><br />
                You last visited: 02-15-2009 at <span class="time">07:32 AM</span> <div> <script language="Javascript" type="text/javascript">
                        var cyb_pm_phrase = '<a href="pm/">Private Messages</a>: Unread 0, Total 20.';
                        var cyb_pm_phrase_stripped = cyb_pm_phrase.replace('</a>:', '</a>:<span id="navbar_cybppenh">');
                        with (document) {
                                write (cyb_pm_phrase_stripped);
                        }
                        vbmenu_register("navbar_cybppenh");
                </script> </span> <div class="vbmenu_popup" id="navbar_cybppenh_menu" style="display:none;"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Private Messages</td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=0" accesskey="4" rel="nofollow">Inbox</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/private.php?folderid=-1" accesskey="4" rel="nofollow">Sent Items</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/new/" accesskey="4" rel="nofollow">Send New Message</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/track/" accesskey="4" rel="nofollow">Track Messages</a></td> </tr> <tr> <td class="vbmenu_option"><a href="http://www.usfcralliance.org/forums/pm/folders/" accesskey="4" rel="nofollow">Edit Folders</a></td> </tr> </table> </div></div> </div> </td> </tr> </table>  <div class="tborder" style="padding:1px; border-top-width:0px"> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr align="center"> <td class="vbmenu_control"><a href="myaccount/">User CP</a></td> <td class="vbmenu_control"><a id="vbbloglinks" href="blogs/">Blogs</a><script type="text/javascript">vbmenu_register("vbbloglinks");</script></td>  <td class="vbmenu_control"><a id="community" href="/forums/misc.php?do=editq&amp;id=3&amp;nojs=1#community" rel="nofollow" accesskey="6">Community</a> <script type="text/javascript"> vbmenu_register("community"); </script></td> <td class="vbmenu_control"><a href="calendar/">Calendar</a></td> <td class="vbmenu_control"><a rel="nofollow" href="search.php?do=getnew" accesskey="2">New Posts</a></td> <td class="vbmenu_control"><a id="navbar_search" href="search.php" accesskey="4" rel="nofollow">Search</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td> <td class="vbmenu_control"><a rel="nofollow" id="usercptools" href="/forums/misc.php?do=editq&amp;id=3&amp;nojs=1#usercptools" accesskey="3">Quick Links</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>    </tr> </table> </div>  <br />  <div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Community Links</td></tr> <tr><td class="vbmenu_option"><a href="groups/">Social Groups</a></td></tr> <tr><td class="vbmenu_option"><a href="album.php">Pictures &amp; Albums </a></td></tr> <tr><td class="vbmenu_option"><a href="profile/friends/">Contacts &amp; Friends</a></td></tr> <tr><td class="vbmenu_option"><a href="members/list/">Members List</a></td></tr> </table> </div>  <div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Search Forums</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="search.php?do=process" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="childforums" value="1" /> <input type="hidden" name="exactname" value="1" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="Go" tabindex="1004" /></div> <div style="margin-top:6px"> <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />Show Threads</label>
                                                &nbsp;
                                                <label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />Show Posts</label> </div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="tags/" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a href="search.php" accesskey="4" rel="nofollow">Advanced Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="post_thanks.php?do=findallthanks">Find All Thanked Posts</a></td> </tr><tr> <td class="thead">Search Blogs</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="blog_search.php?do=dosearch" method="post"> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <input type="hidden" name="do" value="dosearch" /> <input type="hidden" name="quicksearch" value="1" /> <div><input type="text" class="bginput" name="text" size="25" tabindex="2003" /><input type="submit" class="button" value="Go" tabindex="2004" /></div> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="blog_tag.php" rel="nofollow">Tag Search</a></td> </tr> <tr> <td class="vbmenu_option"><a rel="nofollow" href="blog_search.php?do=search">Advanced Search</a></td> </tr> </table> </div>  <div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="left"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Quick Links</td></tr> <tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Today's Posts</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr> <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">Open Contacts Popup</a></td></tr> <tr><td class="thead"><a href="myaccount/">User Control Panel</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/signature/">Edit Signature</a></td></tr>  <tr><td class="vbmenu_option"><a href="profile/edit/">Edit Your Details</a></td></tr> <tr><td class="vbmenu_option"><a href="profile/options/">Edit Options</a></td></tr> <tr><td class="thead">Miscellaneous</td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=cybaregman">Advanced Registration Management</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=cybmodstats">Moderating Stats</a></td></tr><tr><td class="vbmenu_option"><a rel="nofollow" href="misc.php?do=donlist">View Donations</a></td></tr> <tr><td class="vbmenu_option"><a href="pm/" rel="nofollow">Private Messages</a></td></tr> <tr><td class="vbmenu_option"><a href="subscription.php" rel="nofollow">Subscribed Threads</a></td></tr> <tr><td class="vbmenu_option"><a href="members/fcradvocate/">Your Profile</a></td></tr> <tr><td class="vbmenu_option"><a href="activeusers/">Who's Online</a></td></tr> <tr><td class="vbmenu_option"><a rel="nofollow" href="http://www.usfcralliance.org/forums/misc.php?do=forms">Forms</a></td></tr> </table> </div>    <div class="vbmenu_popup" id="pagenav_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead" nowrap="nowrap">Go to Page...</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="http://www.usfcralliance.org/forums/" method="get" onsubmit="return this.gotopage()" id="pagenav_form"> <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" /> <input type="button" class="button" id="pagenav_ibtn" value="Go" /> </form> </td> </tr> </table> </div>  <form action="" method="post" enctype="multipart/form-data" name="vbform"  onsubmit="return vB_Editor[''].prepare_submit(this.question.value, 5)"> <input type="hidden" name="do" value="updateq" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="fid" value="1" /> <input type="hidden" name="id" value="3" /> <input type="hidden" name="type" value="5" /> <input type="hidden" name="securitytoken" value="1234713557-e24a2ed5d54d37995e4d2f94c7819f9ad20982bc" /> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat"> Edit Question</td> </tr> <tr> <td class="thead">Dropdown Select</td> </tr> <tr> <td class="panelsurround" align="center"><div class="panel"> <div style="width:640px" align="left"> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Question:</td> </tr> <tr> <td><input name="question" type="text" id="question" class="bginput" size="40" maxlength="255" value="What state do you live in?" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Description:</td> </tr> <tr> <td><textarea name="description" id="description" class="bginput" rows="2" cols="60">Please select the state you live in from the dropdown list.</textarea> <div class="smallfont"><a href="#"  onclick="return resize_textarea(1, 'description')">Increase Size</a> <a href="#"  onclick="return resize_textarea(-1, 'description')">Decrease Size</a></div> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Display Order:</td> </tr> <tr> <td><input name="displayorder" type="text" id="displayorder" class="bginput" size="40" maxlength="3" value="20" /> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="fieldset"> <tr> <td class="smallfont">Options: <br /> <i>Enter the options that the user can choose from. Separate each option with a new-line (carriage return).</i></td> </tr> <tr> <td><textarea name="options" id="options" class="bginput" rows="10" cols="60">Alabama

As I mentioned, I'm not sure if I'm using it right or not but, it seems pretty striaght forward.

Regards,
Nita

What are you editing? the plugins?

CPOWA 02-15-2009 02:38 PM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 1744901)
What are you editing? the plugins?

No. From FORUMHOME/Quick Links/Forms/form name/Edit Form

Changed Description field and checked the "This is a compulsory question" box. Clicked Submit and got the runtime error. I just did it again to make sure the steps above are correct and I got the same error. I didn't go into debug this time and the changes are reflected in the form now. It's still catching the error though.

I doubt if this will help but, here's a link to the form that my user would see: FORM

bananalive 02-15-2009 03:57 PM

Quote:

Originally Posted by CPOWA (Post 1744910)
No. From FORUMHOME/Quick Links/Forms/form name/Edit Form

Changed Description field and checked the "This is a compulsory question" box. Clicked Submit and got the runtime error. I just did it again to make sure the steps above are correct and I got the same error. I didn't go into debug this time and the changes are reflected in the form now. It's still catching the error though.

I doubt if this will help but, here's a link to the form that my user would see: FORM

Find and delete in template form_editq
HTML Code:

<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.question.value, 5)"</if>

CPOWA 02-15-2009 04:21 PM

Quote:

Originally Posted by bananalive (Post 1744985)
Find and delete in template form_editq
HTML Code:

<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.question.value, 5)"</if>

Deleted per instruction. Works perfect!

Thanks bananalive, this is the best mod I have. I can't vote for MOTM though because I already voted.

Also changed form_editq in my style and it's working fine as well. :)

Regards,
Nita

Heldenverband 02-16-2009 07:08 AM

I missed the clock field :(

We need this to create a date / time for meeting ( example ).

s810car 02-16-2009 07:09 AM

maybe i totally missed it, but I'm trying to incorporate the prefixids to assign to new threads, I can't figure out how to set this when creating the new thread. Is it just something I can add to the process/submit hook, or am I missing something totally?

AWESOME work on this btw, It has allowed me to do some special applications I've been scratching my head about for almost a year:D Nominated for sure!

xlguy 02-16-2009 02:02 PM

How do I pass a hidden variable to the form before it's submitted? Thanks :)

Like if I want to pass the referring URL from where the form link is clicked?

bananalive 02-16-2009 02:11 PM

Quote:

Originally Posted by xlguy (Post 1745919)
How do I pass a hidden variable to the form before it's submitted? Thanks :)

Use Form Hook: Before Submit

bananalive 02-16-2009 02:12 PM

Quote:

Originally Posted by s810car (Post 1745683)
maybe i totally missed it, but I'm trying to incorporate the prefixids to assign to new threads, I can't figure out how to set this when creating the new thread. Is it just something I can add to the process/submit hook, or am I missing something totally?

AWESOME work on this btw, It has allowed me to do some special applications I've been scratching my head about for almost a year:D Nominated for sure!

Find in plugin: Easy Forms Part 1
PHP Code:

$newpost['title'] =& $threadtitle

Add Below:
PHP Code:

$newpost['prefixid'] =& ''

You'll need to specify the prefixid in the single quotes

xlguy 02-16-2009 02:16 PM

Quote:

Originally Posted by bananalive (Post 1745926)
Use Form Hook: Before Submit

Thanks, I should have been more specific. What I'd like is this:

misc.php?do=form&fid=1&refurl=http://www.something.com/page.php?p=1

How can I pass the refurl value through the form (behind the scenes) and output the other end?

Thanks in advance, this would be ideal :)

bananalive 02-16-2009 02:25 PM

I'm sure you could make it hidden without editing form_view

Here's how to do it without making it hidden.

Form Hook: Form Start
PHP Code:

$refurl $vbulletin->input->clean_gpc('g''refurl'TYPE_NOHTML); 

Custom Question with following php code:
PHP Code:

if (!$q[$formbit[id]]) $q[$formbit[id]] = $refurl;
$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $q[$formbit[id]] . '" />'


xlguy 02-16-2009 02:38 PM

Wow, that's perfect : thanks a lot :)

Blackheart_72 02-16-2009 03:30 PM

Quote:

Originally Posted by Veccy 150 (Post 1741722)
Will look like and idiot but when i submit the form i get this error:

Code:

Form failed to submit. The following error(s) occured:
You did not specify a username for your post.

I have set it to post a new thread. :o

Still an idiot and still cant figure this one out.:(

bananalive 02-16-2009 03:34 PM

Quote:

Originally Posted by Veccy 150 (Post 1745978)
Quote:

Originally Posted by Veccy 150 (Post 1741722)
Will look like and idiot but when i submit the form i get this error:

Code:

Form failed to submit. The following error(s) occured:
You did not specify a username for your post.

I have set it to post a new thread. :o

Still an idiot and still cant figure this one out.:(

Odd, what version of Easy Forms are you using?

What vb version?

Are you logged in when you get the error?

xlguy 02-16-2009 03:37 PM

Found something interesting. If you are having the form contents sent to a private forum, if the user submits their form twice, they get a "duplicate warning" and then they are attempted to be redirected to this hidden forum. This gives them the hidden forum ID and can cause confusion. Anyway of skipping the duplicate check or perhaps skipping the redirect?

Blackheart_72 02-16-2009 03:41 PM

Quote:

Originally Posted by bananalive (Post 1745982)
Odd, what version of Easy Forms are you using?

What vb version?

Are you logged in when you get the error?

Easyforms 3.0 beta6

vBulletin 3.8.1

I am logged in but i also had the same error with beta5, thought i was missing something but cant find an option to add a user for the post.

TROLL 02-16-2009 04:15 PM

I have a quick question before I begin testing this mod.

I have a forum which is devoted to selling/buying on my site and we currently use formhack. What we need is to require a user to input name/price/location, ect. The problem that we currently have is that the hack we use lets anyone submit a thread.

I want to require users to have 25 posts to post or reply to a thread, but 0 posts to view. Is this currently possible with this mod?

Thanks!

metalguy639 02-17-2009 06:07 AM

Again I still have the problem of although I have it marked not to subscribe to a new thread in my UserCP this hack is only subscribing to the things that I have submitted thorugh it as a thread. Is there a way to stop this from happening please.

bananalive 02-17-2009 07:45 AM

Quote:

Originally Posted by Veccy 150 (Post 1745989)
Easyforms 3.0 beta6

vBulletin 3.8.1

I am logged in but i also had the same error with beta5, thought i was missing something but cant find an option to add a user for the post.

There isn't one, it uses the username of the user.

PHP Code:

$newpost['username'] =& $vbulletin->userinfo['username']; 

What PHP version are you using?

bananalive 02-17-2009 07:47 AM

Quote:

Originally Posted by metalguy639 (Post 1746581)
Again I still have the problem of although I have it marked not to subscribe to a new thread in my UserCP this hack is only subscribing to the things that I have submitted thorugh it as a thread. Is there a way to stop this from happening please.

I've fixed this in v3.1, to be released.


All times are GMT. The time now is 02:05 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.03047 seconds
  • Memory Usage 2,009KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_html_printable
  • (10)bbcode_php_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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