-
AuthorPosts
-
January 22, 2010 at 12:37 pm #147890
Please could you assist us in re-configuring the ja-login module.
1. The present template has the ja-login position configured as follows: Date | Search | Login | Create Account. We would like the order changed to: Date | Register | Login | Search (replacing the words “Create an account” with Register). How do we go about making this change?
2. As we are currently using CB (Community Builder) we would like “Register” (Create an account) to link to the CB (Community Builder) registration page. How do we go about making this change?
3. Under Login drop down we would like to change “Create an account” to read “Register” and would like it to link to he CB (Community Builder) registration page. How do we go about making this change?
Please understand that we are new to Joomla and appreciate your assistance in this regard.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 28, 2010 at 3:30 am #330673Dear moomphie!
<blockquote>
Please could you assist us in re-configuring the ja-login module.1. The present template has the ja-login position configured as follows: Date | Search | Login | Create Account. We would like the order changed to: Date | Register | Login | Search (replacing the words “Create an account” with Register). How do we go about making this change?
2. As we are currently using CB (Community Builder) we would like “Register” (Create an account) to link to the CB (Community Builder) registration page. How do we go about making this change?
3. Under Login drop down we would like to change “Create an account” to read “Register” and would like it to link to he CB (Community Builder) registration page. How do we go about making this change?</blockquote>
Here is the solution on your issue:
1) You open the file: templatesja_cooper_businesindex.php and try to find codes at line 106:
[PHP]
<!– BEGIN: HEADER TOOLS –>
<div id=”ja-headtools” class=”ja-headtool”>
<div class=”ja-day”>
<?php
echo “<span>”.date (‘l’).”</span>”;
echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
?>
</div><ul>
<jdoc:include type=”modules” name=”ja-login” />
<!–module search–>
<?php if($this->countModules(‘user4’)) : ?>
<jdoc:include type=”modules” name=”user4″ />
<?php endif; ?>
</ul><?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?>
<div id=”ja-usertools”>
<strong>Text size</strong><?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER)); ?>
</div>
<?php } ?>
</div>
<!– END: HEADER TOOLS –>
[/PHP]Replace:
[PHP]
<!– BEGIN: HEADER TOOLS –>
<div id=”ja-headtools” class=”ja-headtool”>
<div class=”ja-day”>
<?php
echo “<span>”.date (‘l’).”</span>”;
echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
?>
</div><ul>
<!–module search–>
<?php if($this->countModules(‘user4’)) : ?>
<jdoc:include type=”modules” name=”user4″ />
<?php endif; ?>
<jdoc:include type=”modules” name=”ja-login” /></ul>
<?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?>
<div id=”ja-usertools”>
<strong>Text size</strong><?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER)); ?>
</div>
<?php } ?>
</div>
<!– END: HEADER TOOLS –>
[/PHP]And open the file: 8languageen-GBen-GB.mod_login.ini, You search and replace
REGISTER=Create an account
REGISTER=Register2) you open the file: templatesja_cooper_businesshtmlmod_logindefault.php and find codes at line 63:
[PHP]
<a class=”register-switch” href=”<?php echo JRoute::_(“index.php?option=com_user&view=register”);?>” onclick=”this.blur();showBox(‘ja-register’,’namemsg’,this);return false;” >
<?php echo JText::_(‘REGISTER’);?>
</a>
[/PHP]and you replace the link in the href attribute of a tag by the Register link of CB
3) In this file: you find code at line: 43:
[PHP]
<a href=”<?php echo JRoute::_( ‘index.php?option=com_user&view=register’ ); ?>”>
<?php echo JText::_(‘REGISTER’); ?></a>[/PHP]
and you replace the link in the href attribute of a tag by the Register link of CB. Good luck
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by Saguaros 14 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum