Les nouveautés et Tutoriels de Votre Codeur | SEO | Création de site web | Création de logiciel

Seo Master present to you: There are several tutorials quite old which have explained different methods for displaying related posts in Blogger [1] [2] but in this tutorial, I will show you how to implement a very beautiful Related Posts widget that comes along with Thumbnails and Posts Snippets, as well. If you want to add it, follow the next steps below:

How to Add Related Posts Widget with Summary to Blogger

Step 1. From your Blogger Dashboard, go to Template and click on Edit HTML


Step 2. Tick the "Expand Widget Templates" checkbox:
 Step 3. Find (CTRL + F) this tag:

</head>

...and paste the following code just above it:

<script type='text/javascript'>
//<![CDATA[
var relatedTitles = new Array();
var relatedUrls = new Array();
var relatedpSummary = new Array();
var relatedThumb = new Array();
var relatedTitlesNum = 0;

var relatedPostsNum = 4; // number of entries to be shown
var relatedmaxnum = 75; // the number of characters of summary
var relatednoimage = "http://www.matrixar.com/-PpjfsStySz0/UF91FE7rxfI/AAAAAAAACl8/092MmUHSFQ0/s1600/no_image.jpg"; // default picture for entries with no image

function readpostlabels(json) {
  var entry, postimg, postcontent, cat;
  for (var i = 0; i < json.feed.entry.length; i++) {
    entry = json.feed.entry[i];
    if (i==json.feed.entry.length) { break; }
    relatedTitles[relatedTitlesNum] = entry.title.$t;
    postcontent = "";
    if ("content" in entry) {
      postcontent = entry.content.$t;
    } else if ("summary" in entry) {
      postcontent = entry.summary.$t;
    }
    relatedpSummary[relatedTitlesNum] = removetags(postcontent,relatedmaxnum);
    if ("media$thumbnail" in entry) {
      postimg = entry.media$thumbnail.url;
    } else {
      postimg = relatednoimage;
    }
    relatedThumb[relatedTitlesNum] = postimg;
    for (var k = 0; k < entry.link.length; k++) {
      if (entry.link[k].rel == 'alternate') {
        relatedUrls[relatedTitlesNum] = entry.link[k].href;
        break;
      }
    }
    relatedTitlesNum++;
  }
}
function showrelated() {
  var tmp = new Array(0);
  var tmp2 = new Array(0);
  var tmp3 = new Array(0);
  var tmp4 = new Array(0);
  for(var i = 0; i < relatedUrls.length; i++) {
    if(!contains(tmp, relatedUrls[i])) {
      tmp.length += 1; tmp[tmp.length - 1] = relatedUrls[i];
      tmp2.length += 1; tmp2[tmp2.length - 1] = relatedTitles[i];
      tmp3.length += 1; tmp3[tmp3.length - 1] = relatedpSummary[i];
      tmp4.length += 1; tmp4[tmp4.length - 1] = relatedThumb[i];
    }
  }
  relatedTitles = tmp2; relatedUrls = tmp; relatedpSummary = tmp3; relatedThumb = tmp4;
  for(var i = 0; i < relatedTitles.length; i++){
    var index = Math.floor((relatedTitles.length - 1) * Math.random());
    var tempTitle = relatedTitles[i]; var tempUrls = relatedUrls[i];
    var tempResum = relatedpSummary[i]; var tempImage = relatedThumb[i];
    relatedTitles[i] = relatedTitles[index]; relatedUrls[i] = relatedUrls[index];
    relatedpSummary[i] = relatedpSummary[index]; relatedThumb[i] = relatedThumb[index];
    relatedTitles[index] = tempTitle; relatedUrls[index] = tempUrls;
    relatedpSummary[index] = tempResum; relatedThumb[index] = tempImage;
  }
  var somePosts = 0;
  var r = Math.floor((relatedTitles.length - 1) * Math.random());
  var relsump = r;
  var output;
  var dirURL = document.URL;

  while (somePosts < relatedPostsNum) {
    if (relatedUrls[r] != dirURL) {

      output = "<div class='relatedsumposts'>";
      output += "<a href='" + relatedUrls[r] + "' rel='nofollow'  target='_self' title='" + relatedTitles[r] + "'><img src='" + relatedThumb[r] + "' /></a>";
      output += "<h6><a href='" + relatedUrls[r] + "' target='_self'>" + relatedTitles[r] + "</a></h6>";
      output += "<p>" + relatedpSummary[r] + " ... </p>";
      output += "</div>";
      document.write(output);
     
      somePosts++;
      if (somePosts == relatedPostsNum) { break; }
    }
    if (r < relatedTitles.length - 1) {

      r++;
    } else {
     
      r = 0;
    }

    if(r==relsump) { break; }
  }
}
function removetags(text,length){
  var pSummary = text.split("<");
  for(var i=0;i<pSummary.length;i++){
    if(pSummary[i].indexOf(">")!=-1){
      pSummary[i] = pSummary[i].substring(pSummary[i].indexOf(">")+1,pSummary[i].length);
    }
  }
  pSummary = pSummary.join("");
  pSummary = pSummary.substring(0,length-1);
  return pSummary;
}
function contains(a, e) {
  for(var j = 0; j < a.length; j++) if (a[j]==e) return true;
  return false;
}
//]]>
</script>

