SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

How to change the date format in Wiwimod?
First of all, I'm not a php guy, so, with that in mind: Using seRapid Search & Replace, there are apparently 8, maybe 9, lines in 5 files which need changing. Here is the search output. I searched for the string 'date("'.The line numbers refer to the byte position in the file:
---------------------------
 
Index.php  -  13.708 bytes  -  Fri24.06.05 at 15:45  -  Wiwimod
12.040    
'lastmodified' => date("d.m.y"strtotime($pageObj->lastmodified)),
---------------------------
 
Wiwipdf.php  -  4.427 bytes  -  Fri08.04.05 at 11:05  -  Wiwimod
1.690    
'lastmodified' => date("d.m.y"strtotime($pageObj->lastmodified)),
---------------------------
 
listpages.php  -  6.124 bytes  -  Mon16.05.05 at 22:05  -  WiwimodAdmin
5.278    
<td>'.date("d.m.y", @strtotime($pageArr[$i]->lastmodified)).'td>
---------------------------
 
wiwimod_recent.php  -  1.443 bytes  -  Tue07.06.05 at 22:30  -  WiwimodBlocks
1.035    $link
['lastmodified'] = date("d.m.y"strtotime($content["lastmodified"]));
---------------------------
 
wiwimod_showpage.php  -  3.501 bytes  -  Tue10.05.05 at 22:41  -  WiwimodBlocks
1.700    $block
['lastmodified'] = date("d.m.y"strtotime($pageObj->lastmodified));
2.835    $block['lastmodified'] = date("d.m.y"strtotime($pageObj->lastmodified));
---------------------------
 
wiwiRevision.class.php  -  24.872 bytes  -  Tue07.06.05 at 18:47  -  WiwimodClass
3.811    date
("Y-m-d H:i:s"),        //-- lastmodified is Now
4.834    date("Y-m-d H:i:s"),
13.360    '"".date("d.m.y", strtotime($counter)).""',
13.442    '" ".date("H:i",strtotime($content["lastmodified"]))."encode($content["keyword"])."">".($content["title"] == "" ? $content["keyword"] : $content["title"])."22.393    $sql = "SELECT keyword, MAX(id) AS id FROM ".$xoopsDB->prefix("wiwimod")." WHERE lastmodified<'".date("Y-m-d H:i:s", time() - 61 * 24 * 3600)."' GROUP BY keyword";
As to what to change these to, that depends upon how you want the dates displayed. Here's a page that talks about PHP date formats: http://us2.php.net/date Probably the only one I would hesitate to change is the last one preceded by "$sql", and it may be ok to change it. Perhaps someone else who knows better will say. Good luck!


The comments are owned by the author. We aren't responsible for their content.


Login

Who's Online

242 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 242


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

You can 'bump' an unanswered question to the top of the forum.

Random question

How do I set permissions and make blocks and module visible?