« more like this from others | Main | get better control over your rebuilds »

display the Islamic date in your blog

The HijriahDate plugin allows you to display the Islamic date for each entry. It gives you a <$MTEntryHijriahDate$> tag to use in your templates. You can use this just as you would use the standard <$MTEntryDate$> tag. You could either replace every instance of MTEntryDate with MTEntryHijriahDate or display them both.

This is something I've wanted for a long time.

In order to use this plugin, copy and paste the code shown at the MT forums thread linked above into a text editor. Save the file as hijriah.pl. Upload it in ASCII mode to your server and place it in the plugins directory as you would any other plugin. You can then use the MTEntryHijriahDate tag in your templates.

Comments

Thanks for this tip.

PS: i've emailed you... but didn't get reply.
Do you think that www.hug-a-muslim.com is a good idea?

السلام عايك ورحمة الله وبركاته

i love this script, i'm just testing it in arabic on my blog:
replace the list of months on line 27 as follows:
my @hijriahmonths = ('محرم','صفر','ربيعالأول','ربيعالثاني','جمادىالأول','جمادىالآخر','رجب','شعبان','رمضان''شوال','ذوالقعدة','ذوالحجة',);

does that work, ya munaqabah?
thanks for an inspiring site!

About This Blog

  • Disclaimer: This is a personal site and is not connected with Six Apart, Ltd, the makers of Movable Type
  • Contact me:
  • Readme: What this blog is and is not
  • Reference: Templates for Al-Muhajabah's Islamic Blogs

August 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Tips by Type

Tips by Area

Other ways to read this blog

Feed Subscribe to this blog's feed
(default is RSS 2.0, I also have RSS 1.0 and Atom)

Text-only version
Powered by
Movable Type 3.2