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 576 online users.
» 0 Member(s) | 574 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

 
  UserSpice and php7
Posted by: smithe0158 - 06-03-2017, 05:21 PM - Forum: New to UserSpice? - Replies (1)

I'm a new to UserSpice. About 3 days ago I attempted to install it... the install script is awesome, it determined my version of php was too old. So I updated it from 5.2 to 7 and then troubleshooted why the require_once references would not work. Long story short, I changed the php version from 7 to 5.6 ans she worked like a charm.

Keep up the good work!!


  Dan? Dan!
Posted by: Renegades - 06-03-2017, 02:33 PM - Forum: New to UserSpice? - Replies (1)

I have as little of an idea about PHP as an egg would know how to lay an egg. Seriously.

Hi, I am Renegades (o/c this is my screen name) and I am new on the block. I may sound really daft or birdbrained in my questions, but being an egg, that may just be me, lol.

Having said that, and that's why my heading, Dan, …you started coding just over 16 months ago? Wow, I take my head off and bow in front of you! You aren't by any chance related to Albert? Smile Your entire way of explaining, written as in your videos, it's really relaxing just to follow.

Thank you, Dan, not only for that, but also and especially for your fantastic UserSpice. Absolutely fascinating<em>. And thank you also to all the helpful, patient people on this forum who all contribute towards making UserSpace outstandingly unique.

I'm sure I'll start bothering you soon with my annoying questions. For now but, I'll enjoy reading and watching my way through to (hopefully) get some little understanding into my Neuron chamber.


  hasPerm
Posted by: Brandin - 06-03-2017, 01:16 PM - Forum: UserSpice 4.3 and Below - Replies (3)

Hello,

Today is the first time I've tried to use hasPerm, and it didn't turn out well. I am wondering if maybe there is something wrong, here is the error:
Notice: Undefined variable: master_account in /home/aircentralized/public_html/templates/users/helpers/us_helpers.php on line 788

Warning: in_array() expects parameter 2 to be array, null given in /home/aircentralized/public_html/templates/users/helpers/us_helpers.php on line 788

Thank you.


  update documentation abou US
Posted by: marceloatmartins - 06-01-2017, 11:57 AM - Forum: UserSpice 4.3 and Below - Replies (13)

Hello everyone, I just wanted to comment on the difficulty of applying the examples found in UserSpice videos in Youtube to version 4.4
I noticed that the existing documentation does not refer to version 4.4, so I have difficulties to use the excellent tool.
Can someaone to help me ?
Thanks


  alt_dev_path
Posted by: marceloatmartins - 05-31-2017, 06:50 PM - Forum: UserSpice 4.3 and Below - Replies (3)

Hi everybody,
I don´t find "alt_dev_path" in config.php. I'm using UserSpice 4.4. Where is this constant?
Thanks


  user public profile throws php error
Posted by: firestorm - 05-30-2017, 03:58 PM - Forum: UserSpice 4.3 and Below - Replies (3)

if a user registers or a user is added from the backend but they don't log in, with error reporting on their public profile displays the following error:

Notice: Undefined offset: 0 in /home/blanked_for_security/public_html/UserSpice/users/classes/DB.php on line 155

Notice: Trying to get property of non-object in /home/blanked_for_security/public_html/UserSpice/users/profile.php on line 46


  Managing page access for custom dirs
Posted by: Alan - 05-29-2017, 07:10 PM - Forum: UserSpice 4.3 and Below - Replies (5)

Hello, it's possible I missed this part in the documentation somewhere but basically I would like to manage
which user groups are allowed to visit php pages that are located in 1 or more levels of directories.
CUrrently admin_pages.php only seems to be listing pages in the /users directory, and (custom) pages in the root directory, but not anything else. How do I make sure pages in -let's say- directory /xyz are also listed in order for me to be able to set user group access?

Thanks in advance.


  User Management Changes
Posted by: Brandin - 05-27-2017, 02:55 PM - Forum: Modifications and Hackery - Replies (12)

Hello,

I have made changes to my system that will allow you to designate User Management personnel who can safely and securely work with users in your system without having the risk of breaking things.

Moving the add user form to its own page:
https://hastebin.com/ivaxusayak.xml (save as adduser.php in usersc)

Note that this adduser.php page does not have the permission selector, because my system is based on levels allowing access to specific pages, e.g. everyone has the default level of "1" (User), if you are a User Manager, you have access to certain pages, System Admin, Database Admin, etc. So this add page will auto-assign the user to Level 1.

Remove the delete buttons from the admin_users.php page and modify the columns, remove the adduser form:
https://hastebin.com/ijebodiwil.xml (save as admin_users.php in usesrc)

Add the delete button to admin_user.php, and only allow user to add or remove permissions THEY have, for example:
Bob has Users Level 1, 2 and 4.
Editor has Users Level 1, 3 and 4.
The System has User Levels 1, 2, 3, 4 and 5.

The Editor can only see Levels 1 and 4 on Bob's profile in the remove section, and Level 3 in the Add Section since those are the permissions they have assigned to themselves.

https://hastebin.com/liwelegiti.sm (save as admin_user.php in usersc).

This calls for a custom function:
https://hastebin.com/fotiyagiga.php

I hope these changes work for some of you Smile


  Page permissions
Posted by: scott - 05-27-2017, 11:01 AM - Forum: UserSpice 4.3 and Below - Replies (4)

Good Afternoon,
I am having some difficulty controlling access. If I have some custom pages, I put them public_html/users, then assign permissions in the dashboard under the pages tab.

If I have users of admin and customer, and I do not wish the customer to see a page called say, secret.PHP, I would put the page in public_html/users and make the page private and give access to admin and not the customer.
Am I right? I think I am going slightly mad.

I have the following at the top of each page:

Code:
<?php require_once 'init.php'; ?>
Code:
<?php require_once $abs_us_root.$us_url_root.'users/includes/header.php'; ?>
Code:
<?php require_once $abs_us_root.$us_url_root.'users/includes/navigation.php'; ?>
Does anyone have any idea where I am going wrong please?
Scott


  Custom classes/pages placement without disturbing core
Posted by: gaiusjaugustus - 05-24-2017, 09:18 PM - Forum: UserSpice 4.3 and Below - Replies (1)

I'd like to be able to update UserSpice whenever updates are available. But I'm adding functionality. So this is mostly a question of the best practices for placement of files and such.

1) Adding functions
My understanding is that all custom functions should go in usersc/includes/custom_functions.php
And if I want to add additional files with custom functions, I can require them within custom_functions.php. Is this the best practice? I know I could add an additional require_once to us_helpers.php, but that would alter the core files, which I don't want to do.

2) Adding pages
My understanding is that custom pages can be added to the users/ folder. Should I be adding them to usersc directory instead, or is the users folder a more appropriate place for them? I haven't tried usersc yet to see if they even show up in the Admin Dashboard as pages.

3) Adding custom Validation (and maybe other classes in the future)
I've found that I need to validate dates as well as the currently available validations. I don't necessarily want to add to the current Validate class since that will alter core functionality. Where should I put a file with new classes? My first thought is to add a folder to usersc and then require from the custom_function.php, but that may be naive?


Thanks in advance for your suggestions.
Gaius