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
/portal.php 39 require_once
Warning [2] Undefined variable $tcount - Line: 716 - File: portal.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/portal.php 716 errorHandler->error
Warning [2] Undefined variable $tcount - Line: 721 - File: portal.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/portal.php 721 errorHandler->error





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

Username
  

Password
  





Search Forums



(Advanced Search)

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

Full Statistics

Online Users
There are currently 176 online users.
» 0 Member(s) | 173 Guest(s)
Applebot, Bing, Yandex

Latest Threads
UserSpice 4.4 Development
Forum: News Center
Last Post: ehc.ankur
11-10-2021, 10:23 AM
» Replies: 1
» 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
Duplicated files in /user...
Forum: UserSpice 4.4
Last Post: mudmin
07-07-2019, 10:44 AM
» Replies: 1
» Views: 6,582

 
Thumbs Down Problems with runme.php
Posted by: grumpy-gnome - 02-04-2019, 01:24 PM - Forum: UserSpice 4.4 - Replies (6)

Tried to run the update pack from us 4.3.26 to 4.4.01. The runme script gave me two database errors (see attachment)     .

Error 1: helpers.php:288 "Table us_announcements already exists"
Error 2: helpers:288 "Multiple primary key defined"

I logged on OK, but as soon as I tried to access a secured page, I received a PHP error (second attachment)     .

I'm reverting back to 4.3.26 - thank goodness for a backup Smile

The third attachment is the US dashboard page prior to trying the upgrade.    

This instance of US is running on a WAMP environment. Windows 10. PHP 7.1.9. Mysql 5.7.19.

Thanks in anticipation for ideas!


  ERR_TOO_MANY_REDIRECTS
Posted by: Aido - 02-03-2019, 01:52 PM - Forum: UserSpice 4.4 - Replies (14)

Hi,

User gets this error ERR_TOO_MANY_REDIRECTS in the browser if he tries to access to the page to which he does not have a permission.

Regards,
Eugene

PS It looks like you have a certificate issue on your domain


  Bug in admin.php in 4.4
Posted by: haydentech - 02-02-2019, 12:36 AM - Forum: UserSpice 4.4 - Replies (2)

In admin.php, you have this function:

 function usView($file){
   global $abs_us_root;
   global $us_url_root;
   if(file_exists($abs_us_root.$us_url_root.'usersc/includes/admin/'.$file)){
     $path = $abs_us_root.$us_url_root.'usersc/admin/'.$file;
   }else{
     $path = $abs_us_root.$us_url_root.'users/views/'.$file;
   }
   return $path;
 }


It's looking for the override file in the wrong place.  The line where $path is set seems like it should be:

$path = $abs_us_root.$us_url_root.'usersc/includes/admin/'.$file;


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.


  css in usersc
Posted by: haydentech - 02-01-2019, 08:08 PM - Forum: UserSpice 4.4 - Replies (7)

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?


  new_user_online setting
Posted by: sparky - 02-01-2019, 01:40 PM - Forum: UserSpice 4.4 - Replies (1)

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?


  Form builder UserId/Username
Posted by: TheCj - 02-01-2019, 03:29 AM - Forum: UserSpice 4.4 - Replies (10)

Hi,

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.

Thanks as always from the UK  Smile

Chris


  Form Builder Failing "edit_form.php" not found
Posted by: wbaker - 01-31-2019, 09:06 PM - Forum: UserSpice 4.4 - Replies (3)

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.


  How to get favicon to appear in browser tab?
Posted by: wbaker - 01-31-2019, 08:06 PM - Forum: UserSpice 4.4 - No Replies

Thanks for UserSpice 4.4!

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.


  Different User Management Possible?
Posted by: wbaker - 01-31-2019, 08:00 PM - Forum: UserSpice 4.4 - No Replies

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.

Any suggestions?


Photo [UserSpice] Setup email server
Posted by: egynw - 01-30-2019, 04:29 PM - Forum: Documentation - No Replies

Hi,
Here I will Share with you how to Activate or setup your userspice email server
For All Who Got "Mail ERROR" Message Or "Email verification is not enabled. Please contact the System Administrator"
userspice SMTP Server settings Big Grin

First: Form your Admin Dashboard Go to Email Settings.
And Set up your Gmail SMTP For Free  Smile
At Website Name: Type your Site name.
Let "SMTP Server: smtp.gmail.com" As it and "SMTP Port:587".
Other Forms Like Screenshot  Wink 

[Image: 2m3Pwzb.jpg]
Save And Test at test page and  forget password page too.
Regards.



Attached Files Thumbnail(s)