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)

Kiint 04-19-2009 02:04 PM

I've just installed v3.4 and created a test forum with 2 vbeditors,

I opened the form and typed 2 different test comments in each and clicked on preview. When the preview page was displayed both fields had the same content.
I got the same results when submitting the page, the contents of the 2nd vbeditor were copied into the 1st.

So something isn't working quite right yet...

bananalive 04-19-2009 03:32 PM

1 Attachment(s)
Quote:

Originally Posted by Kiint (Post 1794422)
I've just installed v3.4 and created a test forum with 2 vbeditors,

I opened the form and typed 2 different test comments in each and clicked on preview. When the preview page was displayed both fields had the same content.
I got the same results when submitting the page, the contents of the 2nd vbeditor were copied into the 1st.

So something isn't working quite right yet...

v3.5+ allows multiple vb editors (not been released in first post, but attached)

TimberFloorAu 04-20-2009 02:09 AM

Quote:

Originally Posted by bananalive (Post 1793847)
Edit Form then Check 'Post New Thread'

(if javascript is disabled then save the form and the option will appear)

Ahhhh ! Bloody Good Show old bean !!! Works a treat :)

Thanks

Billspaintball 04-20-2009 09:29 AM

Quote:

Originally Posted by bananalive (Post 1794421)
I'll prob not add editing feature, but i might add option to somehow store data individually.

Even just storing data individually would be great. :)

I can hack together an edit function.
On that point are we allowed to modify your code to add features such as this?

Bea\/is 04-20-2009 10:01 AM

How to set as the answer:
Q: Result of the form will be submited as new tread to forum (for example id =1,2,5,6); A: forum's name (drop down menu)
Q: With what forum prefix (for these forums to which will be placed result); A: prefixes (drop down menu)

I guess that it is necessary to create Custom Question with a db query :rolleyes:

bananalive 04-20-2009 04:02 PM

Quote:

Originally Posted by Bea\/is (Post 1795044)
How to set as the answer:
Q: Result of the form will be submited as new tread to forum (for example id =1,2,5,6); A: forum's name (drop down menu)
Q: With what forum prefix (for these forums to which will be placed result); A: prefixes (drop down menu)

I guess that it is necessary to create Custom Question with a db query :rolleyes:

Yes or use array $vbulletin->forumcache for forumlist.

bananalive 04-20-2009 04:03 PM

Quote:

Originally Posted by Billspaintball (Post 1795037)
Even just storing data individually would be great. :)

I can hack together an edit function.
On that point are we allowed to modify your code to add features such as this?

Yes if it is not publicly re-distributed as your own work

amjadz4 04-20-2009 05:21 PM

How come I did not get an update notification?

Updated! :) Thanks.

MustangLisa 04-20-2009 06:30 PM

This is AWESOME, thank you!!

Nadavy 04-21-2009 01:09 AM

Quote:

Originally Posted by bananalive (Post 1794325)
Have you got anything in the form hooks?

No I haven't touched those.

anuanu 04-21-2009 04:10 AM

Is it possible to add a password? Like before a form is view a password is required? Or before its submitted a password is required? Is this possible?

ThE LeAdEr 04-21-2009 12:03 PM

Hello!

How do I prevent a user meets twice?

(only one answer for user!)

bananalive 04-21-2009 01:40 PM

Quote:

Originally Posted by anuanu (Post 1795696)
Is it possible to add a password? Like before a form is view a password is required? Or before its submitted a password is required? Is this possible?

I don't think there is a way to achieve this.

bananalive 04-21-2009 01:40 PM

Quote:

Originally Posted by ThE LeAdEr (Post 1795879)
Hello!

How do I prevent a user meets twice?


(only one answer for user!)

As the form does not store who has used the form, this is not possible.

ReadOrDie 04-21-2009 10:19 PM

For such a simple mod this one is awfully confusing. I installed it and couldn't figure out. How do I select more usergroups? The options aren't clearly defined at all and I can't select more than one usergroup. Why can't I edit forms via AdminCP? Why can't I create forms via AdminCP? The usergroup settings are probably the most confusing of all Vbulletin mods I've seen in the 4 years I've been using this forum software. The hack goes through VBoptions and the settings are not only limited but poorly worded. For anyone looking to remember the good old days of the Vbulletin Quiz hack, this modification is NOT for you. Shame...

