Add Islamic Date To Your Forum
Hello (Assalam-o-Alykum)
This is a simple template edit that adds Islamic(Hijri) date along with Gregorian date at the bottom of every page of your forum. Step 1: Download & Upload the file Hijri_calendar.js to Clientscript folder under your forum root folder. Step 2: In your Header template add the following code on top (or anywhere): Code:
<script type="text/javascript" src="clientscript/hijri_calendar.js"></script> Step 3: In your Footer template find: Code:
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div> Code:
<div id="footer_time" class="shade footer_time"> <script type="text/javascript">document.write(writeIslamicDate());</script> <br /> {vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div> Optional Step: if Islamic date is showing one day behind then use the following code to replace it with the code you found in Step 3 (in footer template): Code:
<div id="footer_time" class="shade footer_time"> <script type="text/javascript">document.write(writeIslamicDate(1));</script> <br /> {vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div> Here is a live http://www.tafrehmela.com All Credit Goes to: http://www.al-habib.info/islamic-calendar/hijricalendartext.htm Here is the Arabic Translation: Spoiler (click to open)
Wa Alaikum Al Salam,
Thanks for this script, I also translated it to Arabic. (Just translated the months and days names). Upload the attached file for Arabic sites, with utf8 encoding. Check this site for arabic demo. http://www.abyanboard.net Regards, Close
Download
Add Islamic Date.zip (36.7 KB, 55 downloads) |
Similar Mods
Islamic Smilies set for islamic Forums :) | vBulletin Smilie Sets |
Add-On Releases The Islamic Product | vBulletin 4.x Add-ons |