-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
And honestly, at a first glance it's ugly as sin. Your login doesn't even match your register page which makes me not even want to register.
-
Before trying to sell I would try and show proof that your purchased his code. From what I gathered from that collab thread there is still about $500 that hasn't been paid. Also just to note that any responses about this should be posted here: http://makewebgames.io/showthread.php/45815-Donnie
-
well I won't take credit haha. Robot actually advised on the preg_replace_callback which I originally advised to possibly not use because of some potential speed performances (which I have not validated(I'm not the biggest fan of performing a benchmark myself)) but with the speed loss (alleged) can come great power. I personally enjoyed the topic since it was pretty constructive for the most part even with such a little task. But I would have to say I kind of agree with sim here on this, and trust me illegalpigeon, I know exactly where you are coming from since I was there haha. But I would have loved to see your input on the matter as well. It it was a good topic it's just too bad the OP wanted it closed because it was going somewhere.
-
Can't, it's lite. But yes, you will have to change to mysqli/pdo for future versions of PHP at some point in time. What you can do is fix some of your error reporting so it doesn't display all of your errors: error_reporting(E_ALL ^ E_DEPRECATED); But this disables all deprecated errors which isn't the best idea either. The best idea is what all has been mentioned above. I did speak to you earlier this morning and I know you are trying to get back into programming a bit and when I mentioned the V1 (lite) mccodes, I failed to mention to you that these errors can show up and that is my bad and I am sorry. But thankfully, if you took my suggestions and installed the software I said, you should be able to roll back your PHP to previous versions. For you, preferably PHP < 5.5.0. In 5.4.* you will still see some deprecated error with ereg* but those are pretty easy to fix using preg*. With th all that said, that should give you a taste of programming again and help you get back in the groove of things.
-
Closed per OP's request. But I would like to end on this note: Regardless of what is claimed to be known vs. what is claimed is not known, I feel this thread could help a lot of people. Regardless of the "array" stuff, I agree with sim here in regards to loosing to see how people would tackle emojis, bccode, and etc. most of these posts did provide alternatives to one another which is great to see especially here.
-
I actually don't know where to find it or who even made it. I have a copy of it on my computer but yours is fine.
-
I would probably use anything with a callback in it. This way overtime as you develop your site more it maybe a lot easier to maintain some stuff. For example you can use output buffering and grab your buffer, run it through your callback whether it be preg_replace_callback() or array_walk() etc. After you perform that then you can display your modified buffer with everything done. This would work great for emojis or a bad word filter to name a couple things.
-
That would have been like my fall back suggestion.
-
Probably would but I believe using PCRE is a little bit more resource intensive than a str_replace(). Thats just what I have heard, I have never benchmarked it, and plus I am really bad at regex
-
But what I personally would have done is store the emoji string just the way the user would enter it. So instead of storing it as "eyes" I would have stored it as ":eyes:" then you wouldn't have to do any kind of fancy searching for it. To fix it you can run: update emojis set emoji_text = replace(emoji_text,emoji_text,concat(':',emoji_text,':'));
-
It is the same concept and same base code but altered quite a bit
-
Something like: ParseEmojis($text) { global $ccm; $emoji = $ccm->query("select emoji_text, emoji_image from emojis"); while($r = $ccm->fetch_row($emoji)) { $eText[] = ":{$r['emoji_text']}:"; $eImage[] = $r['emoji_image']; } return str_ireplace($eText,$eImage,$text); } My original wouldnt have worked anyway Plus I am not really understanding the way you are doing it. It sounds like you are possibly adding more work than needed
-
You can create a simple function like: ParseEmojis($text) { global $ccm; $emoji = $ccm->query("select emoji_text, emoji_image from emojis"); while($r = $ccm->fetch_row($emoji)) { $eText[] = $r['emoji_text']; $eImage[] = $r['emoji_image']; } return str_ireplace($r['emoji_text'],$r['emoji_image'],$text); } Something like that. I am on my phone so it may not even work but you get the idea
-
This looks awefully familiar I will have to look around so don't quote me on it
-
Your error is because you are not $_POSTing a key named ID. If you notice, when you select your user it is using $_GET. You are in fact posting the userid though.
-
Very good. One thing though is you need to hold to your threat. It says that if you enter the captcha a wrong 5 times in a row you get banned, do it!!! Haha
-
I have never used recaptcha but have you looked at Dave's captcha module he made? also, if you look here: http://www.coolfields.co.uk/2009/12/text-for-screen-readers-only/ you can put the captcha text inside the screen reader that only they will be able to parse unless some other sighted person knows what to look for in your page
-
I am not the owner haha
-
What would you like to update it as? Here is some dummy code I ran in phpfiddle: <?php $gain = 0; $row['will'] = 100; $row['level'] = 5; $gain +=rand(1,3) / rand(800,1000) * rand(800,1000) * (($row['will'] + 50) / 300); $row['exp_needed'] = (int) (($row['level'] + 1) * ($row['level'] + 1) * ($row['level'] + 1) * 2.2); $expgain = $gain; $expperc = ($expgain / $row['exp_needed'] * 100); echo "Gain: ".$gain."<br/>Gain / 10: ".($gain/10)."<br/>Exp %: ".$expperc; ?> And here is the response it gave: Gain: 0.502012072435 Gain / 10: 0.0502012072435 Exp %: 0.105686752091
-
With dem sik skillz, can't wait to see operation-x
-
Eh, not a lot really except a member here started up a chat for the forum on slack
-
Ajaxify, jQuery your Entire MC-Code Game [Any MC-Code Version]
KyleMassacre replied to Sim's topic in Free Modifications
Refresh: <button onclick="myFunction()">Reload page</button> <script> function myFunction() { location.reload(); } </script> Back: <button onclick="goBack()">Go Back</button> <script> function goBack() { window.history.back(); } </script> -
Hi Looking for a devolper to devolpe Rc engine and UOTS.
KyleMassacre replied to GrimReaper's topic in Services
So does that mean I can close this? -
TIL - When you're right, you're wrong (in some cases)
KyleMassacre replied to ~Rob0t's topic in Collaboration Experiences
I completely agree with you but I figured this would be a perfect opportunity to give my two cents because I did receive some flack for deleting some posts and I do believe it could have been more constructive but maybe us as a community could have asked for that and we could have killed two birds with one stone. We could have gotten a more constructive answer and we could have seen his skill level in action and possibly provided feedback on that. I too do not want to defend him because his response(s) was completely uncalled for