Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 78 online users. » 0 Member(s) | 75 Guest(s) Bing, Facebook, Google
|
Latest Threads |
Welcome to the new UserSp...
Forum: News Center
Last Post: ivinsons
08-25-2024, 07:39 AM
» Replies: 2
» Views: 27,918
|
UserSpice 4.4 Development
Forum: News Center
Last Post: ivinsons
08-22-2024, 07:38 PM
» Replies: 2
» Views: 15,199
|
How to use hasPerm
Forum: UserSpice 4.4
Last Post: mudmin
07-20-2019, 02:45 PM
» Replies: 1
» Views: 13,755
|
Session issue? What I sho...
Forum: UserSpice 4.4
Last Post: Parth
07-17-2019, 05:06 PM
» Replies: 4
» Views: 14,502
|
Email Error
Forum: UserSpice 4.4
Last Post: Brandin
07-17-2019, 04:47 PM
» Replies: 1
» Views: 6,623
|
{ Missing Text } after up...
Forum: UserSpice 4.4
Last Post: Brandin
07-16-2019, 04:23 PM
» Replies: 22
» Views: 53,638
|
Best Practice Info
Forum: New to UserSpice?
Last Post: Brandin
07-16-2019, 11:55 AM
» Replies: 1
» Views: 13,490
|
Force to use 2FA -always-
Forum: UserSpice 4.4
Last Post: Brandin
07-12-2019, 12:43 PM
» Replies: 1
» Views: 6,636
|
e-mail not verifying
Forum: UserSpice 4.4
Last Post: LBC
07-10-2019, 11:34 AM
» Replies: 31
» Views: 76,232
|
changes to navigation.php...
Forum: UserSpice 4.4
Last Post: mudmin
07-07-2019, 10:46 AM
» Replies: 2
» Views: 8,331
|
|
|
New to US and in need of some help |
Posted by: Carlo - 05-11-2019, 04:13 PM - Forum: New to UserSpice?
- Replies (7)
|
![](https://userspice.com/forums/images/default_avatar.png) |
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.
Carlo
|
|
|
No mobile site after update |
Posted by: LBC - 05-08-2019, 03:47 PM - Forum: UserSpice 4.4
- Replies (4)
|
![](https://www.gravatar.com/avatar/666a647a60efa404b44e3614dd0b7e53?s=100) |
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.
|
|
|
redirect |
Posted by: Malatesa - 05-07-2019, 04:50 AM - Forum: UserSpice 4.4
- No Replies
|
![](https://userspice.com/forums/images/default_avatar.png) |
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)
|
![](https://userspice.com/forums/images/default_avatar.png) |
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)
|
![](https://userspice.com/forums/images/default_avatar.png) |
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()){
//Redirect::to($us_url_root.'users/account.php');
}else{
Redirect::to($us_url_root.'users/login.php');
}
die();
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)
|
![](https://userspice.com/forums/images/default_avatar.png) |
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.
|
|
|
MQTT with SSL Certificate |
Posted by: flo - 05-01-2019, 06:39 PM - Forum: Modifications and Hackery
- No Replies
|
![](https://www.gravatar.com/avatar/2c13272e9d1925fb4bdbd08db80c3e43?s=100) |
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 Smile](https://userspice.com/forums/images/smilies/smile.png)
Thanks a lot guys!
Flo
|
|
|
|