• <?php if ( $user_ID ) : ?>

    Logged in as /wp-admin/profile.php”><?php echo $user_identity; ?>. /wp-login.php?action=logout” title=”<?php _e(‘Log out of this account’) ?>”>Logout »

    <?php else : ?>

    <input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” size=”22″ tabindex=”1″ />
    <label for=”author”><small>Name <?php if ($req) _e(‘(required)’); ?></small></label>

    <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”22″ tabindex=”2″ />
    <label for=”email”><small>Mail (will not be published) <?php if ($req) _e(‘(required)’); ?></small></label>

    <input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ />
    <label for=”url”><small>Website</small></label>

    <?php endif; ?>

    I want to use this functionality so that people commenting on my site have the option of registering to my blog so that they don’t have to type their information every time. Mainly, I want to use it so that I don’t have to type my information every time when I respond to comments.

    Firefox creates problems with the if ($user_id) stuff. Basically it will permanently give you either a logged in comment page, or not depending on what you first had.

    For example, whenever I view my comments pages it never shows me logged in, even though I am. I can type a comment in the comments field, leave the author-url-email fields blank, and it will post the comment as if I’m logged in. The problem comes with the other example. I was in my fiance’s Firefox profile and had logged into WordPress as myself. Now whenever he goes to my comments page, it shows him logged in as me no matter what. I tried logging out of wordpress, but it still shows him logged in as me.

    I checked all of this in IE, and it works like it’s supposed to. One can log in and out with no problems. I’ve taken out the offending code for now, but I would really like to use this functionality. I even tried deleting cookies for my domain, but that didn’t fix the problem. I tried clearing my cache so it would load fresh pages, and that didn’t work.

    I must note that the above code is how the comments.php page comes in the default WordPress theme.

The topic ‘comments.php login problem in Firefox’ is closed to new replies.