When I embed the fblikebutton block, it automatically sets the URL to like as the $base_url. I wanted to be able to embed the block on any page and have it recognize the current URL instead. I'm not sure if this has been already brought up before, but I searched for 'current url' in the 7x.1.x branch and found no results.

Comments

johnnydarkko’s picture

StatusFileSize
new1.45 KB

Created a patch to give the option of leaving the "URL to Like" blank. If this is blank, the current URL will be used to be 'liked'. Hope this helps!

Please bear with me, this is the first ever patch that I created. Please let me know if I'm doing something that I'm not supposed to be doing.

johnnydarkko’s picture

Status: Active » Needs review
johnnydarkko’s picture

StatusFileSize
new1.51 KB

Added ssl compatibility to the patch.

dmsmidt’s picture

Hi Johnny,

I've already created a big patch that I will be committing soon. It add's even more stuff,
have a look: http://drupal.org/node/1167194

kareeser’s picture

Hi johnnydarkko,

Applied the patch, worked like a charm. Thanks, bud.

helior’s picture

Status: Needs review » Reviewed & tested by the community

+1 -- Thanks johnnydarkko! This really is a lifesaver. Can we get this in?

astonvictor’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks