im using hegiradate in my xoops site but it seems you dont use the original "formatTimestamp" function.
now what can i do for this? where is your date function?
I adopted Dave_L's idea in xhld.
You can find formats in the template of xhld.You can find javascript using Dave_L's idea in templates of xhld.
<script type="text/javascript">document.write(phpDate('<{$dtfmt_short|escape}>', <{$items[i].pubdate|escape}>));</script>
<noscript><{$items[i].date_short|escape}></noscript>
in the code for example in index.php you put this:
'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?
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
thanks i do it.
and i translate xhld to persian as you maybe know:
the project files