vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Simple memberinfo avatar problem (https://vborg.vbsupport.ru/showthread.php?t=170666)

NeuroLancer 02-16-2008 02:06 PM

Simple memberinfo avatar problem
 
Hi, im currently in the process of customising the memberinfo template in 3.7.

One thing I need to know is what's usuall the best way to display a users avatar on their memberinfo profile page? how was it done in 3.6? That tiny little thumb has upset some of my users who pride themselves on their avatars.

Thanks!

Edit: yes i know its unsupported... its just a general question that can apply to any vBulletin version.

Lynne 02-16-2008 02:20 PM

This is the code for 3.6.8:
HTML Code:

<if condition="$show['avatar']">
        <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
        <else />
        <td>&nbsp;</td>
</if>

Searching for avatar in the memberinfo templates comes up with several hits, so I'm not sure which one to compare it to in there.

NeuroLancer 02-16-2008 02:33 PM

thank you, i tried almost that same code, it doesnt work in the new vb it seems.

ive been using
Code:

<img src="$prepared[avatarurl]"
in 3.7 but that is for the thumb (it adds &type=thumb to the image). I wonder how to get it working normally.

EDIT: I got it working

Code:

<img src='image.php?type=avatar&u=$userinfo[userid]' $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">
$vbphrase[xs_avatar]</phrase>"
border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />

Edit #2: only displays custom avatars :( to me it seems always a hassle getting the avatars to display properly in vBulletin.


All times are GMT. The time now is 12:14 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.00906 seconds
  • Memory Usage 1,716KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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