Omega, Facebook Share module with no page.tpl.php

Events happening in the community are now at Drupal community events on www.drupal.org.
billp44ruby's picture

I am trying to use the Facebook Share module (http://drupal.org/project/facebookshare) within an Omega theme site. The issue I'm having is that the Facebook Share icon is not showing up on nodes or showing up intermittently (or for a reason I haven't been able to fathom). According to the Facebook Share dev team, my page needs to have the following just before the tag

<?php
print $closure;
?>

They recommend that this php snippet be inserted via the page.tlp.php file. As I understand it, Omega does not have a page.tlp.php file. So how would I get this $closure variable inserted right before the tag?

Comments

Just off the top of my head,

mchris82's picture

Just off the top of my head, you could add it in the html.tpl.php file. Seems like kind of a hack, but you could insert it there before the closing body tag you're referring to. Just copy the default Omega html.tpl.php to your subtheme and alter it there.

At least this would allow you to test your theory about adding the closure code.

What version of Drupal are

rolodmonkey's picture

What version of Drupal are you using?

If I understand correctly, the $closure variable was dropped in D7.

Learn more at iRolo.net.

I did some basic research,

rolodmonkey's picture

I did some basic research, this module is not very active. The last issue to be marked fixed is over a year old.

You might want to look into ShareThis instead: http://drupal.org/project/sharethis

Learn more at iRolo.net.

We are using the ShareThis

nflowers1228's picture

We are using the ShareThis module with the Omega themes for our YaleSites instance of Drupal and it's working well without any coding necessary. I'm sure this depends on what you are wanting to do.

Nancy Flowers-Mangs

Thanks all!

billp44ruby's picture

I appreciate you pointing out ShareThis to me! It's a far superior module and easy as can be to implement.

Omega Framework

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: