[OzzModz] Advanced Forms

[OzzModz] Advanced Forms [Paid] 2.2.4 Beta 1

No permission to buy ($30.00)
Code:
• LogicException: Cannot save with validation errors. Use validate() to ensure there are no errors. (First error: Sorry, an error has occurred Cheettat! Your title is too long. It must contain a minimum of 0 characters and up to 100. Your current characters count is 101)

Is there a way to raise the limit to 150? Normal threads do permit longer titles, unless it's conflicting with some other addons that I'm not aware of.
 
Code:
• LogicException: Cannot save with validation errors. Use validate() to ensure there are no errors. (First error: Sorry, an error has occurred Cheettat! Your title is too long. It must contain a minimum of 0 characters and up to 100. Your current characters count is 101)

Is there a way to raise the limit to 150? Normal threads do permit longer titles, unless it's conflicting with some other addons that I'm not aware of.
That error is not being thrown by the forms system, and shouldn't be from XenForo itself either.

The forms system would trim the thread title to 150 characters which is the XenForo limit too. I even mention it it the form report title area...

mention.png

And the phrase being used for the error is neither hard coded in XF or contained in a standard XF phrase.
 
Last edited:
Having a problem with email attachments not being sent.
I have a form set to post in a forum and also send as an email. The forum post shows the uploaded attachment – the email doesn’t.
Something I’m doing wrong?
Thanks.
 
Having a problem with email attachments not being sent.
I have a form set to post in a forum and also send as an email. The forum post shows the uploaded attachment – the email doesn’t.
Something I’m doing wrong?
Thanks.

What is the contents of a email that is not showing the images? Do regular emails show the images? I suspect this is going to be a limitation in the email client.
 
Having a problem with email attachments not being sent.
I have a form set to post in a forum and also send as an email. The forum post shows the uploaded attachment – the email doesn’t.
Something I’m doing wrong?
Thanks.
Actually that's correct. Emails do not get attachments. They are only attached in PCs, threads and posts.

From the screen where you add a question...
attachments.webp
 
Found some error. Anything to worry about, @Snog ?

