Closed (fixed)
Project:
Facebook Connect
Version:
6.x-1.0-beta9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2010 at 22:22 UTC
Updated:
5 Apr 2010 at 00:10 UTC
I looked into it, and the reason is that the parameter is being set wrong. It should be
<fb:profile-pic facebook-logo="true"></fb:profile-pic>
but it's being output as
<fb:profile-pic facebook-logo="1"></fb:profile-pic>
The problem is that in theme_fbconnect_user_picture_override() the $logo parameter is being passed as a PHP boolean value instead of the string "true". I just placed if ($logo) $logo = 'true'; into the top of theme_fbconnect_user_picture_override() like so:
<?php
function theme_fbconnect_user_picture_override($fbuid = '', $account = '', $user_url = '', $size = 'square', $logo = TRUE) {
// new code fix is here
if ($logo) $logo = 'true';
$output = <<<PIC
<div class="picture">
<a href="$user_url">
<fb:profile-pic uid="$fbuid" linked="false" size="$size" facebook-logo="$logo"></fb:profile-pic>
</a>
</div>
PIC;
return $output;
}
?>I don't know if there is a better way to do it, but this fixes it.
Comments
Comment #1
Aquilasfx commentedcan you share your facebook.module .... i can't show any avatar also with your modified version: "adding s" to user_profiles....
Comment #2
thaddeusmt commentedI'll post a patch eventually, but alas I don't have time right now. Don't have patch generating stuff set up on this box. It's easy to make the change in the code in the mean time. Just be sure to refresh the Drupal cache, as always. :)
Comment #3
vectoroc commentedFixed in git. Will be released soon
Comment #4
cerup commentedI downloaded the latest git version 15 minutes ago. This is not fixed.
Comment #5
cerup commentedchanging status
Comment #6
vectoroc commentedsee http://github.com/vectoroc/fbconnect/blob/master/fbconnect.pages.inc
and http://skitch.com/vectoroc/n5bpm/admin-fbconnect.loc
I'm pretty sure that it's fixed
Comment #7
vectoroc commentedComment #8
cerup commentedThe problem is that now you can't uncheck the option. If you uncheck it, it still shows the facebook icon - and also when you reload the setting page it puts the checkbox back to true. So it sounds like the opposite problem as before.
Comment #9
vectoroc commentedThanks, now I see where is problem. Fixed, see github