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="http://thehunk.blogspot.com/2007/08/easier-way-to-link-your-friends-in-your.html">[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.

Comments

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

    ReplyDelete
  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 :)

    ReplyDelete

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.

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 …

Install Windows 10 Tech Preview when setup says media driver missing

Skip to the end for instructions.
I had been trying to install Windows 10 Pro Technical Preview onto a VHD, as I have Windows 7 Ultimate and can run an operating system from VHD (this feature is apparently limited to Enterprise and Ultimate editions).

While I had successfully managed to install it on a virtual machine in Oracle VirtualBox, I was dissatisfied with the sluggish performance of a VM. At the same time, I also did not want to dedicate a real hard disk partition for the sole purpose of installing Windows 10 TP.

Hence the decision to install into a VHD, which is a very neat solution that lets me keep Windows 10 TP separate from my real hard disk partitions and still enjoy the full native speeds of my real hardware. I had previously installed Windows 8 RC successfully into a VHD so I knew what I was up against.

Or so I thought. As soon as I booted up the setup disk (the ISO I had downloaded) and clicked on Install Now, I received this very unhelpful error asking for device dri…