-
AuthorPosts
-
sugiarto Friend
sugiarto
- Join date:
- November 2008
- Posts:
- 91
- Downloads:
- 6
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 4 times in 1 posts
December 21, 2008 at 3:20 am #136412Hi 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 Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
December 21, 2008 at 5:19 am #283674Hi sugiarto
You will need to edit the the following file:
/templates/telline_ii/html/mod_login/default.phpRemove all the code from line 68 to line 173.
Of course, remember to take a backup first! 😉
Chris
1 user says Thank You to questbg for this useful post
sugiarto Friendsugiarto
- Join date:
- November 2008
- Posts:
- 91
- Downloads:
- 6
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 4 times in 1 posts
December 22, 2008 at 3:50 am #283739Hi 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 Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
December 22, 2008 at 4:45 am #283745Glad I could help! 🙂
Sorry about getting the line numbers wrong, but at least you managed to figure it out!
Regards
ChrisJanuary 14, 2009 at 10:16 pm #286489Can 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 Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
January 15, 2009 at 4:48 am #286512Hi 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 Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
January 15, 2009 at 4:50 am #286513PS. 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).
1 user says Thank You to questbg for this useful post
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by questbg 15 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum