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
/portal.php 39 require_once





× 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 359 online users.
» 0 Member(s) | 356 Guest(s)
Applebot, Bing, Google

Latest Threads
UserSpice Alpha Testing a...
Forum: News Center
Last Post: ivinsons
11-08-2024, 06:13 PM
» Replies: 13
» Views: 42,475
UserSpice 4.4 Development
Forum: News Center
Last Post: Amelie12
09-21-2024, 12:23 PM
» Replies: 4
» Views: 15,199
Welcome to the new UserSp...
Forum: News Center
Last Post: ivinsons
08-25-2024, 07:39 AM
» Replies: 2
» Views: 27,918
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

 
  Problems with update to 4.07
Posted by: vkirov - 04-04-2019, 05:50 AM - Forum: UserSpice 4.4 - Replies (10)

Hi,
I just downloaded the new update and replaced the files, when I run users/updates it says that it finished applying 0 updates (0 errors) and it still says i`m running 04. Also I found out that there are languages now, when I translate a file in my own language, where can I change the default language?

P.S
I`m translating to Bulgarian, where can I submit my translation file, so that others can use it?

Thanks in advance!


  Login validation with Android App
Posted by: daveyc - 04-01-2019, 09:43 AM - Forum: UserSpice 4.4 - Replies (2)

Hi guys,

I'm new to userspice and have been building an IOT platform using the system. Its coming together well. I now need to allow login from an android app to the platform.

At the moment, I'm just trying to send a validation message that the user and password are correct. I've tried using POST to send the data to the login form but I am not getting any response. When I try it in Postman, I get an error page with the message:

"There was an error with your form. Please go back and try again. Please note that submitting the form by refreshing the page will cause an error."

Am I going about this the wrong way?


  db query in during_user_creation
Posted by: LoveJailbreak4S - 03-29-2019, 07:45 AM - Forum: UserSpice 4.4 - Replies (3)

Hello,
at first, i love Userspice for so feature rich and easy understanding (after one week of reading and testing).
I changed the core _join.php file for my needs with a Dropdown to select with "typ" the new user is. My typs are "model", "videograph" and "fotograph".
now the chellange: i tried to edit the during_user_creation to do the following:
If the new user select the typ "model", give him automatically the permissionlevel "4" (4 is permissionlevel "model" i have created).
i tried an if-statement but i think this is really garbage (copied the ['typ'=>Input::get('typ')] code and match it with 'model')

Can you help me with this if-statement and db query?

Have a nice day


  G'day all. My name is Juan
Posted by: webbounty - 03-23-2019, 08:32 PM - Forum: New to UserSpice? - Replies (1)

Thank you for having me in your community.....


  Hierarchical Priviledges
Posted by: artoo80 - 03-22-2019, 03:30 PM - Forum: UserSpice 4.4 - Replies (1)

Thank you for you work on the framework.

I appreciate your work on the framework. I really do.  I notice that currently  it is possible to add new privilege levels, so for instance (following the default implementation with user-admin level) we may have:

  • Cleric
  • Administrator
  • Candidate
  • Fresher
  • Graduate
  • Lecturer

However it does not seem to be possible to have (E.g.) "../users/account.php" page as a private page available to multiple user levels and it seems I can only add one user level at the time.

One option would be to consider that all these user levels are actually sub-level of "user" and create another table to allow the definitions of these. However, this seems a hack around your neat implementation and management of privileges using the Admin interface.

If I wanted one page (e.g.) "../usersc/lecture.php" to be private and available only to freshers, graduate and lecturer but not to candidates how do I achieve that without modifying the logic of your priviledge check?

I was trying to reverse engineer your permission check but then I thought I ask as maybe I have picked up the wrong end of the stick with this problem.

(03-22-2019, 03:30 PM)artoo80 Wrote: Thank you for you work on the framework.

I appreciate your work on the framework. I really do.  I notice that currently  it is possible to add new privilege levels, so for instance (following the default implementation with user-admin level) we may have:
  • Cleric
  • Administrator
  • Candidate
  • Fresher
  • Graduate
  • Lecturer

However it does not seem to be possible to have (E.g.) "../users/account.php" page as a private page available to multiple user levels and it seems I can only add one user level at the time.

One option would be to consider that all these user levels are actually sub-level of "user" and create another table to allow  the definitions of these.  However, this seems a hack around your neat implementation and management of privileges using the Admin interface.  

If I wanted one page (e.g.) "../usersc/lecture.php" to be private and available only to freshers, graduate and lecturer but not to candidates how do I achieve that without modifying the logic of your priviledge check?

I was trying to reverse engineer your permission check but then I thought I ask as maybe I have picked up the wrong end of the stick with this problem.

Like I said " I got the wrong end of the stick". You can set multiple privileges to users instead of doing so for pages. It makes sense.

Then I guess it will be easy to figure out how to set up features in the page that maybe drawn only in case a user has a specific priviledge.


  creating a user dossier
Posted by: LBC - 03-22-2019, 02:56 PM - Forum: UserSpice 4.4 - Replies (11)

Hi,

I am trying to create a sort of user dossier. I'd like it to contain the info from _admin_user.php but be presented like the account.php.
How would I go about this?

I know I need something like this line: ?view=user&id=<?=$v1->id?>'><?=$v1->username?>, to show the data from a particular user. But I can't figure out how to get it to work.

Any ideas?


Big Grin editing the _admin_users.php
Posted by: LBC - 03-21-2019, 08:39 AM - Forum: UserSpice 4.4 - Replies (1)

Hello!

I finally managed to create my very own template, and after a lot of tinkering have my website working with the latest UserSpice version! Yay  Big Grin !

I am now trying to edit the _admin_users.php file, but copying it to usersc and editing it there does not seem to work. UserSpice still just looks at the users/views/_admin_users.php

Any ideas how to get around that?


Big Grin hot to get user ids from database to array
Posted by: Vtins - 03-21-2019, 07:00 AM - Forum: UserSpice 4.4 - Replies (3)

Hi,
i have a problem with my array_filter
Example i need all usernames or ids for the array_filter like the $filter examples

How can i get all ids into this format

thanks a lot for checking my thread

PHP Code:
$filter = array("1","2","3"); 
or

PHP Code:
$filter = [1,2,3]; 

array_filter example
PHP Code:
$filter = array("1","2","3");
$filter = [1,2,3];
                
$filtered 
array_filter($responseData['json'], function ($item) use ($filter) {
return 
in_array($item['id'], $filter);
}); 
admins please move my thread At


  Sending emails
Posted by: paragonjenko - 03-19-2019, 06:20 PM - Forum: UserSpice 4.4 - Replies (1)

Is this possible through the framework? Searching through the code I don't understand the process that has been done for example in "verify_resend.php".


  Plugins documentation
Posted by: artoo80 - 03-19-2019, 11:32 AM - Forum: UserSpice 4.4 - Replies (1)

I am considering using usespice as the auth framework for an application I am building. It seems v neat. 

I have noticed you speak about plugins. Is there documentation about them?