Uridium Posted July 28, 2010 Posted July 28, 2010 This mod will allow you to set the amount of emails players send each other ingame per day SQLS [mysql]ALTER TABLE users ADD `sent_mail_count` int(11) NOT NULL default '25'; ALTER TABLE users ADD `sent_mail` int(11) NOT NULL default '0'; ALTER TABLE users ADD `mail_max` int(11) NOT NULL default '25';[/mysql] change both 25's to the allowed number per day cron for cron day You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. mailbox.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Download these images and send the imageicons folder to your ftp Quote
Uridium Posted July 28, 2010 Author Posted July 28, 2010 finally add this to header.php this will prevent the user from MULTI sending Emails to a user open header.php and add this below your <title></title> tags <script type="text/javascript"> /* Block multiple form submission script- By JavaScriptKit.com Visit http://www.javascriptkit.com for this script and more This notice must stay intact for use */ //Enter error message to display if submit button has been pressed multiple times below. //Delete below line if you don't want a message displayed: var formerrormsg="Once is enough thank you." function checksubmit(submitbtn){ submitbtn.form.submit() checksubmit=blocksubmit return false } function blocksubmit(){ if (typeof formerrormsg!="undefined") alert(formerrormsg) return false } </script> ** FOOTNOTE ** even though the user can no longer send Emails they can still Receive emails from those who still have email credits left I'll post a few screenies soon Quote
Uridium Posted July 28, 2010 Author Posted July 28, 2010 here are a few screenie.. IMAGE 1 = Full Quota of 50 emails. IMAGE 2 = Half Quota Used. IMAGE 3 = Show taht your on your final Email IMAGE 4 = Shows your out of emails... IMAGE 5 = Shows that you cannot send anymore even when click on a userprofile to send emails.. Quote
NarutoPRG.com Posted July 28, 2010 Posted July 28, 2010 Brilliant work Illusion's. Could cut down on spam, maybe some lag for the game. :) Quote
secret_life Posted November 22, 2010 Posted November 22, 2010 update count problem when delete messege with chekbox and icon the message count in menu dont make -1 in database i know miss a line like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i try to find where, i post if i find where Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.