
Karlos
Members-
Posts
951 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Karlos
-
Re: [mccode v2] userADS Screenshots?
-
Re: Guess the next poster >.< Your getting good, how long can you hold it up for? ArmageddonDude next? (Like always)
-
Re: 3 Word Game and started to.......!!!!!!!!!!
-
Re: Guess the next poster Karlos commits suicide for the 1,001 time today! ArmageddonDude next?
-
Re: 3 Word Game morning as she
-
Re: Guess the next poster No, Never Karlos commits suicide for the 1,000 time today! ArmageddonDude next?
-
Re: One Big Code! ?> <h2> Wooo! </h2> <?php require_once (DIRNAME(__FILE__) . '/globals.php'); /* Sleepy Sleepy Sleep */ echo '
-
Re: 3 Word Game sun at three
-
Re: Guess the next poster Big ears...Are you trying to offend me? :lol: Zero next.
-
Re: [mccode v2] User Search Hmm..Very Nice, might use it to replace my advanced search....also well coded +1
-
[mccode v2] Themecreator 100% Completed Working Copy
Karlos replied to Uridium's topic in Free Modifications
Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy Yup. -
Re: [mccode v2] View Donators Yup i did reply to her and she says "Hey CE you lot okay?; x"
-
Re: [V2] View Donators Why thank you. Thats what i believe in theres no need to mix it really.
-
I am aware that a viewdonators.php has be made before, but i decided to code a new one. This is all what you need to do. Create 1 PHP File Edit 1 PHP File Right lets start with the PHP file first. Create a file called viewdonators.php and add this to it: <?php /* View Donators Made By Karlos MC Codes V2 Date Made: 08 Nov 2008 Free For CE Members */ include (DIRNAME(__FILE__) . "/globals.php"); ?> <h1><?php echo ($set['game_name']); ?> Donators</h1> <table border='1' width='85%' class='table' cellspacing='0' cellpadding='2'> <tr> <th>User</th> <th>Gender</th> <th>Level</th> <th>Money</th> <th>Donator Days Left</th> <th>Status</th> </tr> <?php $ViewDonators = ( "SELECT userid, username, gender, level, money, donatordays, laston " . "FROM users " . "WHERE (donatordays > 0) " . "ORDER BY donatordays DESC" ); $vd = $db->query($ViewDonators); while($r = $db->fetch_row($vd)) { if($r['laston'] >= time()-15*60) { $on="<font color='green'>Online</font>"; } else { $on="<font color='red'>Offline</font>"; } ?> <tr> <td style='text-align:center;'><?php echo sprintf("[url='viewuser.php?u=%u'][b]%s[/b][/url] [%u]", $r['userid'], $r['username'], $r['userid']); ?> </td> <td style='text-align:center;'><?php echo $r['gender']; ?></td> <td style='text-align:center;'><?php echo number_format($r['level']); ?></td> <td style='text-align:center;'><?php echo "\$".number_format($r['money']); ?></td> <td style='text-align:center;'><?php echo number_format($r['donatordays']); ?></td> <td style='text-align:center;'><?php echo $on; ?></td> </tr> <?php } ?> </table> <?php $h->endpage(); ?> And save viewdonators.php Open explore.php and just place this in to it somewhere: [url='viewdonators.php']View Donators[/url] And save explore.php Screenshot Works 100% as its running on my game and their is NO need to edit this file.
-
Re: [Mccode V2]Admin Shops wow... i dislike the opening and closing makes it look messy, just my professional opinion (well basic opinion lol)... Well said that it is your personally opinion, i personally like to do that now.. Why thank you zero.
-
Re: [Mccode V2]Admin Shops Why thank you Alabama. Just keep coding :-)
-
Re: [Mccode V2]Admin Shops I can understand where your point of view lies. +1 For the idea Sniks +1 For those questions AlabamaHit
-
Re: [Mccode V2]Admin Shops Well thats your view....Im sure killah, zero and MTG all have their styles, but im comfortable with that one :-)
-
Re: [Mccode V2]Admin Shops 1) Whats the point putting html tables in php tags? Personally it makes no sense. 2) To stop Karlos\'s Kinife...Whereas with stripslashes it would just be Karlos's Knife 3) If you have alot of shops on a game numbers can be displayed as 1224...with number_format it will be displayed as 1,224
-
Re: [Mccode V2]Admin Shops Personally i think its: Easier to read Easier to find bugs/errors Uses number_format Uses stripslashes No need to put html tables in a php tags
-
Re: [Mccode V2]Admin Shops UNTESTED I personally would use <?php require (DIRNAME(__FILE__) . '/globals.php'); if($ir['user_level'] == 1) { echo 'You are not authorized to view this page!'; $h->endpage(); exit; } else { $getinfo = sprintf( "SELECT shopID,shopLOCATION,shopNAME,shopDESCRIPTION " . "FROM shops " . "ORDER BY shopID DESC" ); $doinfo = $db->query($getinfo); ?> <table> <tr> <th>Shops ID</th> <th>Shops Location</th> <th>Shops Name</th> <th>Shops Desc.</th> </tr> <?php while ($shops = mysql_fetch_array($doinfo)) { ?> <tr> <td style='text-align:center;'><?php echo number_format($shops['shopID']); ?></td> <td style='text-align:center;'><?php echo number_format($shops['shopLOCATION']); ?></td> <td style='text-align:center;'><?php echo strip_slashes($shops['shopNAME']); ?></td> <td style='text-align:center;'><?php echo strip_slashes($shops['shopDESCRIPTION']); ?></td> </tr> <?php } ?> </table> <?php } $h->endpage(); ?>
-
Re: [Mccode V2]Admin Shops Nope it allows admins to see all shops on the game..and where....what it's called....and what the description is... 1) Nice one sniks... 2) Are though you only used print 3) What is all the echo's for on each line?
-
Re: Stats Page 1. What is "Ggl" 2. Maybe Someone has more(much) money than anyone...I had this problem once, more users need money.
-
Re: [V2]New Edit user Use if($ir['user_level'] > 3) { echo '403'; $h->endpage(); exit; }
-
Re: [mccode] Voting token exchange I would personally re-write that query as $Tokens = sprintf( "UPDATE `users` SET `health` = `maxhealth`, `votetokens` = `votetokens` - '%d', WHERE (`userid` = %u)", 2, $userid); $db->query($Tokens);