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)

[H]Dazz 08-28-2009 01:45 AM

This is a great Mod. Thank you very much for the time and effort that you have put into this.

Is there a way to allow a person to update a form after they have previously submitted? Perhaps have it auto populate if an existing submission is found so they can easily just update the submitted form and it would just modify the post.

MikeWarner 08-28-2009 03:52 PM

This is great - but how do I make it so that all new thread in a specific forum use a form? i.e. I have a classified forums. If I want all adverts to be posted using a form, how do I get the "New Post" button to redirect to the form?

Many thanks.

Edit - I've figured it out! Many thanks for a really great hack!

Elenna 08-29-2009 06:29 PM

Quote:

Originally Posted by bananalive (Post 1874712)
Add in Form Hook: Before submit:
PHP Code:

$form['pmrec']= $qo[152]; 

where 152 is the question hash of the question with the username of the member that the pm should go to.

How might I be able to do that for 2 recipents? I have a similar situation, but have two fields, each with a name, and the PM should go to both.

Elenna 08-29-2009 10:11 PM

Never mind, scratch that last question!

I checked that "PM to user" and left the field blank, then I put this in the Before Submit:

$form['pmrec']=$qo[85];$qo[86];

Is there any way to have one or more fields be "smart username lookups" like when you send a PM and start to type in someone's name?

SnowBot 09-04-2009 02:52 AM

Hi guys

I know this has prob been asked many times but I couldnt find the answer when searching.....

I want the form to be Moderated before submit. I have the forum set to moderate threads and posts but still when the form is submitted it just appears.

I have also tried adding
$newpost['visible'] = '0';
to the form hook before submit but nothing happens and the form still gets posted.

What am I doing wrong here guys?

DolphinEcho 09-04-2009 03:06 PM

Do I just import the .xml file
Or do I also have to upload the 2 files in the zip ?

I am using 3.8.4

zushiba 09-04-2009 03:26 PM

I searched this thread looking to see if it was possible to have questions that change depending on what a user selected in a previous question.
Like so many javascript snippits out there that changes the next question based on the question before it.

Is this possible?

EDIT: Also is the help file dead?

derfy 09-04-2009 11:18 PM

I need for my form to output the answer for a specific question in url bbcode tags. How do I do this? I've read about 'custom output' but no one has explained where I go to enable this option.

Please advise.

Mimirswell 09-05-2009 01:10 AM

Resolved.

chesterano 09-05-2009 07:55 AM

thank you for this great modification

Would it be possible to automatic add, insert upload Attachments file (foto, pic) between BBCode
Quote:

Here
Thanks


[ QUOTE] Here upload Attachment[ /QUOTE] between, inside BBCode

TigerC10 09-07-2009 09:33 PM

I've noticed an issue with the humanverify feature. If you go to the adminCP

vBulletin Options > Human Verify Options
(note: not the human verification manager)

It gives you the option to verify human input on
  • Register
  • Post
  • Search
  • Contact Us
  • Recover Lost Password

When the "post" option is enabled here, it requires the human verification code in the post array when you make the call to vBulletin's build_new_post function.

However, the easy forms modification has its own validation for the humanverify variable. This causes issues, because once you verify the code it is instantly changed to something else (to prevent fraud). Meaning that once you try to send the humanverify variable to build_new_post it no longer matches - ultimately rejecting the post if you plan on posting the results of the form to a discussion area in the forum.


I'm going to try to create a workaround for this for myself, but it'll take me a lot longer than it would take bananalive. I'll post it here when I complete it, if bananalive doesn't address it first.

Welshy2008 09-08-2009 01:09 PM

Oh - I see this Mod is No longer Supported.

Still - It is a Fab Mod - Wouldn't expect anything less from BA. :)

biome.pat 09-10-2009 07:25 PM

The forum that's linked in the help file is closed now??? Please bring it back! I was just using it a month ago and it was so helpful! I had no idea how to use all the advanced features without it, but I was almost done making a really advanced application procedure using your modification!

I'm sure my project will get done, but I can't imagine anyone else having to tease out all your helpful hints/advice on their own!

Come on, PLEASE bring it back? Or at least post the info into a thread on vb.org???

Either way, thanks for the GREAT mod!

EDIT: And no, the WayBack Machine doesn't have http://www.bananalive.co.cc/showthread.php?t=119 on it... Rats.

