Pages

Subscribe:

Ads 468x60px

Labels

Friday

Newest 200+ Comments Not Showing In Blogger - Fix Found!







Due to Blogger Threaded comments, most of the comment code structure has been seriously effected. Normally when a post exceeds the limit of 200 comments, latest comments are paginated and only the oldest 200 comments are displayed on post page. You could switch between oldest and newest comments by using the comment pagination links but due to threaded commenting system these links got messed up and would not show up now. I got a custom script from my friend nhamngahanh from simplexdesign which will help you fix this 200+ comments problem so that your visitors could access all your comments. Lets cook some new recipe today!

You can see live demo on our blog just at the top of comments. Click Here
This tutorial is a little different from what nhamngahanh shared. I have changed the location of HTML code so that it may not misalign the post navigation buttons. I also accordingly change the CSS styles to make it more appealing.
This widget works on JavaScript that display your first 200 comments and then paginates the remaining comments inside separate pages and displays the remaining pages in numeric form and latest and oldest links as text links.

Fix Comment Pagination Links In Blogger

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Click the box "Expand Widget Templates"
  4. Search for <body>
  5. Just above it paste the following code:
<script type='text/javascript'>
//<![CDATA[
function commentpagination(url,comment){
var posturl= url;
var comment = comment;
cmpage = Math.ceil(comment/200);
document.write('<a  href="'+posturl+'?commentPage=1">Oldest</a>');
for (var i = 1; i <= cmpage; i++) {
document.write('<a  href="'+posturl+'?commentPage='+i+'">'+i+'</a>');
}
document.write('<a href="'+posturl+'?commentPage='+cmpage+'">Latest</a>');
}
//]]>
</script>
If you wish you can change the yellow highlighted text to any name you like.
     6.   Next search for this code:
<h4>
        <b:if cond='data:post.numComments == 1'>
          1 <data:commentLabel/>:
        <b:else/>
          <data:post.numComments/> <data:commentLabelPlural/>:
        </b:if>
      </h4>
and just below it paste the following code:
<span id='commentpaging'>
                                     <font style='color:#289728; font-size:12px; font-weight:bold; padding-right:4px; '> Comment Page :</font>
                                     <script type='text/javascript'>commentpagination(&quot;<data:post.url/>&quot;,&quot;<data:post.numComments/>&quot;);</script>                                      
                                 </span>
  • You can change the yellow highlighted text to anything you like.
  • To change the color of Comment page text edit color:#289728
     7.   Now search for ]]></b:skin>   and just above it paste the following CSS code:

/* -------------- Comment Pagination Stylesheet By MBT --------*/
#commentpaging { background:#F7F9FA; margin:0px padding:20px auto;width:580px; border:1px solid #ddd; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;  text-align:right;}
#commentpaging a { margin-right:5px;}
Make these customizations:
  • To Change background color of the box edit background:#F7F9FA
  • To change the width of the box edit width:580px
Save your template and visit any of your blog post to see a pagination box appearing just at the top of your comments.

Tuesday

सोशल नैटवर्किंग बैवसाइटों को निर्देश, 15 दिनों के अंदर हटाएं आपत्तिजनक सामग्री

नई दिल्ली, 7 फरवरी : दिल्ली की एक अदालत ने सोमवार को गूगल, फेसबुक, याहू आदि 21 प्रमुख इंटरनेट साइटों और सर्च इंजन को 15 दिनों के अंदर अपनी बैवसाइटों से आपत्तिजनक सामग्री हटाने का निर्देश दिया है। रोहिणी स्थित अदालत ने बैवसाइटों पर आपत्तिजनक और अश्लील सामग्री पोस्ट किए जाने पर सख्त रवैया अपनाते हुए कहा कि उन्हें और समय नहीं दिया जायेगा। उन्हें यह सामग्री हटाकर 15 दिन के अंदर अपनी अमल रिपोर्ट दाखिल करनी होगी। अदालत ने इससे पूर्व 24 दिसम्बर को इन बैवसाइटों को 6 फरवरी तक सामग्री हटाने का निर्देश दिया था।
इस बीच सामाजिक सर्च बैवसाइट फेसबुक ने अदालत के पहले के निर्देश पर सोमवार को अपनी अमल रिपोर्ट दाखिल की। रोहिणी सिविल अदालत के न्यायाधीश प्रवीण सिंह ने अदालत के निर्देश का सही उत्तर नहीं देने के लिए सर्च इंजन गूगल पर नाराजगी जताते हुए पूछा कि वे उचित जवाब दाखिल क्यों नहीं कर रहे हैं। सामाजिक कार्यकर्ता मुफ्ती एजाज अरशद काजमी ने अदालत में यह मामला दायर किया है। वैबसाइटों के खिलाफ आपत्तिजनक सामग्री को लेकर राजधानी के एक पत्रकार विनय राय ने एक आपराधिक मामला भी दायर किया है, जिस पर पटियाला हाउस अदालत में सुनवाई चल रही है। इस कार्यवाही को रुकवाने के लिए वेबसाइटों ने दिल्ली उच्च न्यायालय में अपील की थी, लेकिन उसने कार्यवाही रोकने का निर्देश देने से इनकार कर दिया था। उच्च न्यायालय के न्यायाधीश न्यायमूर्ति सुरेश कैत ने तल्ख टिप्पणी की थी कि यदि वैबसाइटें आपत्तिजनक सामग्री हटाने की प्रणाली विकसित नहीं करती हैं, तो उन्हें चीन की तरह प्रतिबंधित किया जा सकता है।

वैबसाइटों को ब्लाक या सैंसर करने का कोई सवाल ही नहीं : सचिन पायलट
संचार एवं सूचना प्रौद्योगिकी राज्य मंत्री सचिन पायलट ने कहा कि किसी भी सोशल नैटवर्किंग और अन्य वैबसाइटों को ब्लाक या सैंसर करने का कोई सवाल ही नहीं उठता लेकिन उसने यह भी कहा कि इन वैबसाइटों को भारतीय कानून के दायरे में रहकर काम करना होगा और जवाबदेह रहना चाहिए। उन्होंने यहां संवाददाताओं से बातचीत करते हुए कहा कि वैबसाइटों के नियंत्रण संबंधी कानून इस प्रकार की कंपनियों से विचार-विमर्श और बातचीत कर बनाए गए हैं।


My Headlines