DynaBlue Theme Page Comments Fix

Posted on : 07-06-2009 | By : Benjamin | In :

View Comments

DynaBlue Theme Page

Note:  With the Disqus commenting plugin, make sure you change the text from “0 Comments” to just “0″, etc. This will get it working for blog posts but not for pages and the colors are off. That is because of disqus’ comment counting code.  You can edit this to fix it as follows: Go to your disqus plugin editor line 299 and remove  most of the method dsq_comments_number from

// Mark entries in index to replace comments link.
function dsq_comments_number($comment_text) {
global $post;

if ( dsq_can_replace() ) {
ob_start();
the_permalink();
$the_permalink = ob_get_contents();
ob_end_clean();

return '</a><noscript><a href="http://' . strtolower(get_option('disqus_forum_url')) . '.' . DISQUS_DOMAIN . '/?url=' . $the_permalink .'">View comments</a></noscript><a class="dsq-comment-count" href="' . $the_permalink . '#disqus_thread" wpid="' . $post->ID . '">Comments</a>';
} else {
return $comment_text;
}
}

to

// Mark entries in index to replace comments link.
function dsq_comments_number($comment_text) {
global $post;

return $comment_text;

}

And change the page.php of the theme as below and it will all work:

<?php get_header(); ?>

<div id="content" class="narrowcolumn">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post-top">
<div class="post-title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a></h2>
<h3>
Posted on : <?php the_time('d-m-Y') ?> | By : <span><?php the_author() ?></span> | In : <span class="post_cats"><?php the_category(', ') ?></span>
</h3>

</div>

<h4><?php comments_number('0', '1', '%'); ?></h4>
</div>
<div class="post-page" id="post-<?php the_ID(); ?>">

<div class="entry entry_page">
<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

<?php edit_post_link('Edit this entry.', '<br /><p>', '</p>'); ?>
<?php comments_template(); ?>
</div>
</div>
<?php endwhile; endif; ?>
</div>

<?php get_footer(); ?>

Comments View Comments

Thank you for this post!

nice

Thanks for the info. That's a great fix.

themes usually used for looks ooooooof site.

Get Your Ex Back

Netflix

Hi people,
This really great product, do tell me about its features. I am really very curious to know about it.
Netflix

Ugg Boots,also called Ug or Ugg boots,are nowadays one of the most popular boots.They existed already in 1930's and became popular in 1960's when Australian surfers found out,that they can warm their feet after coming out from cold water.They have everything you need-comfort and warmth.You will never be cold in those boots because 100% sheepskin will warm you even in the coldest days.The natural thermal properties of sheepskin make possible that Ugg Boots will warm you in the winter but in the summer your feet will not be wet.It is true that Ugg is shorter from ugly,but if you know even little bit about fashion you will know that Ugg boots are not ugly.We can see famous people like Pamela Anderson or Kate Hudson wearing Ugg Boots.
Nowadays we have new improved Ugg boots for sale.You can get them for anybody.We have women boots,children boots,slippers and casuals.

Our UGG Australia Boots are all authentic.Their properties and features as below:

*In cold temperatures,the fleece works as an insulating layer of warmth and keeps the warmth of body heat inside of the boot.
*In the heat,the wool fibers keep the air circulating; thus keeping your fee dry and pulling the perspiration away from your skin.Sheepskin also contains lanolin,which moisturizes your feet when worn barefoot.
*ugg boots have reinforced toes,which are double stitched and extra durable heels.
*feature a natural,thick fleece on a removable in-sole for arch support.
*The sole is usually durable in most terrain,lightweight and provides traction as well.-http://www.gouggs.com/

We have been exporter of UGG Australia Boots for many years,our product are all authentic.Welcome to buy any boots of them in our website,we charge the shipping fee.
We just take 7 days to deliver the products to your door.
As everyone knows,UGG Australia Boots in australia, and many other countries as well, ugg boots also ug or uggs are a style of footwear that has been used generically for well over a hundred years.Everywhere you go now you find that the ugg boot has become the latest fashion trend.uggsmax.com

Our UGG Australia Boots are all with top quality:

*100% authentic sheepskin for unrivalled comfort
*flexible molded EVA outsole
*Insole features a genuine sheepskin sockliner that naturally wicks away moisture and keeps feet dry
*Wool blend knit uppers with suede heel guards
*Approximate Shaft Height (Uncuffed): 14.5″
*By UGG Australia;Imported.-http://www.uggdress.com/

The original ugg boots is not a brand name but an age old sheepskin boots generic term for this style of australian-made sheepskin boot. in Aussie slang, the ug name is short for “ugly.” in terms of comfort, however, the ug boot is a thing of beauty.Ugg boots are a popular brand of boot for women,and children.just as the chairman of australian ugg said, australian ugg is a good choice. once wearing it, you will be reluctant to take it off and be fascinated by its originality, reliability and extremely luxurious comfort. this is the art brought by boots. ugg boots make young beautiful girls and handsome boys very confident.addugg.com

Our website have many fashion styels of UGG Boots for women and children.

We provide many advantages as below:
*free shipping
*hidden costs
*professional customers service
*secure processing,plus
*we dont hassle you on returns.if you dont like what youve received, simply return it!

UGG Boots must be you best choice!-http://www.addugg.com/

Write a comment

Bad Behavior has blocked 556 access attempts in the last 7 days.

This site is protected with Urban Giraffe's plugin 'HTML Purified' and Edward Z. Yang's Powered by HTML Purifier. 1028 items have been purified.

Performance Optimization WordPress Plugins by W3 EDGE