× 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!

Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,007
» Latest member: kavitasinghji
» Forum threads: 1,324
» Forum posts: 7,787

Full Statistics

Online Users
There are currently 99 online users.
» 0 Member(s) | 97 Guest(s)
Bing, Google

Latest Threads
How to use hasPerm
Forum: UserSpice 4.4
Last Post: mudmin
07-20-2019, 02:45 PM
» Replies: 1
» Views: 4,556
Session issue? What I sho...
Forum: UserSpice 4.4
Last Post: Parth
07-17-2019, 05:06 PM
» Replies: 4
» Views: 4,418
Email Error
Forum: UserSpice 4.4
Last Post: Brandin
07-17-2019, 04:47 PM
» Replies: 1
» Views: 2,033
{ Missing Text } after up...
Forum: UserSpice 4.4
Last Post: Brandin
07-16-2019, 04:23 PM
» Replies: 22
» Views: 16,175
Best Practice Info
Forum: New to UserSpice?
Last Post: Brandin
07-16-2019, 11:55 AM
» Replies: 1
» Views: 4,512
Force to use 2FA -always-
Forum: UserSpice 4.4
Last Post: Brandin
07-12-2019, 12:43 PM
» Replies: 1
» Views: 1,992
e-mail not verifying
Forum: UserSpice 4.4
Last Post: LBC
07-10-2019, 11:34 AM
» Replies: 31
» Views: 25,408
changes to navigation.php...
Forum: UserSpice 4.4
Last Post: mudmin
07-07-2019, 10:46 AM
» Replies: 2
» Views: 2,530
Duplicated files in /user...
Forum: UserSpice 4.4
Last Post: mudmin
07-07-2019, 10:44 AM
» Replies: 1
» Views: 1,939
problems after update
Forum: UserSpice 4.4
Last Post: mudmin
07-05-2019, 10:13 AM
» Replies: 13
» Views: 10,003

  New to US and in need of some help
Posted by: Carlo - 05-11-2019, 04:13 PM - Forum: New to UserSpice? - Replies (7)

Hi all!

First of all I am not a native English speaker so you might encounter some mistakes here and there.

I apologise in advance.

I don't even know if this is the right place to post my request for some help. My apologies if it's the wrong forum.

I managed to install US with ease. No major problems.

What I am looking for is, besides managing users (I can easily do that with the admin panels), to be able to have some basic tasks that, becoause of my very basic knowledge of PHP, I haven't been able to figure out properly.

When a user goes to a "protected" page I need the user to be presented with a login page if not logged in already, or continue reading the page if logged in.

After login, I need the user to get back to where it was stopped because the user had to login and continue.

Besides that, I would like to have user name on the top right side of each page he visits after login with the option to edit his profile and log out if desired.

Does any of you guys have some spare time to waste to provide me some detailed guidance for this?

I tried adding the suggested piece of code on top of the pages I wish to protect:


