MyBB Community Forums

Full Version: How To Add Default Guest Avatar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

How could I add a default Guest avatar?
Directly place it in the headerer_welcomeblock_guest template.

Or you can use this jQuery trick, it has affect for all guests as well as members with no avatar:
http://demonate.com/thread-1387.html
(2014-02-27, 06:18 AM)effone Wrote: [ -> ]Directly place it in the headerer_welcomeblock_guest template.

Or you can use this jQuery trick, it has affect for all guests as well as members with no avatar:
http://demonate.com/thread-1387.html

Hello,

I forgot to clarify myself:

How do I add a default Guest avatar in the Postbit?
I told already, the jQuery function I've pointed at can handle this.
only you need to change the base avatar variable to {$post['useravatar']}
(2014-02-27, 05:18 PM)effone Wrote: [ -> ]I told already, the jQuery function I've pointed at can handle this.
only you need to change the base avatar variable to {$post['useravatar']}

Is there a way to do this without JQuery?
Change {$post['useravatar']} to:
<if $post['useravatar'] then>{$post['useravatar']}<else><img src="{$theme['imgdir']}/default_avatar.gif" alt="" /></if>
in postbit/postbit_classic.
(2014-03-14, 02:39 PM)Destroy666 Wrote: [ -> ]Change {$post['useravatar']} to:
<if $post['useravatar'] then>{$post['useravatar']}<else><img src="{$theme['imgdir']}/default_avatar.gif" alt="" /></if>
in postbit/postbit_classic.

Thank you for your help, however I'm looking at making MyBB "know" that each guest has the same default avatar.

I knew how to just display a guest avatar in the postbit already, but I'm looking for a method to put a "proper" avatar, one that MyBB can recognize as an avatar, not just an image that shows on a guests postbit.

Is this possible?
Then how about specifying it in first post...? Noone can read that from "How could I add a default Guest avatar?" sentence.

You need to use this plugin then:
http://mods.mybb.com/view/identicon-avatar

And to prevent further questions which you'd surely ask - no, this can't be done without plugin or core edit and the 2nd isn't available.
Or if you want to specify the avatar yourself: http://mods.mybb.com/view/default-avatar
We have used the above plugin (default-avatar) for a while and it works brilliantly, easy to use and works with the latest version of MyBB 1.6.12 and previous version without any problems Cool
Pages: 1 2