rstan 09-14-2009 12:45 AM

wow 89 pages, my head hurts from reading...

i have a custom question pulling data from the db for the answer, it shows up fine on preview but nothing is there when submited. the data is a table in html format, im not sure if that is causing the problem? im not using any custom output.

reddyink 09-15-2009 12:22 PM

I would like use Easy Form in a format for Thread and a different format for Post.

Like a question and answer

Thread: Which city do you like best

Post: City Name field
Population: field
Driving Distance.

Etc.

Can this be done with Easy Form?

Thanks

zushiba 09-16-2009 04:47 PM

No one answered my question on dynamic java select boxes so I spent a while messing around with custom questions until I got it working. Figured I'd share my findings in case anyone else has a similar issue.

This is probably not the best way to go about doing this but I had little choice so bare with me.

My problem, I needed select boxes that would change depending on their parent select box. IE Dynamic java select boxes.
I used Mirko Elviro's Multiple Dynamic Combo Boxes code available here.

I put the javascript in the form_view template, so yes it's added in every form regardless of whether or not those questions are used on that form. I couldn't find a way around it.
Code:

<script language="JavaScript" type="text/javascript">
<!--

/*
*** Multiple dynamic combo boxes
*** by Mirko Elviro, 9 Mar 2005
*** Script featured and available on JavaScript Kit (http://www.javascriptkit.com)
***
***Please do not remove this comment
*/

// This script supports an unlimited number of linked combo boxed
// Their id must be "combo_0", "combo_1", "combo_2" etc.
// Here you have to put the data that will fill the combo boxes
// ie. data_2_1 will be the first option in the second combo box
// when the first combo box has the second option selected


// first combo box

        data_1 = new Option("1", "$");
        data_2 = new Option("2", "$$");

// second combo box

        data_1_1 = new Option("11", "-");
        data_1_2 = new Option("12", "-");
        data_2_1 = new Option("21", "--");
        data_2_2 = new Option("22", "--");
        data_2_3 = new Option("23", "--");
        data_2_4 = new Option("24", "--");
        data_2_5 = new Option("25", "--");

// third combo box

        data_1_1_1 = new Option("111", "*");
        data_1_1_2 = new Option("112", "*");
        data_1_1_3 = new Option("113", "*");
        data_1_2_1 = new Option("121", "*");
        data_1_2_2 = new Option("122", "*");
        data_1_2_3 = new Option("123", "*");
        data_1_2_4 = new Option("124", "*");
        data_2_1_1 = new Option("211", "**");
        data_2_1_2 = new Option("212", "**");
        data_2_2_1 = new Option("221", "**");
        data_2_2_2 = new Option("222", "**");
        data_2_3_1 = new Option("231", "***");
        data_2_3_2 = new Option("232", "***");

// fourth combo box

        data_2_2_1_1 = new Option("2211","%")
        data_2_2_1_2 = new Option("2212","%%")

// other parameters

    displaywhenempty=""
    valuewhenempty=-1

    displaywhennotempty="-select-"
    valuewhennotempty=0


function change(currentbox) {
        numb = currentbox.id.split("_");
        currentbox = numb[1];

    i=parseInt(currentbox)+1

// I empty all combo boxes following the current one

    while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
          (document.getElementById("combo_"+i)!=null)) {
        son = document.getElementById("combo_"+i);
            // I empty all options except the first one (it isn't allowed)
            for (m=son.options.length-1;m>0;m--) son.options[m]=null;
            // I reset the first option
            son.options[0]=new Option(displaywhenempty,valuewhenempty)
            i=i+1
    }


// now I create the string with the "base" name ("stringa"), ie. "data_1_0"
// to which I'll add _0,_1,_2,_3 etc to obtain the name of the combo box to fill

    stringa='data'
    i=0
    while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
          (document.getElementById("combo_"+i)!=null)) {
          eval("stringa=stringa+'_'+document.getElementById(\"combo_"+i+"\").selectedIndex")
          if (i==currentbox) break;
          i=i+1
    }


