coComment sidebar block for K2
This entry was published from Low End Theory. You can comment here or on the original post..
I got about 4 emails now asking how I added coComment into K2 on my about page so Here is a quick how-to-do-it.
Step 1. Run over to chait for the cg power pack.
Step 2. Upload the pack & activate the feedread plugin, making sure that your cache_feedread directory is writable.
Step 3. Add this to your sidebar.php for K2 <div class="sb-cocomment"> <h2>CoComment</h2> <span class="metalink"> <a class="feedlink" href="http://www.cocomment.com/comments/username"> <img src="http://www.cocomment.com/favicon.ico" /></a></span> <?php $feedUrl = "http://www.cocomment.com/myrss2/username.rss";
// replace username.rss to your cocomment username $feedOut = getSomeFeed($feedUrl, 10, false, "feed-cocomment", '', 27, -1, false);
if ($feedOut)
echo $feedOut;
?> </div>
If you want to take it a step more you can use Pauls php conditionals tutorial to decide which pages it should show up on.