vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show Avatar (https://vborg.vbsupport.ru/showthread.php?t=30413)

Sukij 10-15-2001 09:49 AM

HI..

Is it possible to show Avatar for each member in the Member Page ?

Admin 10-15-2001 11:56 AM

Just use <img src="avatar.php?userid=$userinfo[userid]">, although I'm not sure about the $userinfo variable, you'll have to see what's used in that template.

Sukij 10-15-2001 12:14 PM

HI..

This is the code in Memberlistbit. I try to add the code you give me as seen in the last 2 lines but there is no picture shown.

If I remove the <td> ... </td> in the last 2 lines, the picture shown correctly but not in the table. It shows before the list of member.

For ex.
picture
picture

table
list of member info.

I want to add picture after last column (posts)..

.....
<td bgcolor="#F1F1F1"><normalfont>$userinfo[datejoined]</normalfont></td>
<td bgcolor="#DFDFDF"><normalfont>$userinfo[posts]</normalfont></td>

<td bgcolor"#DFDFDF"<img src="avatar.php?userid=$userinfo[userid]"></td>

Sukij 10-15-2001 12:18 PM

ok ok I got it.. It's my mistake because of the > in wrong place.

Thank you very much for your help..

kypdurron 01-28-2002 08:41 PM

Actually, if you have predefined Avatars as well, use the following code on memberlistbit
template:

<td bgcolor="second alt color"><img src="$avatarurl" border="0" align="middle"></td>

instead. Then modify memberlist.php and add:

// Avatar Hack
if ($userinfo[userid]!=0) {
$avatarurl=getavatarurl($userinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/space.gif';
}
}

// Avatar Hack

Lastly, add Avatar as a column on the memberlist template


All times are GMT. The time now is 01:41 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.01094 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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