Here's the structure of $vbulletin->blogstats, with junk from my test server.
Code:
Array
(
[lastentry] => Array
(
[username] => Kevin
[userid] => 1
[title] => fdsasdfafsda
[blogid] => 1
[categories] =>
[postedby_username] => Kevin
[postedby_userid] => 1
[blogtitle] =>
[guestcanview] => 1
)
[total_blog_users] => 1
[total_blog_entries] => 1
[entries_in_24hours] => 1
)
So you probably want something like:
require_once(DIR . '/includes/blog_functions_shared.php');
Code:
if (is_array($vbulletin->blogstats) AND is_array($vbulletin->blogstats['lastentry']))
{
$user = $vbulletin->blogstats['lastentry']['username'];
$userid = $vbulletin->blogstats['lastentry']['userid'];
$title = $vbulletin->blogstats['lastentry']['title'];
$url = '<a href="' . fetch_seo_url('entry', array('blogid' => $vbulletin->blogstats['lastentry']['blogid'], 'title' => $title)) .
"\">" . $title . '</a>';
}