Skip to content

Instantly share code, notes, and snippets.

@vijaykhollam
vijaykhollam / export.php
Last active August 29, 2015 14:05
Integrate disqus comments with jomsocial
<?php
// Add thid method to any controller, say to com_community/disqusimport.php
// And run it as http://example.com/index.php?option=com_community&controller=disqusimport&task=export_comments
public function export_jom_video()
{
header('Content-disposition: attachment; filename="export.xml"');
header('Content-type: "text/xml"; charset="utf8"');
echo '<?xml version="1.0" encoding="' . 'UTF-8' ."\" ?>\n";
echo'<rss version="2.0"