Quote:
Originally Posted by The Geek
Cool idea, but I cant seem to get it to work on my site. I have put 0,39 in the forumids but its a no go. If I check the page source, no dig info was added to the page so I am assuming either the forumid check failed or the preg_replace did. No errors in the php error log either.
Any advice?
|
I've changed the hook forumdisplay_query:
PHP Code:
if ($vbulletin->options['tDigg_enabled'])
{
$show['tDigg_forums'] = false;
if (in_array($foruminfo['forumid'], explode(',', $vbulletin->options['tDigg_forums'])))
{
$lastpost_info2 .= ', thread.tdiggs';
$sqlsortfield = 'tdiggs DESC,' . $sqlsortfield;
$show['tDigg_forums'] = true;
}
}
I've removed the threadbit patch in hook parse_templates.
Open template threadbit and search for:
Code:
$thread[title_editable]
<div>
insert below:
Code:
<if condition="$vbulletin->options['tDigg_enabled'] AND $show['tDigg_forums'] AND !$show['rmanage']">
<span style='float: right'> <b><span id='votecount_$threadnum' style='position: relative; top: -5px;'>$thread[tdiggs]</span></b>
<if condition="$thread['tdiggs'] >= 0">
<img src="$stylevar[imgdir_misc]/t-us.png" width="18px" height="18px">
<else />
<img src="$stylevar[imgdir_misc]/t-ds.png" width="18px" height="18px">
</if>
</span>
</if>
Done!
@Coders Shack
Good work, nice idea. Thank you very much
Regards, Stoebi