Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Oct 21st, 2017, 12:54pm


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 certain users from using PM's.  (Read 2307 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17645
xx Prevent certain users from using PM's.
« Thread started on: Feb 5th, 2004, 5:07pm »


    <script>

    function stopPM(user){
    if(location.href.indexOf("imsend") != -1 || location.href.indexOf("imreply") != -1|| location.href.indexOf("imquote") != -1){
    for(pl=0; pl<document.links.length; pl++){
    if(document.links[pl].href.indexOf("=profile&username="+user) != -1){
    alert( user +", you are not allowed to send PM\'s")
    location.href="/index.cgi"
    }}}}

    stopPM("username")
    </script>


Insert the username(s) that you want to stop sending PMs where indicated....To add more than one, repeat this line
    stopPM("username")

Inserting the required username..

They will still be able to view PM's but not send/reply in any way...

This code goes in main headers only.....

Preview
« Last Edit: Jul 5th, 2006, 12:54pm by Garet » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
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