Michigan Morels 04-22-2009 05:00 AM

I see this is your 1st post in this mod thread ReadOrDie.
I also see you've been a member at vborg for quite awhile.

So by now you ought to know not to jump in and go slammin a coder without a fair trial. LOL

I, above all, understand frustration. I have to be the dumbest person on this site, when it comes to understanding this stuff. In fact I don't understand it at all. If it works, I use it. If it don't I ask for help from the person who crafted the Mod. If they are one of the many poor ones who never come back to support there mods, then I dump it and get on with life.

But the support in this particular mod is the best I've seen in any mod I've tried. He answers so quick it's amazing! And he ignores no one.

So if you are having a bit of trouble fiquring things out...

Try reading all 60 pages of this thread several times like I did. And also remember to read the "HELP FILE" posted at the top too along with documentation included in the zip file.

It's hard to come up with a question that hasn't already been answered somewhere. But even when people don't read everything, this guy has the patience to repeat his answers again and again.

And if you don't find your answer? Try asking.
That always seems to work here! :up:
____________________________
Sorry for sounding rude, or like a know it all. I'm not.
It's just that this is the best supported hack I've run accross and your post struck a nerve tonight. :) Sorry for ranting.

Storyteller69 04-22-2009 05:06 AM

Quote:

Originally Posted by ReadOrDie (Post 1796346)
How do I select more usergroups? The options aren't clearly defined at all and I can't select more than one usergroup.

You use vBadvanced on your site so where is your problem? The selection there is for many options the same as for the usergroups in this modification. Simply click and hold the CTRL-Key and click on the desired usergroups with the left mouse button. Save it and it's done.

That it isn't running on the ACP, is one of the great features! So different users/usergroups can simply work on building a form. Without having access to the ACP. ;)
If you don't like it because it isn't what your're looking for search for another one but don't defame this great modification without cause. Just my 2cents.

Storyteller

amjadz4 04-22-2009 05:10 AM

I agree...its not very user-friendly...in fact not at all user friendly! I think the admin should do some major changes to make it as simple as MachForms. :D

Welshy2008 04-22-2009 08:19 AM

In defence of the coder, Guys.

His help is absolutely Great.

;)

** Edit **

Patient and very helpful. The only one that I have come across on vB.org.

Welshy2008 04-22-2009 08:21 AM

Quote:

Originally Posted by anuanu (Post 1795696)
Is it possible to add a password? Like before a form is view a password is required? Or before its submitted a password is required? Is this possible?

What I have done is set it so that every form submitted has to be 'Moderated'. Once I have viewed it and approved it - Only then, does it go 'Live'.

Regards,

Welshy2008.

Gotmian 04-22-2009 09:08 AM

Hey, great mod! :)

Is there a way for me when the email is sent out to include there the username of the member who used the form?

amjadz4 04-22-2009 09:19 AM

Quote:

Originally Posted by Gotmian (Post 1796589)
Hey, great mod! :)

Is there a way for me when the email is sent out to include there the username of the member who used the form?

just add a field for named "username" so the user who is typing will enter his username. :)

Elenna 04-22-2009 02:05 PM

Quote:

Originally Posted by Gotmian (Post 1796589)
Hey, great mod! :)

Is there a way for me when the email is sent out to include there the username of the member who used the form?

You can include {username} in the form if you'd like (perhaps in the title?).

If you'd rather their username appear as the answer to a question, do this:

Create a new question, selecting "Custom" for the type. Name it "Username".

In the code field, enter in:
Code:

$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[username] . '" style="background:silver;"  />';
Then their username is sent in like it is the answer to a question in the form, and they cannot change it.

Martyh 04-23-2009 12:33 AM

Hi BananaLive,

( Or anyone that can help.)

When I submit the form below ( your example ) to a HTML page , it directs me to a page of smileys located here

http://localhost/forum/misc.php?user=bob

It seems to cut off the "do=form&fid=1" part but does add the "user=bob" part"
I'm kinda stuck on that one.

.
<form name="form" action="http://localhost/forum/misc.php?do=form&fid=1" method="get">
Username:
<input type="text" name="user" />
<input type="submit" value="Submit" />
</form>




