-
Posts
2,142 -
Joined
-
Last visited
-
Days Won
148
Content Type
Profiles
Forums
Events
Everything posted by Magictallguy
-
Enabled and added :)
-
FAZOOTHY! :D How be you? :)
-
I remember you as LostOne. Good to see (read from) you again :)
-
HA! DJKanna! :P You mean to tell me that v3 hasn't been released yet?!
-
This is true, which is why I'm, once again, completely recoding MC Craps (HA!)! It's a nice project for me, and already runs much smoother than MC Craps (HA again!) ever did. Project status can be found on my site: Magictallguy.tk
-
Well said sir, well said! I've had a look at your engine (the demo version). I like the idea, but I don't like your style. No offense, of course. Your code is clean and efficient. It's just not what I'm used to seeing (I'm autistic and don't deal with change very well). So, for the time being whilst I get used to it, I don't like it xD
-
Well, thank you all. Made me smile to see you all (almost have happy tears lol). It's nice to know I was appreciated ^.^ Sniko, thank you! +1! illusions, silly man! xD
-
Aye, I remember you. I doubt I'll be LiveStreaming again - don't think the family could stand it lol
-
After 2 years of homelessness (thanks Mother -.-), 2 more years of family taking priority, I'm back! I'm currently limited to the MC Codes as that's all I remember after 4 years of inactivity. Back to learning! I suppose, it'll be interesting to see how the PHP standards have changed ^.^ Magictallguy
-
[mccodes v2] Combined Gallery and Comment System [$40.00]
Magictallguy replied to Magictallguy's topic in Paid Modifications
Old ass post but I thought I'd raise the dead.. I, personally, don't remember creating a CSS Administration mod - but if I did, it's something I'd release free anyway. As for anyone who bought the gallery mod, you are still entitled to your refund! Send me an email with your details and, once confirmed, I will send you a full refund! [email protected] -
My stylesheets won't be on here.. They were for use on my site(s) when they were up and running - of which they no longer are. If you really want my stylesheets... Well, it ain't gonna happen. I'm not rewriting them for a job I no longer do
-
I've given you a link on MSN
-
Getting back on topic.. The header() code would simply redirect you to robbery.php You would need an if() statement, tertiary statement, or similar code to determine whether the user has more than just criminal.php in their URL
-
If they'd patched up the damn code in the first place, they wouldn't need to do this, what 2 - 3 years down the line?
-
Please wrap your code in code tags! As for the event_add failing, this doesn't surprise me. The event_add() can be found in global_func.php, yet I see no call for that file ;)
-
SamZ is a well-known scammer, I would recommend breaking all contact with him and leaving a public notice on it, as to prevent similar victimizations in the future.
-
== "Weapons") { $shopname = "If its Weapons you need your here"; $from = "items"; $type = "weapon > '0'"; $show = 100; } elseif ($_GET == "Armour") { $shopname = "Our Best Armour Shop"; $from = "items"; $type = "armor > '0'"; $show = 100; } elseif ($_GET == "Medical") { $shopname = "Our Best Medical Supplies Shop"; $from = "items"; $type = "itmtype = 'ID OF ITEM TYPES FOR MEDICAL ITEMS'"; $show = 100; } else { echo"<h1> this shop dont exsist</h1>"; die(); } $res = mysql_query("SELECT * FROM $from WHERE $type ORDER BY itmbuyprice ASC") or die(mysql_error()); echo "<p class=\"heading\">$shopname</p>"; echo "<table style=\"margin: 0 auto 0 auto; border: solid #292929 0px; width: 90%;\"> <tr style=\"background-color: #6fde45;\"><td style=\"width: 1px;\"><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Img</p></td> <td><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Item</p></td> <td><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Price</p></td> <td><p style=\"margin: 0 0 0 0; font-weight: bold; color: #ffffff;\">Buy</p></td></tr>"; while ($row = mysql_fetch_array($res)) { if ($row[itmbuyable] == 0) continue; $rfc = mt_rand(0, 100); if ($show < $rfc) continue; if (!$i) { $bg = "#ffffff"; $i = 1; } elseif ($i) { $bg = "#ececec"; $i = 0; } $imageuri = $row[itempic]; if (!$imageuri) $imageuri = "images/items/default.jpg"; echo "<tr style=\"background-color: $bg;\"><td><p style=\"margin: 0 0 0 0;\"><img src=\"$imageuri\" title=\"$row[itmdesc]\" style=\"height: 45px;\" /></p></td> <td><p style=\"margin: 0 0 0 0;\"><a href=\""; if ($from == "items") echo "item"; else echo "weapon"; echo "info.php?ID=$row[itmid]\">$row[itmname]</a></p></td> <td><p style=\"margin: 0 0 0 0;\">$". number_format($row[itmbuyprice]) ."</p></td> <td><p style=\"margin: 0 0 0 0;\"><a href=\"item"; if ($from == "items") echo "buy"; else echo "buy"; echo ".php?id=$row[id]\">Buy</a></p></td></tr>"; } echo "</table>"; $h->endpage(); ?> Just to be annoying, and keep my word - recoded towards my personal preferences <?php include(DIRNAME(__FILE__) . '/globals.php'); $pages = array('Weapons', 'Armour', 'Medical'); if(!in_array($_GET['page'], $pages)) { echo "This shop does not exist!"; $h->endpage(); exit; } if($_GET['page'] == "Weapons") { $shopname = "If its Weapons you need you're here"; $from = "items"; $type = "weapon > 0"; $show = 100; } else if($_GET['page'] == "Armour") { $shopname = "Our Best Armour Shop"; $from = "items"; $type = "armor > 0"; $show = 100; } else if($_GET['page'] == "Medical") { $shopname = "Our Best Medical Supplies Shop"; $from = "items"; $type = "itmtype = 'ID OF ITEM TYPES FOR MEDICAL ITEMS'"; $show = 100; } $res = $db->query(sprintf("SELECT * FROM %s WHERE %s ORDER BY itmbuyprice ASC", $from, $type)); echo "<p class='heading'>".$shopname."</p> <table style='margin: 0 auto 0 auto; border: solid #292929 0px; width: 90%;'> <tr style='background-color: #6fde45;'> <td style='width: 1px;'><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Img</p></td> <td><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Item</p></td> <td><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Price</p></td> <td><p style='margin: 0 0 0 0; font-weight: bold; color: #ffffff;'>Buy</p></td> </tr>"; while($row = $db->fetch_row($res)) { if(!$row['itmbuyable']) continue; $rfc = mt_rand(0, 100); if($show < $rfc) continue; if(!$i) { $bg = "#ffffff"; $i = 1; } else { $bg = "#ececec"; $i = 0; } $imageuri = $row['itempic']; if(!$imageuri) $imageuri = "images/items/default.jpg"; echo "<tr style='background-color: $bg;'> <td><p style='margin: 0 0 0 0;'>[img=".$imageuri."]</p></td> <td><p style='margin: 0 0 0 0;'><a href='"; echo ($from == "items") ? "item" : "weapon"; echo "info.php?ID=".$row['itmid']."'>".$row['itmname']."</a></p></td> <td><p style='margin: 0 0 0 0;'>$". number_format($row['itmbuyprice']) ."</p></td> <td><p style='margin: 0 0 0 0;'>[url='itembuy.php?id=".$row[']Buy[/url]</p></td> </tr>"; } echo "</table>"; $h->endpage(); ?>
-
I've been busy finding a place to live - I got kicked out of my old place and disowned by my mother 11 months ago - only just managed to find a decent place to live with internet access
-
And what the hell gives you the right to put others down? Alright, we get it, you can code. You were worse than he is a one point, and you didn't like it when others put you down. Heck, I had to council you once just to get you back into WebDev'ing. Get off your high horse, and start appreciating people for who they are, and not their skill level in Website Development.
-
In my defence, all I did was recode the standard MC Craps v2 forums.php, I didn't add any aestehic updates. You want those? Find a decent graphics designer
-
<?php function gang_staff_pic() { global $db, $ir, $c, $userid, $gangdata; if($gangdata['gangPRESIDENT'] != $userid) { echo "You are not the gang leader"; $h->endpage(); exit; } if(isset($_POST['vp'])) { if(empty($_POST['vp'])) { print "You did not enter a new pic. [url='yourgang.php?action=staff']> Back[/url]"; $h->endpage(); exit; } if(!preg_match('~(.?).(jpg|jpeg|gif|png)~i', $_POST['newpic'])) { echo "Invalid Extension!"; $h->endpage(); exit; } if(@getimagesize($_POST['newpic']) === FALSE) { echo "Invalid Extension!"; $h->endpage(); exit; } $_POST['vp'] = str_replace(array(".php"), array(""), $_POST['vp']); $_POST['vp']=str_replace('\\\'','\'', $_POST['vp']); $_POST['vp'] = $db->escape($_POST['vp']); $db->query("UPDATE gangs SET gangPIC='{$_POST['vp']}' WHERE gangID={$gangdata['gangID']}",$c); print "Gang pic changed! [url='yourgang.php?action=staff']> Back[/url]"; } else { print "Current Pic: "; if($gangdata['gangPIC']) { print "[img=".htmlspecialchars(stripslashes($gangdata[]"; } else { print "[b]No Gang Picture[/b]"; } print"<hr /><form action='yourgang.php?action=staff&act2=pic' method='post'> Please note that the pic must be externally hosted, [url='http://tinypic.com']Tinypic[/url] is our recommendation. Any pics that are not 400x100 will be automatically resized. Pic: <input type='text' name='vp' value='' /> <input type='submit' value='Change' /></form>"; } }
-
$whitelist = "the tags here"; You were missing the =
-
Show us lines 8 - 11 of jailshout.php
-
I develop my code to run without magic_quotes(), that and I don't use MC Craps.. So yeah :P
-
You stated re-design, I was just saying it isn't a re-design its a whole new forum base ;) I.e. A redesign ;)