1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on Randomly generated avatar for people that don't specify an avatar

Discussion in 'Resource and Add-on Requests' started by Jesepi, Dec 29, 2012.

  1. Jesepi

    Jesepi Well-Known Member

    I'm tired of my users not picking an avatar and having a bunch of gender/questionmark avatars all over my forums. This is an interesting solution that generates an image based on a user's IP address or other criteria:


    There are a couple of PHP based implementations of this:
    As well as just using jquery:
    Some more discussion on it:

    How difficult would this be for an addon author to implement as a xenforo addon?
    Mouth and Breixo like this.
  2. Jesepi

    Jesepi Well-Known Member

    Bump, and also requesting private message from anyone interested with an estimate on how much this would cost to program as a xenforo add-on.
  3. James

    James Well-Known Member

    Where would the images be generated from?
  4. Jesepi

    Jesepi Well-Known Member

    Probably an md5 hash of each username.


    Or a combination of registration timestamp + username. Not sure if one method is better than the other.
  5. dieketzer

    dieketzer Well-Known Member

    a very easy way to do this would be to create directories in the styles directories that replace the default names:
    /styles/xenforo/avatars/avatar_male_s.png becomes
    index.php is a random image script, and the directory contains an assortment of random avatars.
    this would require zero modifications and addons. of course the avatar would be different for every call, so a user may have a different avatar on each of their posts on a single page... but its a start i suppose
  6. Jesepi

    Jesepi Well-Known Member

    That would be interesting, but I need a static image to be generated and stored like a regular avatar.
  7. Breixo

    Breixo Active Member

    Sounds interesting, I'd like some solution like this auto-generated avatar. Any news?
    Mouth likes this.
  8. Iversia

    Iversia Well-Known Member

    Jesepi and Breixo like this.
  9. Jesepi

    Jesepi Well-Known Member

    This is a much appreciated improvement to my site, thank you for making it.

Share This Page