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

Re: About "new"

List posts in the topic

normal Re: About "new"

msg# 1.1
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2004/1/24 5:08
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi frenchman.
Quote:
I see you've got the mark "new" in all blocks.
how did you do this?
I'd like it on my website:)
It is not a hack.
Add only a plugin into Smarty and use templates manager.
The plugin is ryus_date. (Ryuji's work)

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/


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.

Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!