vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [RC2] Hackless avatar on homepage (https://vborg.vbsupport.ru/showthread.php?t=88278)

M1th 09-09-2004 12:49 PM

Quote:

Originally Posted by Erwin
Good point - if you have avatars as files, what is the variable to use for the avatar to show up?


Here's what I use on my site and it works. :)

HTML Code:

<if condition="$bbuserinfo['hascustomavatar']">
<a href="profile.php?do=editavatar">
<img src="$vboptions[avatarurl]/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" /></a>
</if>


Erwin 09-09-2004 11:17 PM

I knew about that. :) What about if the person does not have a custom avatar though. Freddie's suggestion intrigued me...

Erwin 09-09-2004 11:43 PM

Post removed.

AngelGrove 10-04-2004 04:58 PM

I installed this, put it in the Right Sided Collum mod, working on a lil User Stats section, long way to go though, thanks for the mod. Clicks insatll

djjeffa 10-07-2004 01:11 AM

Quote:

Originally Posted by Vb-Hispano
ADD

width="64" height="64"

Code:

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" width="64" height="64" />
and with thist it will be better

64 x 64

I am tring to put this where he did but im totaly clueless

peterska2 10-07-2004 06:30 AM

Thats in the NAVBAR template within the 'welcome panel'

djjeffa 10-07-2004 10:50 PM

got it to work but only on the home page is there any way to make it work on all?

djjeffa 11-01-2004 10:43 AM

Quote:

Originally Posted by djjeffa
got it to work but only on the home page is there any way to make it work on all?

bump!!!!

Brad 11-01-2004 12:04 PM

Change the code you added to phpinclude_start to this:

PHP Code:

// Brad's avatar on homepage modification
    
if ($bbuserinfo['userid'])
    {
    require_once(
'./includes/functions_user.php');
    
// note: the function below will run one query
    
$homepage_ava fetch_avatar_url($bbuserinfo['userid']);
    }
// end avatar modification 

Note this will run a query EVERY pageload.

Bison 12-10-2004 06:43 PM

Quote:

Originally Posted by Vb-Hispano
ADD

width="64" height="64"

Code:

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" width="64" height="64" />
and with thist it will be better

64 x 64

What template did you edit to place that avatar where it is?


All times are GMT. The time now is 02:56 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.01653 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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