vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display a specific avatar? (https://vborg.vbsupport.ru/showthread.php?t=143558)

Staxed 03-30-2007 12:02 AM

Display a specific avatar?
 
I've been looking for a while now, and I can't seem to find instructions on how to do this...

what I want to do is quite simple...i'm making a bio page for each of the staff members on a site...so on each page I would like that specific users avatar to show...how do I go about displaying that specific users avatar?

WetWired 03-30-2007 12:11 AM

View their profile, right click their avatar, choose properties, copy the URL, paste into the src attribute of an img tag. If they use custom avatars, then this should work fine. If they use avatars from the selection, I can't say.

Staxed 03-30-2007 12:52 AM

well...i should have figured that out...i guess i was looking too indepth trying to find some variable or something....

well...i think i need a variable for this next one...

how do I stick the username along with that?...without just typing it in...(i'd want it to update if the username is changed)

WetWired 03-30-2007 01:45 AM

If you want the username, you'll need to get it from the database. That either means making it a vBulletin page with vB function calls to get the username from the DB, or writing your own code to extract the info from the database. There are plenty of tutorials arround for making vB pages (at least, people are always linking to them...). As for the specifics, you'll need to call fetch_userinfo to get the user information:
Code:

$myinfo=fetch_userinfo(1);
Once you've done this, you can use $myinfo[username] to get the username of user 1. Where you put this depends on how you go about doing the vB page.


All times are GMT. The time now is 08: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.00989 seconds
  • Memory Usage 1,710KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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