![]() |
Disable Send PM button when user is not accepting PM's
Simple mod I thought I'd share. :bunny:
This removes the line that says 'Send user a PM' when viewing a profile if the user has chosen to not receive PM's In private.php Find PHP Code:
PHP Code:
|
corollasbest,
What you posted doesn't seem to work correctly. First off, $bbuserinfo['receivepm'] will check if the viewing user, and not the user being viewed has receivepm set to on/off. Second, you're checking in the private.php, so how should that be able to remove a link on a different page? Thirdly, just posting exit; will display a blank page. You should try to post an error message or so. A blank page will leave a lot of your users clueless... |
works for me. you can move it to betas if you want.
|
works great for me on 3.0.7 too! Thanks, nice and simple little mod that proves useful ;)
|
All times are GMT. The time now is 10:41 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:
|