The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Allowing dynamic 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: Allowing dynamic pages (/showthread.php?tid=506) |
Allowing dynamic pages - Jakes - 03-27-2017 Good day I am quite new to userspice. I would like to be able to allow all dynamically generated pages without having to add them to the database after identifying them. I am using the CodeIgniter framework, which creates new "pages" for each item in a dynamic list. For example /users/1, /users/2, /users/3 will represent a different user that is being viewed. The list of users can be infinitely long, therefore I do not want to add all the possible options to the database. I would only like to allow everything "under" /users. Something like /users/* Any help would be appreciated. Kind regards Jakes Allowing dynamic pages - dan - 03-27-2017 So is the gist that you want to only allow people to visit their own pages? Allowing dynamic pages - Jakes - 03-28-2017 Not entirely, the system generates new "links/pages" for dynamic content being generated and I would like to enable users to visit the pages as they are created, without having to add the links to the new "pages" in the database. The framework doesn't really create pages, but when one opens a link to display a view about some content, the link changes and userspice then blocks the new "page". Allowing dynamic pages - dan - 03-28-2017 So in that situation, you can just remove the securePage line at the top of those generated pages and that will go away. Those pages don't need to be in the database at all. Maybe just a link that if there is someone who is not logged in tries to view that page, it redirects them to the login page. Allowing dynamic pages - Jakes - 03-28-2017 Ah that works! Thank you so much. I am now making use of the hasPerm funtion to ensure that only logged in users can access the pages. Thanks again for the help. Kind regards Jakes Allowing dynamic pages - mudmin - 03-30-2017 Great! Glad it's working! |