Jump to content
MakeWebGames

Dave

Administrators
  • Posts

    3,368
  • Joined

  • Last visited

  • Days Won

    126

Everything posted by Dave

  1. Dave

    New gTLDs

    So many new domain possibilities. I just purchased http://milk.codes/ for Milk
  2. Good to hear, do you have a preview of the template?
  3. I could just lock the post and win by default ;)
  4. Incorrect Read the OP.
  5. I'd highly suggest checking out sites such as http://flippa.com and https://forums.digitalpoint.com. With that sort of budget you should be able to nab something relatively decent.
  6. I've done the same, got an amazing Steam collection and rarely play them. There needs to be more hours in the day.
  7. Really nice layout once again. I think visualising some of the content can really pull together a design, maybe place in some headings, content text and if you're feeling wild a table?
  8. Was definitely thinking of going this way, thanks for the info.
  9. The engine doesn't determine whether things like CSS3 will be supported. CSS is interrupted by the browser and not the server. I'd suggest buying v2.0.5b as it's supported wider by the community and there are more plugins for it. v2.5 never really went anywhere.
  10. Dave

    Sessions?

    There's another solution holding the last activity in a session and then clearing it. Check this out: http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes
  11. I think you're slightly confused about what he means. Loading a $_SESSION is very quick and not something to worry about. The massive $is query on the other hand is. You can make the request even more efficient by only returning the actual data you need and processing it client side. This looks helpful: http://blog.teamtreehouse.com/beginners-guide-to-ajax-development-with-php
  12. Feel free to use the MWG logo, considering I created it! You could invert the text if you have a white background http://makewebgames.io/images/styles/Luburox_Blue/style/logo.png Edit: Hey look a black version! http://i.imgur.com/eFKKVmx.png
  13. It really depends on your websites needs. If you're running a huge website which really depends on the uptime you're better of getting a managed dedicated/VPS box. If you're playing around or in some form of beta I'd always suggest running your own box so you can tweak them as you see fit. Also depends quite a lot on your budget. Shared hosting is considerably cheaper but will fall over when trying to run larger sites. If you do plan to roll your own go with DigitalOcean! https://www.digitalocean.com/
  14. I meant someone should actually write some docs.... I may include a legacy section in the Milk docs
  15. Dave

    Layout PSD 15$

    Looks good! and great price. Good luck with the sale
  16. I'm really not understanding you.. I think it's best you contact your host. They'll know exactly what's going on instead of my guessing games
  17. Unless you deleted the whole of your WHM/cPanel install it looks like your domain is pointing to another server. Do you have the IP for your old host? Try logging into the cPanel that way.
  18. If you're using 2.0.5b you'll need to set the session name. session_name('MCCSID'); @session_start(); You'll be much better of doing this: <?php $nohdr = true; require_once('globals.php'); From what I can tell $nohdr stops the header being output. Didn't even know this existed! McCodes docs anyone? @ColdBlooded
  19. Think you answered your own problem there then!
  20. The ajax request is an entirely new request to the server. Completely independent of the current page that has been loaded. So you need to initialise all your classes and variables (such as $ir in this case). You might want to optimise the $is query as I just pulled it out of core McCodes and it's rather... inefficient. I doubt you'll need all that data. Edited code in my previous post, realised mine was including the files in the directory above!
  21. If chat_loader.php doesn't have the globals.php file included you'll need to redeclare $ir via some horrible hack. Place this code at the top of your chat_loader.php: if (file_exists('globals_nonauth.php')) { require_once('globals_nonauth.php'); } else { session_start(); require_once("config.php"); global $_CONFIG; define("MONO_ON", 1); require_once("class/class_db_{$_CONFIG['driver']}.php"); $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $set = array(); $settq = $db->query("SELECT * FROM settings"); while ($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } } $userid = $_SESSION['userid']; $is = $db->query("SELECT `u`.*, `us`.* FROM `users` AS `u` INNER JOIN `userstats` AS `us` ON `u`.`userid`=`us`.`userid` WHERE `u`.`userid` = {$userid} LIMIT 1"); $ir = $db->fetch_row($is); You might not need all the code if you've already connected to the database. This code will work for old v2 and v2.0.5b You're probably going to want to do some checks to see if the user is logged in and exists etc.
  22. You're going to need to elaborate slightly here... How did you delete it? Do you have a VPS and you deleted it from WHM? Or did you remove it from your hosts client area? It would appear your site is pointing at a blank VPS with a simple lamp stack. Considering http://battleforce.com:2082 returns nothings same with http://battleforce.com:2083 which would be the standard ports for cPanel. Have you changed your sites DNS recently?
  23. Can see this being a great tool for the community! Could do with a slightly more modern feel. If you need any help just shout [MENTION=65371]sniko[/MENTION]
  24. I do enjoy your professional conduct by posting our private conversations on the forums. I made it clear to you Ian that I made my final decision and I'm sticking by it. You're the only person who has a massive issue with him only receiving a two week ban, after I explained why I had done so you continued to be rude and argumentative. I listened to your points as I would with any other member and I took them into account but they weren't strong enough to make me change my decision. As I've iterated to you about 15 times now. If he continues to show the same negativity towards the community once his ban is lifted he will then receive further punishment. It's entirely unfair to ban someone outright without giving them a chance.
  25. Looks like a rather interesting concept. Shall have to play with it in my lunch break.
×
×
  • Create New...