require_once '../users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/template/prep.php';
if(isset($user) && $user->isLoggedIn()){


What happens id that if I login as Admin I get the dashboard (which is fine) but if I login as User, I am redirected to the main page, while I would like the following:

If login ok, then continue visiting the page, if not redirected to another page of my choice.

I thank everybody in advance for any help you may provide.

Best and congrats for the great scripts provided to all.


  No mobile site after update
Posted by: LBC - 05-08-2019, 03:47 PM - Forum: UserSpice 4.4 - Replies (4)

I just updated to the newest version, and suddenly only the desktop site is shown on mobile.

I think i saw a warning about this somewhere, but i cant find it anymore.

Posted by: Malatesa - 05-07-2019, 04:50 AM - Forum: UserSpice 4.4 - No Replies

Some of my site's pages need folks to be logged in.
When people click on a page that requires login, I have it redirect to the Login page, so that they can login.
After they login, it takes them back to index.php, and not to the page they clicked on originally.

Is there an argument I can provide to the page they want to login to, that will carry to the login page, that will eventually redirect to the original page?

Here's an example:

I'm at index.php
I decide to click on Books, which should take me to books.php
Because I'm not logged in, books.php redirects me to login.php
After I login at login.php, by default it takes me back to index.php, but not books.php, which is the page I originally clicked on to take me to books.php

I'm thinking there could be a way for any page that redirects to login.php to detect where it came from, and after successful login, redirects back to that page.

So, I'm at index.php, I click on books.php and I end up at login.php because I'm not logged in. login.php knows that I came from books.php and so after I login, I am redirected back to books.php

Is there such a thing?

  Login in a popup
Posted by: User977 - 05-05-2019, 08:25 PM - Forum: New to UserSpice? - Replies (2)

Hello together,

I am currently working on an important project with an already finished and not-to-be-changed design. As there is a defined place where the login form has to go (in a Bootstrap Modal), I would like to know how I could possibly put the functionality from Userspice's login.php into there.

Furthermore, due to the documentation not being up-to-date, I did not understand how to modify any page. The header and footer seem to be outside each single php file and I have not found their code in this mess of folders yet, as well asany blank pages.

Thanks in advance for you help.

  Problem with page restriction
Posted by: Avtandil - 05-04-2019, 05:27 PM - Forum: UserSpice 4.4 - Replies (2)

Hi all
i have created separate folder and added it in z_us_root.php. It's working well, but when i add new page in new folder and then restricting from permission level it's not working. Also i have created new permission leve named "Driver" I red that in pages must be code included. how can i check is or not this user in Driver group.

require_once '../users/init.php';
if(isset($user) && $user->isLoggedIn()){

I'm new in this system.
Thank you in advance.

  Redirect Question
Posted by: epicmedia - 05-04-2019, 01:02 PM - Forum: UserSpice 4.4 - Replies (3)

Actually I have 2 questions.

I've setup Redirect on Login, which is working fine.  I'm redirecting to a php page.  The problem I have is if a user clicks on their account setting link, then click on the home button, they aren't getting redirected.  They are getting sent to the original index.php.  Is there anything that is can be done to prevent this from happening?  I don't know if I can modify the index file or if I can change the destination url of the Home button.  I've looked all over the place, but can't find where I would change the Home button's url.

My second question... Is there anyway to remove the first name, last name, and email input fields when a user registers?  Is there a way to only have the username, password, re-enter password input fields to be the only inputs visible and required to create any account?

Thank you for any help in advance.

  problems after update
Posted by: dirk - 05-02-2019, 03:04 PM - Forum: UserSpice 4.4 - Replies (13)

Hey all, after updating to current version the system shows strange descriptions in the navigation - pls see attached. Thansk for checking and advise.

Attached Files Thumbnail(s)

  MQTT with SSL Certificate
Posted by: flo - 05-01-2019, 06:39 PM - Forum: Modifications and Hackery - No Replies

Hey guys, 

I have been tinkering around with MQTT and Userspice lately. Let me say first of all: Really great idea to add MQTT functionality as one of the first plugins! It works like a charm! Thank you guys! 

Now to my question: I have a raspi running the MQTT broker and can send messages through user spice. I have also added a username and password, so not everybody can send messages to my broker. But as far as I understand another level of security would be using a SSL certificate in order for username and password not to be broadcasted in cleartext over the network (I am using MQTT not only on my local network, but deployed the user spice site online using port forwarding to reach the broker...this part is already working). 

How do I user such Certificate and more importantly, does Userspice support that yet? If so, how? Any help would be much appreciated Smile

Thanks a lot guys! 

  Poblems after updating to .11
Posted by: vkirov - 05-01-2019, 06:53 AM - Forum: UserSpice 4.4 - Replies (2)

I got this error message after updating: Update 0YXdrInkjV86F unable to be applied, missing file. 
And every time i log in it says that the database is out of date.

  New Installer for UserSpice 4.4
Posted by: Bogdan - 04-30-2019, 10:52 PM - Forum: UserSpice 4.4 - Replies (1)

I rewrite install script for UserSpice 4.4. Now it based on Bootstrap 4+ with live search for timezone and some other code improvements. All JS and CSS files loading via CDN.

Here is some screenshots:

Download patch:

.zip   install.zip (Size: 30.95 KB / Downloads: 1)

I hope to see this improvement in new versions Smile