Quote:
Originally Posted by Nik S
I really like this mod. Thanks!
Would it be possible for threads in the master forum to link to their sub forums?
|
Are you talking about where it gives the name of the forum the thread is really in? Yes that can be done... I will make it an option in the next version but in the mean time if you want to do this do the following:
Got to Admin CP -> Plugin Manager
Edit the
All Topic in Threadbit Plugin
Erase all the PHP code and replace it with the following:
Code:
if ($vbulletin->options['alltopic_enable'] AND $vbulletin->options['alltopic_tempen'])
{
require_once(DIR . '/includes/adminfunctions_template.php');
$find = trim(preg_replace('#^\$final_rendered = \'(.*)\';$#s', '\\1', compile_template('{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, \'postuserid\', \'postusername\'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}')));
if ($vbulletin->options['alltopic_ss'])
{
$replace = trim(preg_replace('#^\$final_rendered = \'(.*)\';$#s', '\\1', compile_template('{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, \'postuserid\', \'postusername\'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}<vb:if condition="($thread[\'forumid\'] != $forbopid)"> - <a href="forumdisplay.php?f={vb:raw thread.forumid}">{vb:raw thread.forumtitle}</a></vb:if>')));
}
else
{
$replace = trim(preg_replace('#^\$final_rendered = \'(.*)\';$#s', '\\1', compile_template('{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, \'postuserid\', \'postusername\'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}<vb:if condition="!$thread[\'sticky\'] AND ($thread[\'forumid\'] != $forbopid)"> - <a href="forumdisplay.php?f={vb:raw thread.forumid}">{vb:raw thread.forumtitle}</a></vb:if>')));
}
$vbulletin->templatecache['threadbit'] = str_replace($find, $replace, $vbulletin->templatecache['threadbit']);
}
Save the Plugin.
Forum names will now be linked.