I'd like to ask if would it be possible to alter the weight of the Like button to ensure that it's at the end (or at least provide an option to alter the weight)?
My exact problem is that when I translate an article, the language selector for the specified article is displayed next to the "Like" button. For screenshot, see the attached picture.

But unfortunately the Like button is displayed before the link for the translated article, instead of after the link for the translated article. I tried to clear the "width of the like button" setting, then the link comes closer, but that doesn't solve my original issue.

Thank you in advance.

CommentFileSizeAuthor
fb_i18n_relocating_order_needed.png61.26 KBfleetcommand

Comments

ferdi’s picture

I can move the like widget at the end of the node links but I'm afraid not everyone will be happy with it.

I would recommend you override the node links in our theme's template file (template.php).

/**
* Override theme_links() so we can move fb_social_like link at the end
*/
function phptemplate_links($links, $attributes = array('class' => 'links')) {
    if(isset($links['fb_social_like'])){
      $v = $links['fb_social_like'];
      unset($links['fb_social_like']);
      $links['fb_social_like''] = $v;
    }
    return theme_links($links, $attributes);
}

Clear the cache for these changes to take effect. Note that this will work with beta2 version of this module. Let me know if this works for you.

fleetcommand’s picture

Oh, thank you for your useful reply :) The function works perfectly (except that it has an extra apostrophe) so now the Like button went to the end, giving it a more consistent look. So thanks again.
ps. maybe you could consider to add it as an option, however I'm not sure how hard to do it from the module without touching the theme files

knalstaaf’s picture

except that it has an extra apostrophe

Remove it from $links['fb_social_like''] = $v;

'fb_social_like'' should be 'fb_social_like'

ferdi’s picture

Status: Active » Closed (fixed)