http://www.xoops.org/
Main Menu
Latest Articles
Popular Articles

Browsing this Thread:   3 Anonymous Users





few questions (date & template)
Just popping in
Joined:
2005/1/9 12:38
Group:
Registered Users
Posts: 9
Level : 1; EXP : 86
HP : 0 / 21
MP : 3 / 1227
Offline
hello,


First of all congratulation for this great xoops module !

Then I'd like to ask you few questions :

I would like to change the date format to d.m.y : 09.01.05
(i'm french).

I can see it in article.php ligne 178 but I don't know how to change it.

Is it possible to display the date in "article_index.html" (next to the number of views) like in "article_item.html".

I tried to insert the following lines without success .

<{if $show_art_posted eq 1}>
          <{
$posted_on}> <{$article.art_posted_datetime}> 
        <{/if}>


(happy to see your site back).
thx for your help

Posted on: 2005/1/9 12:49
Transfer the post to other applications Transfer


Re: few questions (date & template)
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 14621
Offline
Sorry for the late reply, I've not restored any notifications yet...

The code on line 178 is just part of the function I use to convert/format dates.

You will find the section of code with the format of the date on line 78 of article.php:

post_date($myrow['art_posted_datetime'], "D d M Y")


The "D d M Y" is what you need to change.

This is PHP's standard date formatting code, in this case "D" is day of the week, textual, 3 letters, e.g. "Fri". "d" is numerical day of week with leading zeros, e.g., "03" or "28". "M" is is month, textual, 3 letters, e.g., "Jan". "Y" is 4 digit year, e.g., "2005".

For a date format of d.m.y, e.g., 02.12.05, you need to use "d.m.y". When changing this format in the code, leave the quotes and everything else as is, or errors may occur.

You can find more date codes, etc, on the PHP web site
here.

I will be adding an option in the prefs to allow the various date formats to be changed easily.

Quote:
(happy to see your site back)


Thanks - the only trouble is that it's my whole server that's disappeared, thanks to the idiots that colocated it...

Posted on: 2005/1/13 20:42
Transfer the post to other applications Transfer


Re: few questions (date & template)
Just popping in
Joined:
2005/1/9 12:38
Group:
Registered Users
Posts: 9
Level : 1; EXP : 86
HP : 0 / 21
MP : 3 / 1227
Offline
thx for your reply andy

Do you know how to index your article module in the xoops search engine ?
is it easy to do?

merci

Posted on: 2005/1/30 20:09
Transfer the post to other applications Transfer


Re: few questions (date & template)
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 14621
Offline
It already supports XOOPS's search function...

Posted on: 2005/1/30 20:45
Transfer the post to other applications Transfer


Re: few questions (date & template)
Just popping in
Joined:
2005/1/9 12:38
Group:
Registered Users
Posts: 9
Level : 1; EXP : 86
HP : 0 / 21
MP : 3 / 1227
Offline
ok the module check box was missing in search.php. It was a pb with the module "news" which is called "article" too. I changed it to "news" in the cp I've updated the system and now eveythnig is ok

thank you

Posted on: 2005/1/30 21:53
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
Donate!
Please consider donating to help continued development of my XOOPs modules. Read more here.

Search
Advertisements
Copyright © 2001-2009 sirium.net