![]() |
Prevent one member from writing a specific word
hi
i want to ban someone of user to write a word if there is any plugin to do this ? |
You can create 2 plugins, at the following hook locations:
And use the following Plugin PHP Code: PHP Code:
|
thank u mark :)
--------------- Added [DATE]1432629398[/DATE] at [TIME]1432629398[/TIME] --------------- not work for arabic word ? |
It should work for the word you put in there does not matter if its arabic or english
|
Quote:
not work i try it HTML Code:
if ($vbulletin->userinfo['userid'] == 1) |
You made them plugins the both of them. What vb version? and did you use notepad++ to edit it or just copy and paste from here
|
Quote:
no only in newreply_post_start and it work with English word vb 4.2.3 |
Have the same version will test
ok tested does not block حازم |
There's an encoding issue, so that the str_ireplace() doesn't match the word. I can't figure out how to encode your word so that it will match, but I have a different suggestion: use the existing censoring and add the word only for the given user by using a plugin on hook global_bootstrap_init_start and code like this:
PHP Code:
If you'd rather not using the censoring mechanism, there are probably other hooks that can be used with MarkFL's code which will do the str_ireplace after the message text has been decoded. |
Quote:
|
Quote:
|
Quote:
thank you kh99 for your help its work fine now :) thanks for Force and mark too ;) |
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|