Log in

View Full Version : Message to people that attempt to PM me


Brumskis
03-10-2008, 12:45 PM
I've tried searching and perhaps I'm using vague or incorrect keywords but I've not found what I'm looking for.

After a weekend away from my forum I came back to find a load of PM's waiting for me most of which could, and should, have been sent to one of the moderators online rather than the chairman.

Is it possible, with a mod/hack, to display a message to users when they attempt to PM me? Ideally I'd like a predefined message ensuring people are PM'ing the right person and advising them to PM moderators with "trivial" forum related issues.

calorie
03-10-2008, 01:43 PM
One idea would be to add a little JavaScript to the vB pm_newpm template.

From:

<div id="pmrecips"><textarea id="pmrecips_txt" name="recipients" rows="<if condition="is_browser('mozilla')">1<else />2</if>" cols="50" tabindex="1">$pm[recipients]</textarea></div>

To:

<div id="pmrecips"><textarea id="pmrecips_txt" name="recipients" rows="<if condition="is_browser('mozilla')">1<else />2</if>" cols="50" tabindex="1" onchange="if (this.value.toLowerCase() == 'username') confirm('Are you sure you are sending this PM to the correct person?')">$pm[recipients]</textarea></div>


Where you replace username with your actual username in lowercase.