Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter MikeRW

    (@mikerw)

    Thanks for the reply however this still doesn’t help. I’m already using login_enqueue_scripts to load a login.css stylesheet for the login page. The problem I have is the logout confirmation page you receive when not using the nonce token. I haven’t been able to find a hook to include the stylesheet. So far the only way I’ve been able to accomplish this is to modify the core file. I’ve looked at the documentation you linked several times and do not see anything useful in this case. Am I missing something?

    Hopefully, I’m not sue what’s going on with it. I’ve tried reinstalling the plugin and every step except removing the wp-comments table (I have important comments I can’t lose). I will continue to try to figure it out but for now I have too many other issues on the site to worry about this one. I’m just going to link the author name for now until I can figure this out. I really appreciate all of your help so far, thank you for your patience.

    No, during the last test before the screencap all fields were filled. I’ll try again though out of pure desperation ??

    I had every field filled with dummy data earlier, I only edited the fields prior to taking the screencap. Also, in the print output earlier I changed the private data (email, name, IP). Other than that it’s all pretty much the same. If I create a field in the wp_comments table it will work fine. It just refuses to work from the wp_comments_extra table.

    Is there an easy way just to create the field in the original table and just add the new field manually to the array and forms?I tried to something along those lines earlier and just kept breaking the template.

    It is. Here’s a screencap of the table(s) in PMA. I forgot to mention, I am indeed running WP 3.0.1

    Here’s the code from the comments.php, it may indeed be something very simple but I’m having trouble tracking it down. All of the standard fields are fine it’s just the “extra” field from the plugin that isn’t working.

    <p><input type="text" name="sitename" id="sitename" size="22" />
    <label for="sitename"><small>Website Name (HiveGaming)</small></label></p>

    I tried your code and it appears the if statement is failing (I made sure to change location to sitename). It just seems like the new field isn’t being loaded into the array if that’s what it’s called.

    Thanks for the reply, it’s not a case issue. I tried your suggestion and here is the result:

    <div>stdClass Object
    (
        [comment_ID] => 84
        [comment_post_ID] => 276
        [comment_author] => Someone Youdontknow
        [comment_author_email] => [email protected]
        [comment_author_url] =>
        [comment_author_IP] => ???.???.???.???
        [comment_date] => 2010-10-24 17:21:13
        [comment_date_gmt] => 2010-10-24 21:21:13
        [comment_content] => One of the few low ping servers iv been too with such great performance, overall I love this server.
        [comment_karma] => 0
        [comment_approved] => 1
        [comment_agent] => Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7
        [comment_type] =>
        [comment_parent] => 0
        [user_id] => 0
    )
     </div>

    I’m using some code to randomly display a testimonial, here’s the entire code if it helps:

    <?php
       $post_id = 276;  // Put the 'testimonials' id here
       $comments = get_comments("post_id=$post_id&status=approve");
       if ($comments) {
         $ndx = mt_rand(1,sizeof($comments)) - 1;
         $comment = $comments[$ndx];
    ?>
    	<div style="background:url(https://www.hivegaming.net/images/comments.png) no-repeat;height:165px;width:336px">
        <div style="width:283px;height:120px;padding:12px 27px 0px 27px;font-size:90%;overflow:hidden;font-weight:bold"><?php echo "$comment->comment_content"; ?></div>
        <div style="margin:9px 0 0 75px;height:15px;width336px"><?php echo "$comment->comment_author"; ?><span style="float:right;margin-right:3px;"><a href="<?php echo "$comment->comment_author_url"; ?>"><?php echo "$comment->extra_sitename"; ?></a></span></div>
        </div>
       <?php }
    ?>

    I need some help with this. The information is being written to the database but isn’t displaying on the site. Here’s my code, not sure why this isn’t working with the plugin as it was working when I manually entered the values into the actual comments database.

    <div style="margin:9px 0 0 75px;height:15px;width336px"><?php echo "$comment->comment_author"; ?><span style="float:right;margin-right:3px;"><a href="<?php echo "$comment->comment_author_url"; ?>"><?php echo "$comment->extra_sitename"; ?></a></span></div>

    Never mind, I figured it out already. If anyone is interested just change:

    <div class='comment_author'> <?php echo "Comment By:$comment->comment_author"; ?> </div>
    to:
    <div class='comment_author'><a href="<?php echo "$comment->comment_author_url"; ?>"><?php echo "Comment By:$comment->comment_author"; ?></a></div>

    Thanks for this. I have it working but was wondering, how can I make the author’s name link back to the website they provided in their comment? I’m still trying to figure this out but any help would be appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)