Back from the dead, I found this code in an old post on vb.com, but it doesn't seem to work. It should add the author's avatar to the templater and allow me to use it on the article and preview templates, however it is only showing my avatar, not the avatar of the article author. Note: this is only on previews. When I view an article itself, the correct avatar shows.
(Figured I'd use this thread since it is still relevant).
PHP Code:
require_once(DIR . '/includes/functions_user.php');
$avatarurl = fetch_avatar_url($view->authorid, true);
if ($avatarurl[0]) {
$avatarurl = $avatarurl[0];
}
/* render template and register variables */
vB_Template::preRegister('vbcms_content_article_page',array('avatarurl' => $avatarurl));
vB_Template::preRegister('vbcms_content_article_preview',array('avatarurl' => $avatarurl));
And another question, I see that I can choose sections to display on a page, but there isn't an option to only show articles from a certain category within that section. Is this intended or am I using the wrong widget in the layout?
And one last question, the CMS preview tries to pull an image for the "preview" of the article, and then disables any images in the post from showing in it. Can I turn this off and allow the previews to show the images?