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
/printthread.php 16 require_once



UserSpice
Custom Login Page & Navbar - 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: Custom Login Page & Navbar (/showthread.php?tid=517)



Custom Login Page & Navbar - MagikMindFreak - 04-09-2017

Hello,

How would I go about customizing the current login page to have my own. I would need to know how to connect my custom login page to the database and all. Also, as far as the navigation bar, I just need to know how I can edit it and when it would change (logged in users, or guest)


Custom Login Page & Navbar - mudmin - 04-10-2017

You don't have to "include" our nav bar at all. You can simply replace it with your own.


Then, for users who are logged in, you have statements like

if($user->isLoggedIn){
//do this
}

or

if(!$user->isLoggedIn{
//do this
}


Custom Login Page & Navbar - MagikMindFreak - 04-10-2017

Thanks for the help on the navbar. How would I go about with customizing the login page to fit my own design?


Custom Login Page & Navbar - MagikMindFreak - 04-10-2017

I actually have some private inquiries, would it be possible for you to get in touch with me?


Custom Login Page & Navbar - crypt1k - 05-16-2017

UserSpice is such a great system. I just installed 4.2 and am trying to create a custom login page also. I have looked at the built-in login page and tried to copy and include the back-end stuff, but have been unable to get it to work. How does one go about implementing there own login page? What has to be included in the code and does it have to be uploaded to a specific folder? Thanks!


Custom Login Page & Navbar - mudmin - 05-17-2017

The login page has a lot of includes that can be a bit tricky.

I would start by copying login.php to usersc/login.php

change line 25 to
Code:
<?php require_once '../users/init.php'; ?>

Line 42 to
require_once '../users/includes/recaptcha.config.php';

And see if that works.

Eventually you'll want to fix the links to join and forgot password to be correct, but the key is to just get the form to work on its own first.