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...

Difference between Optical Mouse and Laser Mouse

Optical mouse and laser mouse are different varieties of digital mice which have overwhelmed ball rollers ones. Laser mouse is one step ahead of optical mouse. 1) Laser ones are more precise than optical ones and can respond to very little movements also (extra sensitive). 2) This difference is because of the type of light used. An optical mouse uses an LED light while a laser mouse contains a small laser and hence is a bit expensive, comparatively. 3) An LED light in simple mouse is a visible red light while a laser light might not be visible. Rating: Optical mouse - 400 to 800 dpi (dots per inch) Laser mouse – 2000 dpi or more. You may also like to read: How to Convert Videos to GIF on Whatsapp Tips to Reduce the Effect of "Blue Light" on Your Computer Tricks Get Google Chrome Dark Mode Board of Directors Denies Kalanick Returns as CEO of Uber 3 Ways to Clean Memory Space on Android Tips for Securing Data Using Keywords Easy Ways to Unblock an Account on Instagram The...

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. · ...