Jump to content
MakeWebGames

URBANZ

Members
  • Posts

    533
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by URBANZ

  1. Its been a thing of mine for a long time i find it so crap to advertise on other peoples games especially the owners advertising their game on an active game that is owned by a member of this community and also being part of this community themselves. Are we not all here to support and help each other not drag each others games down. I think people like this should not deserve any help with their game if they lower themselves to do this type of crap. Don't know what other people opinions are but people like this shouldn't belong on this forum
  2. Thank you didn't know this existed tbh still getting my head around alot of the hooks
  3. Thankyou MTG much better way. updated in first post if someone uses it.
  4. So i ran in to an issue unless i've missed something. As the methods are pulled from the module.json file to display the tabs in admin panel i wanted to dynamically add another if a user activates a feature. I thought i would post this if any other people have this issue. $array = array( //"hide" => true, //can also add hide element if needed "text" => "TEXT HERE", "method" => "METHODNAME" ); $json = file_get_contents('modules/installed/MODULEHERE/module.json'); $decoded = json_decode($json); $decoded->admin[] = $array; file_put_contents('modules/installed/MODULEHERE/module.json', json_encode($decoded)); I haven't tested this much but it is currently functioning as desired in one of my modules. I'm sure this probably could be done better/another way. Let me know your thoughts. This is full usage including removing the array when deactivated again. if (isset($this->methodData->SETTINGSVALUE)) { $settings->update("SETTINGSVALUE", $this->methodData->SETTINGSVALUE); $json = file_get_contents('modules/installed/YOURMODULE/module.json'); $decoded = json_decode($json); if($settings->loadSetting("SETTINGSVALUE")){ $array = array( "text" => "YOUR TEXT", "method" => "METHOD" ); $decoded->admin[] = $array; } else { /* This has -1 as starts 1 item from the last then counts 1 up and removes it can change to how many items you want. makes it much easier if you need to add multiple items then remove them later. just make sure you are removing the same amount you added or you will remove other arrays. */ array_splice($decoded->admin, -1, 1); } file_put_contents('modules/installed/YOURMODULE/module.json', json_encode($decoded)); header("Location: /?page=admin&module=YOURMODULE"); }
  5. Thank you Kyle i did see this earlier and gave it a try but couldn't get it working correctly, keep getting invalid syntax. how it stands think i'm just going to stick to the MariaDB, most people should be running that anyway.
  6. I did try it as a test and get invalid syntax when used on MySQL server so i believe that function is only part of MariaDB and cant find a workaround without selecting the information schema table and selecting the table from the database but again some users might not have permissions to do this. i think for now just sticking with the MariaDB way.
  7. So i'm currently in the process of packaging a module up for the market place and currently figuring out the best way for the SQL's to run when installed. At the moment i'm using this to check if the column exists. ALTER TABLE `userStats` ADD COLUMN IF NOT EXISTS US_vip INT(11) NOT NULL DEFAULT '0'; I am aware this only works for MariaDB which not everyone will be running. What is a good alternative that will work with both as i haven't run a basic MySQL server in years so not sure the simplest way for this.
  8. Had a quick scan through some of the code, very nice update. Also noticed gangs are included in this update definitely an excellent addition
  9. this is a really good idea would bring more users to the forums and also generate more purchases for the marketplace if they are listed maybe in a section of the modules in GL. would be good if dave could issue GL with its own REST API access for just read access to GL downloads category so it has a efficient way of retrieving the data.
  10. yes make sense i'm currently doing the same with my game but ive made a routing class instead of using .htaccess rewrites so everything passes through the class and gets converted out to the user.
  11. yes if you look at the issue i posted on github a couple weeks back it was login.inc.php, forgotPassword.inc.php, register.inc.php. that line needs to be added to stop users accessing them when logged in. that would work better was just a simple fix i posted but your way would be better @Sim also with bank there is a check on line 69 and line 94 of bank.inc.php to check if its a negative
  12. yes i posted this exact issue to github couple weeks back https://github.com/ChristopherDay/Gangster-Legends-V2/issues/36 when i posted this didn't double check, should have been. if(isset($this->user->loggedin)){ header("Location:?page=" . $this->page->landingPage); exit; } should go in construct function of each of the files.
  13. the major issue i have come across is when method_exists is called on module loading it break the whole game layout. If the action of the module is undefined it returns null but if you try returning something like a 404 page it breaks admin module actions as they run on a different loader to the main modules.
  14. very cheap hosting cant say anything else as personally dont use it. if you was looking for something more FREE then let me know but i do run plesk on my dedi but does pretty much the same things as cpanel.
  15. Makes sense. Only problem i was having with that was i had to render the menu 2 times 1 for mobile and 1 for desktop as the sidebar is in a grid with game container so this way i could keep just the one menu and change styles on screen resize. I might try to break it out the container nicely and see what happens lol. thanks for feedback my whole idea was like this main content disables and main menu overlay
  16. lol i've just changed it to this its like you can read minds. do think it looks better now. im also adding a greyish overlay where the main content is to disabled it when menu is open. top menu, side and bottom are fully fixed.
  17. Thanks for feedback yes this was an idea to do this just working on the JS to fetch the data live. ive now tried a slide out menu instead not sure which one to go with though.
  18. Just updated mobile view and how the menu transitions when the button is clicked. Default View: When menu button is clicked
  19. If this is what you are looking for I have it on my mobile.
  20. To mark the full site as read it will be in the menu on the top right where the 3 lines are. If you want to mark certain forums go into the forum and will say at the top of the page to mark forum as read.
  21. I've had a thought there is a lot of games around and owners might not know how to build an app for their games or know Java or have the tools to be able to do this. So if you are genuine game (must already have users and running) i will make a web view wrapper for your game. Also will not offer this to games that already have any type of app. This is to help games that need it and might not be able to afford a better solution. All you would need to supply me with is your game URL and android app icons for default and rounded. Easy way to do this make the icon and this will convert to relevant sizes for you. https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html The web wrapper has been built by me and includes the following - Custom Offline Pages (Internet detection status) - FCM Integration (Push Messaging) - account required FREE signup https://firebase.google.com/ - Rating system (directed to app store for user rating) If you would like this app on google play store you must have a developer account https://developer.android.com/distribute/console (Cost $25/lifetime). I know Web View is not the most ideal thing but it is a free service. if you would like an alternative to Web View (Native App) i do also offer this service but does come at a cost. just contact me with more details. DISCLAIMER: I WILL NOT OFFER THE SOURCE CODE WITH THIS SERVICE YOU WILL RECEIVE A PACKAGED APK FILE ONLY. YOUR WEBSITE MUST BE MOBILE READY I WILL NOT EDIT OR CHANGE YOUR WEBSITE TO DISPLAY CORRECTLY FOR FREE.
  22. This theme wont be available on the market place. it is currently for a personal project. Everything does have a price though if someone wanted to purchase it might consider parting with it.
  23. Thankyou. yes just want it to be perfect and not look like something was dumped there lol. thanks for feedback.
  24. After having some free time i've been working to get this layout finished. i still need to sort the head section out so please ignore this for now. let me know what you think. mobile view my idea with blank space up to is to put user avatar and basic info like name, money and points etc.
  25. Nothing Here
×
×
  • Create New...