The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
|
Adding new pages - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Adding new pages (/showthread.php?tid=504) |
Adding new pages - Ahmed - 03-22-2017 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 ? Thx in advance. Adding new pages - dan - 03-22-2017 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. Adding new pages - Ahmed - 03-23-2017 Hi Dan, many thanks for your reply, yes it works . 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? Adding new pages - mudmin - 03-23-2017 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. Adding new pages - Ahmed - 03-23-2017 Hi Mudmin, thanks for the info. |