Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Show "No Avatar" Image If No Avatar is Selected Details »»
Show "No Avatar" Image If No Avatar is Selected
Version: 1.00, by MW[MWGN] MW[MWGN] is offline
Developer Last Online: Jan 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-19-2002 Last Update: Never Installs: 91
 
No support by the author.

]What is it?
If the user has selected to not use avatar, then in the threads where the avatar will normally appear, instead of being blank because there is no avatar chosen, it will display a "No Avatar" image instead.

Credits
I would like to thank trilOByte, the creator of the Welcome Panel hack, for the "No Avatar" image, because there's where I stole...err...taken it from

Future Plans
Add an option to turn it on/off in the Admin CP.

Screenshot of the hack....

And the installation is in the next post

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-28-2002, 10:03 PM
MW[MWGN] MW[MWGN] is offline
 
Join Date: Nov 2001
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]Try this

Find in /admin/functions.php:
PHP Code:
return ''
Replace with:
PHP Code:
return "images/avatars/noavatar.gif"
Reply With Quote
  #23  
Old 03-29-2002, 01:25 AM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i link it so they can edit there avatar?
Reply With Quote
  #24  
Old 03-29-2002, 08:01 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still didn't work
Reply With Quote
  #25  
Old 03-29-2002, 11:03 AM
MW[MWGN] MW[MWGN] is offline
 
Join Date: Nov 2001
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #26  
Old 03-29-2002, 07:17 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 06-09-2002, 11:19 PM
Gholsie Gholsie is offline
 
Join Date: Nov 2001
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 06-10-2002, 12:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #29  
Old 06-10-2002, 03:16 AM
Grealm Grealm is offline
 
Join Date: Jun 2002
Location: Cali
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works perfect to me.. im using 2.2.6
thanks MW.. ive been looking for this hack.. finally found one
Reply With Quote
  #30  
Old 06-10-2002, 02:53 PM
MW[MWGN] MW[MWGN] is offline
 
Join Date: Nov 2001
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]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
Reply With Quote
  #31  
Old 07-10-2002, 03:47 AM
Prophet2002 Prophet2002 is offline
 
Join Date: May 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05258 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete