I used the coding below and I'm getting nothing showing up.
My site (adult related)
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));
}
|
Quote:
Originally Posted by Lynne
I just placed it where they spit out the authors name:
HTML Code:
<vb:if condition="$showuser">
<img src="{vb:raw avatarurl}" alt="Author Avatar" />
<div class="article_username_container<vb:if condition="!$showrating">_full</vb:if>">
{vb:rawphrase by_x_nolink, {vb:raw memberaction_dropdown}}
</div>
</vb:if>
However, it needs some styling, so you'll have to add some CSS to move things around. (Since I don't actually use this code, I never got that far.)
|