Forum Replies Created
-
I’m hearing now there will be a BP 1.2.9 release as well. Will that work work WP 3.2?
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?
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.
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.
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.
That looks great! Thanks!
Powweb is my host. I don’t have access to the server logs.