Skip to main content

AutoLink For Blogger

In Content Management System like Joomla and Wordpress Simple Tags Plugins is use for AutoLink. It Search the post any words like category name and make it a link to that category.

For Example - In post there is a category name "abc" , Simple Tags Will find the "abc" in post and make it link to abc category

Here i am going to tell you how you can introduce Autolink Script in Blogger


steps- 1.Open template in xml editor.

2. Add this line before </head>
                      <script src="https://sites.google.com/site/dtcrunch/autotag.js" type="text/javascript"></script>

3. Find the line <b:if cond='data:blog.pageType == &quot;item&quot;'>
and look down ,you will see this code :

<p>  <data:post.body/>   </p>

replace it with

<p> <div expr:id='&quot;summary&quot; + data:post.id'>
                     <data:post.body/>
         </div>       
          <script type='text/javascript'>
          highlightSearchTerms('word',true,'http://yousitename.blogspot.com','summary<data:post.id/>');
          highlightSearchTerms('word',true,'http://yoursitename.blogspot.com','summary<data:post.id/>');
           </script>                                         
 </p>

take a look at the texts in bold . In this text ,"word" and "word" is the text that script will find to add link , "http://yoursitename.blogspot.com" is the link .
You can add more anchor text and link with this structure  

highlightSearchTerms('text you want to add link',true,'link','summary<data:post.id/>');

The script will find "text you want to add link" in your post and place a link "link" on this text .

This script is not as good as SimpleTags because SimpleTags using PHP and server resource for finding text and make link .Using this script you have to add text and link manually . But I think it's more flexible for you ,because you can use this script for advertising like Textlinkads ,search the text and link to advertiser .
I hope this script helpful to you . Feel free to comment here.

Popular posts from this blog

Google Translate, Now With Voice Input

Google Chrome 11 added support for HTML speech input API. " With this API, developers can give web apps the ability to transcribe your voice to text. When a web page uses this feature, you simply click on an icon and then speak into your computer's microphone. The recorded audio is sent to speech servers for transcription, after which the text is typed out for you." Google Translate is the first Google service that uses this feature. If you use Google Chrome 11 Beta , Google Chrome 12 Dev / Canary or a recent Chromium build and visit Google Translate (Click Here) , you can click the voice input icon. Right now, this feature only works for English, so you need to select "English" from the list of input languages.

Add Smilies/ Emoticons in Google Talk (Gtalk)

I Really love to use Smilies while chatting. Well, unfortunately GTalk doesn’t have smilies included by default . So Here You will find Out How To do it ... Well, it’s really simple. The main concept of getting smilies is through converting the text smilies of GTalk into smilies. As the new Version of GTalk includes support for themes we can add a theme with custom smilies in order to get rid of those text smilies. In short, it’s nothing but just adding a custom theme. Follow Simple Steps : 1) Download any one of the below smiley theme which you like. Download Classic Emoticons theme Download Bubble Emoticons theme 2) Now extract the zip to a specific folder. 3) Go to the following location: C:/Documents and Settings/(your user name)/Local Settings/Application Data/Google/Google Talk/themes/user/chat 4) Replace (your user name) with your Windows account user name without brackets The folder chat isn’t there by default so you have to create a folder with the name “chat” inside t...

Upload and View Videos in Google Docs

Google Docs , It is the popular cloud based Office Suit of Google . Google has been continuously adding new features for his users in Google Docs. Recently Google made Docs more advance by adding the uploading, storing and viewing video feature to Docs. Here is the way how you can upload and view video in Google Docs. Google provide 1GB space for upload a video with the maximum resolution of 1920x1080. It also supports multiple formats like WebM , MPEG4, 3GPP and MOV files, AVI MPEGPS, WMV and FLV. To upload a video just click on upload button at the left top. To watch your Uploaded video simple click on the file from your document list.