The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
Sorry
![]() It's in the class_bbcode.php file. So $this should work. I'm adding this on line around 452. So I tried a strpos Code:
// ##### START HACK - Usergroup Smilies ##### if ($smilie['imagecategoryid'] == "102") { $groupids = $this->registry->userinfo['membergroupids']; $allowedgroup = "44"; $pos = strpos($groupids, $allowedgroup); if ($pos === false) { $replace = "*Censored Smilies*"; } } else { // ##### END HACK - Usergroup Smilies ##### // if you change this HTML tag, make sure you change the smilie remover in code/php/html tag handlers! if ($this->is_wysiwyg()) { $replace = "<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\" title=\"$smilie[title]\" smilieid=\"$smilie[smilieid]\" class=\"inlineimg\" />"; } else { $replace = "<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\" title=\"$smilie[title]\" class=\"inlineimg\" />"; } // ##### START HACK - Usergroup Smilies ##### } // ##### END HACK - Usergroup Smilies ##### The one I'm testing it with is smilie id 867, the smilie it shows is 866 LOL ![]() Any clues where else I might need to look? Thanks tons for help with the array problem ![]() W00t! Got it working with this code Code:
// ##### START HACK - Usergroup Smilies ##### if ($smilie['imagecategoryid'] == "102") { $groupids = $this->registry->userinfo['membergroupids']; $allowedgroup = "150"; $pos = strpos($groupids, $allowedgroup); if ($pos === false) { $replace = "*Censored Smilies*"; } else { if ($this->is_wysiwyg()) { $replace = "<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\" title=\"$smilie[title]\" smilieid=\"$smilie[smilieid]\" class=\"inlineimg\" />"; } else { $replace = "<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\" title=\"$smilie[title]\" class=\"inlineimg\" />"; } } } else { // ##### END HACK - Usergroup Smilies ##### // if you change this HTML tag, make sure you change the smilie remover in code/php/html tag handlers! if ($this->is_wysiwyg()) { $replace = "<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\" title=\"$smilie[title]\" smilieid=\"$smilie[smilieid]\" class=\"inlineimg\" />"; } else { $replace = "<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\" title=\"$smilie[title]\" class=\"inlineimg\" />"; } // ##### START HACK - Usergroup Smilies ##### } // ##### END HACK - Usergroup Smilies ##### ![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|