// filling the "son" combo (if exists)

    following=parseInt(currentbox)+1

    if ((eval("typeof(document.getElementById(\"combo_"+following+"\"))!='undefined'")) &&
      (document.getElementById("combo_"+following)!=null)) {
      son = document.getElementById("combo_"+following);
      stringa=stringa+"_"
      i=0
      while ((eval("typeof("+stringa+i+")!='undefined'")) || (i==0)) {

      // if there are no options, I empty the first option of the "son" combo
          // otherwise I put "-select-" in it

                    if ((i==0) && eval("typeof("+stringa+"0)=='undefined'"))
                        if (eval("typeof("+stringa+"1)=='undefined'"))
                            eval("son.options[0]=new Option(displaywhenempty,valuewhenempty)")
                        else
                    eval("son.options[0]=new Option(displaywhennotempty,valuewhennotempty)")
              else
              eval("son.options["+i+"]=new Option("+stringa+i+".text,"+stringa+i+".value)")
              i=i+1
          }
      //son.focus()
      i=1
      combostatus=''
      cstatus=stringa.split("_")
      while (cstatus[i]!=null) {
          combostatus=combostatus+cstatus[i]
          i=i+1
          }
      return combostatus;
    }
}

//-->
</script>

And for each seperate custom question I did the following.

PHP Code:

//Question 1
$thisanswer $q_{$formbit[id]};
$answer ="<select name=\"".$formbit[id]."\" id=\"combo_0\" onChange=\"change(this);\" style=\"width:200px;\">
    <option value=\"value1\">-select-</option>
    <option value=\"value2\">1</option>
    <option value=\"value3\">2</option>

</select>"


PHP Code:

//Question 2
$thisanswer $q_{$formbit[id]};
$answer ="<select name=\"".$formbit[id]."\" id=\"combo_1\" onChange=\"change(this)\" style=\"width:200px;\">
    <option value=\"value1\">  </option>
</select>"



PHP Code:

//Question 3
$thisanswer $q_{$formbit[id]};
$answer ="<select name=\"".$formbit[id]."\" id=\"combo_2\" onChange=\"change(this);\" style=\"width:200px;\">
    <option value=\"value1\">  </option>
</select>"



PHP Code:

//Question 4
$thisanswer $q_{$formbit[id]};
$answer ="<select name=\"".$formbit[id]."\" id=\"combo_3\" onChange=\"change(this);\" style=\"width:200px;\">
    <option value=\"value1\">  </option>

</select>"


Example

The questions work wonderfully and the values are submitted properly. Hope this is helpful to someone.

jl255 09-18-2009 08:34 AM

are there any potential security issues with this hack considering that it might allow hackers to plant malicious code into the server.....

can anyone give some basic analysis? tks.

alloutvb 09-18-2009 09:21 PM

1 Attachment(s)
hello there i need to know how to tweak this thing out

when you do the check boxs in more then one row there not all even (see pic)

and the other one is then you make a section when they post there input it post the section then (Single Line Text Field) is right next to it and not down one line (see other pic)

jaryx 09-22-2009 10:51 AM

It is possible to replace the text in Dropdown Select by image?
For example, if the user selects (in the form) a number "1", how can I get (in the topic) "1" replace with image 1.jpg?

Flood 09-25-2009 07:03 PM

Am i doing this wrong. I uploaded the Clientscript files. Imported the xml file.

When i went to the admincp options it gave me the list of usergroups (ie admin mod etc...) not the usergroups ID. I couldn't add or delete usergroups.

I also had no permissions to access the forms page and couldn't create new forms either?

temporaryins 09-27-2009 04:05 AM

So I noticed this isn't supported anymore.. is there a similar mod like this that is supported?

ramil86 09-28-2009 09:58 PM

Hi everyone.First of all thanks for such a great mode.
I have installed the mode and have some issues with encoding. I can create forms with russian characters, they are not displayed correctly. How can i change the encodding to UTF-8?

Second question is about attachments, is it possible to send attached files in forms to emails?
Thanks

HolyKiller 10-02-2009 01:33 PM

Quote:

Originally Posted by Flood (Post 1890566)
Am i doing this wrong. I uploaded the Clientscript files. Imported the xml file.

When i went to the admincp options it gave me the list of usergroups (ie admin mod etc...) not the usergroups ID. I couldn't add or delete usergroups.

I also had no permissions to access the forms page and couldn't create new forms either?

You need to highlight usergroup for grant permission. Use CTRL+CLICK for highlight more usergroups.

Canadians360 10-05-2009 04:01 PM