Note:  
  • To change the number of posts that are being displayed, modify the value in red (4)
  • To change the number of characters to be shown in posts summary, modify the value in green (75)
  • To change the default pic for posts with no images, add your URL instead of the one marked in blue

Step 4. Search (CTRL + F) for the following fragment:

<a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>

... and add this code just below it:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
    <script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=readpostlabels&amp;max-results=50&quot;' type='text/javascript'/>
  </b:if>

The entire fragment should look like this:

          <b:loop values='data:post.labels' var='label'>
            <a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
    <script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=readpostlabels&amp;max-results=50&quot;' type='text/javascript'/>
  </b:if>

          </b:loop>

Step 5. Find this fragment of code:

</b:includable>
<b:includable id='postQuickEdit' var='post'>

Note: if you can't find it, then search only for the code in red

! Click on the sideways arrow to expand the code, then scroll down until you reach to the highlighted line !

...add just ABOVE it, add the following:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
  <div class='post-footer-line post-footer-line-4'>
    <div id='relatedpostssum'><div style='text-align: left; font-size: 15px; margin-bottom: 10px; font-weight: bold;'>RELATED POSTS</div>
      <script type='text/javascript'>showrelated();</script>
    </div>
    <div style='clear:both;'/>
  </div>
</b:if>

Screenshot

Step 6. Let's go ahead and add some styles to our CSS... search for this tag:

]]></b:skin>

...and paste the below code just ABOVE it:

.relatedsumposts {
  float: left;
  margin: 0px 5px;
  overflow: hidden;
  text-align: center;
  /* width and height of the related posts area */
  width: 120px;
  height: 210px;
}

