Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

Customizing Joomla 1.5 Registration

To customize registration text,
1) Open file: components\com_user\views\register\tmpl\default.php
2) Near line 18 look for the form tag ‘<form>’
3) You can add custom text above or below the form
i.e.)
<div style=”margin-top:20px;margin-bottom:10px;color:blue;”>New Accounts Require Email Activation</div>
action=”<?php echo JRoute::_( ‘index.php?option=com_user’ ); ?>” method=”post” id=”josForm” name=”josForm” class=”form-validate”>

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 }