I would like to know how i would add a login module to the mainmenu as a dropdown effect. Plus add a new module position right over the top of the logo and menu grid...
Thanks
<positions>
<!-- Template specific Module Positions -->
<position>breadcrumb</position>
<position>usermenu</position>
<position>header_top</position>
<position>header_bottom</position>
<position>footer_nav</position>
<!-- STANDARD Module Positions -->
<position>sidebar</position>
<position>mainbody</position>
<position>mainbody_top</position>
<position>mainbody_bottom</position>
<!-- TOP Module Positions -->
<position>top1</position>
<position>top2</position>
<!-- BOTTOM Module Positions -->
<position>bottom1</position>
<position>bottom2</position>
<position>bottom3</position>
<position>bottom4</position>
<!-- MENU Module Positions -->
<position>menu1</position>
<position>menu2</position>
<position>menu3</position>
<position>menu4</position>
<position>menu5</position>
<position>menu6</position>
<position>menu7</position>
<position>menu8</position>
<position>menu9</position>
<position>menu10</position>
<!-- TAB Module Positions -->
<position>tab1</position>
<position>tab2</position>
<position>tab3</position>
<position>tab4</position>
<position>tab5</position>
<position>tab6</position>
<position>tab7</position>
<position>tab8</position>
<position>tab9</position>
<position>tab10</position>
</positions>// No direct access.
defined('_JEXEC') or die;
//
$this->layout->generateLayout();
//
$app = JFactory::getApplication();
$user = JFactory::getUser();
// getting User ID
$userID = $user->get('id');
// getting params
$option = JRequest::getCmd('option', '');
$view = JRequest::getCmd('view', '');
// defines if com_users
define('GK_COM_USERS', $option == 'com_users' && ($view == 'login' || $view == 'registration'));
// other variables
$btn_login_text = ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT');
$tpl_page_suffix = $this->page_suffix != '' ? ' class="'.$this->page_suffix.'"' : '';// definitions of module positions default styles
$GK_TEMPLATE_MODULE_STYLES = array(
'header_top' => 'none',
'header_bottom' => 'none',
'breadcrumb' => 'none',
'usermenu' => 'none',
'footer_nav' => 'none',
'mainbody' => 'gk_style',
'mainbody_top' => 'gk_style',
'mainbody_bottom' => 'gk_style',
'sidebar' => 'gk_style',
'top1' => 'gk_style',
'top2' => 'gk_style',
'bottom1' => 'gk_style',
'bottom2' => 'gk_style',
'bottom3' => 'gk_style',
'bottom4' => 'gk_style'
);
<!-- Template specific Module Positions -->
<position>breadcrumb</position>
<position>usermenu</position>
<position>login</position>
<position>register</position>
<position>header_top</position>
<position>header_bottom</position>
<position>footer_nav</position>
<!-- STANDARD Module Positions -->
<position>sidebar</position>
<position>mainbody</position>
<position>mainbody_top</position>
<position>mainbody_bottom</position>
<!-- TOP Module Positions -->
<position>top1</position>
<position>top2</position>
<!-- BOTTOM Module Positions -->
<position>bottom1</position>
<position>bottom2</position>
<position>bottom3</position>
<position>bottom4</position>
<!-- MENU Module Positions -->
<position>menu1</position>
<position>menu2</position>
<position>menu3</position>
<position>menu4</position>
<position>menu5</position>
<position>menu6</position>
<position>menu7</position>
<position>menu8</position>
<position>menu9</position>
<position>menu10</position>
<!-- TAB Module Positions -->
<position>tab1</position>
<position>tab2</position>
<position>tab3</position>
<position>tab4</position>
<position>tab5</position>
<position>tab6</position>
<position>tab7</position>
<position>tab8</position>
<position>tab9</position>
<position>tab10</position>
</positions>
// No direct access.
defined('_JEXEC') or die;
//
$this->layout->generateLayout();
//
$app = JFactory::getApplication();
$user = JFactory::getUser();
// getting User ID
$userID = $user->get('id');
// getting params
$option = JRequest::getCmd('option', '');
$view = JRequest::getCmd('view', '');
// defines if com_users
define('GK_COM_USERS', $option == 'com_users' && ($view == 'login' || $view == 'registration'));
// other variables
$btn_login_text = ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT');
$tpl_page_suffix = $this->page_suffix != '' ? ' class="'.$this->page_suffix.'"' : '';
// defines if register is active
define('GK_REGISTER', ($this->modules('register')));
// defines if login is active
define('GK_LOGIN', $this->modules('login'));
// defines if com_users
define('GK_COM_USERS', $option == 'com_users' && ($view == 'login' || $view == 'registration'));
?>// definitions of module positions default styles
$GK_TEMPLATE_MODULE_STYLES = array(
'header_top' => 'none',
'header_bottom' => 'none',
'breadcrumb' => 'none',
'usermenu' => 'none',
'footer_nav' => 'none',
'login' => 'none',
'register' => 'none',
'mainbody' => 'gk_style',
'mainbody_top' => 'gk_style',
'mainbody_bottom' => 'gk_style',
'sidebar' => 'gk_style',
'top1' => 'gk_style',
'top2' => 'gk_style',
'bottom1' => 'gk_style',
'bottom2' => 'gk_style',
'bottom3' => 'gk_style',
'bottom4' => 'gk_style'
);
vitorreis wrote:After these changes and replacement of their files, I enabled the module in position gk_register register
that did not exist before, but even enabled the record button is not enabled or login.
Have you tried other alternatives too, but without success.
I'm sure missing some modification.
Can someone point out mistakes and help me?
Grateful!
Yes you must add more, because in your case it's not only adding module position and validate on our template framework.
Are you doing this customization on Creative template?
