Welcome, Guest |
You have to register before you can post on our site.
|
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
|
|
|
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.
|
|
|
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 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 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.
|
|
|
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?
|
|
|
|