The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
It still does not work and I have no idea why. I'm not sure what I'm doing wrong. I tried the codes you guys gave, but still no luck.
Although thanks for all the help, this is a really great community for good software. |
#12
|
||||
|
||||
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.
|
#13
|
|||
|
|||
Quote:
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)); } 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> |
#14
|
||||
|
||||
As it says in the original article, you cannot have the condition (if(self::VIEW_PAGE == $viewtype)) around the code if you need it for the preview page.
|
#15
|
|||
|
|||
Thank You this is wonderful
|
#16
|
|||
|
|||
I used the coding below and I'm getting nothing showing up. My site (adult related)
Quote:
Quote:
|
#17
|
||||
|
||||
Try removing the condition around that template code and see if it shows up. Also, you are editing the style that you are using, right?
|
#18
|
|||
|
|||
Quote:
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> Code:
<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> Still doesn't give me an avatar |
#19
|
||||
|
||||
If it still doesn't give you an avatar, then you either have it inside another condition that isn't allowing it to display or you are editing the wrong template or wrong style template.
|
#20
|
|||
|
|||
I'm in the vbcms_content_article_page template.
Going to the top of the code, this is what it has. Am I putting the Author avatar stuff in the wrong place? Code:
{vb:raw css} <div class="article_width" id="article_content"> <div class="title"> <h1 class="article_title cms_article_title"><span>{vb:raw title}</span> <vb:if condition="$can_edit"> <a href="{vb:raw edit_url}" class="edit"><img class="editimage" src="{vb:stylevar imgdir_cms}/edit_small.png" alt="{vb:rawphrase edit}" /></a> </vb:if> </h1> </div> <div class="article_author_date_comment_container"> <vb:comment> <img src="{vb:raw avatarurl}" alt="Author Avatar" /> <div> <a href="{vb:link member, {vb:raw userid}}"><img src="{vb:raw vboptions.bburl}/image.php?{vb:raw session.sessionurl}u={vb:raw userid}&type=profile" alt="" class="post_avatar" /></a> </div> </vb:comment> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|