The Arcive of vBulletin Modifications Site. |
|
Disable Send PM button when user is not accepting PM's Details »»
|
|||||||||||||||||||||||||||
|
Disable Send PM button when user is not accepting PM's
Developer Last Online: May 2011
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:
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
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... |
|
#3
|
||||
|
||||
|
works for me. you can move it to betas if you want.
|
|
#4
|
||||
|
||||
|
works great for me on 3.0.7 too! Thanks, nice and simple little mod that proves useful
|
![]() |
|
|