Jump to content
MakeWebGames

veaseyspike

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

veaseyspike's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [McCodes][v2] Mailbox Layout Mod can u stilll use smilies?
  2. Re: Shoutbox Ban - Not Finished - Dont Post ok
  3. Re: Shoutbox Ban - Not Finished - Dont Post yh i know... can you lot tell me if the Shoutbox Ban works or not... send me a email plz n thank you
  4. Re: Shoutbox Ban - Not Finished - Dont Post i only wanted to post shoutbox ban ... how hard has it got to be now a days
  5. Re: Shoutbox Ban - Not Finished - Dont Post :S i got this shoutbox from iamwicked.net :S
  6. Re: Shoutbox Ban - Not Finished - Dont Post does it work tho?..if it works gimme a +1
  7. Re: Shoutbox Ban - Not Finished - Dont Post   Oh Ok Then...
  8. Re: Shoutbox Ban - Not Finished - Dont Post Open Up cron_day.php: Add: $db->query("UPDATE shoutban set sb_days=sb_days-1"); $q=$db->query("SELECT * FROM shoutban WHERE sb_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['sb_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET shoutban=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM shoutban WHERE sb_days=0");   Add Your Done... IF You Have Error Please Mail Me Thank You
  9. Re: Shoutbox Ban - Not Finished - Dont Post Open Shoutbox.php ( Where Ever You Stored your Shoutbox ): Add Somewhere if($ir['shoutban']) { $q=$db->query("SELECT * FROM shoutban WHERE sb_userid=$userid"); $r=$db->fetch_row($q); print"[b]<font color=red size=+1>You have been shoutbox banned for {$r['sb_days']} days. Reason: {$r['sb_reason']}</font>[/b] [url='index.php']> Back[/url] "; exit; }   Open Smenu.php Add: > [url='staff_punit.php?action=shoutform']Shout Ban User[/url] > [url='staff_punit.php?action=unshoutform']Un-Shout Ban User[/url]
  10. Re: Shoutbox Ban - Not Finished - Dont Post Open global_func.php: Add: function sb_user_dropdown($connection,$ddname="shoutban",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM users WHERE shoutban=1 ORDER BY username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['userid']}'"; if ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}</option>"; } $ret.="\n</select>"; return $ret; }
  11. Re: Shoutbox Ban - Not Finished - Dont Post On The Same Page Then Find: $h->endpage(); ?>   Before Add: function shoutban_user_form() { global $db,$ir,$c,$h,$userid; print "<h3>Shout Banning User</h3> The user will not be able to shout anyone in the game. <form action='staff_punit.php?action=shoutsub' method='post'> User: ".user_dropdown($c,'user',$_GET['XID'])." Days: <input type='text' name='days' /> Reason: <input type='text' name='reason' /> <input type='submit' value='Shout Ban User' /></form>"; } function shoutban_user_submit() { global $db,$ir,$c,$h,$userid; $re=$db->query("UPDATE users SET shoutban=1 WHERE userid={$_POST['user']}"); if($db->affected_rows()) { $db->query("INSERT INTO shoutban VALUES('',{$_POST['user']},{$_POST['days']},'". $_POST['reason']."')"); } print "User Shout Banned."; stafflog_add("Shout Banned ID {$_POST['user']} for {$_POST['days']}"); } function unsb_user_form() { global $db,$ir,$c,$h,$userid; print "<h3>Un-Shout Banning User</h3> The user will be able to shout again. <form action='staff_punit.php?action=unshoutsub' method='post'> User: ".sb_user_dropdown($c,'user')." <input type='submit' value='Un-shout Ban User' /></form>"; } function unsb_user_submit() { global $db,$ir,$c,$h,$userid; $db->query("UPDATE users SET shoutban=0 WHERE userid={$_POST['user']}"); $db->query("DELETE FROM shoutban WHERE sb_userid={$_POST['user']}"); print "User un-shoutbanned."; stafflog_add("Un-shout baned user ID {$_POST['user']}"); }
  12. Re: Shoutbox Ban - Not Finished - Dont Post Then open staff_punit.php Find: case 'ipsub': ip_search_submit(); break; case 'massjailip': mass_jail(); break;   After Add: case 'shoutform': shoutban_user_form(); break; case 'shoutsub': shoutban_user_submit(); break; case 'unshoutform': unsb_user_form(); break; case 'unshoutsub': unsb_user_submit(); break;
  13. The shoutbox Ban - NOTE: Focus This Might Mess Up.. ( Should Work Ive Used It On My Game ) ( If Not Message Me And Il Add It Your Game ) ( This MY First Mod On CE ( Sharing ) ) Im Bricking IT :D SQL: ------------------------------- CREATE TABLE `shoutban` ( `sb_id` int(11) NOT NULL auto_increment, `sb_userid` int(11) NOT NULL default '0', `sb_days` int(11) NOT NULL default '0', `sb_reason` text NOT NULL, PRIMARY KEY (`sb_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; ---------------------------------------------------- ALTER TABLE `users` ADD `shoutban` INT(11) NOT NULL DEFAULT '0'; ----------------------------------------------------
  14. Re: [v2]User Competitions[v2] Can someone make this mod where theres no errors? .... post it below this post message thank you spike
  15. Re: Login & Register & Header & Lost Password   Ha lol...No i ask people things if i not 100% sure or havent got a clue like crons but i learnt to do them now ha lol well people learn cool stuff every day hehe.. i should be adding new mods like shoutbox ban would be coming soon when i fined the last error Shoutbox Ban Made - Coming Soon By Spikey
×
×
  • Create New...