Hi, could you help me to modify the following code to display the hello world message within the content articcle
in tags {embed}Hello World{/embed}
PHP
<?php
// no direct access
defined('_JEXEC') or die;
class plgContentHelloworld extends JPlugin
{
public function onContentAfterTitle($context, &$article, &$params, $limitstart)
{
return "<p>Hello World!</p>";
}
}
?>
XML
<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="content">
<name>plg_content_helloworld</name>
<author>xxx</author>
<creationDate>September 11th, 2013</creationDate>
<copyright>Freelancer</copyright>
<license>GNU General Public License</license>
<authorEmail>
This email address is being protected from spambots. You need JavaScript enabled to view it.</authorEmail>
<authorUrl>
www.joomla.com</authorUrl>
<version>1.0</version>
<description>Simple Hello World Plugin that prints "Hello World" at the beginning of every article.</description>
<files>
<filename plugin="helloworld">helloworld.php</filename>
<filename>index.html</filename>
</files>
</extension>