The Techjoomla Blog

Stay updated with all the latest happenings at Techjoomla. From news about the developments in your favourite extensions to Tips & Tricks about the Joomla CMS, Framework & Development.

Jomsocial gets DISQUS'ed

Jomsocial gets DISQUS'ed

In a recent project we had to implement a uniform commenting system across the site, Jomsocial included. Now obviously, Jomsocial comes with it’s own commenting system, and to make matters worse, there were already thousands of comments already present that needed to be migrated to the new platform.

We suggested the use of Disqus, which is a cloud based commenting system that easily integrates with a website. Thankfully, DISQUS provides a way to import comments from non-compatible systems by importing from a WXR file. 

So the first challenge was to generate a WXR file. Each thread in DISQUS needs to have a unique disqus_thread_id, which is usually unique per page. In case of comments for Joomla Articles, this is usually the article ID. However, since we were using DISQUS for videos, photos and even blogs, we could have easily run into an issue where a video, a photo and a blog have the same id. To overcome this, we prefixed the id with a identifier, so the ID became video.345 or photo.345 or blog.345 Neat eh ;)

Continue reading
5
  6621 Hits
  0 Comments
6621 Hits
0 Comments

Getting back your DISQUS comments after a site migration

gettingbacktoyourdisquscommentsafterasitemigratio_20180417-093317_1

Lot of us love to have DISQUS comments on our sites. It's one of those hosted commenting systems that adds virality to all content and comments on your site. Techjoomla uses DISQUS too, and during our recent site upgrade we had a challenge ensuring that our comments get carried over since the migration meant that the links/URLs to all our pages got changed. We were really glad that we chose DISQUS, since they have some really useful tools for migrating comments when changing URLs. 

We wrote a neat little script that could read the export file that DISQUS generates and find out the 404s. Then we added these 404 links as aliases to the correct SEF URLs. Re-ran the script to get a mapping file that could be uploaded to DISQUS. Done!

Here are detailed steps along with links to resources to get the job done!

Continue reading
0
  8029 Hits
  0 Comments
8029 Hits
0 Comments