Giter Site home page Giter Site logo

xon / xenforo-simpleforms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jljr222/xenforo-simple-forms

7.0 7.0 0.0 218 KB

This is the public github repo for the Simple Forms addon developed formerly by LiquidPro.

License: GNU General Public License v3.0

JavaScript 10.46% PHP 89.54%

xenforo-simpleforms's People

Contributors

awickham10 avatar jljr222 avatar xon avatar yoskaldyr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xenforo-simpleforms's Issues

User - Field Type

User field type which enables "AutoComplete AcSingle".
Value Match Requirements that supports ensuring a response is a username

cannot copy fields

When I try to copy a field it return this error:

Server Error

Mysqli statement execute error : Data too long for column 'field_name' at row 1

Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in LiquidPro/SimpleForms/Model/Field.php at line 862
LiquidPro_SimpleForms_Model_Field->copyField() in LiquidPro/SimpleForms/ControllerAdmin/Field.php at line 462
LiquidPro_SimpleForms_ControllerAdmin_Field->actionCopy() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/domain/public_html/admin.php at line 13

Bug: "Undefined index: email_format"

An important bug report in Simple Form v2.1.8, XenForo 1.5.5

I have a form with a field that require users to enter an email address, and then in the Destination I have set Destination Type: E-mail. And in the Options tab I have set Sender Email: {$fields.user_email.value}

But when a user submit the form with his email address, the form is not being sent by user's email, it is sent by site's email. and it also forward and error in the server error log.

`Error Info
ErrorException: Undefined index: email_format - library/LiquidPro/SimpleForms/DataWriter/FormDestination.php:150

Stack Trace
#0 /home/nginx/domains/x/public/library/LiquidPro/SimpleForms/DataWriter/FormDestination.php(150): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 150, Array)
#1 /home/nginx/domains/x/public/library/LiquidPro/SimpleForms/ControllerAdmin/FormDestination.php(154): LiquidPro_SimpleForms_DataWriter_FormDestination->setDestinationOptions(Array, Array)
#2 /home/nginx/domains/x/public/library/XenForo/FrontController.php(351): LiquidPro_SimpleForms_ControllerAdmin_FormDestination->actionSave()
#3 /home/nginx/domains/x/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/nginx/domains/x/public/admin.php(13): XenForo_FrontController->run()
#5 {main}

Request State
array(3) {
["url"] => string(70) "http://www.forum.com/admin.php?form-destinations/save&form_id=16"
["_GET"] => array(2) {
["form-destinations/save"] => string(0) ""
["form_id"] => string(2) "16"
}
["_POST"] => array(9) {
["name"] => string(0) ""
["destination_options"] => array(4) {
["email_subject_template"] => string(0) ""
["email_sender_email"] => string(0) ""
["email_recipient_email"] => string(0) ""
["email_message_template"] => string(0) ""
}
["destination_options_shown"] => array(7) {
[0] => string(22) "email_subject_template"
[1] => string(18) "email_sender_email"
[2] => string(21) "email_recipient_email"
[3] => string(12) "email_format"
[4] => string(22) "email_message_template"
[5] => string(23) "email_hide_empty_fields"
[6] => string(24) "email_enable_attachments"
}
["form_id"] => string(2) "16"
["destination_id"] => string(1) "3"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(32) "/admin.php?form-destinations/add"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
`

Thanks

Improve template rendering

  • Support "Fetch public templates as files" to ensure form rendering happens once.
  • Stop using globally cacheable phrases.

Attachments improvements

  • Allow forms to limit the number of attachments.
  • Customize allowed extension list.
  • Drag & drop target rather than just an upload attachment button.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.