WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Last author's URL appears in name field of comments form (16 posts)

  1. purple_bear
    Member
    Posted 3 years ago #

    Hello,

    I've been searching all over to get a handle on this but to no avail...

    Simply - when viewing a post, when you scroll down to the comments form, the URL of the last person who commented appears in the "Name" field and must be deleted before a poster can add their name. I have no special comments setup and have only just noticed this, so am uncertain how long it has been going on.

    Any ideas would be welcome.

    Bob

  2. James
    Happiness Engineer
    Posted 3 years ago #

    Can you please provide a link to your blog so we can investigate?

  3. purple_bear
    Member
    Posted 3 years ago #

    Sure, site is http://www.businessplusbaby.com/ - any post with comments will show it.

  4. James
    Happiness Engineer
    Posted 3 years ago #

    Well, that is very peculiar. Try deactivating all plugins and switch to the default theme. If the issue has resolved itself, reactivate your theme. If the problem has returned, then there's something wrong with your theme. If the problem has not returned, reactivate each plugin one-by-one until you find the cause.

  5. purple_bear
    Member
    Posted 3 years ago #

    Thanks for that, I was thinking that might be my next course of action. I'll give it a try....

  6. Safirul Alredha
    Member
    Posted 3 years ago #

    Open the problematic theme comments.php and look for something like this:
    <input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1"

    Look what's inside value=.

  7. purple_bear
    Member
    Posted 3 years ago #

    Yep, found that - this is what I have I have in there which is different to the default. This theme was designed by someone else, so I'm not sure how they put it together:

    <input style="border-color: #bacc58;" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />

    Looks like it is the theme however, as when I change back to the default the problem goes away.....

  8. James
    Happiness Engineer
    Posted 3 years ago #

    Just guessing, but it looks like your theme was put together by a design company.

    First, change that particular section to the following:

    <input style="border-color: #bacc58;" type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" />

    If that doesn't work, change it back and contact the company that designed the theme. I'm sure they'd be willing to fix the problem for you.

  9. purple_bear
    Member
    Posted 3 years ago #

    Mmmmmm, no luck there, it just does the same thing.....

    Will do as you suggest, this might be the excuse we've been looking for to get a new theme!

    Thanks for the help and suggestions!

  10. James
    Happiness Engineer
    Posted 3 years ago #

    You're welcome! I'm sorry that it didn't work out, but keep your eyes on this thread, someone else may have an idea.

  11. Safirul Alredha
    Member
    Posted 3 years ago #

    esc_attr just encodes, nothing to do with this.

    Don't give up this can be solved.

    Is obvious that the theme is doing something since you said even if u deactivate all the plugin the problem still there. So I assume there's something that trigger that. Usually custom hack for theme resides at Theme's functions.php.

  12. purple_bear
    Member
    Posted 3 years ago #

    To be honest I'm not losing any sleep over it, I really don't have the time to chase this down, just wondered if it was a quick fix. The site is due for an update as it is...

  13. Safirul Alredha
    Member
    Posted 3 years ago #

    If u won't mind pastebin what's in your theme functions.php.

  14. purple_bear
    Member
    Posted 3 years ago #

    Sure -

    <?php
    function advertisement(){
    include (TEMPLATEPATH . "/advertisement.php");}
    if (function_exists('register_sidebars')) register_sidebars(2, array('before_widget' => '','after_widget' => ''));
    ?>

    ...and that's the lot.

  15. jtonline
    Member
    Posted 3 years ago #

    I've just looked at the site and I have not experienced the issue described.

  16. purple_bear
    Member
    Posted 3 years ago #

    Sorry, should have said, on the back of this I've changed the theme - the new one works correctly.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags