Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 468 online users. » 0 Member(s) | 466 Guest(s) 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
|
|
|
Status Update 012 |
Posted by: mudmin - 09-02-2017, 04:19 PM - Forum: UserSpice 4.3 and Below
- Replies (32)
|
|
Notifications work except there is no number for new notifications at the top. I expect that to be an easy fix. Thanks @Karsen for everything.
New db import required.
|
|
|
API? |
Posted by: mudmin - 09-02-2017, 12:52 PM - Forum: UserSpice 4.3 and Below
- Replies (4)
|
|
I've had a few requests over the years for a UserSpice API. I haven't really known what to say when it comes to something like that because it's such a broad term and I can't think of one particular use case that everyone needs and you absolutely do not want an open API where people are hammering on your db if you don't know what you're doing.
Thoughts?
I've thought about showing people how to just write their own. My primary use case for mine is connecting my separate products together. I have a point of sale system based on UserSpice. I also have a camp registration system based on UserSpice. I need my point of sale to reach out to the camp registration system, see if the camper whose RFID wristband was scanned has enough money in their account to complete the purchase and if they do, subtract the money, record the transaction, and make the purchase.
Again...that's a super custom use case. Some people may want their users to have a limited number of API requests. Some might be server to server like mine. I'm just not finding that common scenario that I can build a generic API around.
My only thought was to add a table of tables in the db and if the table is in that list, it can be queried by the API. Maybe a second table of excluded fields like users->password. That's about all I can think of.
|
|
|
Status Update 011 |
Posted by: mudmin - 09-02-2017, 12:42 PM - Forum: UserSpice 4.3 and Below
- No Replies
|
|
I pushed out @Karsen's Notification class. I'm getting...
Notice: Undefined property: stdClass::$is_read in C:\xampp\htdocs\43\users\classes\Notification.php on line 38
I'm sure that's my implementation not his code.
I'm also not 100{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d} sure how the system works. It will probably make sense once that error goes away.
What am I missing?
|
|
|
Multiple Admins? |
Posted by: Katronix - 09-02-2017, 05:40 AM - Forum: UserSpice 4.3 and Below
- Replies (6)
|
|
Hey all,
So things are going really well. However I need to know if there is anyway to make the system support multiple admins?
I realize that generally user #1 is considered an admin however is it possible for multiple people to have that access?
If so what settings do you need to give the additional Admins?
Thanks!
|
|
|
Different CSS engines |
Posted by: Katronix - 09-01-2017, 07:00 PM - Forum: UserSpice 5 - Roadmapping the Future
- Replies (2)
|
|
One possible suggestion for a future version of US, and I realize this one is probably more inline for US 6 or so, but there are more CSS engines than just Bootstrap, it would be nice if US could be CSS Engine independent, or perhaps say know of Bootstrap, and Foundation.
Anyways just a thought.
|
|
|
Problems with "hasPerm" function |
Posted by: bladerunner - 08-31-2017, 05:57 AM - Forum: UserSpice 4.3 and Below
- Replies (7)
|
|
Hi!
I'm having some problems with the hasPerm function. In a part of a page (dashboard.php), I want to show a menu only to users with permission id=2. So, I write:
<pre> Code: if(hasPerm([2],$user->data()->id)){
// Some stuff
}
</pre>
Everything works fine if user "admin" is logged in ("admin" has permission of "Administrator" (id=2) and "User" (id=1)). But when user "dummy" (who has permision of "User" (id=1) only) I get this error:
Notice: Undefined variable: master_account in C:\wamp\www\true\admin\production\users\helpers\us_helpers.php on line 788
Call Stack
# Time Memory Function Location
1 0.0008 259656 {main}( ) ..\dashboard.php:0
2 0.0546 1098544 hasPerm( ) ..\dashboard.php:50
( ! ) Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\true\admin\production\users\helpers\us_helpers.php on line 788
Call Stack
# Time Memory Function Location
1 0.0008 259656 {main}( ) ..\dashboard.php:0
2 0.0546 1098544 hasPerm( ) ..\dashboard.php:50
3 0.0821 1100296 in_array ( ) ..\us_helpers.php:788
Can anyone give some help, please? I can't understand what's happening here. Thank you!
|
|
|
function didn't work |
Posted by: Katronix - 08-31-2017, 01:53 AM - Forum: UserSpice 4.3 and Below
- Replies (5)
|
|
Hello all from Soggy Houston, TX!
I tried this function:
function getConfig ($search='')
{
require_once 'users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
$config = $db->query("select options from config where setting = ?",array($search));
$back = $config->first()->options;
return $back;
}
and received the following errors:
Notice: Undefined variable: abs_us_root in C:\xampp\htdocs\follower\function.php on line 7
Notice: Undefined variable: us_url_root in C:\xampp\htdocs\follower\function.php on line 7
Notice: Undefined variable: db in C:\xampp\htdocs\follower\function.php on line 8
Fatal error: Uncaught Error: Call to a member function query() on null in C:\xampp\htdocs\follower\function.php:8 Stack trace: #0 C:\xampp\htdocs\follower\index.php(11): getConfig('logo') #1 {main} thrown in C:\xampp\htdocs\follower\function.php on line 8
This was to the call of: $set = getConfig('logo');
Can anyone point me where I went wrong?
|
|
|
Adding new links in the header |
Posted by: haydentech - 08-30-2017, 07:43 PM - Forum: UserSpice 4.3 and Below
- Replies (6)
|
|
I've added a couple new links to the header, via usersc/navigation.php. That works fine, and those links get rolled up into the hamburger menu on mobile, as expected.
So my question is partially related to UserSpice and partially to Bootstrap... I now want to add a 3rd item to the header, which should NOT get rolled into the hamburger menu on mobile. Any ideas how to accomplish this?
|
|
|
|