Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9272411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:52:20+00:00 2026-06-18T15:52:20+00:00

This is my plugin: // no direct access defined( ‘_JEXEC’ ) or die( ‘Restricted

  • 0

This is my plugin:

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

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

class plgContentEya extends JPlugin
{

 function plgContentEya( &$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='http://widget.eya.com/sprk.1.0.2.js' type='text/javascript'></script>";
 }
}




http://docs.joomla.org/Plugin/Events/Content

According to their documenation

  Return Value
String. Returned value from this event will be displayed in a placeholder. Most templates display this placeholder after the article separator.

The plugin gets displayed and doesnt throw an error when I install it.. But the event never gets triggered. I dont see it in the document

<install version="2.5" type="plugin" group="content">
   <name>plg_content_eya</name>
   <author>eya</author>
   <creationDate>February 2013</creationDate>
   <copyright>(C) 2013 Open Source Matters. All rights reserved.</copyright>
   <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
   <authorEmail>anattaligg@graeit.com</authorEmail>
   <authorUrl>www.eya.com</authorUrl>
   <version>2.5.0</version>
   <description>Adds eya plugin ot your site</description>
   <files>
     <filename plugin="eya">eya.php</filename>
   </files>

</install>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:52:21+00:00Added an answer on June 18, 2026 at 3:52 pm

    Based on the version="2.5" in your XML, your plugin is not being called because you have the wrong event name.

    The event names have changed since the Plugin/Events/Content for Joomla! 1.5 document was written. I’ve marked it as a 1.5 document to make that clear.

    Events were renamed to be more consistent (domain/period/event e.g. Content/After/Display), so, the event you want is now called onContentAfterSave and you can find more information about renamed events in the article “Adapting a Joomla 1.5 extension to Joomla 1.6“

    If you want to support Joomla! 1.5 in your plug-in as well you will also have to add a compatibility layer to catch the 2.5 call and redirect it to your method. e.g.

    // Catch 2.5
    public function onContentAfterDisplay($article, $params, $limitstart)
    {
        $result = $this->onAfterDisplayContent($article, $params, $limitstart);
        return $result;
    }
    

    N.B. Not tested code just typed in…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As usual you write in Joomla Development defined('_JEXEC') or die('Restricted access'); I make a
Im attempting to style this plugin into my rails 3.2 app and having some
I'm using this plugin and here is the code: http://jsfiddle.net/gm8t5/ Basically I want to
I utilize this plugin for slider site > http://basic-slider.com/documentation/ script > https://github.com/jcobb/basic-jquery-slider/blob/807132214df170e1726e05f272fb75649687f268/js/basic-jquery-slider.js the basic
I'm using this plugin for jquery called resize-crop: http://code.google.com/p/resize-crop/ The problem with this is
Has anyone used this plugin? I don't know if my setup is right, but
Anyone have experience with this plugin? I have it installed but I have no
I'm using this plugin: http://www.jeremymartin.name/projects.php?project=kwicks And my code follows this example: http://www.jeremymartin.name/examples/kwicks.php?example=7 I'm using
I am using this plugin for my new site: http://colorpowered.com/colorbox/ The page in concern
When someone installs this plugin, I would like a file to be copied into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.