ColourfulConnor
Member
- 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
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
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]);
}
?>
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