• Resolved taborro

    (@taborro)


    Hi, just installed and everything works, except that in the /comment-subscriptions/ page, *something* is adding a < br / > tag right in the middle of your < input / > tag.

    Here’s a healthy HTML output I yanked from someone’s site:

    <input type="text" class="subscribe-form-field" name="subscribe_reloaded_email" value="email" size="22"
    		onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue"/>

    BUT here’s what my HTML output looks like:

    <input type="text" class="subscribe-form-field" name="subscribe_reloaded_email" value="jason@learnvisualstudio.net" size="22"<br />
    onfocus=”if(this.value==this.defaultValue)this.value=”” onblur=”if(this.value==”)this.value=this.defaultValue”/>

    So, in your code you are doing a line break using your code editor (?) that is somehow being translated into a < br / > by my template (or something???)

    Here’s what it looks like:

    http://dl.dropbox.com/u/693501/comments_problem.png

    So, could I hire you to give me a version of this that removes that line break? Or something? Please contact me … bob @ learnvisualstudio.net.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same error.

    Hi there,

    this will hopefully be fixed in version 2.0. My guess is that there’s another plugin that is injecting BR’s into the content.

    Camu

    This issue has not been fixed with 2.0 update.

    Solved with this

    <form action=”<?php echo htmlspecialchars($_SERVER[‘REQUEST_URI’]) ?>” method=”post” id=”post_list_form” name=”post_list_form” onsubmit=”if(this.sra[0].checked) return confirm(‘<?php _e(‘Please remember: this operation cannot be undone. Are you sure you want to proceed?’, ‘subscribe-reloaded’) ?>’)”>

    in subscribe-to-comments-reloaded/templates/user.php and here subscribe-to-comments-reloaded/templates/author.php

    there’s some blank space.

    Geggiot,

    I guess you have some other plugin that is adding those BR’s, but if you say your fix works, I am more than happy to add it to the next release.

    Camu

    PS: a vote for my plugin would be a nice way to thank me!

    Camu,
    ho modificato i file che ho postato prima, c’erano degli spazi bianchi che ho eliminato. Presumo che wordpress e non qualche altro plugin formattava questi spazi bianchi con un
    .
    Votato!

    Sorry if I keep answering in English, but this may be useful to other people who don’t speak Italian 😉 You’re right about WordPress adding those BR’s, but my plugin attempts to disable that functionality while it generates the management page:

    remove_filter('the_content','wpautop');

    That’s why I thought it could be another plugin which is instead re-enabling it 😉

    Thank you for your vote, really appreciated!
    Camu

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem: html break being inserted into comment-subscriptions input’ is closed to new replies.