TinyPortal

Development => Block Codes => Topic started by: akulion on November 26, 2006, 03:42:08 PM

Title: Islamic Date Block
Post by: akulion on November 26, 2006, 03:42:08 PM
hi,

ok in case someone wants this I am posting it here.

Islamic dates are basically calculated upon lunar cycles - and the Islamic calender begins from the period in history known as the 'hijrah' the time when the first Muslims in Arabia migrated from Mecca to Medina in order to escape persecution.

Anyways that was a short history for curious minds lol

A demo can be seen on my site http://path-to-peace.net/forum its just under that fancy lil clock in plain text

Here is the script - there is a buncha php files in the zip file - some of them are used to display the date in Arabic as well - but i have been unable to use that with TP since for some reason it inverts the whole page from right to left instead of being from left to right...i'm guessing its the character encoding.

However the English display will work just fine.

- download the file attached to this post

- unzip it and put all the files in it in ur forum root in a folder called arabicTools

- put this code in a side PHP block:


echo'<b><Font size=1 color=white><center>Islamic Date<br>';
include './arabicTools/hijriking.php';
echo'</center></font></b>';


change the color in the code to suit ur theme..

Activate and enjoy....
Title: Re: Islamic Date Block
Post by: Sakuragi on January 08, 2007, 10:43:39 PM
I didn't see the file attached to this post !
Title: Re: Islamic Date Block
Post by: akulion on January 08, 2007, 10:58:06 PM
i must be getting really old, i keep forgetting the attachments!

here it is
Title: Re: Islamic Date Block
Post by: Sakuragi on January 08, 2007, 11:03:01 PM
thank you
Title: Re: Islamic Date Block
Post by: akulion on January 09, 2007, 02:23:03 PM
welcome :up: