Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » UserForms 0.2 RC 2

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 3907 Views
  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    Thanks Willr, will try

    Just thinking - would it be possible for the Userforms to dynamically add a 'check by Mollom' kind of field on textfields (and html fields?) when Mollom is the active SpamProtector? Maybe even have a 'check all (text)fields by Mollom' type of field for the current form? Or would that be too much of a dependency?

    [EDIT]
    It seems that the dynamic part of the MollomField is totally aimed at the blog or forum module - looking at the (fixed params for the setFieldmapping() function. For validation the MollomServer::checkContent() function is again called with these same fixed params:

    // check the submitted content against Mollom web service
          $response = MollomServer::checkContent($mollom_session_id, $postTitle, $postBody, $authorName, $authorUrl, $authorEmail, $authorOpenId);

    So I guess for Mollom to work dynamically with Userforms (or other forms for that matter?) the MollomField should be rewritten? Or am I totally missing something here (which could well be true)?

    [EDIT 2]
    It goes deeper - lib/Mollom.php again uses these fixed params...

  • cumquat
    Avatar
    Community Member
    191 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    Hi ya, like the new layout for user forms but am getting this error when trying to delete a submission.

    Error: Uncaught Exception: Object->__call(): the method 'deletesubmission' does not exist on 'SubmittedFormReportField'
    At line 515 in /home/sites/mickdesmond.com/public_html/sapphire/core/Object.php

    had a quick look through the forum and can't see that this one has come up before.

    Regards

    Mick.

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    Has anyone found a solution for the mollom issue yet? I'd have thought Mollom is all about the dynamic version - not bothering people with a captcha unless spam suspected? Please educate me if I'm missing something...

    [EDIT] Sorry Willr, I'm totally stupid, delved to deep, but on wrong assumptions This has nothing to do with the Silverstripes blog/forum modules, it's just the way Mollom works: alternative textfields can indeed be added as an array to the 2nd param (fieldsToPostBody, I now notice the plural). I'll just do that and keep quiet...

  • MerLuv
    Avatar
    Community Member
    6 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    I am banging my head against the wall.

    I'm using 2.3.2 with userforms .2RC2 and it works fine.... except I can't get any input fields on the live site to re-size any bigger than 30 characters wide. I can not for the life of me figure out my issue...

    Multiple Rows works fine... but I can't get it any longer than 30.... making me nuts! (and to be clear, smaller works fine...)

    Help me. Please.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    The actual width of the form field would be controlled with your CSS file. The max characters is just a physical text limitation, not a style one.

    Could you post the url if that will help explain what you want to do.

  • MerLuv
    Avatar
    Community Member
    6 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    Thanks Willr.

    I'm trying to build a contact page: http://66.147.230.102/~visionwe/contact-vision-werks/

    The 'message' field needs to be wider.

    Looking at the page source, this is what strikes me as odd:

    name="EditableTextField35" value="" maxlength="100" size="30"

    All my text fields have a size of 30...

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    try this in your form.css:

    input.text {width: 500px;}

    and substitute 500px for whatever width you desire

    Cheers,

    Rich

  • MerLuv
    Avatar
    Community Member
    6 Posts

    Re: UserForms 0.2 RC 2 Link to this post

    Yeah, I can do that except it hardsets all my input fields to 500px wide...

    I'm just trying to figure out why my text fields are defaulting to 30px wide.... I need them dynamic to the module.

    3907 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.