-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
In your browser; http://game.com/cron_hour.php?code=<code from config.php> In console; php cron_hour.php <code from config.php>
-
What error reporting level are you on? Make it as verbose as possible. If text isn't echo'ing, most likely - from what I remember - the config code is incorrect, I think.
-
Skype message me at around 1900-2100, and I'll look into it for you :) Is error reporting on? Is your config code correct? Can you echo text? Have you run the queries manually, to see if they are syntactically correct? Are the files connected to the database? Triple check your error reporting, and run cd /var/log/httpd/; tail -f error_log in console ...
-
With Javascript you can capture the mouse X and Y; which you can then manipulate. #pseudo code because.... a) Fetch image top leftmost X and Y co-ordinate b) Fetch cursor co-ordinates c) ??? d) Profit.
-
Ghost runs off node.js, whereas Wordpress runs off PHP & (My)SQL. It's not a fork of WordPress at all - it was built from the ground up, which their kickstarter programme boosted. Perhaps you got confused on (and I quote); Superiority for blogging, as this is what OP wanted; Ghost is superior as it's built for blogging. Also, I'd choose Ghost. ProTip: If you go with DigitalOcean, you can create a droplet which has Ghost already installed.
-
plusoneforjson
-
Your branching model is non-existent :/ Please adopt something like this! (It'll help with development!)
-
Charmer! Alias is sniko. Full time API developer and code maintenance for a bespoke order management system. I prefer backend development, although I like to test my abilities with front-end development, making my applications much more dynamic, utilizing libraries such as jQuery, and other 3rd party APIs; such as GoInstant.
-
Awesome. I prefer Git personally, as that's what I use at work (and now for personal private projects, too)
-
Nice one! Are you using version control for this project, such as Git?
-
But; public function timeLeft($ts) { return date('H:i:s', $ts); } Would indicate repeated code, if it was in the extended class (module specific class), would it not?
-
Awesome! However, is getDate module specific, or core specific? It sounds like something that I would put in the core class, rather than a module class. But it's your design, so you choose - as it's just my opinion :)
-
Nice! I'd of had class module { as the parent of all modules, and extended that class for each respective module; class policeChase extends module { Then had core module logic in the module class. :)
-
I came across GoInstant via Twitter, and I really wanted to have a play with their API - especially their live chat system, as it looked awesome! After tweeting about my excitement, they were quick to reply about how excited they were with what I could come up with. Although it's not as huge as I'd like it to be on this release, I wanted to get other developers to start playing around with their API in the MWG community. I also hope to extend this release much further, after I've released a project of mine soon this year. Below are a few screenshots of what I've accomplished in the short amount of time I set myself, which; Supports in-game usernames Supports in-game avatars I really hope to integrate GoInstant into McCodes a lot further, by; Offering a staff panel to open channels Banning people from the chat As in the chat won't render if they're banned [*] Allowing </commands> to be entered in the chat, such as; /join <channel> /leave <channel> /kick <user> /broadcast <message> This will include manipulation on both GoInstant and McCodes, which I feel is very achievable, having worked with the engine for roughly three years. If you've not looked at GoInstant before, this chat is real-time, and awesome! How to integrate it It's very simple to integrate, and I'll dump the code I use, so you can just "plugin-and-chat". Head over to GoInstant and register an account Create an application via the Dashboard Paste the following code into header.php in your McCodes files <script type="text/javascript" src="https://cdn.goinstant.net/v1/platform.min.js"></script> <script type="text/javascript" src="https://cdn.goinstant.net/widgets/chat/latest/chat.min.js"></script> <!-- CSS is optional --> <link rel="stylesheet" href="https://cdn.goinstant.net/widgets/chat/latest/chat.css" /> <script> // Connect URL var url = 'https://goinstant.net/<username>/<application>'; // Connect to GoInstant goinstant.connect(url, {rooms: ['lobby']}, function(err, connection, lobbyRoom) { if (err) { console.log("Error connecting:", err); // Failed to connect to GoInstant return; } //Try and join the lobbyRoom var roomObj = connection.room('lobbyRoom'); roomObj.join({ displayName: '{$ir['username']}', avatarUrl: '{$ir['display_pic']}' }, function(err, yourRoom, userData) { if (err) { console.log("Error joining room:", err); // Failed to join room; clean up or retry. return; } // Joined the room. // Create a new instance of the Chat widget var chat = new goinstant.widgets.Chat({ room: roomObj }); // Initialize the Chat widget chat.initialize(function(err) { if (err) { throw err; } // Now it should render on the page }); }); }); </script> Make sure you change the following to your values; var url = 'https://goinstant.net/<username>/<application>'; And it's as easy as that!
-
If he has access to their game accounts, he will have the power to render their account useless, as he will be welcome to the password change screen. Best way is to make use of the e-mail address they signed up with.
-
SHA-512 is a cryptographic hash function. Cryptographic hash functions are one way - so you're safe (at least for the actual raw passwords, unless MrAshly has a super-computer, or NSA's help, which I doubt.) - so you could force a password reset via the e-mail players signed up with, assuming they're not fake e-mails. He's probably just session stealing - hopefully, as this is a somewhat easy exploit to fix. May I have a game link so I can test my theory? With regards to hashing existing passwords with SHA-512, you'd have to deploy some routine to md5 encrypt, then SHA-512 on certain passwords - which isn't hard to do.
-
Can you possibly provide proof other than your say-so?
-
This. Also, if licensed software, is it a legitimate copy?
-
That's great! I can't wait to see what you come up with :)
-
Great addition, Kyle! I'll add a permalink on OP to this. Now I don't know much about smf's ssi but maybe it provides better usage? Yes. :)
-
Try change: mysql_query("INSERT INTO test123.`smf_members` (`member_name`,`date_registered`,`real_name`,`emai l_address`,`passwd`) VALUES ('{$username}',unix_timestamp(),'{$username}','{$e mail}', '{$password}')"); With mysql_query("INSERT INTO test123.`smf_members` (`member_name`,`date_registered`,`real_name`,`email_address`,`passwd`) VALUES ('{$username}',unix_timestamp(),'{$username}','{$email}', '{$password}')"); Notice I removed the spaces in the word "email".
-
Ah, my bad. Those lines don't give me enough to work with, I though it may include all the if() statements. Can you please post your entire register page (If you're uncomfortable with that, PM me it.) A link to SMF SSI: http://www.simplemachines.org/community/index.php?topic=173483.0 Edit #1 Better text regarding the SSI
-
Could you post lines 200 - 220 from register.php, and I'll assist you? Also is there a way to actually make the forum integrated into the game itself kinda like the forum.php was? Yes, if you use SSI.