Quote:
Originally Posted by Lynne
You need to post a link to your page where it is not working and then post *exactly* (copy/paste it) what you have done and please use code tags when you do so.
|
Okay so here is the page. Front page of my site.
http://thejestersgallery.com/content.php
So what i have done so far is follow the instructions on the site to make the plugin and instead of using his code I used yours. And since I want this to go in preview I used lewisforlife code to change it.
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_preview',array('avatarurl' => $avatarurl));
}
Then I put the img code into preview and all i get is a white box
Code:
<vb:if condition="$showuser OR $showpublishdate OR ($showupdated AND $lastupdated) OR ($viewcount AND $showviewcount) OR ($showrating AND $rating!='')">
<div class="cms_article_username cms_publish_column">
<img src="{vb:raw avatarurl}" alt="Author Avatar" />
<vb:if condition="$showuser">
{vb:rawphrase by_x_nolink, {vb:raw memberaction_dropdown}}
</vb:if>