Code:
Server error log
LogicException: Cannot save with validation errors. Use validate() to ensure there are no errors. (First error: Please enter a valid title.) src/XF/Service/ValidateAndSavableTrait.php:34
Generated by: TabulaRasa 07.06.2019. at 10:03
Stack trace
#0 src/addons/Snog/Forms/Pub/Controller/Form.php(1608): XF\Service\Thread\Creator->save()
#1 src/XF.php(478): Snog\Forms\Pub\Controller\Form->Snog\Forms\Pub\Controller\{closure}()
#2 src/addons/Snog/Forms/Pub/Controller/Form.php(1647): XF::asVisitor(Object(SV\DailyStatistics\XF\Entity\User), Object(Closure))
#3 src/addons/Snog/Forms/Pub/Controller/Form.php(1029): Snog\Forms\Pub\Controller\Form->createThread(Array)
#4 src/XF/Mvc/Dispatcher.php(321): Snog\Forms\Pub\Controller\Form->actionSubmit(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('Snog\\Forms:Form', 'Submit', Object(XF\Mvc\RouteMatch), Object(Snog\Forms\Pub\Controller\Form), NULL)
#6 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Snog\Forms\Pub\Controller\Form), NULL)
#7 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#9 src/XF.php(390): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
Request state
array(4) {
  ["url"] => string(38) "/form/bugovi-problemi-greske.12/submit"
  ["referrer"] => string(41) "https://www.pijanitvor.com/form/12/select"
  ["_GET"] => array(1) {
    ["/form/bugovi-problemi-greske_12/submit"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["question"] => array(7) {
      [185] => string(51) "Ups! Pijani tvor je na kratko zgubio tlo pod nogama"
      ["177_html"] => string(489) "<p><img src="/attachments/1559894061827-png.115631/?hash=692275b84a8d2a820440bbb0e6ef1e3d" style="width: auto;" class="fr-fic fr-dii" data-attachment="full:115631" alt="115631"></p><p><br></p><p>Napisala sam post nakon 100 godina i ne mogu ga učitati - javlja se gornja poruka. Probala sam i na internet exploreru i na Chromu i na Safariju. Neće, pa neće. Što se dogodilo Tvoru da je izgubio tlo pod nogama? Znam da nije bug, ali ne znam gdje bi drugdje mogla postaviti pitanje ...</p>"
      [179] => string(33) "Chrome, Internet explorer, Safari"
      [180] => string(26) " e to mi je preteško ... "
      [181] => string(11) "Windows 8.1"
      [182] => string(1) "3"
      [183] => string(4) "12.2"
    }
    ["attachment_hash"] => string(32) "692275b84a8d2a820440bbb0e6ef1e3d"
    ["attachment_hash_combined"] => string(83) "{"type":"post","context":{"node_id":647},"hash":"692275b84a8d2a820440bbb0e6ef1e3d"}"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(15) "/form/12/select"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Found some error. Anything to worry about, @Snog ?

Code:
Server error log
LogicException: Cannot save with validation errors. Use validate() to ensure there are no errors. (First error: Please enter a valid title.) src/XF/Service/ValidateAndSavableTrait.php:34
Generated by: TabulaRasa 07.06.2019. at 10:03
Stack trace
#0 src/addons/Snog/Forms/Pub/Controller/Form.php(1608): XF\Service\Thread\Creator->save()
#1 src/XF.php(478): Snog\Forms\Pub\Controller\Form->Snog\Forms\Pub\Controller\{closure}()
#2 src/addons/Snog/Forms/Pub/Controller/Form.php(1647): XF::asVisitor(Object(SV\DailyStatistics\XF\Entity\User), Object(Closure))
#3 src/addons/Snog/Forms/Pub/Controller/Form.php(1029): Snog\Forms\Pub\Controller\Form->createThread(Array)
#4 src/XF/Mvc/Dispatcher.php(321): Snog\Forms\Pub\Controller\Form->actionSubmit(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('Snog\\Forms:Form', 'Submit', Object(XF\Mvc\RouteMatch), Object(Snog\Forms\Pub\Controller\Form), NULL)
#6 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Snog\Forms\Pub\Controller\Form), NULL)
#7 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#9 src/XF.php(390): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
Request state
array(4) {
  ["url"] => string(38) "/form/bugovi-problemi-greske.12/submit"
  ["referrer"] => string(41) "https://www.pijanitvor.com/form/12/select"
  ["_GET"] => array(1) {
    ["/form/bugovi-problemi-greske_12/submit"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["question"] => array(7) {
      [185] => string(51) "Ups! Pijani tvor je na kratko zgubio tlo pod nogama"
      ["177_html"] => string(489) "<p><img src="/attachments/1559894061827-png.115631/?hash=692275b84a8d2a820440bbb0e6ef1e3d" style="width: auto;" class="fr-fic fr-dii" data-attachment="full:115631" alt="115631"></p><p><br></p><p>Napisala sam post nakon 100 godina i ne mogu ga učitati - javlja se gornja poruka. Probala sam i na internet exploreru i na Chromu i na Safariju. Neće, pa neće. Što se dogodilo Tvoru da je izgubio tlo pod nogama? Znam da nije bug, ali ne znam gdje bi drugdje mogla postaviti pitanje ...</p>"
      [179] => string(33) "Chrome, Internet explorer, Safari"
      [180] => string(26) " e to mi je preteško ... "
      [181] => string(11) "Windows 8.1"
      [182] => string(1) "3"
      [183] => string(4) "12.2"
    }
    ["attachment_hash"] => string(32) "692275b84a8d2a820440bbb0e6ef1e3d"
    ["attachment_hash_combined"] => string(83) "{"type":"post","context":{"node_id":647},"hash":"692275b84a8d2a820440bbb0e6ef1e3d"}"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(15) "/form/12/select"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
What do you have defined as the report title for the form?
 
Is there any reason for that? Attachments are pretty important!
Because in most cases you wouldn't be able to view/access attachments from the email anyway.

IE: A picture is almost always shown as an attachment ID and the picture is not shown in the email.
 
Not, not pictures. We’re a writers’ forum and use attachments all the time – pdfs, doc and docx mostly.
 
Not, not pictures. We’re a writers’ forum and use attachments all the time – pdfs, doc and docx mostly.
Those fall under the same realm. They can be included in threads, but not in emails.

To show what I mean, start a conversation with someone and attach a file to the conversation post. The resulting email notification will not have the file attached to it.
 
As I suspected. ;)

{2} was removed from the title options in the last release in preference for {A1}, but I forgot to document that in the release.

Change {2} to {A1} and you should be good to go.

EDIT: I also neglected to remove the {2} from the title description when adding questions to the form. That's corrected in the next release.
 
Last edited:
Can I just check, please...

Is it possible to embed the form in a post? I don't see any embed code.

If not, I assume the only way for member to access it is via a link in a post... correct?

Thank you.
 
Can I just check, please...

Is it possible to embed the form in a post? I don't see any embed code.

If not, I assume the only way for member to access it is via a link in a post... correct?

Thank you.
I don't understand what you're asking.

The answers to forms are posted in a thread or posted in an existing thread.

If you mean to put a form to be filled out in an existing post, no that's not possible. You have to post a link to the form.

Or if only a form response is wanted when replying to a thread, you can replace the quick reply for the thread with a form.
 
Files are allowed, but the user must have permission to upload files in the forum the form is posted in.

Which user/user group needs the permission? The one filling out the form or the one creating the post/thread?

We are trying to use it as a member application.

We have a user account for the form system itself.

Then, there will be users filling out the form which will be in the "Registered User" group, but "Awaiting Approval".

They will fill out the form. The answers will be posted to a new thread in a forum "Moderators Only" for moderators to review and approve/deny the application.

Then moderators can approve the member and take them out of "Awaiting Approval".

I can easily give the form system user permissions to upload files, post in the "Moderators Only" area, etc. But I don't think I can give that permission to users "Awaiting approval". Also I don't want regular "Registered" users to be able to access the "Moderators Only" area and the member application threads.

Just trying to get clarity on how I need to set permissions for this.
 
Top Bottom