![]() |
No Avatar Selected - Display Appropriate Image
In PostBit Templates - Postbit Search for: <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Underneath add: <if condition="$avatarurl == null"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="INSERT URL TO NO AVATAR SELECTED IMAGE" border="0" /></a></td></if> This will maintain the flow of your board, by displaying avatars for everybody, but for those that don't have one selected yet, they will get one such as http://www.ru55ian.net/forum/html/avatars/noavatar.gif This is my first (and best) bit of coding, I am an absolute NEWBIE so it'll be great if this is useful to anybody!! |
thanx! for the mod I just installed it..It works fine :D
|
which file you put that code at?
|
Installed and nothing happened...:(
|
Good little mod
|
Quote:
Hi all. I am having a bit of trouble with this one. :o I run version 3.0.3. I made the necessary changes to the code. But no default avatar symbol. (I used the one shown in this thread, uploaded as JPEG). I made sure all members had avatars enabled and selected "show avatar" in options. But no default avatar symbol. Any ideas? Thanks. |
Anybody? :( No ideas. I am lost on this one and really wanted to get it up and running. It's got to be something simple that I am doing and/or not doing.
|
What URL are you specifying for the image and what is the full URL of the required image and also your forums?
|
Quote:
URL to adminCP: http://www.mechanicalminds.net/forum...eadminister111 URL to default-avatar symbol: http://www.mechanicalminds.net/forums/images/avatars ... or /defaultavatar.lnk I just cannot seem to get it to come up. I'll keep trying I guess. :confused: Update: Well, now I am getting a good link in my web browser to that image. But it is not showing up on my forums??? |
It looks like your server is down as I can't access your site :(
|
Quote:
I have the URL to the default avatar as : http://www.mechanicalminds.net/forum...aultavatar.lnk Is this layout wrong? |
I got it. I got it. Yeahhh! :)
For some reason, none of the methods I have found here worked on my forums. Which, this isn't a complaint or a 'diss, it is probably because mine are so heavily modded. Either way, I searched over at vB.com and found some instructions by Da Man (Jake Bunce). When that guy throws some code, you know you are in good hands. Gotta love Jake and the gang! :) |
Mechanical Mind, can you provide the link to his instructions? I can't get this to work in 3.0.8.
|
Installed in Posbit Legacy.. Here are the directions if you are using Posbit Legacy (My VB version: 3.0.8)
Find: PHP Code:
PHP Code:
|
sweet hack! :D how do i get the default avatar to show up on the memberlist and profile pages?
|
Works great! Cheers
|
and here it is for your memberinfo template.
search for: Code:
<if condition="$show['avatar']"> Code:
<if condition="$avatarurl == null"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="./noavatar.gif" border="0" /></a></if> have fun with it |
All times are GMT. The time now is 04:47 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:
|