PEAK XOOPS - Re: you dont use xoops date function? what about hegira date? in englishin japanese

Re: you dont use xoops date function? what about hegira date?

List posts in the topic

question Re: you dont use xoops date function? what about hegira date?

msg# 1.1.1.1
depth:
3
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/28 6:15
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:
'date_short' => date( $dtfmt_short , xoops_getUserTimestamp( $item['pubdate'] ) ) ,
						'date' => formatTimestamp( $item['pubdate'] , 'm' ) ,
						

i can change the function date() with my jalali date function jdate() in all the module. but how can i use "firmattimestamp" instead of your "date_short" function?
I've just understood what you want.

try to edit templates like this:


    <{if $items[i].pubdate != "" }>
      <{$items[i].pubdate|formatTimestamp}>
       
    <{/if}>

instead of
    <{if $items[i].pubdate != "" }>
      <script type="text/javascript">document.write(phpDate('<{$dtfmt_short|escape}>', <{$items[i].pubdate|escape}>));</script>
      <noscript><{$items[i].date_short|escape}></noscript>
       
    <{/if}>

It is not necessary to hack *.php at all
Votes:8 Average:1.25

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!