.relatedsumposts:hover {
background-color: #F3F3F3; -webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}

.relatedsumposts img:hover {
-khtml-opacity:0.4;
-moz-opacity:0.4;
opacity:0.4;
}

.relatedsumposts a {
  /* link properties */
color: #linkcolor;
  display: inline;
  font-size: 10px;
  line-height: 1;
}
.relatedsumposts img {
  /* thumbnail properties */
margin-top: 2px;
  height: 82px;
  padding: 5px;
  width: 82px;
border: 1px solid #fff;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.relatedsumposts h6 {
  /* title properties */
  display: table-cell;
  height: 5em;
  margin: 5px 0 0;
  overflow: hidden;
  padding-bottom: 2px;
  vertical-align: middle;
  width: 130px;
}

.relatedsumposts p {
  /* summary properties */
border-top: 1px dotted #777777;
border-bottom: 1px dotted #777777;
color: #summarycolor;
  font-size: 10px;
  height: 4em;
  line-height: 1;
  margin: 5px 0 0;
  overflow: hidden;
  padding: 5px 0 15px 0;
  text-align: left;
}

Note:  
  • Modify the values in red to adjust the width (120) and height (210) of the widget area
  • Replace #linkcolor with the hex value of your color to change the color of post titles
  • To change the size of thumbnails, modify the values marked in violet (82)
  • To determine the border roundness, modify the values in orange (100)
  • To change the color of the post snippet, change #summarycolor with color hex value

Step 7. Save your Template... and hopefully we're done...

Enjoy!2013, By: Seo Master
Seo Master present to you:
Free Template Shadow With Slider (Fast,SEO,Clean)  -Is a fast loading template that is equipped with a slider and adsense code, so you do not have to bother to make changes to the template. Not only that, it also has supported template facebook like book.

Free Template Shadow With Slider (Fast,SEO,Clean)
Post Page


  1. Featured Articles Auto slideshow
  2. SEO optimized
  3. Nice design with quick loading
  4. Word Press like Comment section
  5. Breadcrumbs Added
  6. Social networking Icons for sharing
  7. Related Posts section for each post
  8. Popular posts Added
  9. AdSense friendly design
  10. HTML 5 feature Transition added
  11.  Needs updated browsers like,
  12. Safari 3+
  13. Chrome Whatever+
  14. IE 9+
  15. Opera 10+
  16. Firefox 4+(You can use Beta)
Free Template Shadow With Slider (Fast,SEO,Clean)
Home Page

To change the template:

1. Upload as usual in your blogger dashboard
2. To change the header logo please look for the following code: "http :/ / img11.imageshack.us/img11/4529/spicytricks.gif"

3. For sliders, each Post to want to add Slide Label posting replaced with "Featured"'ll automatically be entered slide.

4. For those of you who want to put Adsense code please look for the following code:<!-Your ad here-> for placing it there beside the header above it can be replaced with a code size of 468x60

5. to change Navigation / catagory code label can be found below:

<- Replace the urls with your urls ->
<li>
<a dir='ltr' href='http://www.spicytricks.com/search/label/Windows7?&max-results=7'> Windows7 </ a>
</ li>
<li>
<a dir='ltr' href='hxxp://www.spicytricks.com/search/label/Tech News?&max-results=7'> Technology </ a>
</ li>


<li>
<a dir='ltr' href=' your url here'> Technology </ a>
</ li>


6. To Change Link Feed Burner & Twitter looking for the code below:


_http :/ / feeds.feedburner.com / WelcometoSpicytricks <<< --- Code Twitter is above this line,

Free Template Shadow With Slider (Fast,SEO,Clean)
7. To bring up the column template Postings

8. Edited Like Box FB


<- If you want this, you can use this or remove it from here ->
<div id='sidebar-top'>
<div class='clear' style="padding-top:10px;"/>
<iframe src = "http://www.facebook.com/plugins/likebox.php?href=http% 3A% 2F% 2Fwww.facebook.com% 2Fp% ages% 2FSpicyTricks 2F261195073226 & width = 292 & am p; colorscheme = light & ; connections = 10 & stream = false & header = false & height = 255 "scrolling =" no "frameborder =" 0 "style =" border: none; overflow: hidden; width: 292px; height: 255px; "allowTransparency =" true "> </ iframe>
<div class='clear'/>


<iframe src = "http://www.facebook.com/plugins/recommendations.php?site=spicytricks.blogspot.com & amp; width = 300 & height = 300 & header = false & colorscheme = light & font = verdana" scrolling = "no" frameborder = "0" style = "border: none; overflow: hidden; width: 300px; height: 300px;" allowTransparency = "true"> </ iframe>
</ div>
<- Remove End it here ->

Please do not Delete Footer template "Free Template Shadow With Slider (Fast,SEO,Clean)", this work of someone who has left him with difficulty and distributed free of charge for you.
2013, By: Seo Master
Seo Master present to you:

How To Get Free Mobile Recharge

Hai guys, I found some intresting sites through which you can get mobile recharge free of cost. Some sites offers Free Mobile Recharge by matching last digits of your mobile no. with their set of numbers, on a daily basis. Others offer free mobile recharge for completing surveys, offers, playing games, etc. that the provide after signing up to them.
Info.: The sites mentioned in this article are 100% Genuine and tested by me.
Don't Miss: Make Free Phone Calls Online!
Below are some sites to get free mobile recharge. Check them out,

(Worldwide)

1.) Embee Pay:

              Embee Pay is a facebook App, Available worldwide for many countries including India. Embee Pay rewards it's user's with Embee Points Which can be redeemed into real money and can be used for recharging your mobile online. You can get free mobile recharge by doing various activities like inviting your friends, daily login, signing up to sites, etc..

More sites will be added soooooooooonnnnnnn!!!!

