The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
If you can do the appropriate template conditionals you can use boolean $post['edited_by_mod']
with this plugin code Code:
if($post['edit_username'] != '') { $edited_by = $this->registry->db->query_first(" SELECT CONCAT(usergroupid, ',', membergroupids) AS groups FROM " . TABLE_PREFIX . "user WHERE username = '" . $this->registry->db->escape_string(htmlspecialchars_uni($post['edit_username'])) . "' "); $post['edited_by_mod'] = ( in_array(5, array($edited_by['groups'])) OR in_array(6, array($edited_by['groups'])) OR in_array(7, array($edited_by['groups'])) ); } It returns true (1) for moderators (group 7) admins (group 6) and super moderators (group 5) |
Благодарность от: | ||
broncoshq |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|