PHP code example of iionly / recentdiscussions

1. Go to this page and download the library: Download iionly/recentdiscussions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

iionly / recentdiscussions example snippets


// Recent discussions plugin
if (elgg_is_active_plugin('recentdiscussions')) {
  $html = elgg_view('index/recentdiscussions');
  echo elgg_view_module('featured',  elgg_echo('recentdiscussions:title'), $html, $mod_params);
}