Log in

View Full Version : Major Additions - Add Islamic Date To Your Forum


tafreeh
01-31-2012, 11:00 PM
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):
<script type="text/javascript" src="clientscript/hijri_calendar.js"></script>Save the template.

Step 3:

In your Footer template find:
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>and replace it with the following 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>Click Save and you are done !!


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):

<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>Hit save and your are good to go !!

Here is a live DEMO (http://www.tafrehmela.com)

All Credit Goes to: THIS GUY (http://www.al-habib.info/islamic-calendar/hijricalendartext.htm)
Here is the Arabic Translation: (https://vborg.vbsupport.ru/showpost.php?p=2298074&postcount=13)

ForceHSS
02-01-2012, 04:36 AM
why would I want to even add this sorry not a good idea

tafreeh
02-01-2012, 04:37 AM
No one is forcing you to do that my friend :)

blake247
02-01-2012, 05:31 AM
why would I want to even add this sorry not a good idea

No need for that kind of comment.

CrossWind
02-01-2012, 09:46 AM
Thanks for great idea, I liked :)

freedomright
02-01-2012, 02:34 PM
Thanks,, this may be a handy script to have

doctorsexy
02-01-2012, 02:58 PM
Thank you...

misericorde
02-03-2012, 11:45 AM
Salam Alaykoum

BarakALLAH oufik.

Jazaka Lahu khayran.

Nice Works !!!

Bye

JAFRI
02-06-2012, 03:58 AM
thanks, but thi's wrong for pak Hijri date.. check today Rabi-ul-Awal 13 but this show 14

tafreeh
02-08-2012, 03:48 AM
This is according to Saudia I believe. Check the optional step in my thread maybe that will helps.

JAFRI
02-08-2012, 04:31 AM
i fixed.
Wednesday, February 08, 2012, Rabi-ul-Awal 15, 1433 A.H Check my site header : http://bit.ly/AoOU8N

tafreeh
02-09-2012, 02:28 AM
yes Its showing a day behind. If you wish you can share the fix for others as well.

abyanhost
02-09-2012, 10:58 PM
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,