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

459 user(s) are online (7 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 459


more...

Donat-O-Meter

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

Did you know ?

The basic structure of a XOOPS theme is similar to that of any other static website template. The primary difference is the addition of Smarty variables that interact with XOOPS to output your dynamic content.

Random question

after i installed module. these information showed at the end of page. what's the problem? what should i do to fix it. thanks a lot!

Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 629
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Warning [Xoops]: Smarty error: unable to read resource: "db:jobs_adlist.html" in file d:\appserv\www\xoops\class\smarty\Smarty.class.php line 1084
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 662
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\class\template.php line 260
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 761
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 809
Notice [PHP]: Only variables should be assigned by reference in file d:\appserv\www\xoops\kernel\module.php line 867