Skip to main content

Easier way to link your friends in your blog

My friends have been complaining about me not linking their blogs in my blog. I had decided not to link anyone because it involves editing the template for every addition or deletion of a link, which is not a convenient process. Namely, I have to log in to Blogger, choose the right blog, go to it's template HTML, scroll down and find the links, edit the HTML code and make sure everything is fine.

Then I started thinking of ways to simplify this. First I thought of creating a separate page and storing it in an online server, then embedding it with IFRAME tag of HTML code. But I abandoned this idea since it makes the page dirty with a frame box, and may fail in certain situations. Moreover it still has the HTML coding.

Then I thought of using the power of JavaScript. So I came up with this idea of a script that automatically creates the list of blogs that I want to link.

First, you have to create the script. To make things simple, I have a template script, with which you can start off. You can download it by clicking here.

You will be downloading a file called "template.js", which can be renamed to anything else, for example "filename.js", but the extension ".js" (if you see any) must remain. You can open the file in Notepad. The instructions to add the links are available in the file itself, so I hope I don't need to repeat them. There are some examples included to give you an idea of how things should be.

Next you will have to upload this file to an online server. The server must allow you to directly access your file, that is, you don't need to go through web pages to access the file. If you have a Gmail account or a Google account, you can upload it to Google Pages. If not, you can create a Google account or Gmail account for free. Once uploaded, you will have to edit your blog template and include a code to make this work. The following code should be placed wherever you want the list to appear:

<script src="JS-FILE-URL-HERE"></script>
<noscript>JavaScript is either disabled or unsupported in your browser. <a href="">[Easier Linking]</a></noscript>

In place of "JS-FILE-URL-HERE" you must put the URL address of the file you had uploaded. Now, whenever you want to add a new link, simply edit the local copy of the file and re-upload it to Google Pages or wherever you had uploaded originally. You can always download the file from Google Pages if you don't have a local copy.


  1. hey that's you've jumped into blogger hacking :)

  2. haha there's not much hacking involved in the whole thing. it's just helping me avoid editing the template everytime i have to update my friends list.
    anyway thanks for reading my blog :)


Post a Comment

Comments are moderated, and are usually posted within 24 hours if approved. You must have a minimum of OpenID to post comments.

Popular posts from this blog

Disable auto save in JetBrains IDE software (IntelliJ IDEA, PyCharm, PhpStorm)

JetBrains provides the following IDE software:
IntelliJ IDEAPhpStormPyCharmRubyMineWebStormAppCodeCLion Google also provides Android Studio which is powered by the IntelliJ platform.

If you come from a different IDE such as Eclipse, you will be unpleasantly surprised to find that JetBrains-branded IDEs automatically save everything the moment you look away. The proponents argue that as you work on your project, you should not have to worry about saving files. But to others, this auto-save behavior which is enabled by default is a curse that catches them by surprise, and a shocking departure from the workflow they are very much used to.

You can change the behavior by altering some settings.

Setting up a local Oracle XE database and importing DMP file

The experience of setting up a local Oracle Express Edition database is not a straight-forward as it should be. The following is supposed to outline what could go wrong and how to go about it the right way. It also includes importing a DMP file (a dump) from another system.
First of all, download the installer from Oracle website. You will need to sign-in to download - the account creation is free. Be sure to choose the correct bit as per your computer (x64 or x86).Extract the download and install XE by running DISK1\setup.exe (and feel nostalgic of the floppy disk era). During installation, you will need to choose a new password. There will also be some details displayed after you enter the new password, such as folders and ports.Be sure to save both password and details in a text file for future reference.I saved it as C:\oraclexe\details.txt.Save password only if it's generic and you are likely to forget. The installation will take a while, but usually, no restart is necessary.O…

Stop having to click Unblock on every downloaded file

CAUTION: The blocking of downloaded files in Windows is a security and safety feature to help prevent your computer from being infected by viruses and other malware. Only disable this feature if you know what you're doing.

I had been plagued by this annoyance since the days of Windows Vista. Any downloaded file, no matter what browser I use, gets tagged as "blocked" by Windows. You can open downloaded documents even though they are blocked, but when you run a downloaded application (such as a setup file) you're presented with a "Security Warning" before you're allowed to run it. It's worse if you extract a downloaded ZIP file with the Windows' built-in ZIP management. Every extracted file is blocked by default.

Being a geek who finds unnecessary "security" prompts annoying, the first thing I do in Windows is to disable the User Account Control (UAC). But I couldn't quite figure out how to disable blocking of downloaded files until …