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
Adding new pages
#1
Hello,

i installed UserSpice v4.2.2 and trying to add new pages. I already know that, they can be moved under folder 'users' and added in the database and then they appear under pages in admin-dashboard.

what i want exactly to do is, to add a new home for the pages just like users but not users Smile ?

Thx in advance.
  Reply
#2
Sure. No problem. Just edit the file z_us_root.php and add the folder name you want to monitor to the array in there.
  Reply
#3
Hi Dan,

many thanks for your reply, yes it works Smile .
I have one more question, what if i want to add a complete folder with all of it's content in on step, and must all the content be php files?
  Reply
#4
Yes, userspice manages pages with .php extensions, although you can just rename your html files to a .php extension. You can also rename css and js files to php and put their content in style or script tags. Just note that for userspice to truly control a page, you need a require_once to the init.php file and that securePage line that's in every userspice file.
  Reply
#5
Hi Mudmin,
thanks for the info.
  Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)