To alter the Joomla 1.5 activation message,
1) Open file: components\com_user\controller.php
Note: The activation() function is where you can add custom text. Alternatively, you can look for the JTEXT constants; such as JText::_( ‘REG_ACTIVATE_COMPLETE_TITLE’ ) and alter the file language/en-GB/en-GB.com_user.ini.
Below, a sample is shown which adds custom text inside the validate() function.
$message->title = JText::_( ‘REG_ACTIVATE_COMPLETE_TITLE’ );
$message->text = JText::_( ‘REG_ACTIVATE_COMPLETE’ );
echo “You can now <a href=\”http://bellecar.com\”>LOGIN HERE!</a>”;
or put at bottom of activation() function
$message->title = JText::_( ‘REG_ACTIVATE_COMPLETE_TITLE’ );
$message->text = JText::_( ‘REG_ACTIVATE_COMPLETE’ );
echo “You can now <a href=\”http://bellecar.com\”>LOGIN HERE!</a>”;
or put at bottom of activation() function
Sample:
else
{
// Page Title
$document->setTitle( JText::_( ‘REG_ACTIVATE_NOT_FOUND_TITLE’ ) );
// Breadcrumb
$pathway->addItem( JText::_( ‘REG_ACTIVATE_NOT_FOUND_TITLE’ ));
$message->title = JText::_( ‘REG_ACTIVATE_NOT_FOUND_TITLE’ );
$message->text = JText::_( ‘REG_ACTIVATE_NOT_FOUND’ );
}
echo ‘<br/><br/>’;
$view->assign(‘message’, $message);
$view->display(‘message’);
echo “<br/>Registered members can <a href=\”http://bellecar.com\”>LOGIN HERE!</a>”;
//end validate()function }
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton