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

 
  Database prefix
Posted by: snazzypants - 08-25-2016, 03:02 AM - Forum: UserSpice 4.3 and Below - Replies (4)

I'm trying to install UserSpice and am having problems with the database part of the install - namely, I already have a table called settings. Is there an easy way to add a prefix to all the tables?


  MS SQL for User Spice?
Posted by: Angel - 08-24-2016, 07:41 PM - Forum: UserSpice 4.3 and Below - Replies (2)

Hi guys,

I'm trying to implement User Spice for a webpage that is using MS SQL to store data. I'm wondering if it is possible to use User Spice with MS SQL?

Thanks!


  Installation with IIS Express
Posted by: aeh - 08-24-2016, 07:28 PM - Forum: Documentation - Replies (5)

Installs fine using XAMPP, but I get the following error with IIS Express:

Quote:PHP Parse error: syntax error, unexpected end of file, expecting ')' in \users\init.php on line 26

To start the install, I have to 'localhost/site/index.php' with IIS, but just 'localhost/site' with XAMPP as expected.

Thanks.


  bar at top hiding content - SOLVED
Posted by: plb - 08-24-2016, 10:13 AM - Forum: UserSpice 4.3 and Below - Replies (4)

I'm not sure if this is actually a bug or something I caused. My top bar (containing my logo and menus) is hiding the content of my page at certain widths of screen as I test responsive design.

Please see http://www.imdoingok.today to see what it looks like...


  user login -- not verified
Posted by: Sebastian - 08-24-2016, 07:39 AM - Forum: UserSpice 4.3 and Below - Replies (1)

Just ran into a problem, by trying to login a user, which is not email_verified (Require User to Verify Their Email? is turned on in my case).
I was redirected to $us_url_root.'verify.php'. This site does not exist. verify.php is located in $us_url_root.'users/verify.php'

The reason in my case for this wrong redirection is that I changed the custom_login_script.php and instead of redirecting the user to $us_url_root.'users/account.php' I redirected the user to $us_url_root.'index.php'. Now this index.php calls

Code:
require_once 'users/init.php';
. At the bottom of init.php it is checked if this logged in user is email_verified. If this user is not email_verified (as in my case) the user is redirected:
Code:
Redirect::to('verify.php');
. And because I changed the custom_login_script.php the user is not in the $us_url_root.'users' folder but in $us_url_root. So I had to change the redirection in init.php:
Code:
Redirect::to('users/verify.php');

What I want to say is that one has to keep this in mind, if changes of the custom_login_script.php are made.


  UserSpice 4 Manual
Posted by: lasan13 - 08-23-2016, 03:32 PM - Forum: UserSpice 4.3 and Below - Replies (4)

Hi
Frist of all , I want to thank you for creating this wonderful programme. I'm beginner to this and I have watched your videos but those described the features in the earlier version. Can you tell me how can find a manual for 4.1???
I want to create pages with limited access, Navigation menu and also charts as describe in the video
Thank you


  Debugging email setup
Posted by: plb - 08-23-2016, 02:52 PM - Forum: Modifications and Hackery - Replies (11)

I was having difficulty figuring out what was wrong with my email configuration. Everything seemed fine, but I kept getting the (someone unhelpful) "Email ERROR" message whenever I tried to test my email setup.

I modified the email setup test to allow for setting a debug level and then modified the helpers.php so that it would respond to the presence of $_POST['SMTPDebug'] to turn on debugging.

NOTE: This should *not* be turned on in a development environment! It opens significant security holes. But if you are struggling with an email configuration problem it can be invaluable for you...

(The checkbox to turn on the exceptions looks kind of gross - I'm still trying to figure out how to style things nicely within this framework...)

Here's the patch file:

diff -bcr ../UserSpice41/users/email_test.php ./users/email_test.php
*** ../UserSpice41/users/email_test.php 2016-08-15 15:51:50.062520500 +0200
--- ./users/email_test.php 2016-08-23 18:35:35.767763900 +0200
***************
*** 27,46 ****
Redirect::to('account.php');
}
?>
- <?php
- //PHP Goes Here!
-
- $query = $db->query("SELECT * FROM email");
- $results = $query->first();
-
- if(!empty($_POST)){
- $to = $_POST['test_acct'];
- $subject = 'Testing Your Email Settings!';
- $body = 'This is the body of your test email';
- $mail_result=email($to,$subject,$body);
- }
-
- ?>
<div id="page-wrapper">

