PEAK XOOPS - Re: About "new" in englishin japanese

Re: About "new"

List posts in the topic

question Re: About "new"

msg# 1.1.1
depth:
2
Previous post - Next post | Parent - Children.1 | Posted on 2004/1/24 19:30
frenchman  一等兵   Posts: 16
Quote:
GIJOE wrote:

download from here
http://ryus.biz/modules/mydownloads/singlefile.php?cid=3&lid=13

I translated into English
-------------------------------------------------------
Description:

This is a filtering plugin for Smarty.
This plugin can change the format of date, and/or can add "NEW".

First of all, download and extract the archive, and you'll get modifier.ryus_date.php.
Put modifier.ryus_date.php into class/smarty/plugins/

I downloaded this file and puted it into class/smarty/plugins

Quote:
GIJOE wrote:
Usage:
This modifier can use variables assigned date or datetime in Template.

eg) if datetime is assigned in $topic.date:
-<{$topic.date|ryus_date}>
--No format is changed. Add "NEW" mark.
-<{$topic.date|ryus_date:"M"}>
--The datetime format is displayed like formatTimestamp( "M" )
-<{$topic.date|ryus_date:"S"}>
--The datetime format is displayed like formatTimestamp( "S" )
-<{$topic.date|ryus_date:"new"}>
--No datetime is not displayed, but shows only "NEW" mark.
-<{$topic.date|ryus_date:"Y-m-d"}>
--The datetime format is displayed like date( "Y-m-d" ). "NEW" mark is added.
-<{$topic.date|ryus_date:"j.n.Y":false}>
--The datetime format is displayed like date( "j.n.Y" ). "NEW" mark is not added.

Where do I have to put this?
Sorry for such stupid questions:)
Votes:6 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!