-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework Addon Module Settings #22
Comments
You could make a 'feature' or 'alpha' branch (or any name you like and find descriptive) While 'master' is default release branch, and its shown when someone enter project page, So we would work on this 'feature' (or whatever called) branch, test things before release, Would be more easy, clean ect to work this way than pushing everything to master, After all its the way how most collaborating projects work. That could give addons authors (like me) chance to fix modules, |
Oh, providing 'unnoficial work in progress' branch would be cool not only because i would have chance |
I agree with everything you said but I am not sure I know how to make that happen. I will try to get a new branch created and push 1.4 to a 'feature' branch so that we can begin testing on it. I am so close to having 1.4 working with these following changes: Added settings to each side box and changed the way modules create templates and settings. Modules now provide associative arrays for necessary templates and settings. The templates are installed by a new Sidebox_handler class object and versioning has been added to addons as well as upgrade functionality in the core so the addon author doesn't have to maintain installation, but rather give information to the core for that purpose. The version info is stored in the cache and Also addons received a author and author site property so that we can keep the descriptions clean while still providing support links and crediting addon authors. Side boxes now have group permissions attached by default. The code considers all of the member's groups and displays/hides sideboxes accordingly. Created a Sidebox_custom class to handle custom static boxes. Reworked side box editing routines to be a little more convenient in specific script filter views. ie. attempting to predict which scripts the box will be intended for by the current script view filter. Upgrade script updated to handle step up to 1.4 I still have to handle creating some default settings for addons that were created in earlier versions so they will work without uninstalling. @avril-gh These changes mean that in the future you can add/delete settings/templates and not have to worry about leaving trash behind when you upgrade AND no one has to uninstall anything when they upgrade-- just overwrite the addon modules files and the core will automatically upgrade the module if the version has increased (cropping any old settings and templates and updated the rest) I am certain there will be many bugs in this version so your idea of a feature branch is duly noted. I may try to get it done tonight, but only if I can straighten out the upgrade script tonight. I wouldn't want even the beta to be unable to upgrade without uninstalling it. I am really close though 😃 |
At this time upgrading doesn't work fully and some side boxes may need to be edited and resaved in order to function properly. I should be able to work this out in a few days hopefully. I am addressing Issue #21 and Issue #22 in this update. This version is NOT READY FOR A LIVE FORUM. I can not stress that enough.
At this time upgrading doesn't work fully and some side boxes may need to be edited and resaved in order to function properly. I should be able to work this out in a few days hopefully. I am addressing Issue #21 and Issue #22 in this update. This version is NOT READY FOR A LIVE FORUM. I can not stress that enough.
Okay I think I have done it. If I have made any errors feel free to correct them. As to the changes to your module we can handle them anyway you like. It is your work and I only edited it to give you an idea what changes need to be made and also to use it for testing. A Known Issue: Upgrades leaves so sideboxes dysfunctional until they have been edited/resaved . . . this will be resolved as soon as I understand it fully. |
Oh, cool. Thanks.
Btw, you should remember to update MyBB Mods section, because if not, |
Have not checked yet into code but just installed the beta and... Good work 👍 ...Ok, goin back to look into it. |
When you have time take a look at I hope you like it and I am anxiously awaiting your approval :D
I replied to the thread on MyBB about that. I want the new version to be on the mods site, but it takes two weeks sometimes for it to get approved and some people don't like downloading from GitHub. And if I had sent 1.3.6 to the mods site it might still be awaiting validation and we would have never received the bug report for the latest threads module. So like I said on MyBB, if 1.3.7 holds up for a couple of weeks and no bugs surface then I will update ASB at the mods site to 1.3.7 . . . if another bug shows up we will just keep testing and wait. That seems best to me, what are your thoughts? |
I though that it get long time only first time on initial submit,
I love it, ( print_r'ingit just now, lol) ...but just wondering Manage Modules tab is not finished ? |
...ah found it... in acp_functions.php line 750 instead of
should be
and the same bug 3 times in a row in next lines |
Oops I don't know how I missed that. I can clear that bug up this evening. Thanks for the input. |
You forgot about allready fixed @c1d42c6af0b3695f7a2a67d5f39e5925bd1efaca hehe~ |
Yes I am need to all of this collaboration, but I must say you have been a pleasure to work with so far. Thanks so much for your hard work. |
I think we can call this done and if a bug pops up just start a separate issue. |
Agree. |
It was about moving settings from the ACP -> Config -> Settings menu to individual side box settings. |
After much thought I think it would be best if each addon module just provided information to the core and allowed control of install/uninstall/is_installed/upgrades/etc be controlled by the core.
For instance if settings and templates were provided as associative arrays in the _info() function of that module then the core could handle making sure the module is installed properly.
In the end (before/when 1.4 is released) I'd like each sidebox to get a copy of it's parent addon modules settings that can contain completely separate values per side box.
I'd also like to add versioning, author info (link too) and built-in upgrade functionality to the addon modules.
Thoughts are welcome.
@avril-gh I have already made a little progress with this and while it will require a little restructuring of your Online Staff addon module I think you will be able to see why it is better.
I have made some changes to your module but no functionality has been changed at all. I am only reformatting the templates and settings.
The text was updated successfully, but these errors were encountered: