MyBB Community Forums
[For 1.8] Creating AdminCP Pages (For your plugin) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [For 1.8] Creating AdminCP Pages (For your plugin) (/thread-232435.html)



Creating AdminCP Pages (For your plugin) - GodLess101 - 2021-05-20

I once started on a little documentation bit for the Plugins section of MyBB Docs. After a while, I noticed my writing style did not quite fit that of documentation, and I've also had no time to finish what I intended to write. 

The documentation can help plugin developers create custom pages in AdminCP for their plugins. It's also quite a light read.

It includes:
- Hooking to AdminCP
- Setting up a simple page
- Using the built-in Table class
- Adding Pagination to tables

Missing:
- Permissions to Pages
- Using the built-in Form class
- Using other built-in functions (codebuttons editor, pop-up buttons)

You can view it here on GitHub!
https://github.com/Xazin/docs.mybb.com/blob/gh-pages/1.8/development/plugins/creating-admincp-pages.md


RE: Creating AdminCP Pages (For your plugin) - Omar G. - 2021-05-20

Hi, from a quick look the most disturbing thing would be the mix usage of array() and the short array syntax, remember the minimum PHP requirement for MyBB 1.8 is ≥5.2.

Good job so far of course Smile


RE: Creating AdminCP Pages (For your plugin) - GodLess101 - 2021-05-21

(2021-05-20, 06:49 PM)Omar G. Wrote: Hi, from a quick look the most disturbing thing would be the mix usage of array() and the short array syntax, remember the minimum PHP requirement for MyBB 1.8 is ≥5.2.

Good job so far of course Smile

Thanks for mentioning it, I'll change all short array syntax (introduced in 5.4)