ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to get rid of the inline style in captcha?

November 22, 2010 4:39am

Subscribe [3]
  • #1 / Nov 22, 2010 4:39am

    hjbollinger

    14 posts

    I might have overseen something (I’m quite new to ee, just realised a first project): I see that captcha produces an inline style style=“border:0;” which is not necessary. Where can I turn off this inline style?
    Thanks in advance

  • #2 / Nov 22, 2010 8:55am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, Hans-Jakob.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Where are you wanting to change the captcha? In the registration form, on a comment page?

    If on a comment form, I’d tend to use one of the available find and replace plugins available on Devot-ee.com.

    Does that help?

  • #3 / Nov 22, 2010 9:26am

    hjbollinger

    14 posts

    Many thanks!
    And sorry I wasn’t as clear as I intended 😊
    It’s an ee 2 latest build (2.1.1 Build 20101020 - Freelancer) installation and I did a very simple contact form. Included following code:

    {if captcha}
    <dt>Bitte tragen Sie das generierte Wort unten ein:</dt>
    <dd>{captcha}</dd>
    <dd><input type="text" name="captcha" value="" maxlength="20" /></dd>
    {/if}
    The output is:
    <dt>Bitte tragen Sie das generierte Wort unten ein:</dt> 
    <dd>http://www.webbear.ch/images/captchas/1290431967.64.jpg</dd> 
    <dd><input type="text" name="captcha" value="" maxlength="20" /></dd>

    I tried to replace the inline style (style=“border:0;” ) with a plugin but it seems that the captcha image is processed after the plugin ... (I could replace <dt> with <dd>)

    this can be viewed here http://www.webbear.ch/kontakt/

  • #4 / Nov 22, 2010 1:18pm

    hjbollinger

    14 posts

    Ok, got it >system/expressionengine/libraries/Functions.php
    Line 1859
    In my opinion no inline style definition is needed! Everything should be defined in extern stylesheets.

  • #5 / Nov 22, 2010 4:12pm

    Ingmar

    29245 posts

    Glad to see you found it, and thank your for your feedback. Please feel free to make an appropriate Feature Request.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases