-
Posts
1,660 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Jordan Palmer
-
There seems to be some confusion off who designed the template. We'll have to ask PaddyTM
-
I use that too connect to CE'S IRC, However I'm not sure I'd like it on my game (Well IRC but I'd use that to connect)
-
Why? (Not challenging you, genuinely curious) Quite a good question, However I know you know xD Anyway abs(); only does half the job of ''securing'' the number, either intval(); or floatval(); is required to completely secure the number. The reason I did intval is simple too, A whole number is expected, Floatval(); Always decimals and considering where using it on a Points market I doubt decimals need to be there
-
Hey all. Well as most know, I'm in the middle off finishing developing my new game, And I've stumbled across an issue. I have too pick which chatroom too use, I'm really not clever at picking the best so I'd thought I'd ask what everyone else is using. And why you're using that particular chatroom service, Please also post where too download/purchase from as I'm sure alot off people are having this issue. If you know any downsides to them please also let us know, Try and follow this post template ---------------------------------------------------------------------------------------------------------------------------------------------------------- POST TEMPLATE ----------------------------------------------------------------------------------------------------------------------------------------------------------- Chatroom Name; Chatroom Version; Good points/bad points; Rating (/10); Demo link; Site link(To purchase from); ------------------------------------------------------------------------------------------------- END ---------------------------------------------------------------------------------------------
-
While I agree, You could well do use an IRC integrated chat room However I don't use it for a number off reasons I'm not keep on IRC Alot off people aren't keep on IRC Most can be spammed You cannot delete single line But as I said, It's a good idea, Just has alot off downsides as most chat server/platforms ;(
-
http://www.scarletgraphics.com/
-
would any1 like this in there game?
Jordan Palmer replied to corruptcity || skalman's topic in General Discussion
Sounds nice. I may buy =] -
Thats what I've done. I think it's better =] Its got all the features a chatroom should have :rolleyes:
-
I have added a screen shot 8o to prove this script is fully working for me..
-
Why did you have to remove formatter(); function? It should work. It did for me. I'll have to re-take a look -_- Thank's though
-
As I said, This sounds interesting sniko, I hope you keep at it and get a good result :P
-
Lmao xD
-
Firstly replace all your [mysql] $_POST['amount'] = abs((int) $_POST['amount']); $_POST['points_id'] = abs((int) $_POST['points_id']); [/mysql] With.. [mysql]$_POST['amount'] = abs(intval($_POST['amount'])); $_POST['points_id'] = abs(intval($_POST['points_id'])); [/mysql]
-
Redex; you know him lol, He was on DF @others; Sniko is a good guy, Pretty nice coder too =] Welcome back sniko, Hit me up if yaz need owt mate :)
-
I created the template, not the mascots on the upper right corner of it.. Though i made the template even ask Paddy the old owner.. Even I thought Scarlett had done the template. @Immortal; Taxed seems decent =]
-
Have you added anymore CSS in the file?
-
Welcome back bro =]
-
Didn't think off doing that. Thanks CT =]
-
I've tested this on MCCodes and it runs fine, Replace the files again, make sure you have a gang ect @CJ; You can change the colours through the /gangs/ folder
-
Well I have a working version now so everyone else should have one =]
-
Nope, $str represents the string/value =] Good question though :P
-
Took a look, Fixed it up =] <?php include_once (DIRNAME(__FILE__) . '/globals.php'); $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? trim($_GET['action']) : 'index'; switch($_GET['action']) { case 'banned': fedded(); break; case 'forum': forum_banned(); break; case 'mails': mail_banned(); break; default: index(); break; } if (!in_array($_GET['action'], array('banned','forum','mails','index'))) { echo "[b]Invalid Action.[/b]"; $h->endpage(); exit; } function formatter($str) { return is_numeric($str) ? number_format($str) : htmlentities(stripslashes($str)); } function index() { print "<h3>Jail Management</h3> "; global $db; $feddedusers = $db->fetch_single($db->query("SELECT COUNT(`userid`) FROM users WHERE (fedjail = 1)")); $mailbanned = $db->fetch_single($db->query("SELECT COUNT(`userid`) FROM users WHERE (mailban > 0)")); $forumbanned = $db->fetch_single($db->query("SELECT COUNT(`userid`) FROM users WHERE (forumban > 0)")); echo "<table class='table' width='50%'>"; echo "<tr>"; echo "<th>[url='?action=banned']Federal Jail[/url]</th>"; echo "<td style='text-align:center;'>".$feddedusers."</a></td>"; echo "</tr>"; echo "<tr>"; echo "<th>[url='?action=mails']Mail Banned[/url]</th>"; echo "<td style='text-align:center;'>".$mailbanned."</td>"; echo "</tr>"; echo "<tr>"; echo "<th>[url='?action=forum']Forum Banned[/url]</th>"; echo "<td style='text-align:center;'>".$forumbanned."</td>"; echo "</tr>"; echo "</table>"; } function fedded() { global $db,$r,$h; echo ' <h3 style="text-align: left; text-decoration: underline;">Ferderal Jail</h3> <table border="1" width="100%" class="table" cellspacing="0" cellpadding="2"> <tr style="text-align:center;"> <th>Who</th> <th>Time Left</th> <th>Reason</th> <th>Jailer</th> </tr> '; $Find = $db->query("SELECT f.fed_userid, f.fed_days, f.fed_reason, u.username, " . "uu.userid AS fed_jailer_id, uu.username AS fed_jailer " . "FROM fedjail f " . "LEFT JOIN users u ON f.fed_userid=u.userid " . "LEFT JOIN users uu ON f.fed_jailedby = uu.userid " . "WHERE f.fed_days > 0 ORDER BY f.fed_days ASC"); while($r = $db->fetch_row($Find)) { echo ' <tr style="text-align:center;"> <td>[url="viewuser.php?u='.$r['fed_userid'].'"]'.formatter($r['username']).'[/url]</td> <td>'.formatter($r['fed_days']).' Days</td> <td>'.formatter($r['fed_reason']).'</td> <td>[url="viewuser.php?u='.$r['fed_jailer_id'].'"][b]'.formatter($r['fed_jailer']).'[/b][/url] ['.$r['fed_jailer_id'].']</td> </tr> '; } echo '</table>'; } function mail_banned() { global $db,$r,$h; print '<h3 style="text-align: left; text-decoration: underline;">MailBanned Users</h3> <table border="1" width="100%" class="table" cellspacing="0" cellpadding="2"> <tr style="text-align:center;"> <th>Who</th> <th>Time Left</th> <th>Reason</th> </tr> '; $q=$db->query("SELECT `userid`,`username`,`mailban`,`mb_reason` FROM `users` WHERE `mailban` > 0 ORDER BY `mailban` DESC"); while($r=$db->fetch_row($q)) { print " <tr> <td>[url='viewuser.php?u=".$r[']".formatter($r['username'])."[/url]</td> <td>".formatter($r['mailban'])."</td> <td>".formatter($r['mb_reason'])."</td> </tr>"; } echo "</table>"; } function forum_banned() { global $db,$r,$h; print '<h3 style="text-align: left; text-decoration: underline;">Forumbanned Users</h3> <table border="1" width="100%" class="table" cellspacing="0" cellpadding="2"> <tr style="text-align:center;"> <th>Who</th> <th>Time Left</th> <th>Reason</th> </tr> '; $q=$db->query("SELECT `userid`,`username`,`forumban`,`fb_reason` FROM users WHERE `forumban` > 0 ORDER BY `forumban` DESC"); while($r=$db->fetch_row($q)) { print "<tr> <td>[url='viewuser.php?u=".$r[']".formatter($r['username'])."[/url]</td> <td>".formatter($r['forumban'])."</td> <td>".formatter($r['fb_reason'])."</td></tr>"; } echo "</table>"; } $h->endpage(); ?>
-
There a lot of guys. I guess its all based on your budget :P
-
Most game's wont have that, So filtering the outputs right now is the best option. At least this way they only have too replace one file =]
-
A number off things really - Removed the nl2br(); function as it's not needed - Removed all the htmlspecialchars(); function and defined htmlentities(); in the formatter function - Renamed the function so it wont collide with format();