如何在 Joomla 2.5 中编辑用户激活邮件正文?

How to edit user activation mail body in Joomla 2.5?

我正在使用 Joomla 2.5 用户注册表。成功注册后,用户将获得激活 link 抛出他们注册的邮件 ID。我想向电子邮件正文(页脚)添加一些内容。我已经尝试了很多但没有成功。

代码:registration.php

if ($useractivation == 2)
    {
        // Set the link to confirm the user email.
        $uri = JURI::getInstance();
        $base = $uri->toString(array('scheme', 'user', 'pass', 'host', 'port'));
        $data['activate'] = $base.JRoute::_('index.php?option=com_users&task=registration.activate&token='.$data['activation'], false);

        $emailSubject   = JText::sprintf(
            'COM_USERS_EMAIL_ACCOUNT_DETAILS',
            $data['name'],
            $data['sitename']
        );

        if ($sendpassword)
        {
            $emailBody = JText::sprintf(
                'COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY',
                $data['name'],
                $data['sitename'],
                $data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'],
                $data['siteurl'],
                $data['username'],
                $data['password_clear']
            );
        }
        else
        {    $footer1 = "regarts: neuroturma ";
            $emailBody = JText::sprintf(
                'COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY_NOPW',
                $data['name'],
                $data['sitename'],
                $data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'],
                $data['siteurl'],
                $data['username'],
                $footer1,//not works
                'regarts: neuroturma'//not works
            );
        }
    }
    elseif ($useractivation == 1)
    {
        // Set the link to activate the user account.
        $uri = JURI::getInstance();
        $base = $uri->toString(array('scheme', 'user', 'pass', 'host', 'port'));
        $data['activate'] = $base.JRoute::_('index.php?option=com_users&task=registration.activate&token='.$data['activation'], false);

        $emailSubject   = JText::sprintf(
            'COM_USERS_EMAIL_ACCOUNT_DETAILS',
            $data['name'],
            $data['sitename']
        );

        if ($sendpassword)
        {
            $emailBody = JText::sprintf(
                'COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY',
                $data['name'],
                $data['sitename'],
                $data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'],
                $data['siteurl'],
                $data['username'],
                $data['password_clear']
            );
        }
        else
        {
            $emailBody = JText::sprintf(
                'COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY_NOPW',
                $data['name'],
                $data['sitename'],
                $data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'],
                $data['siteurl'],
                $data['username']
            );
        }
    }
    else
    {

        $emailSubject   = JText::sprintf(
            'COM_USERS_EMAIL_ACCOUNT_DETAILS',
            $data['name'],
            $data['sitename']
        );

        $emailBody = JText::sprintf(
            'COM_USERS_EMAIL_REGISTERED_BODY',
            $data['name'],
            $data['sitename'],
            $data['siteurl']
        );
    }

    // Send the registration email.
    $return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);

我应该在哪里添加页脚内容?请帮我。

尝试编辑 /language/en-GB/en-GB.com_user.ini

这个链接也能帮上大忙 http://forum.joomla.org/viewtopic.php?f=706&t=871489 http://forum.joomla.org/viewtopic.php?f=624&t=852596