The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 ? |
#2
|
||||
|
||||
You can create 2 plugins, at the following hook locations:
And use the following Plugin PHP Code: PHP Code:
|
5 благодарности(ей) от: | ||
Black Snow, ForceHSS, hazem_aliraqi, kh99, Lynne |
#3
|
||||
|
||||
thank u mark
--------------- Added [DATE]1432629398[/DATE] at [TIME]1432629398[/TIME] --------------- not work for arabic word ? |
#4
|
|||
|
|||
It should work for the word you put in there does not matter if its arabic or english
|
#5
|
||||
|
||||
Quote:
not work i try it HTML Code:
if ($vbulletin->userinfo['userid'] == 1) { $vbulletin->GPC['message'] = str_ireplace("حازم", "", $vbulletin->GPC['message']); } |
#6
|
|||
|
|||
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
|
#7
|
||||
|
||||
no only in newreply_post_start and it work with English word vb 4.2.3 |
#8
|
|||
|
|||
Have the same version will test
ok tested does not block حازم |
#9
|
|||
|
|||
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. |
3 благодарности(ей) от: | ||
ForceHSS, hazem_aliraqi, MarkFL |
#10
|
||||
|
||||
That's odd...it blocks that text for me (on my vB 4.2.1 local dev site)...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|