Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 379 online users. » 0 Member(s) | 377 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
|
|
|
sign up to specific user group |
Posted by: Busy Tech - 01-07-2018, 12:36 PM - Forum: UserSpice 4.3 and Below
- Replies (1)
|
|
hi,
for my website i need to have 2 types of accounts for my users for this i just created another user group and then have to manually change some users user groups however doing this is very time consuming ,
so i am wondering if there is a way to make the user have to pick a user group on the sign up form
|
|
|
New Page |
Posted by: johnson72764 - 01-05-2018, 06:27 PM - Forum: UserSpice 4.3 and Below
- Replies (5)
|
|
I have tried...but can't seem to figure out how to get something to work...
How do I create a new page?
I have tried but continually get errors....
What I am trying to do...
I want a subscribed user to log in, and be taken to a 'new page' ...like 'logged_in.php'
this is where they will be able to download different applications...
I will be able to give a user privilege to this page as all the other pages...
Seems like it should be simple... I have tried to use the 'empty.php' in the usersc folder...
I copied the php from the index page...but get errors due to log in issues...
Thanks in advance for guidance
|
|
|
UPDATE DB |
Posted by: Jamezs - 01-04-2018, 02:09 AM - Forum: UserSpice 4.3 and Below
- Replies (10)
|
|
Okay first of all thank you guys for this project. It's easy to use and very exandable!
I use it for my own CMS and event website etc. But I'm very stuck on the latter with updating agenda items.... I use the insert function to make events. U use a db->query(DELETE FROM) to remove it. But updating just doesn't seem to work. I tried the update function provided by userspice and typing out a db->query(UPDATE agenda SET desc = ? WHERE id = $id) But nothing seems to work. Which is weird since it does give the succes message.
I really don't know what to do and am a beginner in PHP and sql. Can someone please be so kind to point me in the right direction?
Here is the PHP file:
<?php
require_once 'users/init.php';
require_once $abs_us_root . $us_url_root . 'users/includes/header.php';
require_once $abs_us_root . $us_url_root . 'users/includes/navigation.php';
if (!securePage($_SERVER['PHP_SELF'])) {
die();
}
$id = $_POST['agendaid'];
$title = $_POST['title'];
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$time = $_POST['time'];
$desc = $_POST['desc'];
$fblink = $_POST['fblink'];
$content1 = $db->query("SELECT * FROM agenda WHERE id = ?", [$id]);
$results = $content1->results();
$z1 = $query->results(true); //dump($z[0]);
$x = $z1[$eventid]["eventid"];
error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);
if ($z1[0]) {
$field = array('desc' => $desc); //column_name=>entry
$db->update('agenda', $id, $fields);
$db->query("UPDATE agenda SET desc = ? WHERE id = ?", [$desc, $id]);
echo '<div style="text-align:center;">Evenement is succesvol gewijzigd.<br /><br />Je wordt automatisch binnen 5 seconden teruggestuurd naar de vorige pagina.</div>';
header("refresh:5;url=testpermissions.php");
error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);
} else {
echo '<div style="text-align:center;">Er is iets fout gegaan...</div';
header("refresh:5;url=testpermissions.php");
}
if ($db->query()) {
}// End of if profile is ok
else {
echo 'Something went wrong... Contact the website administrator for help';
}
require_once $abs_us_root . $us_url_root . 'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls
|
|
|
Addition to DB class |
Posted by: nessinits - 01-03-2018, 02:41 PM - Forum: UserSpice 4.3 and Below
- Replies (3)
|
|
Could you guys add the following to the DB class?
public function getColCount(){
return $this->_query->columnCount();
}
public function getColMeta($counter){
return $this->_query->getColumnMeta($counter);
}
|
|
|
4.3.10 login.php warning |
Posted by: gerald - 01-03-2018, 02:06 PM - Forum: UserSpice 4.3 and Below
- Replies (1)
|
|
I get this warning when ever I login to UserSpice:
Code: PHP Notice: Undefined variable: id in users/login.php on line 108
Changing $id to $user->data()->id line 108 of users/login.php makes the warning disappear:
Code: $db->query("UPDATE users SET last_confirm = NOW() WHERE id = ?",array($user->data()->id));
|
|
|
Aprove user accounts by admin |
Posted by: gerald - 01-02-2018, 05:07 PM - Forum: UserSpice 4.3 and Below
- Replies (2)
|
|
I want to activate new user accounts only AFTER approving them by administrators. So additionally to verification of user emails, user accounts have to get checked by admin to make them work on my userspice site.
Is there an easy way to do that?
I see there is a block option on user accounts, so maybe one option would be to block users by default and only make them available after unblocking them manually. Would that have any negative side effect?
|
|
|
Forbidden after update from 4.2 -> 4.3.2 |
Posted by: nessinits - 01-01-2018, 10:06 PM - Forum: UserSpice 4.3 and Below
- Replies (13)
|
|
Hi,
After I updated userspice I get:
Forbidden
You don't have permission to access /ota/dev/am/users/admin_verify.php?actual_link=http://mysite/ota/dev/am/users/admin_permissions.php&page=users/admin_permissions.php on this server.
Because I use SSL I altered the url into https, but it results in the same issue.
Does anyone have an idea what is wrong?
Kind regards,
nessinits
|
|
|
Login via JSON Web Token |
Posted by: petey - 12-30-2017, 05:05 AM - Forum: UserSpice 4.3 and Below
- Replies (4)
|
|
Hello all,
Hoping you all will be able to help with this.
The website I am developing is using Userspice. The website; however, is a part of a larger organization that requires logins to be handled by their central server via a JSON Web Token. After the login is successful, it passes the user's email, username, and a few other JSON fields back to our Userspice website. The email and username that is passed back from the central server will need to be verified with our Userspice user database, and if there is a match, a session will be created.
I was wondering how to go about this? I begun messing with the User.php file, but had issues editing the loginEmail function. I attempted to remove the password verification to just do it solely off of the email passed back to the website and it did not work:
<pre> Code: public function logincentral ($email = null){
if (!$email && $this->exists()) {
Session::put($this->_sessionName, $this->data()->id);
} else {
$user = $this->find($email);
if ($user) {
Session::put($this->_sessionName, $this->data()->id);
$date = date("Y-m-d H:i:s");
$this->_db->query("UPDATE users SET last_login = ?, logins = logins + 1 WHERE id = ?",[$date,$this->data()->id]);
$this->_db->query("UPDATE users SET last_confirm = ? WHERE id = ?",[$date,$this->data()->id]);
$ip = ipCheck();
$q = $this->_db->query("SELECT id FROM us_ip_list WHERE ip = ?",array($ip));
$c = $q->count();
if($c < 1){
$this->_db->insert('us_ip_list', array(
'user_id' => $this->data()->id,
'ip' => $ip,
));
}else{
$f = $q->first();
$this->_db->update('us_ip_list',$f->id, array(
'user_id' => $this->data()->id,
'ip' => $ip,
));
}
return true;
}
}
return false;
}
</pre>
The login page is as follows, after getting the JSON fields:
<pre>Code: $user = new User();
$login = $user->loginULS($controller_email);
</pre>
I am not getting any data back in the $login variable. Any help would be greatly appreciated. Thank you!
|
|
|
|