Could I get a code to where When a member tries to pm a staff member an alert box comes up with a message that I put.?
Try this:
<script>
function pm_user(member, message){
if(location.href.match(/\/pm_send\//) && location.href.match(member)){
alert(message);
}
}
pm_user('admin', 'Please Do Not PM the Admin!');
pm_user('god','I really am not God!');
</script>
Main Header
Untested, try it!![]()
Will staff members see this alert as well?
Heres how I did it.
<script>
function pm_user(member, message){
if(location.href.match(/\/pm_send\//) && location.href.match(member)){
alert(message);
}
}
pm_user('admin', 'Please only PM me if you wanna say HI or if theres a conflict between member and staff.
Thanks.');
pm_user('masonfett','IPlease do not pm me regarding support issues or to request a graphic. All graphic request go in graphics section.
Thanks.');
</script>
Yes staff will see them as well.
Well, it's not working, and again, heres how the code is.
<script>
function pm_user(member, message){
if(location.href.match(/\/pm_send\//) && location.href.match(member)){
alert(message);
}
}
pm_user('admin', 'Please only PM me if you wanna say HI or if theres a conflict between member and staff.
Thanks.');
pm_user('masonfett','IPlease do not pm me regarding support issues or to request a graphic. All graphic request go in graphics section.
Thanks.');
</script>
Well, it's not working, and again, heres how the code is.
<script>
function pm_user(member, message){
if(location.href.match(/\/pm_send\//) && location.href.match(member)){
alert(message);
}
}
pm_user('admin', 'Please only PM me if you wanna say HI or if theres a conflict between member and staff.
Thanks.');
pm_user('masonfett','IPlease do not pm me regarding support issues or to request a graphic. All graphic request go in graphics section.
Thanks.');
</script>
You can't have line breaks in the code, rather than pressing Enter, type \n.![]()
*high-fives Marc and Wrighty*
Thanks guys, it worked perfectly!!!!!