Another question on this one.

Quote:

Originally Posted by bananalive (Post 1792360)
How do I get parameter from url of form posted in custom output? (must have parameter)

1. Form Hook: Form Start

PHP Code:

$hiddenfield1 $vbulletin->input->clean_gpc('g''param'TYPE_UINT);
      if (empty(
$hiddenfield1))
          {
              
$errormessage "Error, this form needs a parameter.";
                 eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
          } 

2. Form Hook: Before Submit
PHP Code:

     $hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_UINT);
      
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput); 

3. Use {param} in custom output.

Do I need to change anything in these codes to be able to use the form on the top of the page ?

When you say "use {param} in custom output" I really don't know what that means could someone explain that in a little more detail please ? . Sorry for my inexperience I am willing to pay/donate (to you or to your favorite charity), to anyone who can help me out with this.

Thanks,

bananalive 04-23-2009 08:39 AM

Quote:

Originally Posted by Martyh (Post 1797082)
Hi BananaLive,

( Or anyone that can help.)

When I submit the form below ( your example ) to a HTML page , it directs me to a page of smileys located here

http://localhost/forum/misc.php?user=bob

It seems to cut off the "do=form&fid=1" part but does add the "user=bob" part"
I'm kinda stuck on that one.

.
<form name="form" action="http://localhost/forum/misc.php?do=form&fid=1" method="get">
Username:
<input type="text" name="user" />
<input type="submit" value="Submit" />
</form>



Another question on this one.


Do I need to change anything in these codes to be able to use the form on the top of the page ?

When you say "use {param} in custom output" I really don't know what that means could someone explain that in a little more detail please ? . Sorry for my inexperience I am willing to pay/donate (to you or to your favorite charity), to anyone who can help me out with this.

Thanks,

HTML Code:

<form name="form" action="misc.php" method="get">
<input type="hidden" name="do" value="form" />
<input type="hidden" name="fid" value="1" />
Username:
<input type="text" name="user" />
<input type="submit" value="Submit" />
</form>

PHP Code:

$hiddenfield1 $vbulletin->input->clean_gpc('g''user'TYPE_NOHTML);
if (empty(
$hiddenfield1))
{
  
$errormessage "Error, this form needs a username.";
  eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');


Custom output enables you to design your own layout using the parts of the form.
PHP Code:

$hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_NOHTML);
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput); 

The alternative would be to use this code: (it justs adds the field like another question at the end of the form output)
PHP Code:

$formoutput .= $form[preq] . "Username" $form[pstq];
$formoutput .= $form['prea'] . $hiddenfield1 $form[psta]; 


Martyh 04-23-2009 08:58 AM

Thanks again BananaLive,

Let me make sure I'm not wasting your time here, I should do this ?

1.) Use the HTML code on my HTML template

2.) Use the first php code in my hook form start

3.) Use the second php code in my custom output window.

4.) OR use the last php code in place of the third one if I just want to add the field to the end of a form

Please correct where I may be wrong in this sequence.

Thanks

bananalive 04-23-2009 09:28 AM

Quote:

Originally Posted by Martyh (Post 1797269)
Thanks again BananaLive,


Let me make sure I'm not wasting your time here, I should do this ?

1.) Use the HTML code on my HTML template

2.) Use the first php code in my hook form start

3.) Use the second php code in my custom output window.

4.) OR use the last php code in place of the third one if I just want to add the field to the end of a form

Please correct where I may be wrong in this sequence.

Thanks

Yes apart from 3. The custom output is the bbcode/text which is how you want the form's post/email/etc. to look like.

3.) Use the second php code in Form Hook: Before Submit and then do a custom output

Martyh 04-23-2009 09:43 AM

Hi,

OK , a lot of progress. The field name shows up in the new thread at the end ( prefer that one ) but the value doesn't ( actual name entered in form )

Sorry to be a pain.

Thanks

bananalive 04-23-2009 02:12 PM

Quote:

Originally Posted by Martyh (Post 1797286)
Hi,

OK , a lot of progress. The field name shows up in the new thread at the end ( prefer that one ) but the value doesn't ( actual name entered in form )

Sorry to be a pain.