(For India Alone)

Based on Luck:

You need to check the below two sites on a daily basis to get the chance of winning free mobile recharge one or another day!

1.) Luckyrecharge:

As the name suggests, If you are lucky you can get  free mobile recharge of Rs.10 to Rs.100 based on the last 3 to 7 digits of your mobile number.

Lucky Recharge offers free prepaid mobile recharge on all operators across India. The recharge value varies between Rs.10 to Rs.100 based on the last 3 to 7 digits of your mobile number. Just enter your mobile number and check your luck for the day.

2.) Trackmobile:

TrackMobile offers you to get free mobile recharge (woth Rs.100 / Rs.50 / Rs.10) if the last 5 / 4 / 3 digits of your mobile number falls under the "Todays Offer Number". The offer number will change daily inorder to give more oppertunity for trackmobile customers to get free recharge.

By Doing Some Work:

In these sites you have to do some activities like Playing quiz, Answering questions, attending polls, clicking on the ads, signing up for a site, etc... to get free mobile recharge!

In the below list Laaptu & Amulyam are somewhat Similar and also My Favourite when considered to others. Below You will find the reasons for them to be my favourite. Iam sure that on signing up to those 2 sites in addition to PicksUp & ULtoo You can get the maximum amount of free recharge daily. :)
 Don't Forget to Verify your mobile no. (Just enter the code they send to your mobile on the box provided on the site) & E-Mail address (Just go to your inbox-->check for the mail-->Then click the link in it) after signing up to the site mentioned below to start earning. It's important to keep your mobile in hand while signing up to these site.

1.) PicksUp: (Pays Higher)

Through PickzUp you can get free mobile recharge by Playing Games, By Participating in contests and winning, Vote and earn credits(10credits=1Rs.), Refer your friends and earn.

In PicksupYou can redeem your earned amount as recharge to your mobile, Send it to your bank account Or Shop Online!

 Keep your mobile in your hand when signing up to this site, as you will receive the password as a text msg. to your mobile. Use this password to signup to this site, Later you can change this password.


2.) Laaptu: (My Favourite)

Laaptu has amazing ways to get free mobile recharge like, Guess and win!FACT or FART (A simple True or False Game), Invite And Earn, etc... Just check it out and if you find it intresting, Share your opinion with us through the below comment box! :)

The reason for Laaptu to be my favourite is:
Laaptu is similar to Amulyam (Mentioned below) i.e they are also making us to learn something through a Fact or Fart game (which is similar to the GK questions asked on Amulyam) and Quiz Game. And there is a Guessing Game to guess the no. about to appear after every 10min. and earn Rs.10 instantly if that no. matches your's. They also surprise us daily by providing Surprise Bonuses daily.

3.) Amulyam: (My Favourite)

Through Amulyam you can get free mobile recharge by creating contest, playing games, reading mails which they send to your inbox, by signing up to sites, by inviting your friends and relatives through referral link they provide, etc...

The reason for Amulyam to be my favourite is:
            They educate people by making us to learn 25 GK questions daily and give credit for doing that too. And also they give credits for learning 15 new English Words daily. By doing these activities, you not only get free mobile recharge, but also gain some knowledge.

4.) ULtoo: (Get Free Mobile Recharge for Sending SMS to your friends)

Ultoo is another site throught which you can get free mobile recharge for sending SMS to your friends mobile, playing quiz, Answering Poll questions, inviting people, etc...

Enough of worrying about the SMS cost's. Send Free SMS using Ultoo and even get paid for each SMS that you send to your friends or your family. :)

5.) Waytosms:

Through waytosms you can not only get free mobile recharge, but also send unlimited sms to any mobiles in India.

You can get free mobile recharge by displaying the ads they provide, on your social network like fb, google+, etc... Whenever someone clicks on the ads that you share, you get paid for it. And you can recharge your mobile online with that payment.

In waytosms you can also earn money by refering your friends and relatives through the link that they provide to you as Referral link.

6.) Freetalkie:

Free talkie offers free mobile recharge for completing offers like signing up to the websites, they have listed or by shopping online, liking fb pages, etc... Just check if it suits you.

More sites will be updated soonnnnnnnnnnnnnn!!!!!!!!!!
2013, By: Seo Master
Powered by Blogger.