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

A Chinese Facebook is coming and will make Huge Censorship Concessions

A Facebook lobbyist recently said that perhaps the site was allowing too Much Free Speech in countries that were not used to the luxury. The Facebook-China rumor mill has been churning for years now, but it’s becoming increasingly obvious that the site will launch a censorship-friendly option in the country. As Per the Information , Facebook Will Parter With Baidu ( Baidu - Chinese search engine ) and launch a separate site, although all users will have the ability to connect to it – but not without some red tape. “ When Facebook users outside China connect with users inside China, sources said they will need to click through a warning that any material visible to Chinese users may also be visible to the Chinese government .” China has been accused of hacking Gmail accounts of Chinese dissidents , so if you’re trying to connect to Facebook China, it can be assumed your content is being monitored. The censorship issue has been at the heart of Facebook’s inability to break thr...

Free Email Alerts on Mobile Using Way2SMS

In this post I m giving you a tip to get access to your emails anywhere anytime , without using any high end GPRS mobile phones or Blackberries . But just receiving your mails as SMS on to your mobile handsets. And its the Way2SMS service thats gonna help you deliver your mails to your mobile. Once this service is activated you don’t require any GPRS, EDGE or WAP services for accessing your mails on mobile. And to add more spice to service you can easily add multiple email accounts like Gmail or Yahoo or limit time intervals for receiving your mails. It Will take Max 5 Min ... Follow The Steps :: Step1 : Register and login to www.way2SMS.com . Step2 : Register your mobile number. Step3 : As soon as you complete the registration you will receive a Unique Verification ID on your mobile as SMS, complete the verification process. Step4: Login to Your Account . Step5: Go To DashBoard tab On Right Side Go to Settings ----> then Go To Mail Alerts Click on given Click Here to Activa...

Best Funny Firefox Tricks

Firefox is one of best browser in World and Till now More than 100 Millions Have Donwload the Latest Version Of Mozilla (Mozilla Firefox..) ( To Watch Current Total Number of Downloads : Go Here ).And there are some funny tricks that you can do with your firefox browser. I will also recommend you to read Best Funny Google Tricks to explore the funny side of google. These will not harm your browser and they are tested in the latest version of firefox i.e firefox 4.0 ... Here are Some Funny Firefox Tricks To perform these tricks open your firefox browser and copy/paste the following in your address bar chrome://global/content/alerts/alert.xul This will show you dancing firefox.Your firefox window will automatically popup anywhere at screen. · chrome://browser/content/browser.xul This will open another firefox within in a new tab.So you will have firefox within firefox. · chrome://browser/content/preferences/preferences.xul This will open firefox options dialog box in new tab. · ...