The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]()
Stealing some code from inlinemod.php to make a plugin using newpost_complete, I found that this:
Code:
$forumid = $foruminfo['forumid']; if ($threadinfo['visible'] AND can_moderate($forumid, 'canopenclose')) { if ($type == 'thread') $threadid = $post['threadid']; else $threadid = $threadinfo['threadid']; $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "thread SET open = 0 WHERE threadid = $threadid "); $modlog[] = array( 'userid' =>& $vbulletin->userinfo['userid'], 'forumid' =>& $forumid, 'threadid' => $threadid, ); include("includes/functions_log_error.php"); log_moderator_action($modlog, 'closed_thread'); } will close the thread after the post is made, only (I hope) if the user has the right permissions. So if someone can figure out how to tell if the post had the [closethread] tag in it, I think you'd be there. I suppose one way might be to just check for a certain text string at the end of the post instead of using bbcode. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|