<?php
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
$plugins->add_hook("forumdisplay_thread", "forumdisplay_created_thread");
function datethread_info()
{
return array(
'name' => 'Data napisania wątku',
'description' => 'Wyświetla w dziale datę napisania tematu.',
'website' => '',
'author' => 'Snake_',
'authorsite' => '',
'version' => '1.0.0',
'guid' => '',
'compatibility' => '18*'
);
}
function datethread_activate()
{
}
function datethread_deactivate()
{
}
function forumdisplay_created_thread()
{
global $mybb, $thread;
$thread['datethread'] = my_date($mybb->settings['dateformat'], $thread['dateline']).", ".my_date($mybb->settings['timeformat'], $thread['dateline']); //zmienna do dodania w szablonie forumdisplay_thread to: {$thread['datethread']}
}
?>