Forums

Subscribe To Comments Reloaded
[resolved] Problem: html break being inserted into comment-subscriptions input (8 posts)

  1. taborro
    Member
    Posted 10 months ago #

    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.

  2. geggiot
    Member
    Posted 10 months ago #

    Same error.

  3. camu
    Member
    Posted 10 months ago #

    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

  4. geggiot
    Member
    Posted 10 months ago #

    This issue has not been fixed with 2.0 update.

  5. geggiot
    Member
    Posted 10 months ago #

    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.

  6. camu
    Member
    Posted 10 months ago #

    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!

  7. geggiot
    Member
    Posted 10 months ago #

    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!

  8. camu
    Member
    Posted 10 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic