BlogoSquare

Essential problogging resources and downloads

How blogging old are you?

January 27th, 2007 by Hans

See my footer and you’ll know since when I’ve been blogging.

Hey I’m a fresh drop-in. How about you tell us your blogging age by putting this nice little php code in your footer/sidebar or any template page on your wordpress blog:


Blogging for <?
$days = round( (time() - strtotime('January 7th, 2006')) / 60 / 60 / 24 );
$years = floor($days/ 365);
$daysLeft = $days - ($years * 365);
print "$years years and $daysLeft days";
?>

Make sure to replace January 7th, 2006 with the date(in same format as above) you started blogging in the above code. Visitors can now know your blogging age. So how blogging old are you?

Update: Thanks to Avinash for the tip.

Thanks to Stéphane for correcting me again.

Check this out before going away:

One way to work while staying at home and earn decent money is by creating a site that offers some of the premier certification training. This can easily be accomplished through domain registration which will first have to be searched for on a search domains site, and finding a cheap hosting company. Using web design software the design template can be created in no time. One can offer microsoft training on the site. Courses like 70-291 can be offered. Other than that Comptia training can also be offered, tutorials for 220-601 are very famous.

Related Posts:

Tags: 58 Comments

Leave A Comment

58 responses so far ↓

  • 1 kyu Jan 27, 2007 at 1:10 pm

    okie
    was thinking of asking you how ya did that
    (or else try programming it meself,)
    But thanks,
    will search in me archive,
    i know i have the date somewhere in my Hard disk*s dumping ground area :)

  • 2 Avinash Meetoo Jan 27, 2007 at 5:22 pm

    Thanks for that!

    But your code has a bug:

    $years = round($days/ 356);

    should be:

    $years = floor($days/ 356);

  • 3 kyu Jan 27, 2007 at 7:03 pm

    @ avinash yup thanks :)

    Added it, it works!! :) :cool:

  • 4 Yashvin Jan 27, 2007 at 7:17 pm

    ;-) thnks for the code hans…
    nice smileys :) :cool:

  • 5 waz Jan 27, 2007 at 8:11 pm

    thanks! the prob is whether or not i include the time i have been blogging in live space as well…do you think i should?

  • 6 waz Jan 27, 2007 at 8:16 pm

    Ooops! i just realise it’s for wordpress! solly!!!

  • 7 Hans Jan 27, 2007 at 9:09 pm

    @ kyu

    yup I think you’re still a baby like me. Do you think at the age of 1 year and some days, kids start to talk?

  • 8 Hans Jan 27, 2007 at 9:11 pm

    @ Avinash

    Thanks to you for pointing that to me and for reading my blog.

  • 9 Hans Jan 27, 2007 at 9:11 pm

    @ Yashvin

    It’s the one I’ve made available for download called Cloudy. Nice you liked it.

  • 10 Hans Jan 27, 2007 at 9:14 pm

    @ waz

    I don’t know whether Live space works on php but if it does, try it out. Since it’s just a bit of php code. And if that works, yup you should include a date or be cool with it : an approximate one that you can recall when you started blogging.

  • 11 kyu Jan 27, 2007 at 9:22 pm

    :lol: :) mine is a sure one, cause i still have the mail stephane sent me with the site*s login details :) and i know i started on the same day :) :grin: :grin:

  • 12 Stéphane Lee Jan 28, 2007 at 9:19 am

    Yeah, there are 365/366 days in a year btw.

  • 13 Stéphane Lee Jan 28, 2007 at 9:48 am

    I have way too much time
    1 ? "s " : " ";
    echo "and $d day";
    echo $d > 1 ? "s" : "";
    ?>

  • 14 Stéphane Lee Jan 28, 2007 at 9:50 am

    here: http://pastebin.com/869205

  • 15 Hans Jan 28, 2007 at 5:08 pm

    @ Stéphane

    Thanks for the link and the correction.

  • 16 James Jan 30, 2007 at 10:37 pm

    Ah there’s so much mods and hacks for wordpress. Am using ExpressionEngine, I should write my own when i have time. Looks like a nice little mod.

    So you’ve been blogging for over a year!

  • 17 CuriosityKiller Feb 1, 2007 at 10:32 am

    Hi Blogo, I know you offered to help me with my templates… I was wondering if that offer is still available. I’m going nuts trying to get the flickr photo on the sidebar… I managed to install the program, and mybloglog — in the sidebar menu… but nothing shows up.

    :mad:

  • 18 Hans Feb 1, 2007 at 10:47 am

    @ James

    yup and how about you? How blogging old are yoU?

  • 19 Hans Feb 1, 2007 at 10:52 am

    @ CuriosityKiller

    sure, I can be reached via mail on this address : blogosquare at gmail dot com

    Just shoot me a mail and I would be happy to help.

    Thanks for your visit on my blog. Hope to see you around more often.

  • 20 james Feb 3, 2007 at 9:45 am

    I think i’ve been blogging for 3yrs now.

  • 21 Anonymous Feb 6, 2007 at 5:42 pm

    How blogging old are you?…

    Tell your visitors your blogging age by putting a nice little code in your template. Great and cool tricks for bloggers….

  • 22 dennis Feb 7, 2007 at 6:24 am

    Great tip. I’m at 4 years and 289 days, which is astonishing considering my ability to abandon projects. :)

  • 23 Hans Feb 7, 2007 at 8:43 pm

    @ dennis

    wow :D seems you’ve got lots of experience in the field man. wow 4 years! Hope to see you around more often. that would be too great :)

    seems you’ve have seen major stuff growing in the blogosphere…..the development of blogger, etc,etc……haven’t you? how it feels?

  • 24 dennis Feb 8, 2007 at 6:31 am

    Hans: I was a long-time (very long time) Movable Type guy, but just recently switched to Wordpress. The thing I really liked about the early days was the community that grew while things were developing. WP still seems to have that feeling.

    BTW, got your comment on my site about VLC — it does play Real audio, but not video. Side-effect of Real keeping the codecs proprietary. :neutral:

  • 25 Hans Feb 8, 2007 at 3:08 pm

    @ dennis

    no worry. I’ll try something else then. Thanks for your comment and the visit. :grin:

  • 26 eruANNA Feb 8, 2007 at 5:12 pm

    [IMG img_9198_c.jpg] I do love my new lens! (Canon EF-S 60mm f2.8 *droools*) I found this earlier, Dont forget to delete the space between the first < and ? else it wont work. My blogging age is 6 years and 148 days, god I feel old! One day I'll do a post with screenshots of my first site! (which was a blog!).

  • 27 Han Feb 8, 2007 at 8:10 pm

    6 years and 148 days!
    Back in the day!
    I was a blogging 12 year old!

  • 28 eruANNA » Snow! Feb 8, 2007 at 9:13 pm

    […] do love my new lens! (Canon EF-S 60mm f2.8 *droools*) I found this earlier, Dont forget to delete the space between the first < and ? else it wont work. My blogging […]

  • 29 Hans Feb 9, 2007 at 8:19 pm

    @ Han

    wow :shock: that makes a lot……on what did you start on? I read your post there on your blog and hope really you could bring a photo of the old days :smile:

  • 30 Rob O. Feb 19, 2007 at 5:31 pm

    We’re feeling sorta established now… March 13th is our 3rd official blogiverssary. We were sorta blogging even before that point, but it was pretty crude stuff - no archiving, no post formatting, no date/time stamp, etc.

    Rob & Dede
    2Dolphins.com

  • 31 Hans Feb 20, 2007 at 12:15 am

    @ Rob O.

    yeah it takes some time to really find the right niche for your blogging. I myself blogged aimlessly for several months to find what I liked. But once that figured, it also takes some time to put some order around.

    thanks for your visit Rob. Hope you liked this little goody.

  • 32 TechZ Feb 20, 2007 at 2:54 am

    haha very nice! I’ve added it to mine.

    Thanks Hans :D

  • […] it at BlogoSquare, thanks to Hans for this one! Local Tags: blog, Blogging, Fun Stuff, sidebar, The Site, […]

  • 34 Hans Feb 21, 2007 at 6:53 pm

    @ Techz

    you’re welcome Techz……. I’m glad you liked it

  • 35 Joe Anderson Mar 1, 2007 at 2:31 am

    Very cool but it doesn’t handle plurals correctly. It says ‘1 years’ instead of ‘1 year’ little bug there, no biggy :)

  • 36 Hans Mar 1, 2007 at 1:24 pm

    @ Joe Anderson

    yes….this is so as to display the plural form when the year exceeds the 1……if you want to remove it you can do so in this line of code :

    print “$years years and $daysLeft days”;

    just take the “s” from the years and this would be ok…you can then put it back later if you want when you’re older :smile:

    thanks for your visit in here..hope to see you around more often :)

  • 37 Thilak Mar 2, 2007 at 1:17 pm

    This went into my bookmarks. Nice hack, I wonder why no one came up with this earlier.

  • 38 Avinash Meetoo Mar 3, 2007 at 11:13 pm

    Another bug:

    $years = round($days/ 356);

    should read

    $years = round($days/ 365);

    (but as someone said, some years are 366 days long so there is still a small bug…)

  • 39 Hans Mar 4, 2007 at 1:59 pm

    @ Avinash:

    Thanks for it…I did correct that :) Stéphane pinged me about it :) lol as for the 365/366, I suppose we’ll be all 1 day/some days younger lol. unless we do a condition things that will change it after 4 years :( could that work?

  • 40 Hans Mar 4, 2007 at 2:01 pm

    @ Thilak

    glad to know that you like it lol….

  • 41 Culture Shiok! Mar 6, 2007 at 6:57 pm

    I’ve been blogging for 1 month ++

    but on Blogger…

    got anything I can use for Blogger?

  • 42 Hans Mar 8, 2007 at 4:23 pm

    @ Culture Shiok!:

    more blogger goodies on your way in the near future buddy…keep in touch

    As for this code it works on those platform executing php and it’s mostly for wordpress…

    welcome to the blogosphere. I hope you make it long as much as possible and enjoy all the benefits of the blogosphere.. good luck for the new journey :)

  • 43 Unlimited Music Downloads Mar 11, 2007 at 9:06 am

    Unlimited Music Downloads…

    There are many websites offering free iPod downloads. But beware as many are illegal downloads. If you are an music lover, you will…

  • 44 Pajama Mommy Mar 29, 2007 at 5:13 pm

    Blogging for 0 years and 33 days

  • 45 Mauritius Blog Tracker Mar 29, 2007 at 8:02 pm

    s it all. Get to your blog and see your great stats being displayed. Feel free to share this tip or post your comments if you need any clarification or help which I would be glad to send in your way. See also this previous trick to show your wordpress blogging age! Share This © Hans for BlogoSquare, 2007. | Permalink | No comment | Add to del.icio.us | Search blogs linking this post with Technorati | Filed under under Blogging, how-to, wordpress. Read more here

  • […] See also this previous trick to show your wordpress blogging age! […]

  • 47 Pajama Mommy Apr 6, 2007 at 8:00 pm

    Blogging for 0 years and 41 days

  • 48 Pajama Mommy Apr 6, 2007 at 9:17 pm

    Blogging for 0 years and 41 days

  • 49 setec Apr 13, 2007 at 2:16 am

    Thanks for this!! I was looking for a way to put my newborn’s age on our wordpress blog.

    However, I had to change this:

    Blogging for

    to this: (changed

  • 50 Typ Apr 14, 2007 at 10:09 pm

    :cool: great tip

  • […] if you want to know your blogging age or actually tell/show it to your visitors too, there’s kinda a nice code to put in your template and have the fun ported to your blog […]

  • 52 Hans Apr 16, 2007 at 11:34 am

    @ setec:

    feel free to let us have a look at that newborn blog of yours, it would be great to visit it :)

    thanks for appreciating me tip.

  • […] How blogging old are you? […]

  • […] How blogging old are you? […]

  • […] How blogging old are you? […]

  • […] spring unto this stupefying spotlight at http://blogosquare.com/2007/01/27/how-blogging-old-are-you/ about […]

  • […] How blogging old are you? […]

  • 58 youko Feb 20, 2008 at 3:32 am

    I like games