05-29-2017, 07:34 PM
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
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