vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   User's avatar on a page (https://vborg.vbsupport.ru/showthread.php?t=180644)

MoT3rror 05-28-2008 04:18 AM

Are you using $bbuserinfo[avatarurl] in your template?

Shaliza 05-28-2008 05:13 AM

Will this also work for non-vB pages?

MoT3rror 05-28-2008 05:29 AM

I am currently still in development stage of my new site but it is working on every vbulletin power page that is using the template system in my new site so far.

hitmann 05-28-2008 05:36 AM

Quote:

Originally Posted by MoT3rror (Post 1533705)
Are you using $bbuserinfo[avatarurl] in your template?

Just added and it's now showing this in text:
Quote:

customavatars/avatar1_1.gif

MoT3rror 05-28-2008 05:47 AM

Code:

<img src="$bbuserinfo[avatarurl]" border="0" />
If you are using file system avatars use this code.
Code:

<img src="$vboptions[avatarurl]$bbuserinfo[avatarurl]" border="0" />

hitmann 05-28-2008 05:52 AM

I'm using the file system, and nothing appears with the second code.
Would it work on a local installation? And can I put the config.php line that you gave above anywhere in the file?

MoT3rror 05-28-2008 06:52 AM

Quote:

Originally Posted by hitmann (Post 1533754)
I'm using the file system, and nothing appears with the second code.
Would it work on a local installation? And can I put the config.php line that you gave above anywhere in the file?

Yes that line of code should go at the end of the config.php file but it real doesn't matter where it is put as long as you don't get a php error. Also I know it isn't a php problem because the php is working correctly because it is returning a correct path I believe. There is a problem with the html that I can't think of right now. Are you trying this in the same directory as your forums or a file outside of your forums?

I guess that is what you get when you stay up to about 3 am in the morning.

hitmann 05-28-2008 06:58 AM

Yes, it's in the same directory. I'm trying to add the avatar next to the logo.

--------------- Added [DATE]1211968263[/DATE] at [TIME]1211968263[/TIME] ---------------

I've installed this mod and looks like it's working on 3.7.1:
https://vborg.vbsupport.ru/showthread.php?t=99498


All times are GMT. The time now is 03:03 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.01119 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete