Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

mod_sp_facebook stopped displaying the LikeBox

Featured Lock Resolved
Hi all,

recently. as of today, i discoverd that that on all of my customers websites the Facebook LikeBox (mod_sp_facebook) suddenly stopped working. I am usind Joomla 1.5.2x..

So i reseached the issue and found that the facebook developers made some changes causing this issue,

However as programmer i fixed it. And i would like to share my fix with you:

under modules/sp_mod_facebook

edit the file mod_sp_facebook.php

locate the the following line at the bottom of the file and comment it out //

// if ($plg_type!='live_stream') $doc->addScript ('http://connect.facebook.net/'.$plg_lang.'/all.js#xfbml=1');

Insert below that line my fixed version:

if ($plg_type!='live_stream') $doc->addScript ('(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//http://connect.facebook.net/de_DE/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, "script", "facebook-jssdk";));');

THIS WILL SOLVE THE ISSUE (worked for me)

save the file and there you go -- the box will work again.

best regards
Oliver Haufe
http://www.haufe-it.de
http://www.haufe-it.com

4 Answers

Oliver Haufe

More than a month ago #Permalink
One more hint.. As i am german i used the languade tag de_DE in my fix for english you may want to change it to en_US

jose a suarez

More than a month ago #Permalink
Hello friend, I am using Joomla 2.5.4, i am not a programmer, but may you can help me on how to make your solution work on my site.
Many Thanks,
jose

Oliver Haufe

More than a month ago #Permalink
I will see what i can do. i will do a joomla 2.5 install later today and install the module to provide a fix for you as well

Oliver Haufe

More than a month ago #Permalink
Hi
maybe this will help all, i have attached my changed versions.

Attachments (2)

  • mod_sp_facebook_j25.zip
  • mod_sp_facebook_j15.zip


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 112
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 111
Toufiq

Toufiq

Total Accepted Answers: 69
Kamruzzaman Alam

Kamruzzaman Alam

Total Accepted Answers: 5
FUTURECLIENT

FUTURECLIENT

Total Accepted Answers: 2

115

Templates

296453

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us