<?php
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
function author_postbit_info()
{
return array(
"name" => "Autor tematu",
"description" => "Miejsce na opis plugina.",
"website" => "",
"author" => "",
"authorsite" => "",
"version" => "",
);
}
function author_postbit_activate()
{
}
function author_postbit_deactivate()
{
}
$plugins->add_hook("postbit", "author_postbit");
function author_postbit(&$post)
{
global $thread;
if($thread['uid'] == $post['uid'])
{
$post['author'] = '<span class="autor_tematu">AUTOR TEMATU</span>';
}
else {
$post['author'] = '';
}
}
?>