![]() |
Show "No Avatar" Image If No Avatar is Selected
]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 |
Installation file is here... with the "No Avatar" image
Edit: OK, I've added the other modifications to the installation file just incase the hack doesn't quite work for some. I've tested this on my 2.2.6 and it works fine. |
Errr... nothing agaist you but why would you post someone elses code, that is already posted?
|
is it? oops..sorry
|
]lol :D
|
I mean the Welcome Panel hack
|
thanks dident work on mine :( surly i dident mess something this simple up
|
as far as i can remember, the welcome hack only adds the no avatar image on the foum hom page
MW[MWGN] hack (well i line changed) changes it in the posts and threads, yes they are very similar but not the same anyhoo, cheers MW[MWGN] |
Yes, the welcome panel hack has the changed line in INDEX.PHP, while mine changes in functions.php to apply to posts and threads.
Recluse, what version are you running? And how does it not work..i.e. any errors? |
does'nt work here either
|
version you running? Can you explain more HOW it doesnt work?
|
easy. in the thread it doesn't show the No avatar selected image... want to see my funtions.php?
running 2.2.4 |
]I think if the user dont have the ability to use a custom avatar, then the hack doesnt work...I'm working on a fix.
Edit: OK, at the moment I cant test the fix because my board's domain is switching DNS to point to the new server, so please give me a day or two and I'll post the update here :) |
]OK, try this for those who cant get the hack working.
Find in /admin/functions.php: PHP Code:
PHP Code:
|
The original hack worked perfectly on 2.2.4
i didnt need to use your code MW[MWGN]! Can someone please give me an update so the noavatar image under our name will be linked to the editavatar url? please? |
yea but for some strange reasons some it doesnt work for some...
|
Weird. still won't work for me. i will see if it still isn't working in a dayt and let you know. thakns for trying though=)
|
Quote:
|
]have you got avatar enabled? :) and do you allow custom avatars?
|
yes and yes :) i tired you fix to functions.php and it dont do anything either :(
|
]Try this
Find in /admin/functions.php: PHP Code:
PHP Code:
|
how do i link it so they can edit there avatar?
|
Still didn't work:(
|
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... |
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 |
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:
PHP Code:
Find: PHP Code:
PHP Code:
|
Try this. It works here.
Code:
<a href="member.php?s=$session[sessionhash]&action=editavatar"><img src="https://vborg.vbsupport.ru/images/noavatar.jpg"> Quote:
|
works perfect to me.. im using 2.2.6
thanks MW.. ive been looking for this hack.. finally found one :) |
]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 :)
|
it worked on my pratice board, but not on the real thing.. with either version of the code, go figure
|
nice! hopefully this will make people start choosing avs :)
thanks buddy! |
is there a way I can set the guest image when guestpost?
|
I was really looking forward to using this, but it is not compatible with my avatars in categories/avatar taken hacks. I hope it will be at some time. Great hack though.
|
What is it doing or not doing? I'm sure there is a way to get it to work with it. :)
Quote:
|
My avatars cannot be selected anymore from the user cp. I have to go into the Admin control panel to choose them. :/
|
Diva :: try this coding
open admin/functions.php find: PHP Code:
PHP Code:
Then upload your No Avatar Img... save it as No Avatar.gif hope that helps :) regards... g-force2k2 |
Is this instead of another code change or ontop of one for this hack? Or is this a code update? Sorry so blonde... :/
|
It doesn't work.... :(
|
Really cool. Been looking for that.
Great! /me clicks install... - KrisP (Poof! Installed...) |
Simple...
5 Stars. |
All times are GMT. The time now is 06:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|