vb.org Archive

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

bananalive 08-30-2012 04:46 PM

Quote:

Originally Posted by wolfey (Post 2360488)
I am currently using this form for an employee to request a vacation from work
What I would like to do is check the start date against todays date and make sure it is 2 weeks in advance.

Can you point me in the right direction with what code or hook I can use

Thanks!

You can do validation with php via the: Form PHP Hooks -> Form Hook: Before Submit:

bananalive 08-30-2012 04:47 PM

Quote:

Originally Posted by ascroft (Post 2356116)
Hi there.

One tweak I wanted to make is pass the forum in the string - [MAP]{qo_72},{qo_73},{qo_74}[/MAP] but strip a prefix I have on the forum (one of the questions).

For example if {qo_73} actually contained "PD_Wakari", I wanted the insert in to the string to be "Wakari" i.e. drop the first 3 chars. I know how to do that in Excel but not that useful here!

Is there a simple way to do this please?

Thanks.

Mark

You can use form php hooks and php function substr()

Reference: http://php.net/manual/en/function.substr.php

svaghari 08-30-2012 05:38 PM

Quote:

Originally Posted by bananalive (Post 2361240)
Have you put anything in the php form hooks?

Nothing, I think it comes up when someone forgets to answer a mandatory field.

svaghari 08-30-2012 07:13 PM

nvm, got it fixed

svaghari 08-30-2012 07:17 PM

Quote:

Originally Posted by bananalive (Post 2361242)
Nope, you would have to create a custom question for this


:confused:I'm not sure how you would do this. Can I pay someone to get a 'payment' question working for me via paypal etc...?

springchiken 09-04-2012 04:47 AM

bananalive

Had a question for you. Is there anyway to get the max text amount over 5000 i need it to be around 5600-6000. Some of are forms a very large.

Elenna 09-05-2012 04:49 PM

That is likely a vBulletin setting for the max characters per post. You can change that in the settings (Message Posting options, I believe).

deadlySniper 09-11-2012 12:32 AM

I must not be looking in the right areas or something. Is there a way to edit the top part of a form when they are looking to fill it out.

http://gameboxtools.com/uploads/imag...1013222290.png

sniper pak 09-21-2012 08:49 AM

Friends, i have very strange question...pls help.

1. Admin of forms create form with option save to DB and posting result to forum.
2. User fill out and submit.
3. User wants to change its, and send PM to admin of forms. Example: @I made a mistake with Number of places, I have not 3, i wanna 4".
4. Admin changed result of form.
5. But, in autopost 3 not changed on 4!

Q: How to link edit the result in the administrative part of the result in a forum?

Budget101 09-26-2012 12:00 PM


I originally asked, "Is there any way to add an "Upload Photo" field?? "

Quote:

Originally Posted by bananalive (Post 2105883)
You can allow attachments, when the form creates new thread.


Ok, I tried this, but then I have to go back to all the usergroups and change their permissions to allow attachments and then they can view the attachments box.

Is there a way to add a short "Upload" button that just says, "browse for photo" or something to that effect without having to give sitewide attachment permissions??

I need an "Upload Photo" button that can be used if the form is being sent to email, rather than posted to thread and submission of photo is Required- not optional.

singabaloo 09-27-2012 11:08 AM

Is there anyway to make one form lead to another ? I am thinking of a basic workflow.

User submits form and becomes a new thread in a subgroup, admin opens it and after some checks can click another button somewhere which will grab the information n that form to populate another form that will do things like add a user to a group, move a thread to a different forum and send a pm to the original user.

I can get everything working (I think) using two seperate forms but I'd love to tie them together so the admin doesn't have to cut and paster from one submitted form to another open form.

Trevor Matthews 09-28-2012 09:01 PM

I have searched this thread and can't find the answer.

I have a simple form that is emailed to me when submitted.
{username}

{bbuserinfo.email}

{qn_61} {qo_61}
{qn_62} {qo_62}
{qn_63} {qo_63}
{qn_64} {qo_64}
{qn_65} {qo_65}
{qn_66} {qo_66}
{qn_115} {qo_115}
{qn_139} {qo_139}
{qn_140} {qo_140}

I really need to send a copy of the submitted form by email to the person submitting it.

