[buddypress-dev] RE: Avatar Uploads

Andy Peatling andypeatling at automattic.com
Wed Jul 16 16:49:46 GMT 2008



On 3-Jul-08, at 11:49 AM, Andreas Hanfelt wrote:

> Andy i dont know much about php but i understand some of it
> There is one function that doesnt work on my blog maybe cause we are  
> 2 admins on my blog
> If i changed  this function to this code it works. Now i get the  
> menu blog and profile. Before i got 3 links thats didnt work at all...
>
> function bp_core_get_current_userid() {
> 	$siteuser = bp_core_get_primary_username();
> -	// $current_userid = bp_core_get_userid($siteuser);
> +	global $wpdb, $blog_id, $wpmuBaseTablePrefix;
> +	$current_userid = $wpdb->get_var("SELECT post_author FROM " .  
> $wpmuBaseTablePrefix . $blog_id . "_posts");
> 	
> 	return $current_userid;
> }
>

I have plans for blogs with multiple admins. They will be handled  
differently. Right now however, this isn't supported. I'm  
concentrating on fresh installs first.

Andy


>
>
> 3 jul 2008 kl. 20.32 skrev Andy Peatling:
>
>> On 3-Jul-08, at 11:25 AM, Andy Peatling wrote:
>>
>>>> By the way, it just occurred to me that I am using sub  
>>>> directories not subdomains. Any one else using subdirectories?
>>>
>>> I've got an installation working on sub directories, I will take a  
>>> look at this. Also - make sure you are including the username on  
>>> activation otherwise images will break ... http://install.com/USERNAME/wp-activate.php?key= 
>>> ...
>>
>> In fact, I take that back, it works fine without. I've just signed  
>> up on a subdir install with MU1.5.1 and avatar images seem to  
>> upload, crop and show up fine. Try reinstalling?
>>
>> Andy
>> _______________________________________________
>> buddypress-dev mailing list
>> buddypress-dev at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/buddypress-dev
>
> _______________________________________________
> buddypress-dev mailing list
> buddypress-dev at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/buddypress-dev



More information about the buddypress-dev mailing list