• Resolved purple_bear

    (@purple_bear)


    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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

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

    Thread Starter purple_bear

    (@purple_bear)

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

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    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.

    Thread Starter purple_bear

    (@purple_bear)

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

    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=.

    Thread Starter purple_bear

    (@purple_bear)

    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…..

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    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.

    Thread Starter purple_bear

    (@purple_bear)

    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!

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    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.

    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.

    Thread Starter purple_bear

    (@purple_bear)

    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…

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

    Thread Starter purple_bear

    (@purple_bear)

    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.

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

    Thread Starter purple_bear

    (@purple_bear)

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Last author’s URL appears in name field of comments form’ is closed to new replies.