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)

paul41598 02-10-2011 12:36 PM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 2160954)
There was a problem with Grid Questions, I'll release a fix later today. But not with multi-line or radio that i aware of it? If you cannot see all the text - try expanding the cells height and width.

Ya I tried that but no luck. Actually exporting is more messed up than I originally thought. It's skipping fields and not even exporting them at all. I upgraded to your latest version and still same issue. hmmm

Here are screenshots from my form in its entirety, and my xls which I exported too. You will see the problem. All fields are filled out, but the exported results are skipping some fields even, and the results. So weird

paul41598 02-10-2011 01:11 PM

Also, on another note since I'm testing out this new version. I've gotten a few DB errors while searching, but my main concern is searching won't take half of what you type in.

For example..lets say I had a name single line field. I inputed a first and last name into the form. I went to form results table, and above that row I inputed the name Carol. It won't pull up the record. Now if I put in the name Carol Smith...it pulls it up fine. So you have to be exact in what you type else your results are nothing. Just some food for thought. Nice work!

bananalive 02-10-2011 01:19 PM

Quote:

Originally Posted by paul41598 (Post 2160966)
Ya I tried that but no luck. Actually exporting is more messed up than I originally thought. It's skipping fields and not even exporting them at all. I upgraded to your latest version and still same issue. hmmm

Here are screenshots from my form in its entirety, and my xls which I exported too. You will see the problem. All fields are filled out, but the exported results are skipping some fields even, and the results. So weird

Are all your 'Reference Name's for the form questions unique?

bananalive 02-10-2011 01:25 PM

Quote:

Originally Posted by paul41598 (Post 2160977)
Also, on another note since I'm testing out this new version. I've gotten a few DB errors while searching, but my main concern is searching won't take half of what you type in.

For example..lets say I had a name single line field. I inputed a first and last name into the form. I went to form results table, and above that row I inputed the name Carol. It won't pull up the record. Now if I put in the name Carol Smith...it pulls it up fine. So you have to be exact in what you type else your results are nothing. Just some food for thought. Nice work!

Fixed db errors in v4.2.5 (anyone running v4.2.4 should upgrade immediately - just import new product file in admincp)

I'm afraid that there is very very unlikely to be a work around to allow searching for within the fields for Carol rather than carol smith.

paul41598 02-10-2011 01:35 PM

I dont have any reference names for my questions. I had no idea what it was for...so left them all blank?

update:

anyways, I tried doing that and still same results. hmmm

bananalive 02-10-2011 01:49 PM

Quote:

Originally Posted by paul41598 (Post 2160991)
I dont have any reference names for my questions. I had no idea what it was for...so left them all blank?

update:

anyways, I tried doing that and still same results. hmmm

The reference names are optional.

I think the issue might be to do with having several questions with the same name.

paul41598 02-10-2011 01:50 PM

Quote:

Originally Posted by bananalive (Post 2160994)
The reference names are optional.

I think the issue might be to do with having several questions with the same name.

It does and I just thought of that before u posted. I tried changing current status to current status1, 2 and 3, and now it exports fine.

Sucks that I have to do that, but whatever I guess... least we know the issue

paul41598 02-10-2011 02:11 PM

1 Attachment(s)
Found another bug...sorry!

So I had that form all created as you see above in screenshot. I then decided to remove 3 questions entirely and delete them. I had two results(forms) already posted though.

I'm trying to remove those two answers (forms) that someone submitted, and I get this:
vBulletin Message
Error, this form does not exist.

I'm assuming its because it's trying to delete those answers with those original questions tied to them, but I deleted them.

If I hover over the delete link:
#
TPA's - jbilliau (Edit | Delete)

Name
Will Have Done by
Ticket #1

I don't even see ID or FID = a number at all....its just = nothing

stationar 02-10-2011 03:35 PM

How can I get a question type like "custom"? For example, the question is what is your favorite song? The answer would be address of the mp3 file. But in the results the answer would be "built in" to the player html code. (same functionality as BB code).
In the other words, can I create a custom bb code and format the answer with it?

bananalive 02-11-2011 04:43 PM

1 Attachment(s)
Quote:

Originally Posted by paul41598 (Post 2160995)
It does and I just thought of that before u posted. I tried changing current status to current status1, 2 and 3, and now it exports fine.

Sucks that I have to do that, but whatever I guess... least we know the issue

Fixed in attached file.

bananalive 02-11-2011 04:44 PM

Quote:

Originally Posted by paul41598 (Post 2161008)
Found another bug...sorry!

So I had that form all created as you see above in screenshot. I then decided to remove 3 questions entirely and delete them. I had two results(forms) already posted though.

I'm trying to remove those two answers (forms) that someone submitted, and I get this:
vBulletin Message
Error, this form does not exist.


I'm assuming its because it's trying to delete those answers with those original questions tied to them, but I deleted them.

If I hover over the delete link:
#
TPA's - jbilliau (Edit | Delete)

Name
Will Have Done by
Ticket #1

I don't even see ID or FID = a number at all....its just = nothing

Have you edited template form_showoutput?

bananalive 02-11-2011 05:07 PM

Quote:

Originally Posted by stationar (Post 2161029)
How can I get a question type like "custom"? For example, the question is what is your favorite song? The answer would be address of the mp3 file. But in the results the answer would be "built in" to the player html code. (same functionality as BB code).
In the other words, can I create a custom bb code and format the answer with it?

2 possible options
  1. Use custom output
  2. Create vBulletin Hook with following attributes: (AdminCP -> Plugins & Products -> Add new plugin)
    Change 44 for appropriate form id and 325 for appropriate question id
    Change for appropriate bb code
    • Title
      Code:

      favourite song mp3
    • Hook
      Code:

      easy_forms_post_question_start
    • PHP Code
      PHP Code:

      if ($fid == 44 && $formbit['id'] == 325)
      {
      $form['saveprea'] = $form[prea];
      $form['savepsta'] = $form[psta];
      $form[prea] = $form[prea]."[mp3]";
      $form[psta] = "[/mp3]".$form[psta];
      }
      elseif (
      $fid == 44 && $form['saveprea'] && $form['psta'])
      {
      $form['prea'] = $form['saveprea'];
      $form['psta'] = $form['savepsta'];
      $form['saveprea'] = $form['savepsta'] = '';


    • Active
      Code:

      Yes

customcolor 02-13-2011 12:37 AM

what do i have to have the "Form Actions" set to to do this that you did below...i tried it posting in new thread and thats what it does...tried it in post in thread but then what would i put in the thread id area?? it says it posts but it really didnt.

Quote:

Originally Posted by bananalive (Post 2158848)
Form Hook: Form Start:
PHP Code:

$form['threadid'] = $q['threadid']; 

Form Hook: Before Submit:
PHP Code:

$form['threadid'] = $q['threadid']; 

Custom Question
  • Reference Name:
    Code:

    threadid
  • PHP Code:
    PHP Code:

    $answer '<select name="'.$formbit[id].'">'
          
    $answer .= '<option></option>'
          
    $thisanswer $q[$formbit[id]]; 
          
    $threads $db->query_read("SELECT * FROM " TABLE_PREFIX "thread 
          WHERE forumid = '2' 
          ORDER BY title ASC"
    ); 
              while(
    $row $db->fetch_array($threads)) { 
          
    $answer .= '<option value="'.$row[threadid].'"'
          if (
    $row[threadid] == $thisanswer) { 
          
    $answer .= 'selected="selected"'
          } 
          
    $answer .= '>'.$row[title].'</option>'
          } 
          
    $answer .= '</select>'



bananalive 02-13-2011 09:20 AM

Quote:

Originally Posted by customcolor (Post 2161983)
what do i have to have the "Form Actions" set to to do this that you did below...i tried it posting in new thread and thats what it does...tried it in post in thread but then what would i put in the thread id area?? it says it posts but it really didnt.

Post in Thread

You can leave the threadid blank as it is being specified in custom question.

If you export your form and upload it here - i'll have a look for the problem.

bearcub 02-14-2011 12:00 AM

I am still getting this same message. I have ten fields, and I just don't understand the problem.

The message you have entered is too short. Please lengthen your message to at least 10 characters.

customcolor 02-14-2011 12:05 AM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 2162075)
Post in Thread

You can leave the threadid blank as it is being specified in custom question.

If you export your form and upload it here - i'll have a look for the problem.

here you go..

bearcub 02-14-2011 12:46 AM

Quote:

Originally Posted by bearcub (Post 2162356)
I am still getting this same message. I have ten fields, and I just don't understand the problem.

The message you have entered is too short. Please lengthen your message to at least 10 characters.

Never mind, I figured it out. I love the mod Bananalive.

bananalive 02-14-2011 08:05 AM

Quote:

Originally Posted by customcolor (Post 2162363)
here you go..

Change Form Hook: Before Submit:
PHP Code:

{
$form['forumid'] = ($qo['31']);


to
PHP Code:

$form['threadid'] = $qo['31']; 


Leo777 02-16-2011 09:12 AM

Installed, working perfect, Thanks for a great and complex mod.

I have one question :

Is it possible to display a form within a post/thread? Or can forms only be displayed only on their own misc.php URL? It would be great if I could add a form at the bottom of a post but I can't find any option or documentation if this is possible...

Thanks.

LoudBox 02-16-2011 06:04 PM

Great plugin, works very well, good job. I'm impressed.

Quick question. I've set the form to output to a thread. What I'd like is that when this thread is created by easyform, his signature is a link to that thread.

So user john submits form => thread is created yourforum.com/forum/john-thread/
Now user john has as signature a link to that thread

What's the best way to go about this?

Thanks!

bananalive 02-17-2011 12:49 PM

1 Attachment(s)
Quote:

Originally Posted by Leo777 (Post 2163136)
Installed, working perfect, Thanks for a great and complex mod.

I have one question :

Is it possible to display a form within a post/thread? Or can forms only be displayed only on their own misc.php URL? It would be great if I could add a form at the bottom of a post but I can't find any option or documentation if this is possible...

Thanks.

  1. Import attached product file
  2. Create Custom BB Code in AdminCP
    • Title:
      Code:

      Form BB Code
    • BB Code Tag Name:
      Code:

      form
    • Replacement:
      HTML Code:

      <div style="clear: both;">
      <iframe src="misc.php?do=form&amp;fid={param}&amp;embed=1" style="width: 100%; height: 500px;">
      <p>Your browser does not support iframes.</p>
      </iframe>
      </div>

    • Example:
      Code:

      [form]1[/form]
    • Use Option:
      Code:

      No
    • Remove Tag If Empty
      Code:

      Yes
    • Disable BB Code Within This BB Code
      Code:

      Yes
    • Disable Smilies Within This BB Code
      Code:

      Yes
    • Disable Word Wrapping Within This BB Code
      Code:

      Yes
    • Disable Automatic Link Parsing Within This BB Code
      Code:

      YES
  3. Use [form]1[/form] in posts

The other suggestion I can offer, I'm not sure if it will be helpful, but you can re-direct reply button to the desired form

How can I Re-direct/ force users to submit form when they click reply?
  1. Create plugin newreply_form_complete

    PHP Code:

     if (in_array($threadinfo[threadid], array(1,2,3)))

    header'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ; 


  2. Change 1,2,3 for appropriate threadids.

bananalive 02-17-2011 01:37 PM

Quote:

Originally Posted by LoudBox (Post 2163306)
Great plugin, works very well, good job. I'm impressed.

Quick question. I've set the form to output to a thread. What I'd like is that when this thread is created by easyform, his signature is a link to that thread.

So user john submits form => thread is created yourforum.com/forum/john-thread/
Now user john has as signature a link to that thread

What's the best way to go about this?

Thanks!

  • Title
    Code:

    Change Signature to Thread Link
  • Hook
    Code:

    easy_forms_post_after_actions
  • PHP Code - change 43 to appropriate form id
    PHP Code:

    if ($fid == 43)
    {
      if (
    $complete)
      {
        
    $userinfo $vbulletin->userinfo;
        
    $threadinfo fetch_threadinfo($threadid);
        
    $usersig "[url]".$vbulletin->options['bburl']."/".fetch_seo_url('thread'$threadinfo)."[/url]";

        
    $userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
        
    $userdata->set_existing($userinfo);
        
    $userdata->set('signature'$usersig);

        
    $userdata->save();
      }  


  • Active
    Code:

    Yes

moswell 02-17-2011 02:12 PM

Okay, maybe this won't do what I want it to do, but could someone provide some advice?

I'd like the form to actually be the poll: that is, what I'm really looking for is the opportunity for a user to make a multiple-question poll within a thread. I've installed the mod and played a bit with it myself, but from what I can tell, I make the form, people need to go to the url for that form, and then the results are getting posted to the thread (or wherever).

What I'd like is for someone to be able to make a form, have the form posted to a thread, and people answer the form questions. Then the form(poll) results are displayed at the top of the thread, but not posted to the thread itself.

Does this make sense, and is it possible? Thanks!

Edit: found the option for not posting to thread.

moswell 02-17-2011 04:01 PM

Okay, I've read through pretty much the whole thread and it looks like this isn't an option. I'm relatively new to vbulletin - but I can already see that the multiple-question poll is an issue.

So, two different questions:

1. Can I edit the form creation page to make it easier for users? That is, can I set the default options (like don't post to thread, etc.) for a form template? Do I need to go to the misc.php directly and edit that page?
2. Can the form results poll view be altered? I'd very much like the column that says "x users answered this question" to give a list of the users who voted as the form results table does (and like a regular poll would).

Thanks - it's a fascinating mod.

Leo777 02-17-2011 04:05 PM

Quote:

Originally Posted by bananalive (Post 2163568)
Use [form]1[/form] in posts

First I received an email notification from this forum, informing me of your reply to my post - in the email it has your original reply where you said unfortunately it's not possible to add a form within a thread. So I came to the forum to say 'Thanks Anyway', but now I see that you edited your reply and have now given full instructions for actually doing exactly what I asked... That's amazing, you are very generous. Now I must send a donation :D

Thanks so much,
Leo

LoudBox 02-17-2011 05:37 PM

Quote:

Originally Posted by bananalive (Post 2163584)
  • Title
    Code:

    Change Signature to Thread Link
  • Hook
    Code:

    easy_forms_post_after_actions
  • PHP Code - change 43 to appropriate form id
    PHP Code:

    if ($fid == 43)
    {
      if (
    $complete)
      {
        
    $userinfo $vbulletin->userinfo;
        
    $threadinfo fetch_threadinfo($threadid);
        
    $usersig "[url]".$vbulletin->options['bburl']."/".fetch_seo_url('thread'$threadinfo)."[/url]";

        
    $userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
        
    $userdata->set_existing($userinfo);
        
    $userdata->set('signature'$usersig);

        
    $userdata->save();
      }  


  • Active
    Code:

    Yes

This is awesome, works great, thanks a lot.

I have 2 other questions:

1) How can I pull data from the form and put it inside the signature? For example, let's say I ask what his favorite icecream is and he answers vanilla => how do I put "vanilla" in his signature right under the link to the thread that was just created?

2) How do I force users from a certain usergroup to fill in the form before they can proceed? I'm using Force Threads but it doesn't work with a form because forced threads uses thread ids. Tried htaccess redirect but that's an endless loop. How would you got about forcing a usergroup to fill in the form before proceeding?

Thanks!

customcolor 02-18-2011 08:16 PM

Quote:

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

{
$form['forumid'] = ($qo['31']);


to
PHP Code:

$form['threadid'] = $qo['31']; 


thanks ....works great!!!

customcolor 02-19-2011 03:33 AM

Quote:

Originally Posted by customcolor (Post 2164073)
thanks ....works great!!!

well except for one little thing....when it posts it shows the post to the question as numbers of what thread it is in the post. is there a way to not make it post the answer to that question in the post?

DevinM 02-19-2011 02:13 PM

Am I simply missing it somewhere......how can I simply set a form to allow a user to attach file and when it hits submit email it to me.

Key:
1. Single Line Text Field
2. Yes/No Question
3. Radio Buttons
4. Checkboxes
5. Dropdown Select
6. Multi-Line Text Field
8. Field using vBulletin Editor
10. Custom
11. Date
12. Address
13. Scale
14. Grid

Probably a silly question but I truly dont see anything that says attach file.

Volcom13 02-19-2011 11:21 PM

I uploaded the product. But right as I try to import the XML it says Invalid File Selected.

bananalive 02-20-2011 04:36 PM

Quote:

Originally Posted by Volcom13 (Post 2164450)
I uploaded the product. But right as I try to import the XML it says Invalid File Selected.

Not sure why that is happening.

Are you trying to install Easy Forms for the first time?

What vBulletin version are you running?

bananalive 02-20-2011 04:36 PM

Quote:

Originally Posted by DevinM (Post 2164288)
Am I simply missing it somewhere......how can I simply set a form to allow a user to attach file and when it hits submit email it to me.

Key:
1. Single Line Text Field
2. Yes/No Question
3. Radio Buttons
4. Checkboxes
5. Dropdown Select
6. Multi-Line Text Field
8. Field using vBulletin Editor
10. Custom
11. Date
12. Address
13. Scale
14. Grid

Probably a silly question but I truly dont see anything that says attach file.

Unfortunately attachments cannot be added to email due to restrictions of the vbulletin email function vbmail();

bananalive 02-20-2011 04:45 PM

Quote:

Originally Posted by customcolor (Post 2164164)
well except for one little thing....when it posts it shows the post to the question as numbers of what thread it is in the post. is there a way to not make it post the answer to that question in the post?

Change Form Hook: Before Submit:
PHP Code:

$form['threadid'] = $qo['31']; 

to
PHP Code:

$form['threadid'] = $qo['31'];
$fr $form['preq'].$qn['31'].$form['pstq'].$form['prea']." ".$qo['31']." ".$form['psta'];
$formoutput str_replace($fr,'',$formoutput); 


bananalive 02-20-2011 05:15 PM

Quote:

Originally Posted by LoudBox (Post 2163664)
This is awesome, works great, thanks a lot.

I have 2 other questions:

1) How can I pull data from the form and put it inside the signature? For example, let's say I ask what his favorite icecream is and he answers vanilla => how do I put "vanilla" in his signature right under the link to the thread that was just created?

2) How do I force users from a certain usergroup to fill in the form before they can proceed? I'm using Force Threads but it doesn't work with a form because forced threads uses thread ids. Tried htaccess redirect but that's an endless loop. How would you got about forcing a usergroup to fill in the form before proceeding?

Thanks!

1. Use $q['1'] where 1 is the question hash

2. Umm that would be quite complex, you're best bet would be to modify Force Threads to redirect to a url rather than a threadid

burlesque 02-20-2011 06:43 PM

Does anybody know how to get the form pages working with the 'Everywhere Sidebar' mod? I've tried following the instructions on that page, but to no avail.

customcolor 02-22-2011 12:38 PM

super!!!!
works perfect!
Quote:

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

$form['threadid'] = $qo['31']; 

to
PHP Code:

$form['threadid'] = $qo['31'];
$fr $form['preq'].$qn['31'].$form['pstq'].$form['prea']." ".$qo['31']." ".$form['psta'];
$formoutput str_replace($fr,'',$formoutput); 



Mobo 02-24-2011 10:42 AM

I've not managed to read all 1116 posts, but maybe someone could answer (hopefully) a simple question for me.

Could this mod be used to run a Book Review forum section? I'm looking for a mod that will use a form to filled out to start a new thread. The form would fill in and make the first post of that new thread. Other users could then reply to that thread as if it was a normal thread anywhere else on the site.

Thank you for your time and help.

bananalive 02-24-2011 12:48 PM

Quote:

Originally Posted by Mobo (Post 2166208)
I've not managed to read all 1116 posts, but maybe someone could answer (hopefully) a simple question for me.

Could this mod be used to run a Book Review forum section? I'm looking for a mod that will use a form to filled out to start a new thread. The form would fill in and make the first post of that new thread. Other users could then reply to that thread as if it was a normal thread anywhere else on the site.

Thank you for your time and help.

Yes, that would be really easy to achieve with this modification.

Mobo 02-24-2011 03:06 PM

Thank you!

ixian 02-25-2011 03:27 PM

I searched the thread - is it possible to create a form that creates a calendar entry instead of a post, and if so how?

The form in question would of course have required fields like date, time, etc.

Thanks! Fantastic addon.


All times are GMT. The time now is 10:55 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.04182 seconds
  • Memory Usage 1,933KB
  • 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
  • (19)bbcode_code_printable
  • (1)bbcode_html_printable
  • (15)bbcode_php_printable
  • (25)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