Simie
Coding Admin
Why are you all still here?
Posts: 721
|
Post by Simie on Nov 4, 2006 12:58:57 GMT -5
What this does:This makes an alert popup when you try and PM a certain user, and if you click cancel it takes you back to the page you were at. Simple The Code:Main Footer<script type="text/javascript"> /* Pop-up when PMing certain users ~ Simie Put in Main Footer */
var alerts = [ ["username", "confirm message "], ["username", "confirm message "], ["username", "confirm message "], ["username", "confirm message "], ["username", "confirm message "] // Remember, no comma on last line ]; for(i=0; i<alerts.length; i++) {
if(location.href.indexOf("action=pmsend&to="+alerts[0]) != -1){
var stay=confirm(alerts[1]) if (!stay) history.back() } } </script>Edit the red to user username of the person who you want the popup to appear when PMing them, and the blue to the message that appears. If you want to add more user's repeat this line: ["username", "confirm message"], Remember! Don't put a comma on the last line. Preview:
|
|