Quote:
Originally Posted by Dismounted
PHP Code:
// include backend
require_once('./global.php');
require_once(DIR . '/includes/functions_user.php');
// setup avatar if exists
$avatar = fetch_avatar_url($vbulletin->userinfo['userid']);
if (empty($avatar) AND $vbulletin->options['avatarenabled'])
{
// user has no avatar
}
|
Thanks for advice. I've tried it, but I get error message "Database error".
I've changed it little bit. I've used this:
PHP Code:
$forumpath2 = "/home/user/forums/";
require_once($forumpath2.'global.php');
require_once($forumpath2.'includes/functions_user.php');
instead of this:
PHP Code:
require_once('./global.php');
require_once(DIR . '/includes/functions_user.php');