×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!
Also, if you fix the aforementioned bug and manage to load a custom view, the admin dashboard also displays on the same screen due to this default code at the end of the switch in admin.php:
default: if($view != ''){ logger($user->data()->id,"Errors","Tried to visit unsupported view ($view) in admin.php"); } include($abs_us_root.$us_url_root.'users/views/_admin_dashboard.php');
There needs to be some way to not show the dashboard if a custom view has been instantiated earlier. Also, there's no need to log an error in this situation.
I'm trying to style the navigation items (e.g. menus) in the header. The css styles that I put in usersc/css/custom.css are not picked up when the page is rendered. When I put the same style code in users/css/custom.css, it works. Have I misunderstood how the usersc->users override system works? Why are my styles in the usersc/css/custom.css ignored? When I want to override a file, do I have to manually specify that somewhere?
Not sure if you would consider this a bug or not but in users/includes/header.php: if $settings->track_guest == 1 you are setting new_user_online($user_id) however when the user logs-out, you are not removing them from the users_online table.
I see you have a remove user based on time (delete_user_online: users/helpers/users_online.php) but cant find where that may be used.
I have a solution in place to remove the logged in user when they logout in the usersc/scripts/just_before_logout.php file, but shouldn't you be removing them since you are creating this setting?
Just a quick one, would anyone know the best way if using the form builder to include the UserId/UserName (automatically) as a hidden field of the account that submitted the form, ideally not something that someone could use the dev tools in Chrome etc to spoof/change.
What I am basically trying to do is to use the stripe subscription system to allow paying users (have not implemented this yet) to add entries to the database.
From their account on a separate page they will then be able to find their own entries and edit/update/delete them should they have a need.
The latter I imagine would be easy based on pulling a list database queries based on their UserName/UserId etc.
If I have to manually create a form then no problem, just trying to avoid re-inventing the wheel in case this is already built in and I am missing something.
Have had a look in the forms.php and imagine I can add the required function in there BUT as embedded C programmer rather than PHP, I want to make sure I am not opening some vunerability up with that so treading very carefully.
Also there appears to be a bug on the Form Creator, setting the Radio buttons as required is ignored and has no required==1 value unlike the checkbox function.
Using Form Builder creating from simple table. id, fname, mname, lname, bdate
It reports success but I see no fields. I create field for first name with condition "required". Works. Move onto middle name and remove "required" condition. Fails... and reports:
/users/edit_form.php was not found on this server.
I confirm the file is truly missing. Please advise.
I have replace the favicon with one of my own. I tested mine with a simple html page and it works. However, in UserSpice it doesn't seem to have any effect. Only a "black page" favicon appears.
Also, the default UserSpice favicon never works either. Dan's US 4.4 video on YT is very informative but, if you look at the demo, the favicon never works there either.
Are there any specific instructions to make the favicon.ico appear?
I'm no expert, more like a monkey with a scalpel, but I'd be glad to write up a short "how to" once it gets settled.
First... WOW! Congratulations to the UserSpice team for an exciting and powerful user management foundation (and much more)! Thank you!
The UserSpice model seems to be geared as an Admin/User relationship. However, my use is more like an admin/manager/user where a manager solicits users and pays a fee to have the users created. Thereafter, the users can only see their own information but the manager can cloak into only their own registered users' accounts, which vary by users. Admins, of course, can cloak into any account.
A short analogy is a private tutoring company. The company allows individual certified tutors to register. Tutors, in turn, solicit students needing tutoring in math. A tutor pays a fee (stripe is fine) and is allowed to "register" the student in, for example, Geometry. Student then logs in and completes a series of Geometry quizzes. Student may stop/return to quizzes as time permits. Tutor may cloak in to see how it is going. Upon student's signifying completion, an email is generated.
Of course, if the student is registered for Calculus, the available quizzes are substituted.
Ultimately, the User Management allows each student to access only their information/quizzes and allows each Tutor to cloak into only their student's information/quizzes.
I note there is an "account_owner" field in the users table and hope this might provide what I seek. It seems, the student's math topic could be held in the application database table but could also be added to the UserSpice users table, if that makes sense.