Quote:
Originally Posted by baghdad4ever
hi we are borg
i replace the 1st code with the PitchouneN64ng`s code
the create issue radio button disappear at all
so i return back
|
Just tested it and it removes all Create Issue. To be save and fix the problem make abackup of Plugin: Show Thread: Display moderation option if permitted and copy and paste the code below in it this should resolve the issue (it did for me on my test PT).
Code:
// TODO: this could have its own permission in moderation for future
$show['createptissue'] = can_moderate($threadinfo['forumid'], 'canmanagethreads') AND can_moderate($threadinfo['forumid'], 'canremoveposts');
$show['adminoptions'] = $show['adminoptions'] OR $show['createptissue'];
// Display the link in showthread
// I hope future vB versions will add a template_hook in this place
// as this code is not completely useful (can slow a page load)
if ($show['createptissue'])
{
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<form action="postings.php" method="post">
<ul class="popupbody popuphover">', '<form action="postings.php" method="post">
<ul class="popupbody popuphover">
<li><label><input type="radio" name="do" value="createptissue" /> ' . $vbphrase['pt_create_issue'] . '…</label></li>', $vbulletin->templatecache['SHOWTHREAD']);
}