![]() |
one central location location for seperate addons
i thought: hey, i've installed multiple mods and addons, but what if i get lost in which ones i have installed? the solution for me is simple (and hopefully for you too), i've made a folder called "mods" in the main directory, and added a seperate folder for every mod in it with the needed files.
so now i have for example: maindir
a lot easier for addons or such to organize, isn't it? now how do we go to the pages on a simple way without showing the full url? by replacing the code in pages.php by this one: PHP Code:
last thing: add a url in the link manager to the correct page or pages~ :wiii: NOTE: i haven't tested this, but i hope it'll work and get you onto the path~ ;) |
it is nice
maybe with this code snippet is it possible to automatic include mods with out the need to edit files its taken from my own script and written as a function maybe with some edits it could be possible to use that to check if some maps exist and then showing the index file based on the map (or add a double check so it does not only look for php files but for the maps that contains a index file ) PHP Code:
i can call the page then with ?admin=xxx or ?staff=XXX or ?page=XXX to be able to work with this mod does it need a rewrite ofcourse , but this is just the core function Greetings From PowerChaos |
Well in Mys v1.4.0 there will be a folder called Plugin in which each Addon/Mod owners can manage their own products. A complete plugin system standardized redesign will be carried out for Mys v1.5.0 though, but in the next major version I try to make lives easier for coders.
|
All times are GMT -5. The time now is 04:04 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.