vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Avatars are all broken? (https://vborg.vbsupport.ru/showthread.php?t=116703)

Cool21 05-26-2006 04:12 AM

Avatars are all broken?
 
All of the avatars on my forums are broken. You can't see them on the post (it just has a broken image), but you can view them on peoples profile. So, I was just wondering what is happening?

Thanks!

peterska2 05-26-2006 04:45 AM

Has this happened since upgrading from 3.0.x to 3.5.x or on installing a style?

It is possible that the avatar code in the postbit template is the obsolete code for 3.0.x which doesn't work in 3.5.x

Cool21 05-26-2006 05:33 AM

I haven't updated...I just brought vbulletin and I got the 3.4 verison. But I have updated the styles. But I checked the postbit and eveything seemed to be okay.

peterska2 05-26-2006 05:38 AM

ok, just for good measure,

in your postbit and postbit_legacy templates, find the code that resembles this (it may not be identical)

Code:

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

Cool21 05-26-2006 06:03 AM

OMG!!! it is all messed up now! this is the code that I put in:


Code:

<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>
               
                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>                       
                        <div class="smallfont">
                                &nbsp;<br />



and this is how my forum looks:

http://img6.picsplace.to/img6/21/cap.png


link to forum:

www.kellyforums.com/forum

peterska2 05-26-2006 06:10 AM

ok, replace the code you posted above with

Code:

<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>
               
                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>
                       
                        <div class="smallfont">
                                &nbsp;<br />


Cool21 05-26-2006 06:14 AM

OMG!!! your the best!!!! thank you so much!!! everything is perfect now.

peterska2 05-26-2006 06:16 AM

Sorry about the panic before, I forgot that the code is slightly different for postbit_legacy which is why it broke. :(

(You can tell I don't use postbit_legacy very often :p )

Glad it's working now though :)


All times are GMT. The time now is 07:20 AM.

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.01048 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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