Quote:
Originally Posted by BirdOPrey5
This mod auto closes old threads and has been reported working on VB 4.0.x.
I will make an update to version 1.2 but for now you can go to Admin CP -> Plugin Manager and edit the Old Thread Notice Template plugin.
Replace it all with:
PHP Code:
if ($vbulletin->options['bop5oldt_en'])
{
$templater = vB_Template::create('showthread_oldthreadnotice');
$templater->register('showoldfp', $showoldfp);
$templater->register('showoldlp', $showoldlp);
$template_hook[showthread_above_posts] .= $templater->render();
$templatevalues['showthread_oldthreadnotice'] = $templater->render();
vB_Template::preRegister('SHOWTHREAD', $templatevalues);
}
Click SAVE.
Now edit your SHOWTHREAD template... put the following line:
Code:
{vb:raw showthread_oldthreadnotice}
Anywhere you want... For Quick Reply I suggest right above:
HTML Code:
<div class="wysiwyg_block">
Anywhere you put the code in SHOWTHREAD will show the old thread notice.
If you want to remove the built in notice at the top of the thread, back in the plugin, comment out the applicable line, make it:
PHP Code:
//$template_hook[showthread_above_posts] .= $templater->render();
Thanks. 
|
thank you bro
but by this way not working i try befor you reply not working
and i do it by this instructoin what you repled here and not working
the count dyes not show wehen i replace plugin
i attached image