subman Posted October 5, 2007 Posted October 5, 2007 This lets you setup a cron and clears the shoutboxes in the jail and hospital if you have that mod. What you need--> http://criminalexistence.com/ceforums/i ... pic=2069.0 You also need to change the permissions on jailshouts.txt and hospshouts.txt too 0777 for this too work! NOW lets get to codin' :) Code Save this file as clearshouts.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then go to your cron manager and do this---> 0 * * * * curl http://yourgamename.com/clearshouts.php And your done :) Quote
Klikoka Posted November 4, 2007 Posted November 4, 2007 Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly or you could set it to daily or sumthing but nice thought Quote
~Spooky~ Posted January 26, 2008 Posted January 26, 2008 Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly or just put in a admin panel few lines and staff can clear them!!!!!!! Quote
-Matt- Posted February 11, 2008 Posted February 11, 2008 Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly But the idea is you do have to do them :evil: Quote
curious4moreknowledge Posted March 23, 2008 Posted March 23, 2008 Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly wouldn't it be easier to add one of these to your hour or day cron: :| v1) mysql_query("TRUNCATE TABLE shout_table_here;"); v2) $db->query("TRUNCATE TABLE shout_table_here;"); Quote
Godhand Posted March 23, 2008 Posted March 23, 2008 Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly Only one minor thing I see wrong with it, but shouldn't be an issue- If users wanted to access that page they could just rapidly delete all posts... You could add this to your daily cron or code it in for your 5 minute cron to do it once an hour. But I will say well done for the effort just missed a minor detail 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.