Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Nov 21st, 2017, 06:02am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Prevent members from PMing each other  (Read 3054 times)
overlord
Member


member is offline

Avatar




PM


Posts: 0
xx Prevent members from PMing each other
« Thread started on: Jan 4th, 2004, 1:01pm »

Quote:
<script language="javascript">
/*
Prevent certain members from sending PMs
Written by Jaws
Use freely but do not post in other locations please
*/
var member = new Array(); member[0] = "user"
if(location.href.indexOf("action=imsend")!==-1){
for(jj=0;jj<member.length;jj++){
var TD = document.getElementsByTagName("TD")[5].innerHTML
if(TD.match("username=" + member[jj])){
alert("Your PMing privilage has been suspended!")
window.location="/index.cgi";}}}
</script>


Replace user with the member's username.
Add more, but make sure you increment the 0.

Edit by Garet -- Code goes in main footer

If you'd like to see a preview of this code's effects click here
« Last Edit: Jul 6th, 2006, 12:19am by Garet » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls