-
Posts
283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by Someone
-
Ok, that fix is not in the latest version. It was made after the last release.
-
Did you apply the fix Alain posted in this post: http://makewebgames.io/showthread.php/42822-Possible-error-reporting-bug-function-secure-used-before-declared
-
^ Thats also a valid point. The copy pasted code, is not that good either, so not a good place to learn from.
-
The xml file itself is just like any other other php script, you just output in the format as how that file is. Not a big xml fan myself, prefer json. The values to use, either someone who uses mccodes will have to help you with that, or you have to calculate them yourself. Its just like any other page, except you do not have any header files content. Include the db and functions file. If those are included, most of the needed variables are ready. Look in your other pages to see what the variables look like. <rankpercent> might not be ready by default, but thats simple math. currentxp*100/xptonextlevel I do not use mccodes, so I dont know the actual names of the variables. I think the owner of the game is a member of this forum btw, maybe he will help you Edit: http://makewebgames.io/member.php/69579-WindMill is the owner of that game
-
How they do it is right in your post... http://www.eternalmafia.com/header_xml.php (you must be logged in) data is loaded into the html elements.
-
This might be related to this post http://makewebgames.io/showthread.php/42822-Possible-error-reporting-bug-function-secure-used-before-declared Something is likely going wrong in a lib file, if you apply that fix, it should become clearer whats up. You might also want to set this in config/config.php if you have not already done so. // If set to true, the error details will be display for all even non-admins. $alwaysShowErrorDetails = TRUE;
-
For gaming I think the canvas element is interesting http://www.html5canvastutorials.com
-
^Definitely what Sniko says here. You would be mad if you don't have a game that supports phones and tablets. For the most part that is as simple as serving a separate theme for those users, and not going crazy on javascript I suppose.
-
Not easy to do when working with McCodes. I like to have the validation check if the number is negative right away, so I do not have to check that each time when using the variable.
-
As for number validation, here is a function I have used for some time. The number will then be zero if invalid, you check if its not zero before using the variable. It also removes , from a value, noticed when I logged the invalid data entered, that the most common was to copy paste number formated data, like the players money into the fields. function validNumber($int = 0){ //If you want to support people pasting in formated numbers. //If these two lines are removed, decimal numbers will be invalid (return 0) $int = str_replace('.','',$int); $int = str_replace(',','',$int); if(empty($int) || $int < 1) return 0; if (preg_match('[^0-9]',$int)){ //Invalid number entered return 0; } else { return $int; } } $_GET['id'] = validNumber($_GET['ID']); This only checks if the data only contains 0123456789 and is not a negative number. It does in no way ensure that the value is the correct value, the user might have entered the wrong number.
-
I prefer players able to share mix. And having some super rare stuff is a good thing in my opinion. Depends on the game at hand I guess. Dont let my opinion drag you down though, thanks for making and sharing!
-
op got a point though, if he is not willing learn some PHP, running a browser game just might not be his thing. No matter how generic the engine is made, I think you really must know basic PHP and how the web work in general. Learning that takes time. Good list of upcoming stuff I see. Point 8 I really think should be done by Alain as its a very central core feature, and many modules will be built around it. 10) I talked with as well, and tested it for him. Good changes he made. I do know that he will need a hook placed for Clan created, so he dont have to change the clan module itself
-
Thats true. dont get me wrong, I am not jumping to his defense. Just that I think there is a chance of getting the matter solved. If he does not refund you himself, or you come to an agreement on payment and license transfer. Here is the link to paypal resolution center https://www.paypal.com/cgi-bin/webscr?cmd=xpt/cps/general/PPDisputeResolution-outside
-
A bit fast on the scammer name calling. At first I was like yeah, people getting fooled by that guy. I dont know him, but seen enough on the forums to stay away from any deals with him. But seeing your conversation, and time stamp, I think you should give him a chance to complete the deal. Seems to be a disagreement on who's to pay the paypal fee, imagine that is why he wanted it sent as gift.
-
Was a good idea you had there. Thanks for helping to test the module btw
-
A simple page where players can store notes on stuff in the game. As well as test BB codes etc. The notepad is also shown at the home page. If you do not want it to show on the home page, rename or delete the file home_special.php Features: -Admin can limit amount of characters allowed in the notepad (setting name: Notepad Max Length) -The notepad has a jQuery based character counter -All text should be all editable through the translate system. You can get the module for free at the NWE marketplace here http://www.nw-engine.com/index.php?c=modules&m=124 player_notepad.nwp
-
Epicx - New Roman Theme SLG Browser Game
Someone replied to fujikay's topic in General Gaming Discussion
Its just that that website (http://www.gogogogo.com/tuser/index.html) is rather empty. Ripping some images and adding them to a template is not that time consuming. If I where a hacker, that is something I for sure would do. The site seemed rather inactive. And filled with dummy content. I just checked the forums many accounts little activity, and from this page http://forum.gogogogo.com/forum.php?mod=viewthread&tid=516&extra=page%3D1 Just weird, an apparently large budget game, creating an account a forum and posting a link. Epicx.com does not mention gogogogogo at all. gogogo is registered to someone in Shanghai, cant compare with epix.com as it has privacy enabled. Gogogo has been with 2 registrars and dropped once. srachit says the ip is blocked for him as well. Did a reverse ip lookup and there seems to be only one site on that server. Did you make an account, is there actually a game there? EDIT: Apparently there used to be a pron site at that domain name. The site as it is now have been there since late 2012 -
Dont know how familiar you are with NWE. I find the users and stats table structure to be excellent. Users table only have some basic details, like id,username,password,email,online Then there is a table for user_stat_types and user_stats user_stat_types has id, name, description user_stats has user_id, stat_type, value You can then add as many stats as you want without adding columns to the users table. Retrieval is also quick, as it looks up using unique key number based indexes. The values are then set a session variable, so they are only retried from the database when logging in or changed. This is a simplification, the tables has more columns that are useful in a game setting, but would be overkill if just making a simple system.
-
Epicx - New Roman Theme SLG Browser Game
Someone replied to fujikay's topic in General Gaming Discussion
Something dos not seem right here Are you the developer of http://www.epicx.com as well. Forgive me if I am wrong, but this smells like account information fishing or something. It just does not seem right, a big budget game -
Yes, and make sure it is Unsigned as well, as money should never be a negative number.
-
Thats a good looking theme
-
Right click a page, and view source look for some code similar to <link href="" rel="stylesheet"> or <style>, in those you should find a location for a .css style. Edit lookedat your front page, they should be in a folder named css <link rel="stylesheet" href="css/stylenew.css" type="text/css" /> <link rel='stylesheet' href='css/lightbox.css' type='text/css' media='screen' />
-
Yes, if a certain template is used I want to not use modules/inside_menu But instead use my own menu version of it. Instead I have my own module that does the RunHook("menu.php", "menuEntries"); MenuEntry::Sort($menuEntries); Guess I could have my custom module handle both types of menus (the ones for the default themes and those for my custom ones), and have it detect what template is in use. And just disable the default inside_menu Think I know how to do this now. Have a good week off :cool:
-
Looking for a way to load a different menu (technically a enable/disable a module) based on what template is being used by the current user. My template could use its own $content['customSideMenu'], but thats not ideal since it would mean that the menu is generated twice per page load even if only one is displayed.
-
Just not everyday they put out national alert. Checked the source of the alert it was way more hyped that the US one. The alert focused on that many web banks use Java for the login proccess, but most of the security risk was related to the dev kit.