The following information was all taken from the Sezwho website. It took me a few read throughs to actually understand that info, so hopefully I can simplify the instructions. The point of this guide is to turn off the default plugin settings and only include the Sezwho elements you want to appear. The benefit of doing this is that the default settings can mess up some WordPress themes. If you activate the plugin and see your sidebars disappear, have double images next to comments, or some other bug, then this tutorial is for you.
Step 1. The settings for Sezwho are located at the top of your WordPress Plugin page. It’s called SezWho configuration. Under Comment Options and Post options, choose which of the four options you want functional. You must choose at least one option, or there is no point in having Sezwho installed at all. Finally, disable the auto layout by clicking the Disable Auto Layout checkbox and then clicking Update to save your settings.
Step 2.Insert any or all the following lines of PHP code into your template where you want the particular Sezwho element to appear. For example, on Turnipofpower.com, I have chosen to only add the commenter’s rating bar.
Comments.php functions
- Show Commenter’s Picture:
<?php if (function_exists('cp_comment_user_image')) echo cp_comment_user_image(); ?> - Show Commenter’s Profile Link:
<?php if (function_exists('cp_comment_profile_link')) echo cp_comment_profile_link(); ?> - Show Commenter’s Rating Bar:
<?php if (function_exists('cp_comment_footer_content')) echo cp_comment_footer_content(); ?>
Single.php functions
- Show Post Rating Bar:
<?php if (function_exists('cp_post_ratingbar')) echo cp_post_ratingbar();?>
Index.php functions:
- Show Author Image:
<?php if (function_exists('cp_post_author_image')) echo cp_post_author_image(the_author());?> - Show Author Link:
<?php if (function_exists('cp_post_author_link')) echo cp_post_author_link();?> - Show Post Ratings Bar:
<?php if (function_exists('cp_post_ratingbar')) echo cp_post_ratingbar();?>
Manually adding the Red Carpet:
<li> <?php include('/wp-content/plugins/sezwho/cpratecomments.php'); if(function_exists('widget_sezwho_rc')) widget_sezwho_rc(); ?> </li>
Again, I point you to the complete instructions on the Sezwho website. Editing your WordPress theme templates is not something a WordPress novice should try. At the very least, backup your original template before you make any changes. That way if your site doesn’t load, you can overwrite your changes with the backup copy.
Turnip, I really enjoy reading your blog, I’m a sub as well. You have a talent for making difficult things easy. You clearly write how-tos that even a novice like myself can understand. Thank you.
Thanks! I appreciate your kind words Teasa. So much drama going around the internet these days I forget how it can also be a friendly useful place. Glad you found my article useful.
Actually I wa installing sezwho faraway before entrecard colabs with it.But I also removed it long time ago since I dont undretsant the purpose.wahaha (How stupid I am).Maybe I will try to instal it again)
I tried to post the comment below, but I got an error message that I had already posted it. I haven’t so something funny is happening to your comments approval.
Thanks for this information. My blog uses word press and my tech guy has had some difficulty getting Sezwho installed as I want it.
By the way, I visited one site where the Sezwho banner appeared as a pop-up. Do you know how to do that?
Thanks for doing this. Installation went fine for me, but I’m sure this is saving a lot of stress for some people.
Linda: The comments are working fine, I did have 2 copies of your comment. It takes a second or two for the cache to update and show you your latest comment. As for making a pop-up, I wouldn’t recommned it. If you insist, there are wordpress plugins that will allow you to add a popup to your page. Just add the code to the plugin.
That’s really handy! I don’t use wordpress, but I will be in the near future and I love SezWho. I am definitely bookmarking this. Thank you for your help!
I tried your fix and the ratings don’t show up on the comments (that was the only one I wanted to utilize). Don’t know where to put it in comment.php as I don’t understand the code.
Thanks for the help, though — at least someone is trying.
ê¿ê
Margaret: First make sure “disable comment rating” is not checked. Then paste the code above for enabling comment ratings right after the line that says “php comment text” in your comments.php template. Please see http://sezwho.com/install_wp_d.php#template for their example.
I have DISABLE AUTO LAYOUT checked, comment rating and comment filtering boxes UNCHECKED. Have put the coding in the comments.php file for my theme and saved everything.
However, no comment rating images show up.
I have not set up the self-hosted css file. Do you have to do that before this will work?
ê¿ê
No, self-hosted css is not required. I found the error. In the code I posted above, wordpress is changing the quote marks before and after the ‘cp_comment_footer_content’ statement to fancy quotes. You need to use the vertical quote symbol found below the ” symbol. That goes for all the statements above. I’ll edit the post above to warn people. Thanks for finding the error for me. If you change the 2 single quote marks to the proper ones, it should work fine. The sezwho website linked to above has the quotes properly. (Note: The above code should now work correctly, I fixed it using the code tags.)
Ok, that fixed the issue of no show ratings.
What can be done to get the avatar off the commenter’s name? Can I put some html in there to give the avatar a line height?
Margaret
Never mind — I saw on the sezwho site that the piece of code for the user image goes in a different spot. You can’t just put the 3 lines of code one after another in comments.php. Each line goes in a specific spot.
Margaret
Well, for all your good advice and directions, I can’t get my blog to go past “insert key to activate” I have inserted the darn key and nothing happens. Woe is I.
Carol, for that you will have to post to the sezwho support forum. You should expect a response within 24 hours. One thing I can say about Sezwho is that they have excellent customer service.
Thanks Turnip, I’ve tried Sezwho on and off. I’m running justin tadlock’s Structure theme and avatars started to show up everywhere, especially in places where they were not wanted. I’ll try your advice, and will report back with results.
Thanks for posting this info. I haven’t even tried to do this yet, I’m going to wait a while and see how people like it.
hi turnip, i’m back! and yes, it worked, thank you very much. I had to take out the default avatar display code that comes with the Structure theme and replace it with the sezwho code. I also had to pick and choose what to enable though, and there’s this bug-like behavior that will not display my avatar if I make a comment while not logged in to my admin, but otherwise fine and dandy is all.
thanks for this info.. I haven’t access my admin page for 3 days because of the SezWho plugin.. and I need to delete the entire template for me to be able to access my admin page again..
BOOkmarked!!
Bambit: I had similar errors, which is why I went this route. I hated the tiny images it added for the author. Glad it worked.
Ghing: I’m not sure why your admin page wouldn’t load. Usually it’s the blog that won’t load, and the plugin gets deactivated automatically when there is a critical error. If you are using WordPress, first try deleting the one plugin. Then re-upload the theme template you recently edited. I hope everything is working for you again.
A perfect tutorial!
However, do you know any way to insert the rating bar MANUALLY into CERTAIN posts – like WP-PostRatings [ratings] – and not ALL posts?
Thanks again ^^
MAyamiru: To do that I think you would need a plugin that allows you to insert PHP directly into a post. There are many such plugins available. Then once the plugin is activated, you simply use the code above.
Thanks for sharing this with us, Turnip! That avatar that automatically puts itself beside the gravatars was irritating me
Nice article, Turnip. I was also disturbed by the Seizwho profile picture since I already have gravatar installed. Thanks.