[cBB Blockgets] Add the date in Topic Index block


User avatar
Mathieu M.
 
Posts: 45
Joined: Mon Oct 15, 2012 11:55 am
 Mon Dec 10, 2012 9:26 am • via Web
Hello,

Is there a solution to add the date ("DD/MM - Topic title" for example) in the template of Topic Index block ? I've tried to copy / paste the viewtopic template code but it doesn't seem to work...


Thanks
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Dec 10, 2012 11:54 am • via Web
Hello,

To put the date in the template of topic_index_block you can use this param.
Code: Select all
{topic.TOPIC_TIME}

But, if you want to put the date in DD/MM format you must make one change in topic_index_block.php
Find:
Code: Select all
$user->format_date($row['topic_time']),

Replace with:
Code: Select all
$user->format_date($row['topic_time'], 'd/m'),


Regards,
User avatar
Mathieu M.
 
Posts: 45
Joined: Mon Oct 15, 2012 11:55 am
 Mon Dec 10, 2012 2:24 pm • via Web
Perfect, it works

Thanks !

Who is online

Users browsing this forum: No registered users and 0 guests