vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Show "No Avatar" Image If No Avatar is Selected (https://vborg.vbsupport.ru/showthread.php?t=36363)

MW[MWGN] 03-28-2002 10:03 PM

]Try this

Find in /admin/functions.php:
PHP Code:

return ''

Replace with:
PHP Code:

return "images/avatars/noavatar.gif"


ZiRu$ 03-29-2002 01:25 AM

how do i link it so they can edit there avatar?

69-FLy-gUy 03-29-2002 08:01 AM

Still didn't work:(

MW[MWGN] 03-29-2002 11:03 AM

Oh well I have no idea on how to get it to work with those who can't... On my forums they are fine, whether it's someone who has the ability to use custom avatars or not.

Hot Dogg: You need to get FireFly's avatar thingy hack and use it as a reference... I am a newbie hacker and at the moment I'm too busy sorting all the problems on my server...

Raptor 03-29-2002 07:17 PM

worked straight away for me no problems

vb 2.2.4

i have no clue how some peeps cannot get it to work - its very very simple

Gholsie 06-09-2002 11:19 PM

Guys, the original instructions in the ZIP file are wrong. I followed MW[MWGN]'s instructions and it finally worked for me. I followed both of these steps:

Find:
PHP Code:

if ($avatarurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showavatars]))) {
            
$post[avatar]=""

Replace with:
PHP Code:

if ($avatarurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showavatars]))) {
            
$post[avatar]="<img src=images/avatars/noavatar.gif border=0>"

And the second step:

Find:
PHP Code:

return ''

Replace with:
PHP Code:

return "images/avatars/noavatar.gif"

The first step alone didn't work. But, after I performed the second step, it worked great. So, I'm not sure which one did it for me. I'm not going to f' with it.

Boofo 06-10-2002 12:28 AM

Try this. It works here.

Code:

<a href="member.php?s=$session[sessionhash]&action=editavatar"><img src="https://vborg.vbsupport.ru/images/noavatar.jpg">
or whatever the name of your image file is. Let me know if that works for you. :)

Quote:

Originally posted by Hot Dogg
how do i link it so they can edit there avatar?

Grealm 06-10-2002 03:16 AM

works perfect to me.. im using 2.2.6
thanks MW.. ive been looking for this hack.. finally found one :)

MW[MWGN] 06-10-2002 02:53 PM

]Actually the original instructions (now I've updated with the other instructions as well :)) aren't wrong, because I just use that in my 2.2.6 and it works, however on some others (dont know why) other changes are needed in functions.php...well..don't look at me, I know about vB hacking as much as my dog does :)

Prophet2002 07-10-2002 03:47 AM

it worked on my pratice board, but not on the real thing.. with either version of the code, go figure


All times are GMT. The time now is 10:10 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.01318 seconds
  • Memory Usage 1,743KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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