Quote:
Originally Posted by Lynne
I got it to work by using this as the plugin code:
Code:
require_once(DIR . '/includes/functions_user.php');
if(self::VIEW_PAGE == $viewtype) {
$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));
}
|
Would I change
Code:
vbcms_content_article_page
to
Code:
vbcms_content_article_preview
to use it were i want it?