The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
admin_panels.php
#1
Hello,

I noticed while manually updating my admin.php file there is this section:
https://hastebin.com/hatoteqeji.xml

What does this functionality do exactly? Should I be using this instead of manually editing my admin.php file? Is there documentation on this?

Thank you!
  Reply
#2
Yes. If you create the file
usersc/includes/admin_panels.php

You can add your own admin panels in there and they will automatically be included. We've thought of everything...except documenting this feature Smile
  Reply
#3
Love it Wink So, if I add the PHP for the panel as well, e.g. if it is a panel with items that can be updated (a new setting I manually created), do I put this in admin_panels or admin.php? What do I submit to? [SELF]?

Thank you!
  Reply
#4
You put all the php in admin_panels and you submit to admin.php because when that page is viewed, admin_panels would technically be a part of admin.php.
  Reply
#5
Ahh, I like it! Time to do some more moving Big Grin lol
  Reply
#6
This is an AMAAAAAZING feature! Smile Thank you mudmin!
  Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)