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)

Cla75 09-25-2015 08:45 AM

Quote:

Originally Posted by Dragonsys (Post 2555592)
Works fine on VB 4.2.3 & PHP 5.6. I would double check your questions and make sure you are inputting at least the minimum characters.

i have vBulletin 4.2.3 & PHP 5.4.41-0+deb7u1, this can be a problem?
the minimun characters is OK in all fields BUT I get the error when compiling some fields using accented letters or symbols (?, $, etc)

vBulletin Message
Form failed to submit. The following error(s) occured:

Full is the subject field that the message field.
The message you entered is too short. Lengthen your message to at least 4 characters.


I filled in all fields, including the word (in Italian): perch?

writing perche' (instead of perch?) the post is published without problems

Scan Cape Cod 10-03-2015 05:18 PM

Quick question. What is the proper format for sending email to two email addresses, or is it possible? I've tried separating them with a comma and a space. With a comma it got sent to the second email address only. With a space neither worked.

Apologies in advance if the question has been asked before; I did a search but didn't find an answer or missed it. Thanks.

Scott

wolfey 10-09-2015 10:04 AM

Quote:

Originally Posted by bananalive (Post 2361245)
You can do validation with php via the: Form PHP Hooks -> Form Hook: Before Submit:


If its not asking too much, can you help me with code I can use?

to check date submitted is at least 2 weeks in advance from todays date


Thank you much.

Chris.

wolfey 10-15-2015 05:18 PM

Quote:

Originally Posted by Scan Cape Cod (Post 2556183)
Quick question. What is the proper format for sending email to two email addresses, or is it possible? I've tried separating them with a comma and a space. With a comma it got sent to the second email address only. With a space neither worked.

Apologies in advance if the question has been asked before; I did a search but didn't find an answer or missed it. Thanks.

Scott


I also use this function, a comma is all that's needed between addresses

wolfey 10-17-2015 09:53 AM

Quote:

Originally Posted by wolfey (Post 2556661)
If its not asking too much, can you help me with code I can use?

to check date submitted is at least 2 weeks in advance from todays date


Thank you much.

Chris.


OK got this code and an error displays if less than 2 weeks date selected,
Question: How do I display text on the output instead of preventing the form from being submitted when less than 2 weeks?



PHP Code:

$nowDate=new DateTime();
$nowMDY=$nowDate->format('j F Y');

$twoWeekdOutDate=new DateTime($nowMDY);
$twoWeekdOutDate->add(new DateInterval('P14D'));
$twoWeekdOutDate->format('j F Y');

try{
$inputDate=new DateTime($qo[88]);
}catch(
Exception $e){
standard_error("Invalid date: " $qo[88]); //should never come here
}

if(
$inputDate>=$twoWeekdOutDate){
//good
}else{
standard_error("Please enter a date 2 weeks or more in advance - " $qo[88]);



HM666 11-13-2015 10:31 PM

I have a question. I have used this mod for quite some time on a site and we've had a form intact and it works just fine, but recently I was asked to change the options where the user who submitted the form can change the information submitted in the form they submitted by using the edit button in the thread the form started. I found this option: "Users Can Manage their own Form Results - All registered users can view/edit/delete their own form results saved to database." and I have ticked it to "Yes", but for those who have already submitted the form they still cannot edit the thread/post it made. I've tried to "Rebuild Thread Information" from the update area in the AdminCP but that did not seem to make it where the old thread can be edited by the person who submitted them. Am I just doomed to have Admins be PM'ed for changes here lol?

blind-eddie 11-13-2015 11:17 PM

Check the forum permissions of the forum the form is being submitted to make sure the usergroups can edit post.:up:

HM666 11-13-2015 11:55 PM

Quote:

Originally Posted by blind-eddie (Post 2558761)
Check the forum permissions of the forum the form is being submitted to make sure the usergroups can edit post.:up:

Uh yep they all can edit that forum area.

blind-eddie 11-14-2015 12:19 AM

Odd..

HM666 11-14-2015 06:47 AM

Yeah pretty weird. I have no idea. I'm guessing that I'll just have to tell them to have members send a PM when they need changes to the old threads.


All times are GMT. The time now is 03:03 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.03206 seconds
  • Memory Usage 1,755KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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