<div class="container-fluid">
--- 27,32 ----
***************
*** 61,79 ****
It's a good idea to test to make sure you can actually receive system emails before forcing your users to verify theirs. <br><br>
<?php
if (!empty($_POST)){
if($mail_result){
echo 'Mail sent successfully<br/>';
}else{
echo 'Mail ERROR<br/>';
}
-
}
-
?>

<form class="" name="test_email" action="email_test.php" method="post">
<label>Send test to (Ideally different than your from address):
<input required size='50' class='form-control' type='text' name='test_acct' value='' /></label>

<label> </label>
<input class='btn btn-primary' type='submit' value='Send A Test Email' class='submit' />
--- 47,85 ----
It's a good idea to test to make sure you can actually receive system emails before forcing your users to verify theirs. <br><br>
<?php
if (!empty($_POST)){
+ /* these appear to be unused
+ $query = $db->query("SELECT * FROM email");
+ $results = $query->first();
+ */
+
+ $to = $_POST['test_acct'];
+ $subject = 'Testing Your Email Settings!';
+ $body = 'This is the body of your test email';
+ $mail_result=email($to,$subject,$body);
+
+ if (isset($_POST['SMTPDebug']))
+ echo "<br />\n";
if($mail_result){
echo 'Mail sent successfully<br/>';
}else{
echo 'Mail ERROR<br/>';
}
}
?>

<form class="" name="test_email" action="email_test.php" method="post">
<label>Send test to (Ideally different than your from address):
<input required size='50' class='form-control' type='text' name='test_acct' value='' /></label>
+ <label><input class='form-control' type="checkbox" name="PHPMailerExceptions" />Report Exceptions</label>
+ <label>Debug Level:
+ <select class='form-control' name="SMTPDebug">
+ <option value=0 selected="selected">Debugging OFF</option>
+ <option value=1>Client</option>
+ <option value=2>Client + Server</option>
+ <option value=3>Client + Server + Connection</option>
+ <option value=4>All messages</option>
+ </select>
+ </label>

<label> </label>
<input class='btn btn-primary' type='submit' value='Send A Test Email' class='submit' />
diff -bcr ../UserSpice41/users/helpers/helpers.php ./users/helpers/helpers.php
*** ../UserSpice41/users/helpers/helpers.php 2016-08-15 15:51:52.583452900 +0200
--- ./users/helpers/helpers.php 2016-08-23 18:14:53.755615900 +0200
***************
*** 108,116 ****
$smtp_password=$results->email_pass;
$smtp_transport=$results->transport;

! $mail = new PHPMailer;

//$mail->SMTPDebug = 3; // Enable verbose debug output

$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = $smtp_server; // Specify main and backup SMTP servers
--- 108,119 ----
$smtp_password=$results->email_pass;
$smtp_transport=$results->transport;

! $exceptions = (isset($_POST['PHPMailerExceptions']) ? $_POST['PHPMailerExceptions'] : false);
! $mail = new PHPMailer($exceptions);

//$mail->SMTPDebug = 3; // Enable verbose debug output
+ if (isset($_POST['SMTPDebug']))
+ $mail->SMTPDebug = $_POST['SMTPDebug'];

$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = $smtp_server; // Specify main and backup SMTP servers


  Hi, my name's Peter
Posted by: plb - 08-23-2016, 02:27 PM - Forum: New to UserSpice? - Replies (2)

I got tired of starting every project by going through a whole raft of coding just to get the users and groups and registration setup done. I stumbled across UserSpice when I was trying to put together a system to let people who live in dangerous parts of the world check in on a regular basis so their team leaders know they are OK. So far it's been a fun journey - sure saved me a lot of hassle and made a nicer-looking web-site than I would have done had I been doing it from scratch...

Thanks!


  How can you attach a file in these forums?
Posted by: plb - 08-23-2016, 02:24 PM - Forum: Off-topic Discussions - Replies (2)

I'd like to attach patch files in the "Modifications and Hackery" forum rather than pasting it as text and making someone else figure out how to make the patch file.

Any way of doing attachments in the forums?


  Permissions
Posted by: Sebastian - 08-23-2016, 10:39 AM - Forum: UserSpice 4.3 and Below - Replies (3)

Hi,

I've added some Permission Levels and wanted to use these permissions to allow or disallow users access to sites/functions etc. I found that the permissions are saved in the database in the table "user_permission_matches".
So, is it the way to have access to the permissions to query this table, like

Code:
$query = $db->query("SELECT * FROM user_permission_matches WHERE user_id = ?", array($num));
?
Or does UserSpice offers some functions for that?
Thanks,
Sebastian