All New GotChance.com

As you can see, i’ve redesigned GotChance.com completely. Comments and suggestions are welcome. From here on, i’ll be blogging quite frequently here, on web designing and web development. A couple of posts have been lined up already.

Also, i’m available for freelance projects. If you’d like to hire me, get in touch.

And finally, i’ve been working on a couple of web apps recently. I’ll be writing about them soon.

What Am I Upto These Days ???

Hello everybody. It happens to be again and again. I blog consistently for some 6 months together. Then, for 6 months I don’t blog at all. Then, again I resume blogging. I don’t know why. And with this I’m resuming blogging :D

So, what was I doing all these days ? Actually I did a lot of useful things.

  • Learnt Game programming in C++. I already was pretty proficient in C++. I began to use Allegro library. To test my skill, I recreated the first level of classical Mario. It is 80% functional. You don’t know how much excitement it gives you unless you develop your own game :)
  • Began to learn Java. Everybody knows that it is one of the important languages to be learnt by every programmer.
  • Learnt 3D designing. This one’s using Blender. I know the basics of it now. But am not using Blender much nowadays, because my system has very less memory. Gotta upgrade it soon.
  • Bought a Nokia 5800 XpressMusic, after selling my 5310. This touchscreen’s very cool.
  • Watched a loooot of English movies. I’ve exhausted almost the entire list of IMDB’s Top 250. Why ? Deep inside I’ve the ambition to direct a movie :)
  • Did a lot of freelancing. Most of them are PHP projects. Some XHTML works and some Logo designs. And am still doing. So, if you’re looking for a freelancer, don’t hesitate to contact me.
  • Switched back to good ol’ Firefox from Google Chrome. A separate post coming up on why I did this.

So, from now on I’ll be blogging quite consistently. In the past, I covered mostly blogging related topics. From now, I’ll expand this and will be posting about anything Geeky. I assure you that it’ll be interesting.

How To: Change #comment-45259 to #comment-12

One of the things that has been worrying me for long the link to the individual comments in Wordpress. The default structure of a link to a comment is :

http://POST-PERMALINK/#comment-COMMENT-ID

This is what it remains like on most of the Wordpress blogs. It wouldn’t look bad if you just has a few hundred blogs. But, the latest comment on the latest post (as of now) on Problogger.net has the ID 4452651.

So, I just wanted to change this thing. I wanted to has #comment-1 for the first comment and #comment-7 for the 7th comment and so on. I searched the web for a hack or a plugin, but in vain. (Let me know if one is available). So, I just figured out my own method, which I’m going to teach you. I made it as a hack for a theme, rather than a plugin because it needs you to edit your theme templates. But, as per the principles, you need not touch Wordpress’s core files.

Step 1 : Adding the 1, 2, 3 Increment

Open your comments.php file and search for the following :

<?php foreach ($comments as $comment) : ?>

And, change it to as follows :

<?php $i = 1; foreach ($comments as $comment) : ?>

Now, search for the immediate next occurrence of this :

<?php endforeach; /* end for each comment */ ?>

And, change it to this :

<?php $i++; endforeach; /* end for each comment */ ?>

Read the rest of this entry »

Merry Christmas To GotChance Readers

I’m not a Christian here. But many of GotChance’s readers are. So, wish you all a Merry Merry Christmas. Hope you are all having a great time.

christmas

photo by *SMILING PUG*

Opening Advertising Options On GotChance

For the past few months, GotChance was ad-free except for some Adsense that showed up only to visitors from Search Engines. Now I’m opening Advertising options on GotChance. This includes 125 x 125 ads on the sidebar and sponsored reviews. For more details, check out the Advertise page.