Thanks

view page source of form, and see if you get

<input type="hidden" name="hiddenfield1" ... />

Is there anything in the value="" part of it?

zushiba 04-23-2009 06:37 PM

I'm looking through the help file for information on the save to database function but don't see anything. Anyone have any tips on what this does and how it works?

Martyh 04-23-2009 06:38 PM

Quote:

Originally Posted by bananalive (Post 1797470)
view page source of form, and see if you get

<input type="hidden" name="hiddenfield1" ... />

Is there anything in the value="" part of it?

Hi ,

I put the name in the form and it takes me to the form ( all good ) , I then view source and the name I entered on the previous page is there right as you described ( all good ) but when I submit it only the field shows up on the new thread. ( getting close )

Thanks

Martyh 04-23-2009 08:55 PM

Hi,


When I use these two together it works , was that the instruction ? Separately they don't work.

Quote:

Originally Posted by bananalive (Post 1797263)
[HTML]

PHP Code:

$hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_NOHTML);
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput); 

The alternative would be to use this code: (it justs adds the field like another question at the end of the form output)
PHP Code:

$formoutput .= $form[preq] . "Username" $form[pstq];
$formoutput .= $form['prea'] . $hiddenfield1 $form[psta]; 


Thanks

KevinGupta 04-24-2009 01:18 AM

I'm getting the following error :( How can I fix it? What have I done wrong?


Parse error: syntax error, unexpected $end in /home/vb/public_html/test/forum/misc.php(100) : eval()'d code(2219) : eval()'d code on line 1

Parse error: syntax error, unexpected '.' in /home/vb/public_html/test/forum/misc.php(100) : eval()'d code(2516) : eval()'d code on line 1

KevinGupta 04-24-2009 01:21 AM

It is also not giving any form to write answers? I chose CUSTOM and then typed the question but
I can see the question ... :( but no place to write the answer

bananalive 04-24-2009 06:49 PM

Quote:

Originally Posted by Martyh (Post 1797737)
Hi,


When I use these two together it works , was that the instruction ? Separately they don't work.



Thanks

They do different things so you need them both in the Form Hook: Before Submit:
PHP Code:

$hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_NOHTML);
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput);  
$formoutput .= $form[preq] . "Username:" $form[pstq];
$formoutput .= $form['prea'] . $hiddenfield1 $form[psta]; 


bananalive 04-24-2009 06:53 PM

Quote:

Originally Posted by KevinGupta (Post 1797856)
It is also not giving any form to write answers? I chose CUSTOM and then typed the question but
I can see the question ... :( but no place to write the answer

Have a look at the help file

If you use custom, you should use something like:
PHP Code:

$answer "html code for question here"


bananalive 04-24-2009 06:55 PM

Quote:

Originally Posted by zushiba (Post 1797662)
I'm looking through the help file for information on the save to database function but don't see anything. Anyone have any tips on what this does and how it works?

It will save the form result in a separate database like a post which can be accessed by those able to edit forms.

bananalive 04-24-2009 06:56 PM

Quote:

Originally Posted by KevinGupta (Post 1797850)
I'm getting the following error :( How can I fix it? What have I done wrong?


Parse error: syntax error, unexpected $end in /home/vb/public_html/test/forum/misc.php(100) : eval()'d code(2219) : eval()'d code on line 1

Parse error: syntax error, unexpected '.' in /home/vb/public_html/test/forum/misc.php(100) : eval()'d code(2516) : eval()'d code on line 1

Have you got anything in the form hooks?

Martyh 04-24-2009 06:56 PM

Quote:

Originally Posted by Martyh (Post 1797737)
Hi,


When I use these two together it works , was that the instruction ? Separately they don't work.



Thanks

Thanks again,

I was right , I figured that I was the problem the whole time.

KevinGupta 04-24-2009 10:58 PM

Quote:

Originally Posted by bananalive (Post 1798355)
Have you got anything in the form hooks?

Form Hooks, I left it blank.. I thought it would use default? How do I put it then?


All times are GMT. The time now is 09:10 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.03828 seconds
  • Memory Usage 1,891KB
  • 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
  • (1)bbcode_html_printable
  • (9)bbcode_php_printable
  • (24)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