2015-03-08, 06:26 PM
Buddy I am freaking out no matter what I do it juts doesn't work take a look at my code:
Themplate: forumdisplay_thread: {$thread_tags}
Not showing anything!
function tags_forumdisplay_thread()
{
static $tags_cache = array();
global $db, $tids, $tags_cache, $thread, $thread_tags;
// get tags for threads on first run
if (!isset($tags_cache)) {
$tags_cache = array();
$query = $db->simple_select("tags", "tags, tid", "tid IN (".$tids.")");
while ($tags = $db->fetch_array($query)) {
$tags_cache[$tag['tid']] = $tags;
//print_r($tags_cache[$thread['tid']]);
// get thread tags from cache
if (isset($tags_cache[$thread['tid']]))
{
$thread_tags = $tags_cache[$thread['tid']];
}
else
{
$thread_tags = false;
}
}
}
}
$plugins->add_hook("forumdisplay_thread","tags_forumdisplay_thread");Themplate: forumdisplay_thread: {$thread_tags}
Not showing anything!