I have this modification installed, I rember before there was an incredibly detailed and effective list of how to go about doing certain things with this modification. However that link is now down. Does anyone know where I could possibly find the list still, or if someone could post perhaps how to add prefix's to the form. Although Id much rather get my hands on that list again. Thanks in advance if anyone is willing to help me out.

NiTRoN 10-05-2009 06:43 PM

Would it be possible to make option so you can receive emails in the same format as the BB Codes for the output. Right now I still get that generic TXT emails instead ones with the format of the output. Thanks

horusbird 10-06-2009 08:02 AM

Quote:

Originally Posted by Cyricx (Post 1849174)
I uninstalled the forms modification.

Installed 3.7

No dice, still redirects to first forum

Uninstalled 3.7

Installed 3.6

No dice, still redirects to first forum.

If you'd like admin access to view it, I can give you a test login that'll allow you to edit the forms on my board.



I have the same problem, you solved?
Thanks

alloutvb 10-08-2009 03:53 AM

Quote:

Originally Posted by alloutvb (Post 1887231)
hello there i need to know how to tweak this thing out

when you do the check boxs in more then one row there not all even (see pic)

and the other one is then you make a section when they post there input it post the section then (Single Line Text Field) is right next to it and not down one line (see other pic)

any one know how to fix this i need this fixed bad :confused::confused::confused:

bada_bing 10-08-2009 07:13 PM

I have this installed and when I try and create a form and submit it its telling me that I have too many characters? How can I increase the character limits?

HolyKiller 10-09-2009 06:50 PM

Can anyone help me how to change date format to DD-MM-YYYY, because that MM-DD-YYYY is a little confusing to my users.

Thanks

bada_bing 10-11-2009 01:34 AM

Quote:

Originally Posted by bada_bing (Post 1896770)
I have this installed and when I try and create a form and submit it its telling me that I have too many characters? How can I increase the character limits?

Is this a dead mod? no support

jl255 10-14-2009 04:36 PM

Quote:

Originally Posted by jl255 (Post 1886880)
are there any potential security issues with this hack considering that it might allow hackers to plant malicious code into the server.....

can anyone give some basic analysis? tks.

anyone?? wld appreciate it....

djbaxter 10-15-2009 02:08 AM

Quote:

Originally Posted by jl255 (Post 1886880)
are there any potential security issues with this hack considering that it might allow hackers to plant malicious code into the server.....

can anyone give some basic analysis? tks.

If there were any known issues, the add-on would have been yanked to the graveyard by vbulletin.org staff.

Alisa Lindsay 10-15-2009 10:19 PM

Not installed and not sure it ever will be.

djbaxter 10-15-2009 10:59 PM

Quote:

Originally Posted by Alisa Lindsay (Post 1900583)
Not installed and not sure it ever will be.

:confused:

Thanks for sharing... :rolleyes:

dadoc 10-18-2009 07:30 AM

I can't access this link, It looks like it is closed?


View/Create forms at
http://your-forum.com/forums/misc.php?do=forms

Would someone point me in the right direction?

and the bananalive link is closed as well?

Thanks
Ryan

Simon Lloyd 10-18-2009 08:47 AM

Quote:

Originally Posted by dadoc (Post 1901594)
I can't access this link, It looks like it is closed?


View/Create forms at
http://your-forum.com/forums/misc.php?do=forms

Would someone point me in the right direction?

and the bananalive link is closed as well?

Thanks
Ryan

After you have installed the modification thats how you access your form that you have created replacing your-forum.com with your url, here's mine http://www.thecodecage.com/forumz/misc.php?do=forms

Simon Lloyd 10-18-2009 08:54 AM

Bananalive, is there any way to have text block highlighted either within fields that the form delivers or in the VB text editor within your form, i would like to block highlight keywords or text in my form submissions.

Simon Lloyd 10-18-2009 09:20 AM

Forget i asked, i can do it in BB code like this <font style="background:yellow; color:red">My Text</font> now all i need to do is to workout how to only let the highlight icon be available when the vb text editor is open in the form?

ragtek 10-20-2009 11:08 AM

Is it possible to add a field, where the user can add some textlines and they will be outputed as a list?

Deimos 10-20-2009 04:10 PM

Great system, thanks very much
Only problem I see is this
When a thread is posted after a form is submitted, it doesn't show on the "Unread posts" search page
Is there anyway to fix that?


All times are GMT. The time now is 07:58 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.02848 seconds
  • Memory Usage 1,867KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (10)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