The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Images in Signatures - reward more than a given
I am trying to find a way to limit the use of BBCODE in certain usergroups, in signatures for example.
I would like to restrict certain usergroups from posting images in signatures and allow other people TO do it. Some people like to put HUGE images in signatures or some usergroups I just don't want using them. Is there a easy way to get this done? I tried searching the forums, but didnt find a way. |
#2
|
||||
|
||||
In profile.php find
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Well what about 3 different usergroups are allowed? Im not sure but is it similar to how a Conditional in the templates would be? Im not 100%.
Could you give me an example? Thanks for the speedy reply and assistance for sure. =) |
#4
|
||||
|
||||
Either you modify is_member_of() to accept multiple usergroup IDs (see this hack) or you can use
PHP Code:
|
#5
|
|||
|
|||
I got this error
Code:
Fatal error: Call to undefined function: fetch_character_count() in /var/www/html/forums/profile.php on line 1310 Code:
if (!is_member_of($bbuserinfo, 5, 6, 7, 11) AND fetch_character_count($signature, '[img') > 0) What can be wrong? Ok to my above error question ... here is what I did ... tell me if I am right or wrong. Find: Code:
if (!is_member_of($bbuserinfo, 5, 6, 7, 11) AND fetch_character_count($signature, '[img') > 0) Code:
require_once('./includes/functions_misc.php'); |
#6
|
||||
|
||||
Yep, that's correct. Seems like I fortgot that fetch_character_count() is not defined in functions.php
|
#7
|
|||
|
|||
Ok thanks!
On top of that, how can we allow the user to only have ONE [img] tag in it's signature? |
#8
|
||||
|
||||
Change > 0 to > 1.
And the message should be changed too |
#9
|
|||
|
|||
Failed. I tested and it still allowed more than 1 [IMG] with > 1.
|
#10
|
||||
|
||||
Hmm, should work in the way that users from usergroup id 20 are not able to use mir then 1 [img]-Tag in their signature.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|