Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • sugiarto Friend
    #136412

    Hi all,

    I want to dissable user registration, but login stil neeeded. I have already set in System Parameter to disable user registration, but text ‘Create an account’ next to Login text still shows.

    How to remove this text?

    Thanks in advance.

    Regards,
    Sugiarto.

    questbg Friend
    #283674

    Hi sugiarto

    You will need to edit the the following file:
    /templates/telline_ii/html/mod_login/default.php

    Remove all the code from line 68 to line 173.

    Of course, remember to take a backup first! 😉

    Chris

    sugiarto Friend
    #283739

    Hi Christ,

    I removed all codes from line 68 to 177 (not 173) because <?php } ?> code is at line 177, it worked, thanks for your help.

    Regards,
    Sugiarto.

    questbg Friend
    #283745

    Glad I could help! 🙂

    Sorry about getting the line numbers wrong, but at least you managed to figure it out!

    Regards
    Chris

    Subliminal8 Friend
    #286489

    Can you please show the text in the lines to remove?

    I have this same issue, but don’t have an editor that numbers the lines to know which ones I should remove.

    Thank you!

    questbg Friend
    #286512

    Hi sublimedesign

    Sure, here’s the code (quite a lot of it!!!) 🙂

    Take a back up first, then remove the following:

    <li>
    <a href="<?php echo JRoute::_("index.php?option=com_user&task=register");?>" onclick="return hs.htmlExpand(this, {contentId: 'id_highslide_signup_1',outlineType:'rounded-white',width:330,height:360,outlineWhileAnimating:true} )" >
    <?php echo JText::_('REGISTER');?>
    </a>
    <!--LOFIN FORM content-->
    <script type="text/javascript" src="<?php echo JURI::base();?>media/system/js/validate.js"></script>
    <div class="highslide-html-content" id="id_highslide_signup_1">
    <div class="highslide-header">
    <ul>
    <li class="highslide-move">
    <a href="#" onclick="return false">Move</a>
    </li>
    <li class="highslide-close">
    <a href="#" onclick="return hs.close(this)">Close</a>
    </li>
    </ul>
    </div>
    <div class="highslide-body">
    <script type="text/javascript">
    <!--
    window.addEvent('load',function(){
    document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); } );
    });
    // -->
    </script>

    <?php
    if(isset($this->message)){
    $this->display('message');
    }
    ?>

    <form action="<?php echo JRoute::_( 'index.php?option=com_user' ); ?>" method="post" id="josForm" name="josForm" class="form-validate">

    <div class="componentheading">
    <?php echo JText::_( 'Registration' ); ?>
    </div>

    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
    <tr>
    <td width="30%" height="40">
    <label id="namemsg" for="name">
    <?php echo JText::_( 'Name' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" name="name" id="name" size="40" value="" class="inputbox required" maxlength="50" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="usernamemsg" for="username">
    <?php echo JText::_( 'Username' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" id="username" name="username" size="40" value="" class="inputbox required validate-username" maxlength="25" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="emailmsg" for="email">
    <?php echo JText::_( 'Email' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" id="email" name="email" size="40" value="" class="inputbox required validate-email" maxlength="100" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="pwmsg" for="password">
    <?php echo JText::_( 'Password' ); ?>:
    </label>
    </td>
    <td>
    <input class="inputbox required validate-password" type="password" id="password" name="password" size="40" value="" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="pw2msg" for="password2">
    <?php echo JText::_( 'Verify Password' ); ?>:
    </label>
    </td>
    <td>
    <input class="inputbox required validate-passverify" type="password" id="password2" name="password2" size="40" value="" /> *
    </td>
    </tr>
    <tr>
    <td colspan="2" height="40">
    <?php echo JText::_( 'REGISTER_REQUIRED' ); ?>
    </td>
    </tr>
    </table>
    <button class="button validate" type="submit"><?php echo JText::_('Register'); ?></button>
    <input type="hidden" name="task" value="register_save" />
    <input type="hidden" name="id" value="0" />
    <input type="hidden" name="gid" value="0" />
    <?php echo JHTML::_( 'form.token' ); ?>
    </form>

    </div>
    </div>
    </li>
    <!--LOFIN FORM content-->

    Hope that helps!

    questbg Friend
    #286513

    PS. Forgot to mention, you can grab a copy of Grep. A great utility (Mac and PC) which allows you to search for various bits of code and will show you which lines they are on (the lines are numbered).

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

This topic contains 7 replies, has 3 voices, and was last updated by  questbg 15 years, 8 months ago.

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