WEB What the hell am I missing here? v. WP review site plugin

Discussion in 'OT Technology' started by Browning, Jan 28, 2009.

  1. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10
    Installed the wp review site plugin http://www.wpreviewsite.com/

    Having trouble implementing it into a theme I want to use. I have it added everywhere I want it except for the comments. I can add the ratings input table to the comment form, but can't get the ratings to show on comments that are already there.

    What it is supposed to look like(this is a theme that comes with the plugin):

    [​IMG]




    This is as far as I've got on the theme I plan to use:

    [​IMG]

    The code I'm trying to add is
    Code:
            <!-- Rating Table -->
            <?php if (function_exists('comment_ratings_table')): ?>
                <div style="float: right; margin: 0 0 10px 10px">
                    <?php comment_ratings_table(); ?>
                </div>
            <?php endif; ?>
    Here is the comments.php from the theme I am trying to place it in:
    Code:
    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    // Do not delete these lines
        if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
            die ('Please do not load this page directly. Thanks!');
    
        if ( post_password_required() ) { ?>
            <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
        <?php
            return;
        }
    ?>
    
    <!-- You can start editing here. -->
    
        <?php if ( have_comments() ) : ?>
        <h2>Comments</h2><b><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</b>
    
        <div class="navigation">
            <div class="alignleft"><?php previous_comments_link() ?></div>
            <div class="alignright"><?php next_comments_link() ?></div>
        </div>
    
            <ol class="commentlist">
                <?php wp_list_comments('type=comment&avatar_size=48'); ?>        
            </ol>
                
        <div class="navigation">
    
            <div class="alignleft"><?php previous_comments_link() ?></div>
            <div class="alignright"><?php next_comments_link() ?></div>
            <!-- Rating Table -->
            <?php if (function_exists('ratings_input_table')): ?>
                <div style="float: right; margin: 0 0 10px 10px">
                    <?php ratings_input_table(); ?>
                </div>
            <?php endif; ?>
        </div>
    
     <?php else : // this is displayed if there are no comments so far ?>
    
        <?php if ('open' == $post->comment_status) : ?>
            <!-- If comments are open, but there are no comments. -->
    
         <?php else : // comments are closed ?>
            <!-- If comments are closed. -->
            <p class="nocomments">Comments are closed.</p>
    
        <?php endif; ?>
    <?php endif; ?>
    
    <?php $tc_trackback = get_option('tc_trackback'); if($tc_trackback): ?>
    
        <div class="trackbacks">
            <h3>Trackbacks</h3>
            <ol>
                <?php foreach ($comments as $comment) : ?>
                <?php $comment_type = get_comment_type(); ?>
                <?php if($comment_type != 'comment') { ?>
                <li><?php comment_author_link() ?></li>
                <?php } ?>
                <?php endforeach; ?>
            </ol>
        </div>
    
    <?php endif; ?>
    
    <?php if ('open' == $post->comment_status) : ?>
    
    <div id="respond">
    
    <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
    
    <div class="cancel-comment-reply">
        <small><?php cancel_comment_reply_link(); ?></small>
    </div>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p></div>
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    
    <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
    
    <?php else : ?>
    
    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    <label for="url"><small>Website</small></label></p>
    
    <?php endif; ?>
    
    <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
    
    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    
    <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    <div class="clear"></div>
    </form>
    </div>
    
    <?php endif; // If registration required and not logged in ?>
    
    <?php endif; // if you delete this the sky will fall on your head ?>
    
    help please:hsd:
     
  2. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10
    by the way I can upload the plugin and themes that come with it if any of you want it. It's pretty neat but themes blow
     
  3. MaK10

    MaK10 OT Supporter

    Joined:
    Nov 13, 2004
    Messages:
    3,843
    Likes Received:
    0
    Location:
    Chicago Suburbs
    haha, i just used the theme that came with it cause I didnt want to mess with it.
     
  4. Phasm

    Phasm OT Supporter

    Joined:
    Sep 20, 2005
    Messages:
    9,680
    Likes Received:
    0
    Location:
    Michigan
    the reviews
     
  5. JCrev

    JCrev Where is your god now? OT Supporter

    Joined:
    Jul 18, 2004
    Messages:
    3,852
    Likes Received:
    11
    Location:
    Montreal, Quebec
    The image you posted after "This is as far as I've got on the theme I plan to use:" isn't a screen cap of that code. (Or I'm completely wrong)

    To get it to work you just need to put it in your comments loop. In that example it looks like that is what comes after the trackbacks heading.

    Code:
    <div class="trackbacks">
            <h3>Trackbacks</h3>
            <ol>
                <?php foreach ($comments as $comment) : ?>
                <?php $comment_type = get_comment_type(); ?>
                <?php if($comment_type != 'comment') { ?>
                <li><?php comment_author_link() ?></li>
                <?php } ?>
                <?php if (function_exists('comment_ratings_table')) comment_ratings_table(); ?>
                <?php endforeach; ?>
            </ol>
        </div>
    
    
    I don't understand why you have
    Code:
    <!-- Rating Table -->
            <?php if (function_exists('ratings_input_table')): ?>
                <div style="float: right; margin: 0 0 10px 10px">
                    <?php ratings_input_table(); ?>
                </div>
            <?php endif; ?>
    
    were you have it in your code.
     
  6. JesterFX

    JesterFX New Member

    Joined:
    Oct 10, 2004
    Messages:
    4,557
    Likes Received:
    0
    Anyone been using it for a while and have any review on how well it works (seo as is and conversions)?

    I'd be interested in checking it out B ;)
     
  7. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10
    give me a few minutes and I'll upload it

    EDIT- http://bropass.com/OT/wprs.rar
     
    Last edited: Jan 28, 2009
  8. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10
    doesn't work

    Edit-I get this
    [​IMG]
     
    Last edited: Jan 29, 2009
  9. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10
    figured it out. I had to add
    <?php if (function_exists('comment_ratings_table')) comment_ratings_table(); ?>

    to /wp-includes/comment-template.php
     
  10. MaK10

    MaK10 OT Supporter

    Joined:
    Nov 13, 2004
    Messages:
    3,843
    Likes Received:
    0
    Location:
    Chicago Suburbs

    i setup a site with it about a month ago, put some content on it, like 5 things to review, used the default theme and then forgot about it (haven't had time). Then I got an IM from a buddy of mine 2 days ago congratulating me on my first sale (he works for one of the companies who's products I'm promoting)... so I jumped back into it and did a bit more, but so far that was my only conversion and I'm assuming I just got lucky haha. we'll see though.
     
  11. Tie5to

    Tie5to New Member

    Joined:
    Aug 18, 2005
    Messages:
    3,501
    Likes Received:
    0
    Location:
    New York
    :bowdown: Thank you so much, all the places I tried finding this had it on the do not share list.
     
  12. JesterFX

    JesterFX New Member

    Joined:
    Oct 10, 2004
    Messages:
    4,557
    Likes Received:
    0
    I've done that with a few ebay affiliate sites/blogs. Get a random check every once in a while and have to go hunting through my accounts to try to figure out where the hell it came from lol. I made like $90 in december from a wii ebay affiliate site I put up the year before but forgot about since I figured they weren't as hard to come by anymore.

    But I've been wanting to try out a few review sites...probably just test a few of the saturated markets like host review or dating reviews.



    PS Thanks Browning!
     
  13. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10


    You guys are welcome. I like this thing so far. Works well on my new site:bowdown:
     
  14. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,463
    Likes Received:
    10
    it's still not right. I have everything placed where I want it but it'snot recording the ratings. It shows as if the commenter never rated anything, even when they did. Works flawlessly in the themes that cam with the plugin though. I'm pretty sure the problem lies within the comments.php file:mad:

    Edit-fixed, again. However, I found a problem with the theme that isn't related to this plugin.

    In ff, when adding comment it doesn't automatically jump to the next line. It just adds a scroll bar :wtf:
     
    Last edited: Jan 30, 2009

Share This Page