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

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

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/26 22:36
irmtfan  »°Åù·³Áâ   Posts: 96
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?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/27 6:16
GIJOE  ÀèǤ·³Áâ   Posts: 4110
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>
Votes:9 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/27 22:31
irmtfan  »°Åù·³Áâ   Posts: 96
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?
Votes:0 Average:0.00
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:7 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/5/31 5:29
irmtfan  »°Åù·³Áâ   Posts: 96
thanks i do it.
and i translate xhld to persian as you maybe know:
the project files
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!