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)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Using a different design/theme with User Spice - 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: Using a different design/theme with User Spice (/showthread.php?tid=1024)



Using a different design/theme with User Spice - markgreenway - 03-31-2018

Hi,

I'm new to User Spice and am just getting to grips with it.

Quick question, I've been looking at some bootstrap admin/dashboard themes, like the one below, and would like to use User Spice to protect pages that require the user to be logged in.

https://colorlib.com/polygon/sufee/index.html

Is it possible to do this with User Spice or do I have to use the standard layout?

Thanks,
Mark.





Using a different design/theme with User Spice - mudmin - 03-31-2018

Hi and welcome Mark!

Yes, you can use any theme and basically do whatever you want with userspice. The only 3 requirements are:

1. Your pages should have a .php extension.
2. There should be a require_once to users/init.php at the top of your php page.
3. The line that's in all our files
if (!securePage($_SERVER['PHP_SELF'])){die();}

Should be at on every page just after init.php if you want userspice to be able to "protect" that page. Beyond that, everything is fair game.

One thing to note. It's not a good idea to actually edit our core files. It will break updates etc. Instead, we have a nifty system where you can copy any of those php pages over to the usersc folder (copy, don't move) and you'll notice that that file will be loaded instead of ours. From there, you can edit to your heart's content. I hope that helps. Let us know if there's anything else we can help with.



Using a different design/theme with User Spice - markgreenway - 04-01-2018

Thanks for the advice. I'll give it a go.