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

 
  Maintenance mode
Posted by: emanresu - 01-27-2017, 01:54 PM - Forum: Modifications and Hackery - Replies (5)

I just set my website to "offline", in the admin panel. But I was missing a maintenance mode. So I did the following;

added this to header.php

<pre>

Code:
if ($user->data()->username == 'admin'){ $maintenance_text=' your website is in maintance mode! ';}

else{
if ($settings->site_offline==1){

        $urlasstring = $_SERVER['REQUEST_URI'];
        $findme   = 'login.php';
        $pos = strpos($urlasstring, $findme);
                //not login.php
        if ($pos === false) {
            Redirect::to($us_url_root.'users/login.php');
        }
        else {$maintenance_text = ' Website is not available due to maintenance. ';}
}}
</pre>


in the login.php

I added an echo for the $maintenance_text.

I guess you should remove
Code:
if ($settings->site_offline==1){die("The site is currently offline.");}?>

from line 10 in the user_settings.php or you won't be able to see this as "admin"

Now I can work on my site, without the user using the website Smile


  Problems with email setup in PHP 5.6
Posted by: dimitrisscript - 01-26-2017, 06:41 AM - Forum: Modifications and Hackery - No Replies

So I have set up userspice in a shared hosted server that runs with PHP 5.6.

I wasn't able to set up correctly email sending until I read this:

https://github.com/PHPMailer/PHPMailer/w...on-failure

So if you get an error "Could not connect to SMTP host" just go to \users\helpers\helpers.php around line 120 and add this code:

<pre>

Code:
$mail->SMTPOptions = array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
    )
);
</pre>


It worked for me because I didn't have a valid certificate, because php 5.6 needs it, I just had a self-signed one.

Mind you, this is bad practice and possibly a security hole.


  patchme.php missing columns
Posted by: ebmarques - 01-25-2017, 08:07 PM - Forum: UserSpice 4.3 and Below - Replies (1)

Updated from 4.1.8c to 4.2.0 Beta and used patchme.php
Columns "oauth_provider" and "oauth_uid" are not being created at table "users".

[]s!
Eduardo


  Vertical Align Admin Page
Posted by: Brandin - 01-24-2017, 06:25 PM - Forum: Modifications and Hackery - Replies (3)

Hey!

I was adding my audit system to the admin pages, and I was working with

Code:
admin_permissions.php
and the information on the left including the permission name and users is appearing to vertical align to the middle. This normally wouldn't be an issue but I have almost 300 pages, so vertically aligning to the middle makes you have to scroll quite a bit to see anything. I have tried to use
Code:
vertical align top
on the tr and td in style but it is not fixing it. Thoughts?

Thank you,


  Permission Level Success Message
Posted by: Brandin - 01-24-2017, 05:27 PM - Forum: UserSpice 4.3 and Below - Replies (3)

Hey,

In

Code:
admin_permissions.php
the success message for adding a level is simply echo'd which results in black space (at least with my CSS). I tried changing this to a lang to push into Successes, but I can't get it to work. In addition to this, since I moved my admin_permissions.php to
Code:
usersc
none of the success messages work. Is it just me or everyone? I've never took notice to it before. Maybe it was like this before I moved it?

Thanks.


  custom login form and join form
Posted by: meetmec12 - 01-24-2017, 05:04 AM - Forum: UserSpice 4.3 and Below - Replies (5)

i have not been able to make this work. i need to use my own html form for login,sign up and forget password. pls hlp


  Session Time
Posted by: Brandin - 01-23-2017, 05:37 PM - Forum: Modifications and Hackery - Replies (7)

Hi there,

Where can I modify the session timeout? I have no idea what it is set to now, but it is way too low of a timeout.

Thank you.


  How to Disable Recaptcha?
Posted by: herrch - 01-23-2017, 01:22 PM - Forum: UserCake & UserSpice 2 - Replies (4)

Hi, due to some reasons, I'll have to disable the recaptcha module in userspice. Would you please provide a walk-through on it? Thank you.


  first login, chrome does logout.
Posted by: emanresu - 01-23-2017, 06:55 AM - Forum: UserSpice 4.3 and Below - Replies (3)

Hi

I've come a cross what I think is a bug. in version 4.1.8 whenever I login in with Chrome for the first time, it automatically logs out and returns to the login screen. Safari, Internet Explorer and Edge will have no problem logging in. I have no idea how to trouble shoot this or work around. any ideas anyone?


  2 Factor Auth
Posted by: Brandin - 01-23-2017, 03:35 AM - Forum: Modifications and Hackery - Replies (1)

Has anyone ever thought about implementing 2 Factor Auth into their UserSpice? Have you done it?

I did some reading at this article:
http://www.phpbuilder.com/articles/site-...n-php.html

I'm wondering the best plan of attack to implement this.