
? Sparks ?
Members-
Posts
134 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ? Sparks ?
-
Re: New Header.php Can anyone get the smenu In there?
-
Re: [mccode v2] Crystalbank Mod Wickidnezz If you would like to show MTG and everyone else a secure and working code Of this please feel free too :)
-
Re: Honor Market - My Mod! You changed "crystals" to "honor"....WOOP! Lol It still takes 5 minutes to do :P
-
Re: How to change Id number Ok, I will check it out... Thanks :D
-
When I try to change the ID number To an account I get this "Your account may be broken. Please mail ***** stating your username and player ID." Any Ideas?
-
Re: GRPG Forum No I am not a retard. If you haven't noticed they have there own forum with the people that actually use that engine!
-
Re: GRPG Forum GTFO this Is for mccodes not GRPG :x
-
Re: [mccode] Gangs Nice Bump Black-Knights
-
Re: New Game Out What the f**k Is that? Can you please learn how to type, It doesn't make you a gangster typin like that... It just makes you look like a damn retard :? :x
-
Re: Total Time Logged In! God Damn Haunted Dawg :lol:
-
Re: [v2] New Header I see there Is no access to the staff area, Is there a updated version of this, or do I have to insert it manually :P
-
Re: NOT a MOD just an Idea Very interesting! Never thought of that.
-
Re: Quests!! Got too tired of them being called crimes?
-
Re: [mccode v2] Email Activation Maybe there Is a problem In the links you get through your email, I wouldn't know I don't use this mod :P
-
Whats yours? Total time logged in: 3 days, 3 hours and 59 minutes.
-
Re: Chat Ban [V2] Sorry I forgot to add the Cron Open cron_day.php and add $db->query("UPDATE users SET chatban=chatban-1 WHERE chatban > 0");
-
I am trying to make an edit but need to know what I am doing, FOr any bans I want It to show the user and In the events who that user got banned by... What would I use?
-
Re: Chat Ban [V2] Better off go here, http://www.99chats.com Create your chat, send me the code and I will convert It for you :) Make sure Its the embed code ;)
-
Re: Chat Ban [V2] I will make everyone a custom chat room :D For free :P hit me up on msn, or PM me here, Keep in mind It won't have smilies nor will It automatically have the user names :P
-
Re: Chat Ban [V2] Well most users have different chat rooms, I have my own but I don't think I am showing It off. I will try and make one for you all :D
-
Re: Chat Ban [V2] Sorry, I forgot Haunted Dawg helped me with a few errors, so If you give me a +1 make sure he gets one as well :)
-
Re: Chat Ban [V2] Screenies
-
Re: Chat Ban [V2] Then open smenu.php and add these links in the "punishments area" > [url='staff_punit.php?action=chatform']Chat Ban User[/url] > [url='staff_punit.php?action=unchatform']Un-Chat Ban User[/url] Then open global_func.php and find function forumb_user_dropdown($connection,$ddname="user",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM users WHERE forumban > 0 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; } Under that add function chatb_user_dropdown($connection,$ddname="user",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM users WHERE chatban > 0 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; } Lastly Open Up your chat page and find include "globals.php"; Under that add if($ir['chatban']) { die("<font color=red><h3>! ERROR</h3> You have been banned from chat for {$ir['chatban']} days. [b]Reason: {$ir['chat_reason']}</font>[/b]"); } And thats It, If you have any improvements, comments or questions feel free to speak :D
-
For those who have chat room, you might want to add this, Because while your members are forum banned and mail banned they can still act a fool on chat. This Is going to go Into two as It might not fit In one post! First Off add the SQL ALTER TABLE `users` ADD `chatban` int(11) NOT NULL default '2' ALTER TABLE `users` ADD `chat_reason` varchar(255) collate latin1_general_ci NOT NULL default '', open your staff_punit.php And find case 'massjailip': mass_jail(); break; Add Under case 'chatform': chat_user_form(); break; case 'chatsub': chat_user_submit(); break; case 'unchatform': chatb_user_form(); break; case 'unchatsub': unchat_user_submit(); break; Then find $h->endpage(); And above It add function chat_user_form() { global $db,$ir,$c,$h,$userid; print "<h3>Chat Banning User</h3> The user will be banned from the chat room. <form action='staff_punit.php?action=chatsub' method='post'> User: ".user_dropdown($c,'user',$_GET['ID'])." Days: <input type='text' name='days' /> Reason: <input type='text' name='reason' /> <input type='submit' value='Chat Ban User' /></form>"; } function chat_user_submit() { global $db,$ir,$c,$h,$userid; $_POST['reason']=$_POST['reason']; $re=$db->query("UPDATE users SET chatban={$_POST['days']},chat_reason='{$_POST['reason']}' WHERE userid={$_POST['user']}"); event_add($_POST['user'],"You were banned from chat for {$_POST['days']} day(s) for the following reason: {$_POST['reason']}",$c); print "User Chat Banned."; stafflog_add("Chat Banned User ID {$_POST['user']} for {$_POST['days']} days"); } function chatb_user_form() { global $db,$ir,$c,$h,$userid; print "<h3>Un-Chat Banning User</h3> The user will be taken out of chat ban. <form action='staff_punit.php?action=unchatsub' method='post'> User: ".chatb_user_dropdown($c,'user')." <input type='submit' value='Un-Chat Ban User' /></form>"; } function unchat_user_submit() { global $db,$ir,$c,$h,$userid; $db->query("UPDATE users SET chatban=0 WHERE userid={$_POST['user']}"); print "User un-chat banned."; event_add($_POST['user'], "You were unbanned from chat. You can now use it again.", $c); stafflog_add("Un-chat banned user ID {$_POST['user']}"); }
-
Re: Out Of curiousity Haha ok thanks guys