The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Wrong Datatype in bbcode_class file
Okay, so I'm trying to work the usergroup smilies hack to be more secure by replacing the smilies with text instead of the image if the smilie is in a particular category (102) and the user is not in the secondary usergroup (44).
I've tried the below, and I'm getting an error for "wrong data type in second argument" Any ideas? Code:
// ##### START HACK - Usergroup Smilies ##### if ($smilie['imagecategoryid'] == "102") { if (in_array("44", $this->registry->userinfo['membergroupids'])) { 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 { $replace = "*censored_smilie*"; } } 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 ##### $sc["$find"] = $replace; Thanks so much for any help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|