Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Addons/Mods Graveyard (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=41)
-   -   warning system (http://www.mysidiaadoptables.com/forum/showthread.php?t=1098)

aroymart 09-14-2009 08:25 PM

warning system
 
ok, before you post this isn't anything like bloodruns user warning script (which looks amazing)

this is a warning script for deleting adoptables

1. put

<script type="text/javascript">
<!--
function kill() {
var answer = confirm("kill him?") //you can change whats in the " " to whatever you want
if (answer){
alert("you pressed ok") //you can change whats in " " to whatever you want
window.location = 'myadopts.php?act=kill&id=<?php echo $id ?>&more=confirm';
}
else{
alert("Thanks for not killing him!")///you can change whats in " " to whatever you want
}
}
//-->
</script>

at the bottem (after everything)


2. press ctrl-F and search for <a href='myadopts.php?act=kill&id=".$id."&more=confir m'>
change it to <a onclick='kill()'>

Bloodrun 09-15-2009 04:56 PM

RE: warning system
 
Looking good man.

aroymart 09-15-2009 07:27 PM

RE: warning system
 
thank you :D, this is my first mod

davidlyme 11-25-2009 11:17 PM

RE: warning system
 
How can i read your warning script?
I wouldn't understand what you written here.
Can you explain it?


All times are GMT -5. The time now is 09:42 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.