×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Joomla event doesnt get triggered onAfterDisplayCo

Joomla event doesnt get triggered onAfterDisplayCo 11 years 2 months ago #19512

  • Dmitri
  • Dmitri's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Import library dependencies
jimport('joomla.plugin.plugin');

class plgContentEya extends JPlugin
{

function plgContentEngageya( &$subject, $config )
{
parent::__construct( $subject, $config );

}
/**
* Plugin method with the same name as the event will be called automatically.
*/
function onAfterDisplayContent( &$article, &$params, $limitstart)
{//Echo script there
echo "script works";
// Plugin code goes here.
// You can access parameters via $this->params.
return "<script src=' widget.eya.com/sprk.1.0.2.js ' type='text/javascript'></script>";
}
}




docs.joomla.org/Plugin/Events/Content

Joomla event doesnt get triggered onAfterDisplayCo 11 years 2 months ago #19544

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dimitri,
You've posted in the "General Talk" section of our forum so we actually have no idea if this is at all related to our components?

Daniel
  • Page:
  • 1
Time to create page: 0.140 seconds