ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Default Avatar in Forum Module?

March 19, 2010 10:42am

Subscribe [2]
  • #1 / Mar 19, 2010 10:42am

    hi,
    i was wondering two things in relation to avatars in the forum module:

    1.) is it possible to set a default avatar for people that don’t set one on their own?
    2.) would it then be possible to have that avatar be chosen at random from a set of avatars?

  • #2 / Mar 19, 2010 12:13pm

    lebisol

    2234 posts

    1.

    Welcome <a href="http://{path=member/profile}" title="Your Account">{screen_name}</a>!
         {exp:member:custom_profile_data}
            {if avatar}
                {avatar_url}
            {if:else}
              <a href="http://{path=member/edit_avatar}">http://www.site.com/themes/site_themes/default/no_avatar.gif</a>
            {/if}
        {/exp:member:custom_profile_data}

    2. perhaps with some php

  • #3 / Mar 20, 2010 1:00am

    thank you very much.

    and just to be more clear about the second part: i’m not looking for those avatars to change randomly on page reload. more specifically, when the user registers i’m looking for 1 avatar to be set randomly from the directory i have them in.

    i’m guessing thats going to go deeper than theme_threads.php & theme_member.php. probably into some of the core files. but thats alright.

    thanks again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases