{SCOpenGraph url=http://link-to-proper-url}
{SCFacebookComments href=http://link-to-proper-url}
<div class="sourcecoast facebook comments jfbccomments"><div class="fb-comments" data-href="http://www.thailandstidende.com/item/2838-quizmaster-satser-pa-jomtien" data-width="650" data-numposts="50" data-colorscheme="light" data-mobile="false" data-order-by="social"></div>
That really depends on how you perform backups of your site as it is. I wouldn't know the best way to restore a backup for your site, that's different for every site, but when you restore it, you could put it in a sub-folder of your existing site (or anywhere else) for testing. The main thing we'd want to test is what URLs are created in Joomla 2.5 as that will help narrow down where things start going wrong in Joomla 3.x.I have never done anything like restoring an old version of Joomla. I need help if you want me to do that.
That code is from JFBConnect. When we generate the URL for K2 items, we call the following code:At this point I need to get to the root of the problem. I also noticed the source code, and I want to ask you: Is it or is it not Sourcecoast code that is generating the wrong url here:
require_once(JPATH_SITE . '/components/com_k2/helpers/route.php');
$url = K2HelperRoute::getItemRoute($article->id . ":" . urlencode($article->alias), $article->catid);
I have no clue how to restore that backup. That's well out of our purview. It will greatly increase the odds of us finding a solution though if we can compare the original site to the new Joomla 3.x site with upgraded versions of JFBConnect, K2 and all other changes you've made.I took a "Full Backup" via CPanel of the old 2.5 site. That file of about 2 Gb is now on another server under another domain name. What do I do to restore the old Joomla 2.5? Just unzip? Do I need to create new database etc. etc?
We've posted the code we use to get the URL for the current article above. That is asking K2 what the proper SEF URL should be for the page and it's returning the /item/... URL. That's how it works. I'm not sure if that's a change from the version of K2 you were previously using, but that looks to be how it works now. Again, knowing which versions you were using previously and, especially, seeing it work on the Joomla 2.5 site would help narrow down where the issue is.Anyway, regarding URLs, the old site had the EXACT same URLs as the new site. I know this for a fact, because I checked old postings on our Facebook page.
You can't use Javascript in that field. You need to use an actual URL value.But I cannot seem to get the current document URL into the data-href field:
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.