vb.org Archive

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

MindTrix 02-15-2004 10:56 PM

Avatar on homepage?
 
Dumb question, anyone tell me the query/code to show avatar on the homepage? Im beggining a new hack and i need this as part of it :) I know theres ones on vbulletintemplates.com but i dont want to put code in phpinclude etc.

Cheers!!

[edit] For vB3 :)

Andreas 02-15-2004 11:18 PM

What about function fetch_avatar_url($userid) in functions_user.php?

MindTrix 02-15-2004 11:20 PM

Could you elaborate a bit better for me please mate :)

sabret00the 02-15-2004 11:28 PM

theirs a mod for it on vBT

MindTrix 02-15-2004 11:29 PM

Yeah but read my first post again mate ;)

Andreas 02-15-2004 11:37 PM

@MindTrix
What exactly do want to have explained?

PHP Code:

require_once('./includes/functions_user.php');
$avatarurl fetch_avatar_url($bbuserinfo[userid]); 

Code:

<if condition="$avatarurl">
<img src="$vboptions[bburl]/$avatarurl" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[xs_avatar]</phrase>">
</if>


MindTrix 02-15-2004 11:38 PM

Ah thanks mate :) just what i wanted

Zachery 02-16-2004 05:43 AM

Quote:

Originally Posted by MindTrix
Ah thanks mate :) just what i wanted

Mindtrix check out vBulletinTemplates, we did it a moth ago with no hacks :)

MindTrix 02-16-2004 09:59 AM

yeah i know there is but look at my first post again!!


All times are GMT. The time now is 09:29 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.01042 seconds
  • Memory Usage 1,726KB
  • 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)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