Monday, June 29, 2009

Make a related post by Label

If you use the "related posts" on your blog, so when visitors read the articles you write on your blog, then at the end of the title page will be visible post in the label associated with the same post that you make. That is the function of the related post, the post title to show on the label is the same, at the end of the page
If you give more than one label to the article that you created, then at the end of the page will be visible to all the titles in the same label to the article that you created earlier. So that the post do not disappear

To make this

Entry in the Edit HTML page and marked on the Expand Widgets Templates
Find this code <data:post.body/> 
Put the following script code below .

<b:if cond='data:blog.pageType == "item"'>
<div class='similiar'>

<div class='widget-content'>
<h3>Related Post</h3>
<div id='data2007'/><br/><br/>
<script type='text/javascript'>

var homeUrl3 = &quot;<data:blog.homepageUrl/>&quot;;
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;

maxNumberOfPostsPerLabel = 100;
maxNumberOfLabels = 3;


function listEntries10(json) {
var ul = document.createElement(&#39;ul&#39;);
var maxPosts = (json.feed.entry.length &lt;= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i &lt; maxPosts; i++) {
var entry = json.feed.entry[i];
var alturl;

for (var k = 0; k &lt; entry.link.length; k++) {
if (entry.link[k].rel == &#39;alternate&#39;) {
alturl = entry.link[k].href;
break;
}
}
var li = document.createElement(&#39;li&#39;);
var a = document.createElement(&#39;a&#39;);
a.href = alturl;

if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
a.appendChild(txt);
li.appendChild(a);
ul.appendChild(li);
}
}
for (var l = 0; l &lt; json.feed.link.length; l++) {
if (json.feed.link[l].rel == &#39;alternate&#39;) {
var raw = json.feed.link[l].href;
var label = raw.substr(homeUrl3.length+13);
var k;
for (k=0; k&lt;20; k++) label = label.replace(&quot;%20&quot;, &quot; &quot;);
var txt = document.createTextNode(label);
var h = document.createElement(&#39;b&#39;);
h.appendChild(txt);
var div1 = document.createElement(&#39;div&#39;);
div1.appendChild(h);
div1.appendChild(ul);
document.getElementById(&#39;data2007&#39;).appendChild(div1);
}
}
}
function search10(query, label) {

var script = document.createElement(&#39;script&#39;);
script.setAttribute(&#39;src&#39;, query + &#39;feeds/posts/default/-/&#39;
+ label +
&#39;?alt=json-in-script&amp;callback=listEntries10&#39;);
script.setAttribute(&#39;type&#39;, &#39;text/javascript&#39;);
document.documentElement.firstChild.appendChild(script);
}

var labelArray = new Array();
var numLabel = 0;

<b:loop values='data:posts' var='post'>
<b:loop values='data:post.labels' var='label'>
textLabel = &quot;<data:label.name/>&quot;;

var test = 0;
for (var i = 0; i &lt; labelArray.length; i++)
if (labelArray[i] == textLabel) test = 1;
if (test == 0) {
labelArray.push(textLabel);
var maxLabels = (labelArray.length &lt;= maxNumberOfLabels) ?
labelArray.length : maxNumberOfLabels;
if (numLabel &lt; maxLabels) {
search10(homeUrl3, textLabel);
numLabel++;
}
}
</b:loop>
</b:loop>
</script>
</div>

</div>
</b:if>

Save. Done.

You can change any posts' Related Post 'with the other sentences such as' Read This Also'
READ MORE - Make a related post by Label

Saturday, May 9, 2009

Spock.com

Internet is also currently working to find someone, it may return if you find your friends who have many years is not met through the internet. Spock is a search engine to find out the name and a profile that can be accessed at the address www.spock.com Spock is a search engine to find out the name and a profile that can be accessed at the address www.spock.com
Of course you can use other search engines are more popular as Google or Yahoo to search for a name, but Spock can display the results with the structure a more neat and detail with the information from wilipedia, Linkkedin and facebook. Of course you can use other search engines are more popular as Google or Yahoo to search for a name, but Spock can display the results with the structure a more neat and detail with the information from wilipedia, Linkkedin and facebook.
Spock own search engines that are relatively new, however the number of degan information that supported the search engine that is capable of working together, not impossible spock akan results show that the more complete Spock own search engines that are relatively new, however the number of the information that supported the search engine that is capable of working together, not impossible spock akan results show that the more complete
READ MORE - Spock.com

Monday, April 27, 2009

CSS Validator

If you liked to play with CSS in your blog, it,s better you carried out the validation to CSS script, so as you could know where the location of the mistake on CSS script that has you for. The method that was easy, by using CSS Validation Service in the address of http://jigsaw.w3.org/css-validator/ to use CSS Validaton Service really was easy. You only necessary enter address of your blog in the text box Addres, afterwards pressed the Check switch. Then automatically will be put forward by results of the validation in blog that was had by you. You could see any part that experienced the problem, therefore you could repair it
READ MORE - CSS Validator

Sunday, April 12, 2009

Scribe Fire Blog Editor

Scribe Fire Blog Editor had an amount blog the editor who worked with many Bloging platforms, but when you looked for one blog editor who at once could be used from Firefox then you must try Scribe Fire.
Scribe Fire was equipped blog editor who was integrated in bowser Firefox to facilitate did posting in blog, you could easily did drag and provided text terformat from pages that you browsing, made the note, upload the image and posting to many blog you could get in https://addons.mozilla .org/en-US/firefox/addon/1730
READ MORE - Scribe Fire Blog Editor