![]() |
Disable PMs for single user(s)
Ever wanted to disable the PMs for 1 or 2 users without having to create a new usergroup for them?
Then this hack is for you! 1) Go to ACP and turn off PM reception for the user(s) causing trouble. 2) Then put the following code (replace X, Y and Z with the userids) in template phpinclude_start to make sure they won't turn it back on again: PHP Code:
This was developed and tested with 3.0.6, but should work with all 3.0.X-Versions. |
why not make it a vboptions so it will be easy to add/remove users from that list?
|
Because that would make things a bit more complicated ;)
|
Won't this make members who disable PMs themselves unable to turn them back on?
|
No. The code only gets executed for the userids listed.
|
Ohhh I'm sorry... I didn't read the code carefully enough. Sorry about that :)
Great idea man, I'll be able to use this in the next few weeks. |
@Kirby
Could you please provide the instructions also as a textfile, so people who use this hack can have it as a reference for upgrading. :D :D |
Hmm, a textfile for 4 lines which will not be lost during an upgrade (as it is phpinclude code) sounds like overkill.
But neverthlesss: attached :) |
Hi
there is such option Quote:
|
Quote:
Sorry, I don't understand what you want? |
All times are GMT. The time now is 06:24 AM. |
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:
|