Forum Support

Shape 5
March 29, 2024, 07:08:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Login on Basics Template  (Read 777 times)
vwsociety
Jr. Member
**
Offline Offline

Posts: 22



« on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
vwsociety
Jr. Member
**
Offline Offline

Posts: 22



« Reply #2 on: April 20, 2010, 12:37:10 PM »

It is then possible to remove the module after login?
Logged
vwsociety
Jr. Member
**
Offline Offline

Posts: 22



« Reply #3 on: 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?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #4 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
vwsociety
Jr. Member
**
Offline Offline

Posts: 22



« Reply #5 on: 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?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #6 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
amiman
Jr. Member
**
Offline Offline

Posts: 389



WWW
« Reply #7 on: 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??
Logged
colec74
Jr. Member
**
Offline Offline

Posts: 4



« Reply #8 on: 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.
« Last Edit: May 16, 2010, 03:02:42 PM by colec74 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.