Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 101 through 107 (of 107 total)
  • @enderandrew

    Member

    I’m hearing now there will be a BP 1.2.9 release as well. Will that work work WP 3.2?

    @enderandrew

    Member

    Bump for great justice!

    Is there any way to provide a gallery of avatars to choose from, or to randomly pick from the pre-provided avatars for people who don’t upload their own?

    @enderandrew

    Member

    Out of curiousity, will there be a new release of BuddyPress soon? Or should I just not run nightly of WordPress?

    WordPress 3.2 is slated for release next month, so I’m assuming BuddyPress will need a new release as well in a similar time frame.

    @enderandrew

    Member

    I want to keep my site’s theme consistent. I’m making a site for a Star Wars: The Old Republic guild. I’ve got 156 avatars. Ideally, I’d like users to be able to choose from these avatars in addition to uploading one of their own. But let’s start with something even easier. If they don’t have a custom avatar, instead of default to Mystery Man, I’d like to default to one randomly chosen from the 156. Could I just do something like this:

    `$tmp = glob(‘avatars/*.gif’);
    if (is_array($tmp))
    {
    $flist = array_merge($flist,$tmp);
    }
    $default_avatar = $flist[array_rand($flist)];
    add_filter( ‘bp_core_mysteryman_src’, $default_avatar );`

    My fear in trying this out, is that every time it displayed any default avatar if would pick one at random. What I’d like is to do the randomization once in assigning an avatar to a user if they don’t have one.

    @enderandrew

    Member

    What if I want to do more than just replace the one default avatar?

    What if I want to provide a gallery of avatars users can choose from (by uploading a bunch of avatars to a folder)?

    Ideally I’d like to allow users to select from the avatars I’ve uploaded, as well as allow them to upload one of their own.

    @enderandrew

    Member

    That looks great! Thanks!

    @enderandrew

    Member

    Powweb is my host. I don’t have access to the server logs.

Viewing 7 replies - 101 through 107 (of 107 total)
Skip to toolbar