Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 384 online users. » 0 Member(s) | 382 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
|
|
|
Permissions for manually added users |
Posted by: evan - 09-25-2016, 07:04 AM - Forum: UserSpice 4.3 and Below
- Replies (4)
|
|
I believe there is a bug when you manually add an admin user from the admin panel. I am using 4.1.5 and when you add an administrator the new user cannot login properly as they get created with only Administrator permission and not User permission too (took me a while to figure that out).
Is there a way to automatically add the User permission as well when you create a new Administrator (or, more generally, add multiple permissions for a manually added user)? Ideally, since you are specifying the user type when creating the user the permissions assigned should match the user type.
|
|
|
Automatic logout all userspice pages when one of them is logged out |
Posted by: Angel - 09-23-2016, 01:32 PM - Forum: UserSpice 4.3 and Below
- Replies (28)
|
|
Hi UserSpice developers,
I'm currently testing my implementation of userspice on my project. One thing I notice is that when user opens more than 1 page of userspice in the browser, and then logout in one of the pages, the other pages still remains active unless you refresh the page. I'm thinking if there is a way to add an automatic logout on all UserSpice pages when the user logout in one of them? May be some changes in the navigation.php or header.php or ini.php so that all userspice pages would have this function?
Thanks for all your effort in maintaining this website!
Best,
Angel
|
|
|
login at bottom says userspice is offline |
Posted by: plb - 09-22-2016, 07:57 PM - Forum: Off-topic Discussions
- Replies (1)
|
|
I was just looking at a forum entry and didn't realize my login had timed out. I went to the bottom of the page and entered username/passwd and clicked the submit button and it took me to another WP login form and when I logged in there it took me to the "userspice.org is offline" page over on mudministry.org
|
|
|
Permissions for pages |
Posted by: kampfaffe - 09-22-2016, 01:49 PM - Forum: UserSpice 4.3 and Below
- Replies (6)
|
|
Hello,
I have set the permissions for my own pages in the dashboard. The side only shall be shown if one has the right to it (Admin)
I hope somebody can say me what I have made wrong.
Best regards,
kampfaffe
|
|
|
US4.1.5 - Table 'Pages' emptied by users/admin_pages.php |
Posted by: yolo - 09-22-2016, 09:40 AM - Forum: UserSpice 4.3 and Below
- Replies (13)
|
|
Hi,
I did a fresh installation of UserSpice 4.1.5
All seems to be working flawless except when I connect to the Admin panel and click on "users/admin_pages.php".
Got those messages 3 times each :
( ! ) Notice: Undefined variable: row in /var/www/html/mlm08/users/helpers/us_helpers.php on line 166
Call Stack
# Time Memory Function Location
1 0.0003 262696 {main}( ) .../admin_pages.php:0
2 0.0066 702056 getPathPhpFiles( ) .../admin_pages.php:52
( ! ) Warning: Invalid argument supplied for foreach() in /var/www/html/mlm08/users/admin_pages.php on line 53
Call Stack
# Time Memory Function Location
1 0.0003 262696 {main}( ) .../admin_pages.php:0
and then the list of files from "Manage Page Access" is blank.
Go back to Admin panel and got this message :
"You must go into the Admin Panel and click the Manage Pages button to add this page to the database. Doing so will make this error go away."
Unfortunately, the 'pages' table of the database has been emptied and can't add new ones from the site, only from the database.
Reinstall but same behavior.
How can I get rid of this ?
Config : local install on Fedora 24 (Files user : apache, group : mylocaluser & SELinux enabled, Php 5.6.25).
Idem on my server Centos 7.2, php 7.
Thank you for your support.
|
|
|
Help to query the database |
Posted by: GePraxa - 09-21-2016, 03:57 PM - Forum: Documentation
- Replies (4)
|
|
I'm looking at the manual, but I think not all understand as it is, for example, we find the following documentation:
$director_id = 1;
$query = $db->query("SELECT * FROM camps WHERE director_id = ?", array($director_id));
$x = $query->results();
Then, as I do to show results, ie in this case I want a list of "names" in "camps" ... I just want to know how to do the "echo" or as I show in html the results?
I propose to make a manual like this.
Is costing me a lot of work interact with the database and predefined classes, I really do not know how I am suffering.
Most rookies just want to show something that is already in the database, send the information to achieve, but I can not show it.
I do not want to use functions because it is more difficult for me, I just want a simple query and display the results.
Could you help me?
|
|
|
input.php in 4.1.5 allows arrays, needs extended |
Posted by: plb - 09-19-2016, 02:12 PM - Forum: Modifications and Hackery
- Replies (3)
|
|
Allowing arrays in Input.php was a nice addition - I had already done some stuff to work around that and can no go restructure my code to take advantage of US utilities...
However, I note that it only allows for the simplest <input type="x" name="myName[]" /> type of arrays. Going all recursive to handle multi-dimensional arrays is probably out of scope, but allowing indices that are either non-ordered numbers or even text (<input type="x" name="myName[first]" /> <input type="x" name="myName[last]" />) is trivial and is probably needed in a good 20-30{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d} of uses when people use arrays in input fields (according to my *very* rough guesstimate in my personal experience which may be wildly off-base).
I haven't run this code, but I think it will take care of it:
Code: public static function get($item){
Code: if (isset($_POST[$item])) {
Code: If the $_POST item is an array, process each item independently, and return array of sanitized items.
Code: if (is_array($_POST[$item])){
Code: foreach ($_POST[$item] as $k => $postItem){
NOTE THE Code: $postItems[$k]=self::sanitize($postItem);
NOTE THE Code: return self::sanitize($_POST[$item]);
} elseif(isset($_GET[$item])){
/*
If the $_GET item is an array, process each item independently, and return array of sanitized items.
*/
if (is_array($_GET[$item])){
$getItems=array();
foreach ($_GET[$item] as $getItem){
$getItems[]=self:anitize($getItem);
}
return $getItems;
}else{
return self:anitize($_GET[$item]);
}
}
return '';
}
|
|
|
UserSpice 4.2 Alpha Released - Now with social logins! |
Posted by: mudmin - 09-18-2016, 11:47 PM - Forum: UserSpice 4.3 and Below
- Replies (4)
|
|
Check out the latest Alpha, which is a bridge to 5.0. We're not releasing a 4.1 to 4.2 update for the alpha version, but one will be available for final release. Feel free to install 4.2 and play with it. Note that the main reason social logins were never integrated in the past is that there is setup that needs to be done on the user's side in order for them to work.
Documentation is here http://userspice.org/documentation-social-logins/ to guide you through the process. Expect about 10 minutes of config for each Facebook and Google. The good news is that you can use the same keys you generate on the final release of 4.2.
Integration is kind of cool. On many sites, when you create a "traditional" account, you're locked into that login method from there on out. If you try to login with a social login, it just creates a new account. UserSpice has solved that. Regardless of whether you login traditionally, via Facebook, or via Google, your user will have ONE account and the permissions will transfer regardless of how the user signed in.
Some things could be cleaned up a little bit on the code side, but it does function nicely.
A few notes: Most people when they start developing with something like that are going to go crazy signing in from a bunch of accounts and manually removing users from the database. That's fine, but after spending a fair bit of time developing this, my suggestion would be to do your tests in incognito or private browsing mode. Also, feel free to go into Google and Facebook (as the end user) to "revoke" your sign in privileges on your own site. That will give you more of a real world experience.
|
|
|
Userspice 4.1.5 - user_settings.php |
Posted by: Angel - 09-16-2016, 04:54 PM - Forum: UserSpice 4.3 and Below
- Replies (3)
|
|
Hi guys,
Thanks a lot for all your answers to my posts! As you suggested, I just downloaded userspice 4.1.5 and see that lots of the bugs are fixed.
Still, there is a really minor typo in the old versions that hasn't been addressed. In user_settings.php password reset section, there is an instruction for new password saying "8 characters minimum". But in fact the validation is set for 6 characters and the corresponding error message also shows "New Password must be a minimum of 6 characters.".
Thanks
Angel
|
|
|
|