How would I send an email to the forum member who submitted the form?

Many thanks.

Trevor Matthews 09-29-2012 04:59 PM

I looked again though the posts and found this;

$uheaders .= 'Reply-To: = ' . $vbulletin->userinfo['email'] . "\r\n";

But where in the form do I put this????

Goatpod 10-01-2012 11:55 AM

Haven't used forms since upgrading to 4.2.0.

Just started using them again and I've found that it's dumped all the permission settings from the AdminCp-->Options-->Settings-->Easy Forms and won't save them when they're reset!

Anyone experienced this and anyone know a fix?

Thanks for any advice or help.

Dave


EDIT: Problem solved: for some reason, would not save settings when accessed with "show all settings" but would save permissions fine when the individual Easy Forms option was chosen from the list.

knikio 10-01-2012 04:52 PM

There's a Way To Upload Files (Attachment) Directly In To The From ?
(Without Using A Thread)
Maybe By Using A Custom Question ?

Thanks
Knikio

zushiba 10-15-2012 09:45 PM

Is there any way to allow a user to upload/manage attachments to a previously submitted form, if they are able to edit previously submitted records?

edit: I guess it's a somewhat similar question to the post above me.

andy_mcguire 10-18-2012 12:51 PM

I am having a problem where I press create a form, press "save" and then on the next screen modify something, hit "save" again and it redirects me to the forum rules. So stumped, anyone got any idea?

madness85 10-19-2012 07:19 PM

is this possible i want my forum private so permission are set so unregistered users cant see forum .

but i would like to use this as an app to enter if approved i send them a invite ive added the app link to navbar and added permissions but still no access

Z3R0Skull 10-27-2012 10:43 AM

Hello
Very useful AddOn! Thank you! Only question I have is: Is it possible to add my custom human verification? e.g. Motion Capcha? How would I do this?
Thanks

djbaxter 10-28-2012 08:45 PM

Note: Many of the bugs mentioned above, e.g., the "navigate away from this page" popup, are cause by using the ckEditor in your form. In particular, note that you can NOT have more that one editor field on a form or the form will not submit.

Workaround: Change any ckeditor items to multline text fields.

bigrover 10-30-2012 06:30 AM

I have duplicated my live site domain/vb to a test site domain/vbtest and upgrade from vB 4.1.11 to vB 4.2.0pl2. I have also created a new database and restored a backup of the live site to the test database. I adjusted the config settings so the test site is functioning as expected, with one exception. The Forms tab and the Forms Quicklinks menu item are missing. The form processing is working as expected, and I can get to the forms.php page when needed to modify the forms. In my live site I access the forms through redirects based on code examples you provided. That also is working in the test site. The only thing failing is the Forms tab and the Forms Quicklinks menu.

I uninstalled and reinstalled with no change. Any ideas? Is this related to the upgrade?

boss22 11-02-2012 04:39 PM

Can someone help me to get links to work..mean forms list in quick links and navbar link (settings for that works not in admin cp). Use vb 4.2.0 PL3

regards

bosss

mike weeks 11-05-2012 02:00 PM

Well I get this message every time somebody tries to submit the form the user gets the following error
Code:

Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script
- I also get it as admin if I click on the edit question link however if I right click on the link I can open it in a new tab

Help really needed

Mike

Cadellin 11-07-2012 10:46 AM

I've recently updated to 4.3.0 and found a couple of bugs which it would be great to get fixed:
  • [Major] After submission as unregistered user in "verification stage" fields which are marked guest only are removed. This can prevent submission if they are marked compulsory
  • "Allow attachments" causes non-existent verification image to be checked at submission for unregistered users
  • Styling is broken on human verification field if label is hidden

Badhabitz 12-04-2012 09:26 PM

Still an Epic Mod could not live without it.

I have a problem that I have been banging my head on the wall with. I currently have it set up that users are assigned different usergroup based on what options they pick. I would like to take it a step further and based on these same options it PM's a predefined usergroup or users. Here is my try. I believe the field for PM is incorrect possibly even the code.

PHP Code:

if ($complete)
{
if (
strpos($qo['12'], "Counter-Strike") !== false)
{
$form['userfield_txt'] .= ';user1';


if (
$complete)
{
if (
strpos($qo['12'], "SWTOR") !== false)
{
$form['userfield_txt'] .= ';user2'

So for every additional option selected it should add more users to the PM. Would like it to be a usergroup since its always changing ,but can live with individual users.

bananalive 12-09-2012 03:31 PM

Quote:

Originally Posted by Badhabitz (Post 2388495)
Still an Epic Mod could not live without it.

I have a problem that I have been banging my head on the wall with. I currently have it set up that users are assigned different usergroup based on what options they pick. I would like to take it a step further and based on these same options it PM's a predefined usergroup or users. Here is my try. I believe the field for PM is incorrect possibly even the code.

PHP Code:

if ($complete)
{
if (
strpos($qo['12'], "Counter-Strike") !== false)
{
$form['userfield_txt'] .= ';user1';


if (
$complete)
{
if (
strpos($qo['12'], "SWTOR") !== false)
{
$form['userfield_txt'] .= ';user2'

So for every additional option selected it should add more users to the PM. Would like it to be a usergroup since its always changing ,but can live with individual users.

You need to close your brackets using }

Code:

if ($complete)
{
//blah blah blah
}


Forbiddenz 12-18-2012 10:00 AM

Quote:

Form failed to submit. The following error(s) occured: The string you entered for the image verification did not match what was displayed
I am getting this error everytime my member tried to submit a form, even though i have put Human Verification Captcha inside the Form, and they type it correctly.

This problem occurs after i tried to turning on Captcha Required before Posting. because too many spam bots on my forum.

Can someone help me?

jcgriff2 12-24-2012 12:33 PM

I don't see how Spam bots could be an issue unless perms allow Guests to submit.

Do you have SFS or similar installed?

https://vborg.vbsupport.ru/showthread.php?t=248042

KGodel 01-08-2013 10:48 PM

Hey bananalive, I was wondering if there is a way to add something in the link to auto-select certain things, so say I have a question about a recruiter or something, and I want a link like:

http://www.blabla.com/forum/forms.ph...elduser=KGodel

So it would automatically place KGodel into that field is there an easy way of doing that?

richardevans123 01-10-2013 02:40 AM

Heya, I'm trying to get it so that when a user submits a form, they can only see their own results saved on the database, and no one elses. Any way of doing this? Thanks

Elenna 01-15-2013 08:51 PM

Good afternoon!

We are wanting to set up a few forms to act like a database of sorts, and would like the navigation buttons (shown while viewing each form or results) to change depending on the form they have open.

For example, there are two forms, one for adding details about your pets and another for adding details about your shoes. While viewing the form itself or the Results, we'd like the button images to be customized to say "View Form" to"Add New Pet" / "Add New Shoes", or "View Form Results" to "View Pets" / "View Shoes", etc.

If that makes sense? Is there a conditional that I could use to modify those sorts of things?

Karma 01-21-2013 02:55 AM

Hello everyone, I was wondering if anybody was having the issue of the form menu not appearing in the navbar or in the quick links section and had fixed it. I've checked all the permissions a bunch of times and changed the styles thinking maybe I did something but nothing seems to work. I see a user above has the same issue but not sure if he finally got it solved. Hope to hear back from anyone about this issue. Here is the board:

http://karma.tc/ethereal

I re-enabled the navbar so you can take a look. I'd like to get it working as part of the actual menu.

smirkley 01-21-2013 04:46 AM

New navbar settings and variables in 4.2,... insert it manually in acp.

Karma 01-21-2013 06:31 AM

Quote:

Originally Posted by smirkley (Post 2398333)
New navbar settings and variables in 4.2,... insert it manually in acp.

Hey, thanks for the answer. I thought about doing it before but I guess I just didn't. Last question though, how can I make it so that the new tab can only be seen by Administrators? Under 'Show permission name' I tried putting in like administrator and such but of course it didn't work. I'm not sure on how to do that, I was just playing around with that.

PS: Is it possible to make the form post in 2 different threads? I see it says Post New Thread and allows me to select 1 so I thought maybe a little edit somewhere could make it so that it's capable of posting in 2?

Love the mod by the way! Absolutely loving it! Excellent job banana!

richardevans123 01-21-2013 12:01 PM

You'll need this, and then select your administrator group

https://vborg.vbsupport.ru/showthrea...on+enhancement

Karma 01-21-2013 02:43 PM

Quote:

Originally Posted by richardevans123 (Post 2398366)
You'll need this, and then select your administrator group

https://vborg.vbsupport.ru/showthrea...on+enhancement

Thanks for that. Installing now. :)

tommyxv 01-24-2013 08:13 PM

Who is using the table form results? Is there a way to make it searchable and allow a photo upload to table form results?

The Realist 01-27-2013 08:55 PM

Regarding the below posts.

Im trying to do the same thing with no luck so see if I can explain.

Section created called for sale and I need the post new thread button to go to the form I've created and once filled it the for sale advert is created as a thread in the sale section.

What do I need to edit, change etc?

Been away from VB for a while and lost the will to think :)




Quote:

Originally Posted by bananalive (Post 2185204)
1. Vbulletin AdminCP -> New Plugin
Hook location: newthread_form_start
Php code:
PHP Code:

if (in_array($forumid, array(1,2))) 

header'Location: http://www.youriste.com/forums/misc.php?do=form&fid=8' ) ; 


2. Add the following to the custom php question, do you get the right forumid (46) at the top of the form?
PHP Code:

print_r($form['forumid']); 


Quote:

Originally Posted by Za4a Tuner (Post 2183815)
Hello,
i have two question to this mod:

1.)
How can i link the "new thread"-button of a forum to a form?
In a forum with the ID = 46 the "new thread" should be replaced by a form with the ID = 4
If someone like to create a new thread, he should use the form nr. 4, wich "Post a new Thread" in the forum.

2.)
The forum above MUST have a prefix, but not always the same prefix => users should be able to use a prefix that fits to the form.
I created a custom question with the following php-code inside:
PHP Code:

require_once(DIR '/includes/functions_prefix.php'); 
$thisanswer $q[$formbit[id]]; 
if (!
$form['forumid'])
{
$form['forumid'] = 46;
}
$prefix_options fetch_prefix_html($form['forumid'], $thisanswertrue); 
$answer '<select name="' $formbit[id] . '" id="q_' $formbit[id] . '" class="bginput">'
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>'
$answer .= $prefix_options
$answer .= '</select>'

The question will be shown on the form, but there are no prefixes displayed! How can i get it running?



Can anyone give me a help please?

kr Chris

Quote:

Originally Posted by Za4a Tuner (Post 2185267)
This works fine, now the button "New Thread" roots to the form :D

but:
This won't work :(
The forum-id is correct (it's from my liveforum)
Can you give me a "step by step" instruction, what i have to do, that a dropdown-field with the prefixes of a specified forum will be shown?

The form should create a new thread in forum-id = 46, and the prefixes of this forum sould be listed in the form, cause they are required for a new thread!


kr Chris

Quote:

Originally Posted by bananalive (Post 2187392)
Try this php code instead:

PHP Code:

require_once(DIR '/includes/functions_prefix.php');  
$thisanswer $q[$formbit[id]];  
$forumid $form['forumid'] = 46
$prefix_options fetch_prefix_html($form['forumid'], $thisanswertrue);  
$answer '<select name="' $formbit[id] . '" id="q_' $formbit[id] . '" class="bginput">'
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';  
$answer .= $prefix_options;  
$answer .= '</select>'


Quote:

Originally Posted by Za4a Tuner (Post 2190611)
THANKS! That did the job, works fine ;)

Do you have a paypal-account?
If yes, please let me know your mailadress, than i will donate a few pounds for your addon and the great support


The Realist 01-28-2013 02:05 PM

Anyone on the above?

jaybolt 01-29-2013 10:14 AM

HI - I have tried to find an answer in and amongst the 100 pages here but it is difficult to search for "PM" as your issue!

My Easy Form isn't sending notification PMs to the two names in the settings. I have installed it on Version 4.2.0 (I had the previous version working on older version forum and had no issues with it).

Is there anything obvious I should be looking for? Any setting or permission I may have missed?


All times are GMT. The time now is 03:46 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.03195 seconds
  • Memory Usage 1,874KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (14)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