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
Managing page access for custom dirs
#2
I've found the following walkthrough: https://userspice.com/monitoring-additional-folders/
and started following the steps described, however I cannot execute the instructions below:


Then, open the file /users/admin_pages.php
copy this line and paste it right below itself.
$uspages = getUSPageFiles(); //retrieves core UserSpice pages
Change the name of the variable and the function to a unique variable and the name of the function you created.
Finally, just below that you will see a line that reads…
$pages = array_merge($rootpages, $uspages);
After $uspages just add a comma and your variable that links to your new function.
Voila. Save everything. Login and go to admin_pages and all of your files in that new folder will automatically populate the database and be controllable by UserSpice.


admin_pages.php doesn't seem to contain the lines of code mentioned in those instructions.
I am using v4.2.6
  Reply


Messages In This Thread
Managing page access for custom dirs - by Alan - 05-29-2017, 07:10 PM
Managing page access for custom dirs - by Alan - 05-29-2017, 07:34 PM
Managing page access for custom dirs - by mudmin - 05-29-2017, 11:36 PM
Managing page access for custom dirs - by mudmin - 05-29-2017, 11:39 PM
Managing page access for custom dirs - by Alan - 06-11-2017, 04:40 PM
Managing page access for custom dirs - by mudmin - 06-12-2017, 10:47 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)