so I tried it and nothing
I am not sure if it has something to do with the way i installed it
or maybe the rest of the code
i am posting the entire code here
Code:
<?php
defined('_JEXEC') or die( 'Restricted access' );
jimport('joomla.plugin.plugin');
class plgUserExample extends JPlugin
{
function onAfterStoreUser($user, $isnew, $success, $msg)
{
global $mainframe;
$args = array();
$args['username'] = $user['username'];
$args['email'] = $user['email'];
$args['fullname'] = $user['name'];
$args['password'] = $user['password'];
if ($isnew)
{
$body = "Test"
$subject = "Test Mail"
$email = $user['email']
$name = $user['name']
$recipient = $user['name']
$mail = JFactory::getMailer();
$mail->addRecipient( $recipient );
$mail->setSender( array( $email, $name ) );
$mail->setSubject($subject );
$mail->setBody( $body );
$sent = $mail->Send();
}
else
{
}
}
}
that is the .php file
and here is the .xml file
Code:
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5.2" type="plugin" group="system" method="upgrade">
<name>System - Test</name>
<author>Erik Smith</author>
<creationDate>September 2009</creationDate>
<copyright>Copyright (C) 2008 Holder. All rights reserved.</copyright>
<license>GNU General Public License</license>
<authorEmail>Star6966@hotmail.com</authorEmail>
<authorUrl></authorUrl>
<version>1.0.1</version>
<description>A test system plugin</description>
<files>
<filename plugin="example">test2.php</filename>
</files>
<params>
<param name="Test"
type="text"
default=""
label="Test"
description="An example text parameter" />
</params>
</install>
I have the files
test.php
and
test.xml
in a zip file which i can install, but if i register a user, no response
any suggestions