[For 1.8] Creating AdminCP Pages (For your plugin)
#1
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/b...p-pages.md
Reply
#2
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
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#3
(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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)