The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Moderate only OP (newthread) by Usergroup - Possible?
Hello Folks,
I am attempting to introduce a hook in functions_newpost.php on a vB 4.2.1 forum to allow us to moderate a particular usergroup's threads, not posts, for a subset of forums. I found an old post for some vB 3.8 code by another user here that seems a good fit, however I think the parameters to point vB to check the usergroup ($vbulletin->userinfo) may be incorrect for vB 4.x: Code:
else { $dataman->set('visible', 1); $post['visible'] = 1; } and add below that: if ($type == 'thread') { if ($foruminfo['forumid'] == X AND is_member_of($vbulletin->userinfo, Y)) { $dataman->set('visible', 1); $post['visible'] = 1; } } The 'visible' and 'thread' params check out, is anyone able to help me with finding the vB 4.x equivalent of $vbulletin->userinfo please? I would much rather try and have a crack at getting this going than introduce a sitewide thread moderation policy on our sale forums. Thanks in advance! Justin |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|