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

Can't exit Toddler Lock on Android phone

Toddler Lock will lock your Android phone completely so you can give it to a baby or toddler to play with. The only danger from the kid is that it may throw your phone and break it. But other than that, the kid will not be able to damage the phone by unlocking it and messing with what's inside. Here's the problem. The security of Toddler Lock is so tight that it would seem the only way to exit out of the app is to tap four corners of screen in a clockwise direction. (Note that you have to tap the four corners one after the other. Tap any corner, remove your finger, tag next corner in CW direction, remove your finger, and so on. Some people seem to think you need to hold all corners simultaneously which is wrong.) You may think a restart may also unlock it but even pulling out the battery for minutes (or perhaps hours) will not help. You will be stuck in Toddler Lock no matter what. This is fine until my screen started having problems. Two of the four corners I had to touch...

Make Samsung DVD-C350 region-free

Update 2: An anonymous commentator has shown me a way to make Region 1 players (such as DVD-H1080R) region-free by first converting it to Region 3, then applying my region-free hack below. For details, click here or look for a comment by an Anonymous user dated 18 April 2011. Update: The instructions in the original post below did not make the DVD player region-free. Instead it only locked it to region 1. Many thanks to Anonymous who posted the first comment on this post, I now have alternate instructions. Note: If you have edited the numbers menu (see original post) , I suggest you return it to the original settings you had backed up. A modified numbers menu may prevent the instructions below from working properly.

Group, Ungroup and Regroup disabled in Word

I was editing a Microsoft Word document which had a collection of shapes and text boxes grouped together. I wanted to modify some of the shapes, and therefore I had to ungroup them. But when I right-click the group and open the Group menu, all three options namely Group, Ungroup and Regroup are completely disabled or grayed out. I couldn’t figure out what’s wrong. This group of objects is perfectly ungroupable, and I can even select objects within the group. However, Microsoft Word 2007 is not letting me ungroup it. I searched the Internet for a solution, but did not find anything very useful. The closest I came across is this statement: “The type of Text Wrapping doesn't make any difference as long as it isn't In Line with Text.” ( Link here ) Anyway, I changed the text wrapping of the group of objects from ‘In line with Text’ to ‘Tight’ and viola! I could now ungroup it and edit it. The document got a bit messed up when I did so, but after I ungrouped, edited and regro...