vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display of User Avatar's in posts (https://vborg.vbsupport.ru/showthread.php?t=133299)

TheFocusElf 12-05-2006 07:44 PM

Display of User Avatar's in posts
 
I am using a Tranverse Styles theme and I really love the color scheme for a friends World of Warcraft Guild page, using their LAVA RED skin.

Also, I have vbAdvanced CMPS installed, and the Form hack for them. That's it. Otherwise a regular 3.63 install and nothing to crazy.

The words "User's Avatar" appear in the post's header, and in replies as well corresponding to the appropriate poster.

Any advice'd help a lot.

I should add the avatars DO show up in the user's CP and in the Welcome Block on the CMPS front page.

KW802 12-05-2006 08:44 PM

Have you asked Transverse for support yet?

TheFocusElf 12-05-2006 09:13 PM

Yes I have submitted a ticket, nearly a week ago.

I thought this kind of issue might be recognized.

wrestlepower 12-05-2006 09:30 PM

is it happening on other styles or just that one?

TheFocusElf 12-05-2006 09:34 PM

PHP Code:

<table cellpadding="0" cellspacing="$stylevar[cellpadding]border="0" width="100%">
        <
tr>
            <if 
condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
            <
td nowrap="nowrap">
            
                <
div id="postmenu_$post[postid]">
                    <if 
condition="$show['profile']">
                    <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                    
$post[onlinestatus]
                    <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
                    <else />
                    
$post[musername]
                    </if>
                </
div>
                
                <if 
condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                
            </
td

I think the problem is towards the top near the <if> condition:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>

I will check another style.

wrestlepower 12-05-2006 09:38 PM

img src="$avatarurl"

try changing that to

img src="$post[avatarurl]"

TheFocusElf 12-05-2006 09:41 PM

It was. An incorrect call to the section detailed above, perhaps because the template uses calls in a previous version of VB?

Who knows

PHP Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> 

The Avatar call in that section of code comes from the default style. And substituting that image call for the avatar in place of the one above makes everything work cherry.

wrestlepower 12-05-2006 09:47 PM

your answer has confused me, lol. So, is it working now or not? :confused:

KW802 12-05-2006 09:54 PM

Quote:

Originally Posted by wrestlepower (Post 1132802)
your answer has confused me, lol. So, is it working now or not? :confused:

It appears to be working for him. The version of the Transverse style he is using is most likely for an older version of vB (hence my first response above) and his avatars were not showing because the code in the postbit has changed. When he copied the code from the default style to the outdated style the avatars showed up again.


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01185 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete