Shape 5

Joomla Templates => Basics - Club => : vwsociety April 20, 2010, 11:56:54 AM



: Login on Basics Template
: vwsociety April 20, 2010, 11:56:54 AM
Hello,

after I logged in, the login-button is the same as before. How can I change this?
If I logged in the button must change to "logout" or "hello username..."

Please help.

Regards


: Re: Login on Basics Template
: mikek April 20, 2010, 12:28:03 PM
Hello, sorry there's not a way to do that. The wording is automatically pulled from the module's title. You could change the title to say Login/Logout instead of just Login.


: Re: Login on Basics Template
: vwsociety April 20, 2010, 12:37:10 PM
It is then possible to remove the module after login?


: Re: Login on Basics Template
: vwsociety April 20, 2010, 12:44:15 PM
It is possible to make changes at the template after I can use the login postion for myself?
For example a horizontal login?


: Re: Login on Basics Template
: mikek April 21, 2010, 07:21:28 AM
Hello, it's not possible to remove a module after logged in, Joomla always adds modules when logged in but does not take away. I am not sure what you mean by your second question but you can publish any module to the login position but it will only show the text and the module itself will show in the s5 box.


: Re: Login on Basics Template
: vwsociety April 21, 2010, 11:46:40 PM
I saw a extension (YOOLOGIN) what shows a horizontal menu.
The problm is, that the login position in the basics template show only text (or title)... Can  I change this in the template configuration?


: Re: Login on Basics Template
: mikek April 22, 2010, 08:11:09 AM
Hello, as I stated above the title is controlled by the module title, there is no template configuration for this.


: Re: Login on Basics Template
: amiman May 03, 2010, 02:26:38 AM
Is there anyway of removing the top login and register and putting somwthing in say the right column and use pages instead of dropdowns??


: Re: Login on Basics Template
: colec74 May 16, 2010, 01:33:30 PM
This is what I did. Not sure if there is a better way but it works.

I added the line below in the head section of index.php.

<?php $user =& JFactory::getUser(); ?>

I changed the code in index.php for the login to this:

         
         <?php if ($user->id) { ?>
            <?php if ($this->countModules("logout")) { ?>
               <div id="s5_login" class="s5box_login">
               <div id="s5_login_inner">
                  <jdoc:include type="modules" name="logout" style="title_only" />
               </div>
               </div>
               <script type="text/javascript" language="javascript">
                  var s5_login_width = document.getElementById("s5_login").offsetWidth;
               </script>
            <?php } ?>
         <?php } else { ?>
            <?php if ($this->countModules("login")) { ?>
               <div id="s5_login" class="s5box_login">
               <div id="s5_login_inner">
                  <jdoc:include type="modules" name="login" style="title_only" />
               </div>
               </div>
               <script type="text/javascript" language="javascript">
                  var s5_login_width = document.getElementById("s5_login").offsetWidth;
               </script>
            <?php } ?>
         <?php } ?>

Then open the templateDetails.xml and make an entry for logout right underneath the login one.

Next go to the modules section of admin and create a new login module. Then name it logout and publish it to the logout position.

Finally just go to your site and hit the refresh and try it out.