-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
mccode v2 advanced properties mod crital error
sniko replied to boionfire81's topic in Modification Support
Is this a report on my advanced property modification? http://mccodes.com/viewmod.php?id=104 -
Is this a report on my farming modification? http://mccodes.com/viewmod.php?id=43
-
I may submit an entry if I can after the contest? I won't have time during 09-16 March to work on it :(
-
They bought the source of some guy and changed the theme. I have notes about this on my laptop at home.
-
So they can pay for their bills and profit off just 1 client...?
-
Very interesting! Will have my eyes open and probably play with some of the products produced. I don't think I'll have the time to compete myself though, sadly.
-
What is the value of _seconds?
-
Just like... var _seconds = <?= $infed['fj_time'] - time() ?>; Or did you mean something else?
-
Ah you grabbed it before my edits. See this post again, and reimplement.
-
fj_time = 1481690974 time() = 1452173271 fj_time - time() = 29517703 seconds https://jsfiddle.net/b0fyrdt8/ (which gives the correct countdown) How are you implementing it?!
-
Easy fix. I didn't notice on line 3 it was subtracting the current time on NSC post The original calculations are wrong I've addressed the above bullet points in this post. This should solve your problems. <script type="text/javascript"> var _seconds = <?= $infed['fj_time'] - time() ?>; var counter = setInterval(timer, 1000); //1000 will* run it every 1 second function timer() { _seconds = _seconds - 1; if (_seconds == -1) { clearInterval(counter); return; } var days = Math.floor(_seconds / 86400); var hours = Math.floor((_seconds % 86400) / 3600); var minutes = Math.floor(((_seconds % 86400) % 3600) / 60); var seconds = ((_seconds % 86400) % 3600) % 60; document.getElementById("clock").innerHTML = days + " days " + hours + " hours " + minutes + " minutes and " + seconds + " seconds"; } </script>
-
What is the value you're expecting? Can you give me the value of fj_time for this account?
-
Ok, then most likely it's counting down from the unix timestamp (ie: 1452158818; which is over 46 years). Assuming fj_time is the time in the future, then do the following; <script type="text/javascript"> var count = <?= $infed['fj_time'] - time() ?>; var now = Math.floor(new Date().getTime() / 1000); count = count - now; var counter = setInterval(timer, 1000); //1000 will* run it every 1 second function timer() { count = count - 1; if (count == -1) { clearInterval(counter); return; } var seconds = count % 60; var minutes = Math.floor(count / 60); var hours = Math.floor(minutes / 60); var days = Math.floor(hours / 24); minutes %= 60; hours %= 24; document.getElementById("clock").innerHTML = days + " days " + hours + " hours " + minutes + " minutes and " + seconds + " seconds"; } </script>
-
Please see the original post :) Unsure if it's still valid, but; Signup to Pusher and enter coupon code SNIKO_REALTIME_50 when upgrading your package for a free 50$
-
What is the value of fj_time? A timestamp or date string? I'd redo your gettimeleft function, it's hideous... (here, I've done it for you) Which countdown timer solution are you using? [uSER=70347]NonStopCoding[/uSER] one is for the amount of seconds [uSER=71587]~Rob0t[/uSER] one is the ending timestamp gettimeleft function:http://makewebgames.io/forum/ge...039#post375039
-
It doesn't matter if you didn't code it; it's your project, maintain your files! Because mysql_* is deprecated (and now officially dropped in PHP 7). If you (or your host) upgrades your PHP version, your application will not work. Can you create a MCVE? You're pasting way too much irrelevant code, so I won't help with all that noise. Plus, what's wrong with NonStopCodings' version: http://makewebgames.io/forum/ge...654#post278654 ~Rob0ts' version: http://makewebgames.io/forum/ge...701#post278701 Your version: http://makewebgames.io/forum/ge...734#post278734 Or were they not as plug-in-and-do-nothing as you'd like?
-
Ah shame! I'll try a couple tonight and come back to you Hmm. Unlikely, unless this is just with the IRC protocol, as Gitter and Slack doesn't lose its connection
-
Explain, in detail, what your problem is now. Also, your brain_file.php is laughable, sorry (not sorry) Please stop using mysql_*!
-
I did used to use one for my iPad - it's been a while, but I think it was IRCCloud
-
It doesn't really. http://i.imgur.com/Bbq1Hio.png I think what [uSER=64603]Sim[/uSER] and I were looking for was something like the Latest Activity/What's New with the old vBulletin version (http://web.archive.org/web/201504160...m/activity.php)
-
Will upload the files to a cloud storage service later (not as .zip). That should then resolve your issues.
-
I don't feel it's double content with it being in the side bar, as the side bar is on the main forum screen, and there is an extra link to view [more] latest activity. I have raised the issue with latest activity only showing latest topics (and not replies) with [uSER=52003]Dave Macaulay[/uSER]
-
ZPlague - Zombie Survival Text-Based MMORPG (Pre-Alpha)
sniko replied to flixbeat's topic in Game Projects
This looks great! Keep us updated