vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Default Avatar (shown on all pages) (https://vborg.vbsupport.ru/showthread.php?t=89729)

imported_Blindchild02 09-02-2004 06:36 PM

Default Avatar (shown on all pages)
 
Hey, well, i have my avatar in my Header...
and it only shows up on the forumhome.
and i would like it to show up on all pages.

i would also like it, so that people who dont have an avatar shows the default icon for no avatar, same with guests, and i would like it to show on all pages because my avatar is in the header :\

lovelyman_x 09-06-2004 04:51 PM

First problem:
Login admincp==>Vbulletin Option
In User Registration Options,choose yes at Display Avatars
To show avatar in Member List:
Vbulletin Option==>User Listing & Profile Viewing .In Member List Field Options choose yes at Avatar
To show the default icon for no avatar:
Open file includes/functions_showthread.php
Find:
Quote:

if (empty($avatarurl) OR ($bbuserinfo['userid'] > 0 AND !($bbuserinfo['showavatars'])))
{
$show['avatar'] = false;
}
else
{
$show['avatar'] = true;
}
Replace with:
Quote:

$show['avatar'] = true;

if (empty($avatarurl) OR ($bbuserinfo['userid'] > 0 AND !($bbuserinfo['showavatars'])))
{
$avatarurl="$stylevar[imagesfolder]/avatars/noavatar.gif";
}
Save and re-upload the file to yourserver.
Then upload the file noavatar.gif to folder [imagesfolder]/avatars/
Have fun!

imported_Blindchild02 09-06-2004 05:09 PM

i got this a few days ago, thanks though :)


All times are GMT. The time now is 02:32 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.01417 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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