EasyDiscuss 4.0.19

Html

Learn more about HTML data API here.
  Advanced

The follow's data api allows you to easily embed a link on your extension and allow other users to follow the person as a followers on the site.

data-es-followers-follow

The data-es-followers-follow data api allows you to display the html code for users to follow other users profile.


require_once( JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php' ); // This will render the necessary javascripts on the page header. Foundry::page()->processScripts(); ?> <a href="javascript:void(0);" data-es-followers-follow data-es-followers-id="<?php echo $userId;?>">

data-es-followers-unfollow

The data-es-followers-unfollow data api allows you to display the html code for users to unfollow an existing follower.