Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 360 online users. » 0 Member(s) | 359 Guest(s) Bing
|
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
|
|
|
Another delete user bug |
Posted by: Angel - 09-15-2016, 04:44 PM - Forum: UserSpice 4.3 and Below
- Replies (4)
|
|
Hey developers,
After the admin deletes a user from admin_users.php, there is an error on the page saying:
Notice: Undefined variable: validation in D:\wwwroot\SET_Apps\users\admin_users.php on line 176
Fatal error: Uncaught Error: Call to a member function errors() on null in D:\wwwroot\SET_Apps\users\admin_users.php:176 Stack trace: #0 {main} thrown in D:\wwwroot\SET_Apps\users\admin_users.php on line 176
I looked into admin_users.php and changed line 175 from this:
if (!$form_valid && Input::exists()){
to:
if (!$form_valid && Input::exists() && isset($validation)){
Now the error is gone. Please let me know if this is a bad fix.
Thanks
Angel
|
|
|
Common Modifications |
Posted by: brian - 09-15-2016, 04:31 PM - Forum: Modifications and Hackery
- Replies (32)
|
|
Hi everyone, if you have any modifications you have done to UserSpice (any version really), let us know by replying below...something to the effect of "I needed to do X so I modified Y and Z to accomplish it". We want to determine whether there are any common mods people are making, and maybe haven't already brought them up here for discussion.
This will help us understand whether there are some features or "plugin" style developments we need to include in US5 or 4.2.
|
|
|
Something is wrong with the permissions |
Posted by: GePraxa - 09-15-2016, 04:29 PM - Forum: UserSpice 4.3 and Below
- Replies (8)
|
|
I continue with the tests ... I wanted to try the following:
Remove the three user groups that come by default "users", "administrator" and "test" from the menu can not delete the first two, but if from the database ... can someone and delete them without knowing that happen ... permits break, I think it is important to correct this or put an ad in which indicate that if these first two groups are removed everything breaks.
Although the ideal would correct this, we should be able to delete the first two groups if they so want without breaking the code ...
Regards!
|
|
|
Admin Dashboard Users Online Table showing unexpected error |
Posted by: Angel - 09-15-2016, 04:10 PM - Forum: UserSpice 4.3 and Below
- No Replies
|
|
Hi UserSpice developers,
First I would like to thank you guys for developing such a nice software!
As I'm implementing Userspice in my project, I found that after I delete a user from the admin_users.php, the "Loggedin Users" table in admin dashboard is showing errors like this:
Notice: Undefined offset: 0 in D:\wwwroot\SET_Apps\users\classes\DB.php on line 155
Notice: Trying to get property of non-object in D:\wwwroot\SET_Apps\users\helpers\helpers.php on line 67
I later realized that this happens because when the user is deleted, it is deleted from these three tables according to us_helpers.php:
function deleteUsers($users) {
$db = DB::getInstance();
$i = 0;
foreach($users as $id){
$query1 = $db->query("DELETE FROM users WHERE id = ?",array($id));
$query2 = $db->query("DELETE FROM user_permission_matches WHERE user_id = ?",array($id));
$query3 = $db->query("DELETE FROM profiles WHERE user_id = ?",array($id));
$i++;
}
return $i;
}
But perhaps the users_online table should also be updated in this for loop. so I added one line of code in this function, now it looks like this:
function deleteUsers($users) {
$db = DB::getInstance();
$i = 0;
foreach($users as $id){
$query1 = $db->query("DELETE FROM users WHERE id = ?",array($id));
$query2 = $db->query("DELETE FROM user_permission_matches WHERE user_id = ?",array($id));
$query3 = $db->query("DELETE FROM profiles WHERE user_id = ?",array($id));
//########################################################## Changed by Angel Sun
$query4 = $db->query("DELETE FROM users_online WHERE user_id = ?",array($id));
//########################################################## Changed by Angel Sun
$i++;
}
return $i;
}
Now the admin dashboard error goes away.
I'm using Userspice 4.1.3. If this bug is already fixed in the newest version, please ignore this report.
Thanks
Angel
|
|
|
UserSpice 5 Alpha Options |
Posted by: brian - 09-14-2016, 05:28 PM - Forum: UserSpice 5 - Roadmapping the Future
- Replies (3)
|
|
Just to get a feel on some things...is there anyone that would be interested in providing feedback on the UserSpice 5 EARLY Alpha? Before you reply, consider these points:
* The code is changing VERY regularly in a lot of files
* The only "update" recommendation we will have is "delete everything"
* No installer, just be a DB dump most likely and a zip file with the code
* Stuff may break, DB changes from day to day
* We might throw it all out and start again
* We would like feedback, but we can't please everyone
I don't think we are ready for it quite yet, but before we start closing sections of code, it would be nice to get SOME feedback on some of the things that are changing or are being introduced.
|
|
|
|