Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Date Of Day

Asked Modified Viewed 4,180 times
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
asked
Member

Greeting

I would like to add date of day on the upper header...can?


Thanx
0 replies

11 posts

S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Put this piece of code into an echo-statement:
".showsubdate()."
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

can i do like this ? that mean have general date and have my own religion date
www.murabbi.net/islamic.jpg
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Yeah ! If you know how to change the Locale of the Date, then Please Let us know as I want that too for my language :)
0 replies
F
faga
F
faga 10
I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” - Bill Gates
  • Member, joined since
  • Contributed 158 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Quote

emilife93 wrote:
can i do like this ? that mean have general date and have my own religion date
www.murabbi.net/islamic.jpg


Can you translate the text from the img ?
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

Quote

faga wrote:

Quote

emilife93 wrote:
can i do like this ? that mean have general date and have my own religion date
www.murabbi.net/islamic.jpg


Can you translate the text from the img ?


at left is general date and right is religion date

my mean is can the web set up 2 difference date?
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

You can edit core function of date for this.

function showdate() in maincore.php
0 replies
R
Rolf Mayer
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

Quote

PolarFox wrote:
You can edit core function of date for this.

function showdate() in maincore.php

PolarFox: and how to show both dates?

Today it is 4.Rabi I 1432 - and February 7th 2011
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Quote

emilife93 wrote:

Quote

faga wrote:

Quote

emilife93 wrote:
can i do like this ? that mean have general date and have my own religion date
www.murabbi.net/islamic.jpg


Can you translate the text from the img ?


at left is general date and right is religion date

my mean is can the web set up 2 difference date?


You should check if you can get help on this national site that seems to have already made what you are looking for:

http://www.phpfusion-ar.com/news.php

Otherwise you would have to look into making a date conversion using e.g. this class:

http://www.phpclasses.org/package/385...rmat-.html
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

PolarFox : Yes....how to show both dates?

WEC : but i cannot understand Arabic Site...
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Then download the ucal-2007-04-14.zip from the url i posted:

http://www.phpclasses.org/package/385...rmat-.html

Make a folder called hijri in your PHPFusion root and add the file uCal.class.php to this folder.

Then test the class by pasting this code in a custom page:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
include BASEDIR."hijri/uCal.class.php";

$d = new uCal;

echo "Today is: <b>" . $d->date("d/m/Y - l, F jS h:i A"wink."</b><br>\n This month length is: <b>".$d->date("t"wink. "</b>days, and Islamic lunation number is: <b>" .$d->date("L - g a - r"wink."</b><hr>\n";

?>[/syntaxhighlighter]

It should then display:

Quote

Today is: 04/03/1432 - Monday, Rabi' I 4th 10:42 PM
This month length is: 30days, and Islamic lunation number is: 17175 - 10 pm - Mon, 4 Rb1 1432 22:42:54 +0000


Once you got that going, you can start to tweak what to display.
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

i get this error

Notice: Use of undefined constant month - assumed 'month' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant day - assumed 'day' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant year - assumed 'year' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant ln - assumed 'ln' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant ml - assumed 'ml' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant month - assumed 'month' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant day - assumed 'day' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant year - assumed 'year' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant ln - assumed 'ln' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant ml - assumed 'ml' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant month - assumed 'month' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant day - assumed 'day' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant year - assumed 'year' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant ln - assumed 'ln' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131

Notice: Use of undefined constant ml - assumed 'ml' in /home/hyprucom/public_html/murabbi.net/v1/hijri/uCal.class.php on line 131
Today is: 05/03/1432 - Tuesday, Rabi' I 5th 09:43 AM This month length is: 30days, and Islamic lunation number is: 17175 - 9 am - Tue, 5 Rb1 1432 09:43:26 +0800
Edited by emilife93 on 08-02-2011 02:44,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 7 members

7 participants

W
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
F
F
faga 10
I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” - Bill Gates
  • Member, joined since
  • Contributed 158 posts on the community forums.
  • Started 14 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
E
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
R
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet