1
Anonymous
How to load the date in my theme ?
  • 2007/2/22 10:49

  • Anonymous

  • Posts: 0

  • Since: 0


Hi,

With joomla .. date can display in theme template by insert:

<?php echo mosCurrentDate(); ?>

What's about XOOPS ? how i can display the date in my theme without using any external javascript ?


2
irmtfan
Re: How to load the date in my theme ?
  • 2007/2/22 10:57

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


in XOOPS theme.html:
<{php}> echo(formatTimestamp(time(),"m"));<{/php}>

3
subzero_x
Re: How to load the date in my theme ?
  • 2007/2/22 12:13

  • subzero_x

  • Just popping in

  • Posts: 72

  • Since: 2006/3/16


Hello Mowaffak We are working with this smarty:

<{$smarty.now|date_format:"%A, %B %e, %Y"}>

Regards

SubZero

hhttp://streamtools.net professional themes for serious projects!

4
Anonymous
Re: How to load the date in my theme ?
  • 2007/2/22 12:35

  • Anonymous

  • Posts: 0

  • Since: 0


Great

Thank you irmtfan and subzero_x .

5
irmtfan
Re: How to load the date in my theme ?
  • 2007/2/23 7:51

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@ subzero_x:
your code is the smarty itself and not related to a XOOPS site.but we want a XOOPS time format because:
1- local time zones
2- local date format ( Hegira for persians and ...)

6
skenow
Re: How to load the date in my theme ?
  • 2007/2/24 2:08

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I was just looking at general preferences for a XOOPS site, and there is no admin setting for date format that could be read into a smarty variable. I think this would be a good addition to the core.

Several modules have configuration options for date format, but when you want to get them all consistent, you need to change every module. Having a global setting that can be used in themes and modules would add another bit of overall site consistency to Xoops.

I'll be searching the dev site at Sourceforge for this...