BrainCMS: UserHomes Edit?

Dec 7, 2016
65
5
The User Homes Plugin is not in English, I'm not sure where I'd edit it, any ideas?

userhomes.php
PHP:
<?php
    if(!defined('BRAIN_CMS'))
    {
        die('Sorry but you cannot access this file!');
    }
    function userHome($key)
    {
        global $dbh;
        if (!isset($_GET['user']))
        {
            echo "Profile does not exist.";
            exit();
        }
        $getUser = $dbh->prepare("SELECT id,username,motto,credits,vip_points,activity_points,look,account_created,last_online,mail FROM users WHERE username = :user LIMIT 1");
        $getUser->bindParam(':user',$_GET['user']);
        $getUser->execute();
        $usersSql = $getUser->fetch();
        if($usersSql['credits'] == "") {
            exit();
        }
        return filter($usersSql[$key]);
    }
?>

userhoems.png

 
Fixed it! But, I've got another problem, for some reason my banned.php is not working but it's in the right place, here is the error:

Warning: include(C:/xampp/htdocs/system/content/templates/brain/pages/banned.php): failed to open stream: No such file or directory in C:\xampp\htdocs\system\app\classes\class.html.php on line 83

Warning: include(): Failed opening 'C:/xampp/htdocs/system/content/templates/brain/pages/banned.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\system\app\classes\class.html.php on line 83
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
Can you post line 83?
There is an official BrainCMS help thread, posted by the creators. You can submit reports .
 

BrainCMS

Brain is live, Live is Brain
Feb 17, 2014
86
32
The User Homes Plugin is not in English, I'm not sure where I'd edit it, any ideas?

userhomes.php
PHP:
<?php
    if(!defined('BRAIN_CMS'))
    {
        die('Sorry but you cannot access this file!');
    }
    function userHome($key)
    {
        global $dbh;
        if (!isset($_GET['user']))
        {
            echo "Profile does not exist.";
            exit();
        }
        $getUser = $dbh->prepare("SELECT id,username,motto,credits,vip_points,activity_points,look,account_created,last_online,mail FROM users WHERE username = :user LIMIT 1");
        $getUser->bindParam(':user',$_GET['user']);
        $getUser->execute();
        $usersSql = $getUser->fetch();
        if($usersSql['credits'] == "") {
            exit();
        }
        return filter($usersSql[$key]);
    }
?>

userhoems.png

 
Fixed it! But, I've got another problem, for some reason my banned.php is not working but it's in the right place, here is the error:

Warning: include(C:/xampp/htdocs/system/content/templates/brain/pages/banned.php): failed to open stream: No such file or directory in C:\xampp\htdocs\system\app\classes\class.html.php on line 83

Warning: include(): Failed opening 'C:/xampp/htdocs/system/content/templates/brain/pages/banned.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\system\app\classes\class.html.php on line 83
I fix it in the new update.
 

Users who are viewing this thread

Top