-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
TIL - When you're right, you're wrong (in some cases)
KyleMassacre replied to ~Rob0t's topic in Collaboration Experiences
I will agree here with the OP. Even though he didn't go that in depth with his response and was just reiterating, it was on topic, not rude, and provided feedback. I think everyone else just went a little hard and it had a snowball effect and just got way off base. -
In my defense I didn't feel it was that bad of a post. Could it have been better? Yes. But he did say there is a better approach to having so many if()s although he didn't say what was better. And I just thought it was sort of constructive but it was on topic for the most part. I did realize I went crazy and deleted [MENTION=68961]Veramis[/MENTION] post and that was my fault, it did contribute so I will fix that.
-
In reality it doesn't matter. A lot of the XSS or CSRF injections that have been done here are were non malicious in nature and to show the game owner where vulnerabilities are. But attempting to drop important tables is an act of cyber terrorism. I would care less if you tried changing your username or something like that
-
Sorry to kind of break it to you but this thread is about you and experiences with you so it does not warrant a lock because you ask. You don't have to reply back to this thread and you can disable your subcriptions so you do not get notified about this thread. Also, trying to maliciously attack a website is not only wrong but illegal. Trying to drop tables is quite malicious and is up there with trying to steal people's information and if this site is hosted in the states he can notify the FBI and tell them about a cyber terrorism attempt and if your country you currently are located at or have residency is a part of NATO you can receive some hefty fines and/or prison time. Bottom line its unethical, illegal, and shows people that you do not respect other people's work so why should they respect yours? I know you care what people think about you personlly so please don't act like something you are not. I can show some chat logs to show you take things personally but I won't do that. Another thing is is you are using the term "PAGAN" which can be offensive to people so I would suggest using another word. You can't go off calling people that because it's discrimination against their creed if they believe in that sort of thing. I myself would be considered a pagan to some.
-
Why not do something like this
-
I agree. I am kind of partial to using 8-10 columns. If you do add a shout/chat box I would use a 9 column grid for the content area and then use a 3 column grid for the chat box
-
Thread made from here: http://makewebgames.io/showthread.php/46556-BRAIDZ-RC-Engine-Game-(split)
-
[MENTION=71784]GrimReaper[/MENTION]: please use code tags
-
Not that I know of but if you have Dave's donation system his can handle that I believe
-
Oh great, is the header in an iframe?
-
Easy: move.php <?php include_once('globals_nonauth.php'); $userid = $_POST['userid']; $minions = ""; //add your query for this minions array here $_POST['direction'] = array_key_exists('direction', $_POST) && in_array($_POST['direction'], ['north', 'east', 'south', 'west']) ? $_POST['direction'] : null; switch($_POST['direction']) { case 'north': $db->query("UPDATE user_minions SET north_south=north_south+1 WHERE userid=$userid"); if ($minions['north_south']>50){ $db->query("UPDATE north_south=50 WHERE userid=$userid"); echo "You have just moved". $_POST['direction']; } break; case 'east': $db->query("UPDATE user_minions SET east_west=east_west+1 WHERE userid=$userid"); if ($minions['east_west']>50){ $db->query("UPDATE east_west=50 WHERE userid=$userid"); echo "You have just moved". $_POST['direction']; } break; case 'south': $db->query("UPDATE user_minions SET north_south=north_south-1 WHERE userid=$userid"); if ($minions['north_south']<0){ $db->query("UPDATE north_south=0 WHERE userid=$userid"); echo "You have just moved". $_POST['direction']; } break; case 'west': $db->query("UPDATE user_minions SET east_west=east_west-1 WHERE userid=$userid"); if ($minions['east_west']<0){ $db->query("UPDATE east_west=0 WHERE userid=$userid"); echo "You have just moved". $_POST['direction']; } break; default: echo "There seems to be an error"; break; } Inside your actual script: //This goes where you want to display some text to them after they click echo '<div id="notificationArea"></div>'; //These are your links and place them where you want. Just change the id="whatever direction" echo '<center><a href="#" class="directional" id="north"><img src="images/north.png"></a></center>'; <script> $('.directional').on('click',function(e){ var direction = $(this).attr('id'); $.ajax({ method: "POST", url: "move.php", data: { userid: <?php echo $userid; ?>, direction: direction } }).done(function( msg ) { $( "#notificationArea" ).html( msg ); }).fail(function(req,msg) { $( "#notificationArea" ).html('Request failed: ' + msg ); }); e.preventDefault(); }); </script>
-
Or you can be ghetto and do a return false; in place of the event.*()
-
No, not unless you make it go to another page. You can have a look here to see what I did. I commented out the Ajax portion on it though: http://jsfiddle.net/owebfb0g/
-
With that concept it would be via a $_GET request so I'm not sure if you were using some kind of pseudo code there but it would fail. It yes that would be the way to do it. Me personally, I would use a switch statement for each of the directions, that way they can't really fiddle around with the request that easily
-
you can use a button inside a form like you suggested or an anchor like: <a href="?direction=up" id="upArrow"><img src="yourImagePathHere.ext"/></a><!-- or done with CSS styling --> Or done with ajax would be cool too: <?php echo '<a href="#" class="directional" id="up"><img src="yourImagePathHere.ext"/></a>'; $('.directional').on('click',function(e){ var direction = $(this).attr('id'); $.ajax({ method: "POST", url: "some.php", data: { direction: direction } }).done(function( msg ) { $( "#notificationArea" ).html( msg ); }).fail(function(req,msg) { $( "#notificationArea" ).html('Request failed: ' + msg ); }); e.preventDefault(); });
-
Are you actually fetching the 'temp' column from the users table? It's a lame question l, I know, I'm just trying to narrow things down. Also, what temp numbers are associated with the CSS files? For example is 1 red, 2 blue, 3 green? And what happens if you just echo out $ir['temp']?
-
I know we kind of posted at the same time but be sure to check my response. It may yield som unexpected results if you have more than 1 id selector with the same name
-
Well technically it shouldn't be set as an id because you are only allowed 1 id in your html with the same selector name. It should be set as a class [css] .isla-quest { -webkit-border-top-left-radius: 15px; -webkit-border-top-right-radius: 15px; -webkit-border-bottom-left-radius: 15px; -webkit-border-bottom-right-radius: 15px; -moz-border-radius-topleft: 15px; -moz-border-radius-topright: 15px; -moz-border-radius-bottomleft: 15px; -moz-border-radius-bottomright: 15px; border-top-left-radius: 15px; border-top-right-radius: 15px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; background: rgba(78,0,0,1); -moz-box-shadow: 0px 0px 10px #888; -webkit-box-shadow: 0px 0px 10px #888; box-shadow: 0px 0px 10px #888; border: 1px solid #4F4F4F; padding: 5px; z-index: 1000; text-shadow: 2px 1px 0px rgba(0,0,0,.5); text-transform: uppercase; font-family: 'Droid Serif', serif; font-size: 12px; color: #FFFFFF; } [/css] then in your php file it would be: <div class="isla-quest"> .... </div>
-
Thread closed per OPs request
-
My original statement still stands ;) unless he has a function called interval like this: function interval($userid) { $date = new DateInterval($userid); return $date->somePropWhichOneIDontKnow; which would still not work because a players id probably isn't the best way to grab a date string
-
For one 'interval()' I don't believe is a function, I believe he meant 'intval()'
-
There I did some clean up. I don't understand all the bickering. It went from showing off his site to giving advice to benchmarking to all out war between people. Take this crap to PM. @jcvenom: I can't delete your account but if you still wish for a ban (don't know why) shoot me a PM and I will lock the thread if we can't keep t civil PS: I did house keeping
-
[MENTION=65371]sniko[/MENTION] does something similar for his panther engine as seen here: https://github.com/harrydenley/PantherSkeleton/blob/master/Skeleton%200.6/mods/userclass.php so feel free to look at this and get some ideas. Basically it's the same thing you are thinking about doing
-
Let's get this thread back on track for the OP. I do disagree with the apparent opinion that you got from a developer that you know. If you are building something for yourself and want the challenge then build your own framework, nothing wrong with that. But there is nothing wrong with learning a new framework especially if you are looking at freelancing. Let's just say Godiva Chocolates finds you appealing to do some work for them, can you take the job? Probably not because you don't know Zend. And without really understanding Zend can you create a module for them on their Magento e-commerce site? Most likely not because Zend is the base for for Magento and the same goes for a Xenforo plugin. A lot of companies use ready made stuff because it's easy to deploy and easy to outsource. On a side note, I may have something small for you if your not worried about pay but want to help build something small that can make a difference in the world (potentially if all goes well). It's just JavaScript and Google Maps API. It's just basically taking a polygon drawing and extracting the lat and long of each point and putting it in an array to check if an address falls within the polygon