Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: The Destroyers   bolocks mate! you cant code to save your life
  2. Re: [mccode v2] Preferences   He hasn't necessarily learned AJAX, just applied it. Good job m8.
  3. Re: [mccode v2] Preferences radio, with that code example there are be things wrong. Someone could change their name to -_1'#?#'!"??"$^. It makes sence to limit the chars; limiting can be done by using preg_match and something like this (im not good with regex) "^[a-zA-z0-9_]" which would only allow aplha numeric and _ chars..
  4. POG1

    Merry Christmas

    Re: Merry Christmas  
  5. Re: [mccode v2] Player of the week... everyone is all ways learning ;)
  6. Re: The Destroyers i can only see 10 online, let alone 200...
  7. Re: [showcase] D4rk-Forces   http://www.overstock.com/Clothing-Shoes ... oduct.html its ladies shoes silly!!
  8. POG1

    Merry Christmas

    Re: Merry Christmas Merry Christmas to you yo to! 8-)
  9. Re: [mccode v2] Preferences   What OS are you running? DOS?
  10. Re: Working Proxy Blocker - Blocks MOST Proxies [$10]   lol goog mod ;)
  11. I decided to give a free game template, it has no "fancy" graphics but i think it looks nice! I have created login pages and the in game template. I uploaded the folder to filefactory (if someone knows a better website please tell me) the download link will be down the page. Here is the link. http://www.filefactory.com/file/a000g5b/n/POG1_tar_gz Here are some screen shots; Register http://img78.imageshack.us/img78/7807/s ... onmze8.png In Game http://img522.imageshack.us/img522/6121/ingamefh6.png Demo http://pog1.co.cc/TEMPLATE/   Can people post improvements for the next! Hope you enjoy 8-)
  12. Re: [mccode v2] Player of the week... what i was thinking would be to use a function that generates the players name and colours it and adds images. function getName ($id) { $user = mysql_fetch_object("GET THEIR DETAILS"); if($user->donatordays == 0 AND $user->user_level == 1) { $type = "Player"; } if($user->donatordays AND $user->user_level != 1) { $type = "Donator"; } if($user->playerOfTheWeek == $user->$ir['userid']) { $type = "Featured"; } if($user->user_level < 1) { $type = "Staff"; } return '<span style="'.$type.'">'.$user->username.'</span>'; } something along the lines of that ;)
  13. Re: Mod request $result = $db->query(sprintf("SELECT COUNT(*) FROM gangswars WHERE gangid = '%u'",$ir['gang']); $numGangs = $db->num_rows($result); // tax per extra war $taxCost = 5; $tax = ($taxCost * $numGangs);   this would most probably not work but its a guideline
  14. Re: Calling it a Day :) bye.. merry Christmas
  15. Re: [mccode v2] Item sell code revamp ~ Last of the lot i normally use a function when using strings. function cleanString($string) { return ereg_replace("[^A-Za-z0-9 _]", "", $string); }
  16. POG1

    template engine

    With some websites i have noticed that you can create templates and i thought it would be good to have it with mccodes. The only problem is i don't know how to do it, the first idea was to get the template file contents and split it up. Somethng like this. with each section in the test.tpl having {NEXT-SECTION} to mark the end of the section.   <?php $template = "test.tpl"; $contents = file_get_contents($template); $page = explode("{NEXT-SECTION}",$contents); class page { function headers() { global $page; echo $page[0]; } function menuArea() { global $page; echo $page[1]; } function end() { global $page; echo $page[2]; } } $p = new page; $p->headers(); $p->menuArea(); echo 'PAGE CONTENT'; $p->end(); ?>   I also found somewhere something very simple, but it dosent work :( Could someone give some ideas as to what would be the best way to do this.. <?php $file = "test.tpl"; $contents = file_get_contents($file); $website_tpl = 'something'; $text = preg_replace('/\{(\w+)\}/e', '$$1_tpl', $TEMPLATE); echo $text ?>
  17. Re: [mccode] Advanced IP Tracking $ip = $_SERVER['REMOTE_ADDR']; $ip = mysql_real_escape_string($ip); An IP adress is a number, try setting it as an integer.
  18. POG1

    Php Image Table

    Re: Php Image Table cant you use the free version from their site?
  19. Re: [mccode v2] Player of the week... This is a very good idea and i think the user should have a coloured name so the others now who the player of the week is. You could use a function that gives a coloured name, just a simple function
  20. Re: Updated forums [mccodes v2]   Completely secure with that, absolutely NO WAY that ANYWAY could hack into those brilliant forums that were coded so securely. As long as you have that. :lol: Duuuudeeeee you are soo incorrect, lol! The most secure files may be 99% secure, but there is always the 1% chance or so. Thats why banks employ "Programmers" to attempt to hack into there online sites and if they find a whole they patch it. And i assure you, the code used to make those online banking sites is x10000 more secure then any MCcode file. Just so we have that clear xD its not hard to create a 100% secure page, here is an example;   nothing can be hacked there!
  21. Re: [mccode v2] Simple Login,Register,etc. (Validated.....) height 100% will only make the container the height of the window.. The layout could be widened for use with an in game layout..
  22. Re: Little help, I'm recieving an error from a custom code very good using clases but on the first few lines of it is where your going wrong. Try having everything inside the class wrapped in a function, so instead of getting a file on error posting an error message. There are many tutorials and examples on the internet which you can learn from/
  23. Re: Review Mafia Wars   well spoken.. but be serious, why should he spend $3 on web hosting when he can buy a pack of pokemon cards?
  24. Re: Obligatory Introduction Very nice design!
  25. Re: [MCCodes V2] Maximum Money - Please help! Showing rows 0 - 4 (5 total, Query took 0.0003 sec) SELECT * FROM `users` LIMIT 0 , 30   I didn't use a semi colon, although you are correct that it is needed in normal SQL statements.
×
×
  • Create New...