Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • melanieb Friend
    #188918

    Basically what is happening now is my header pushes down and when I click on the login the box goes behind the top menu bar Please see image) and there is now a white space right across the top of the main menu. The changes I made to the JA Login are as follows:

    I replaced this code:

    <a href=”<?php echo JRoute::_(‘index.php?option=com_users&view=registration’); ?>”>

    <?php echo JText::_(‘JAREGISTER’); ?></a>
    </li>
    <?php endif; ?>
    </ul>
    <?php echo $params->get(‘posttext’); ?>
    </form>
    </div>

    </li>
    <?php
    $option = JRequest::getCmd(‘option’);
    $task = JRequest::getCmd(‘task’);
    if($option!=’com_user’ && $task != ‘register’) { ?>
    <li>
    <?php if(JComponentHelper::getParams(‘com_users’)->get(‘allowUserRegistration’) != 0): ?>
    <a class=”register-switch” href=”<?php echo JRoute::_(“index.php?option=com_users&view=registration”);?>” onclick=”showBox(‘ja-user-register’,’namemsg’,this, window.event || event);return false;” >
    <span><?php echo JText::_(‘JAREGISTER’);?></span>
    </a>
    <?php endif ?>
    <!–LOFIN FORM content–>
    <div id=”ja-user-register” <?php if(!empty($captchatext)) echo “class=’hascaptcha'”; ?> style=”width:240px;”>
    <?php
    JHTML::_(‘behavior.keepalive’);
    JHTML::_(‘behavior.formvalidation’);
    ?>

    <form id=”member-registration” action=”<?php echo JRoute::_(‘index.php?option=com_users&task=registration.register’); ?>” method=”post” class=”form-validate”>
    <fieldset>
    <?php if (isset($fieldset->label)):// If the fieldset has a label set, display it as the legend.?>
    <legend><?php echo JText::_($fieldset->label);?></legend>
    <?php endif;?>
    <dl>
    <dt>
    <label class=”hasTip required” for=”jform_name” id=”jform_name-lbl” title=”Name<br>Enter your full name”><?php echo JText::_( ‘JANAME’ ); ?>:</label><em>*</em></dt>
    <dd><input type=”text” size=”30″ class=”required” value=”” id=”jform_name” name=”jform[name]”/></dd>

    <dt>
    <label title=”” class=”hasTip required” for=”jform_username” id=”jform_username-lbl”><?php echo JText::_( ‘JAUSERNAME’ ); ?>:</label><em>*</em></dt>
    <dd><input type=”text” size=”30″ class=”validate-username required” value=”” id=”jform_username” name=”jform[username]”/>
    </dd>
    <dt>
    <label title=”” class=”hasTip required” for=”jform_password1″ id=”jform_password1-lbl”><?php echo JText::_( ‘JGLOBAL_PASSWORD’ ); ?>:</label><em>*</em></dt>
    <dd>
    <input type=”password” size=”30″ class=”validate-password required” value=”” id=”jform_password1″ name=”jform[password1]” />
    </dd>
    <dt>
    <label title=”” class=”hasTip required” for=”jform_password2″ id=”jform_password2-lbl”><?php echo JText::_( ‘JGLOBAL_REPASSWORD’ ); ?>:</label><em>*</em></dt>
    <dd>
    <input type=”password” size=”30″ class=”validate-password required” value=”” id=”jform_password2″ name=”jform[password2]” />
    </dd>
    <dt>
    <label title=”” class=”hasTip required” for=”jform_email1″ id=”jform_email1-lbl”><?php echo JText::_( ‘JAEMAIL’ ); ?>:</label><em>*</em></dt>
    <dd>
    <input type=”text” size=”30″ class=”validate-email required” value=”” id=”jform_email1″ name=”jform” />
    </dd>
    <dt>
    <label title=”” class=”hasTip required” for=”jform_email2″ id=”jform_email2-lbl”><?php echo JText::_( ‘JACONFIRM_EMAIL_ADDRESS’); ?>:</label><em>*</em></dt>
    <dd>
    <input type=”text” size=”30″ class=”validate-email required” value=”” id=”jform_email2″ name=”jform” />
    </dd>
    <?php if(!empty($captchatext)) { ?>
    <dt>
    <label title=”” class=”hasTip required” id=”jform_captcha-lbl”><?php echo JText::_( ‘JACAPTCHA’); ?>:</label> </dt>
    <dd>
    <?php echo $captchatext; ?> <br>*
    </dd>
    <?php } ?>
    </dl>
    </fieldset>
    <p><?php echo JText::_(“DESC_REQUIREMENT”); ?></p>
    <button type=”submit” class=”validate”><?php echo JText::_(‘JAREGISTER’);?></button>
    <div>
    <input type=”hidden” name=”option” value=”com_users” />
    <input type=”hidden” name=”task” value=”registration.register” />
    <?php echo JHTML::_(‘form.token’);?>
    </div>
    </form>
    <!– Old code –>
    </div>
    </li>
    <?php } ?>
    <!–LOFIN FORM content–>
    <?php endif; ?>
    </ul>

    with this:

    <a href=”<?php echo JRoute::_(‘index.php?option=com_users&view=registration’); ?>”>

    <?php echo JText::_(‘JAREGISTER’); ?></a>
    </li>
    <?php endif; ?>
    </ul>
    <?php echo $params->get(‘posttext’); ?>
    </form>
    </div>

    </li>
    <?php
    $option = JRequest::getCmd(‘option’);
    $task = JRequest::getCmd(‘task’);
    if($option!=’com_user’ && $task != ‘register’) { ?>
    <li>
    <a class=”register-switch” href=”<?php echo JRoute::_(“index.php?option=com_community&view=register”);?>”>
    <span><?php echo JText::_(‘REGISTER’);?></span>
    </a>

    <!– Old code –>
    </div>
    </li>
    <?php } ?>
    <?php endif; ?>

    Can anyone help me?

    Kind regards


    1. logimoduleheaderprob
    melanieb Friend
    #499012

    Hi,

    I have fixed it now. Instead of removing all the form code as I did above I just changed the path to index.php?option=com_community&view=register and then just deleted the text for the on click method, now its fine

    Ninja Lead Moderator
    #499045

    That’s great

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum