hide logout to logged users

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue May 22, 2012 8:52 am
Hi,

I'm using boutique template and would like to know how to hide logout module inside "login position" for logged users.

We have the logout link inside My Account menu so i just need the Login but no the Logout when a user is logged.

I've tried to use Metamod with Login module but i got no results... Logout still there.

Thank you.
User avatar
Fresh Boarder

GK User
Tue May 22, 2012 11:30 am
Hi,

Open file: \templates\gk_esport\layouts\blocks\tools\login.php

Find this code to remove:
Code: Select all
<?php if($userID > 0) : ?>
      <div>
         <jdoc:include type="modules" name="usermenu" style="<?php echo $this->module_styles['usermenu']; ?>" />
      </div>
      <?php endif; ?>

Let me know if it helps.

Cheers,
User avatar
Platinum Boarder

GK User
Wed May 23, 2012 8:28 am
Sorry I have this code instead:


Code: Select all
<?php

   // no direct access
   defined('_JEXEC') or die('Restricted access');

   $url = JURI::getInstance();   
   $user = JFactory::getUser();
   $userID = $user->get('id');
   $popup_class = '';
   
   if(!($this->modules('register') && $userID == 0)) {
      $popup_class = ' class="only-one"';
   }

?>

<?php if($this->modules('login')) : ?>      
<div id="loginForm"<?php echo $popup_class; ?>>
   <h3><?php echo JText::_(($userID == 0) ? 'TPL_GK_LANG_LOGIN' : 'TPL_GK_LANG_LOGOUT'); ?> <?php if($userID == 0) : ?><small><?php echo JText::_('TPL_GK_LANG_OR'); ?><a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a></small><?php endif; ?></h3>
   <div class="clear overflow">
      <jdoc:include type="modules" name="login" style="<?php echo $this->module_styles['login']; ?>" />
   </div>
</div>
<?php endif; ?>   


I've try deleting some combinations similar to what you wrote with no success.
User avatar
Fresh Boarder

GK User
Wed May 23, 2012 1:27 pm
Can you please undo the change and send me a PM to provide with backend and FTP access then I will try for you?

Thanks,
User avatar
Platinum Boarder

GK User
Mon May 28, 2012 8:32 am
I've sent you all the data.

Thanks!
User avatar
Fresh Boarder

GK User
Tue May 29, 2012 8:37 am
Hi,

Somehow I haven't got any message from you, can you please manage to send it again?

Thanks,
User avatar
Platinum Boarder

GK User
Tue May 29, 2012 2:37 pm
Sent again!

thanks!
User avatar
Fresh Boarder

GK User
Tue May 29, 2012 3:51 pm
Hi,

Thank you, however I don't have a static IP address because I'm now in a coffee shop and will leave here in 10 minutes, I will work back at home with another IP, it's not static either because it's mobile network. Can you use my MAC address instead? I will PM it to you.

Cheers,
User avatar
Platinum Boarder

GK User
Thu May 31, 2012 6:17 pm
Hi Don,

thanks for your time and efforts. any news on this?
User avatar
Fresh Boarder

GK User
Sat Jun 02, 2012 7:38 am
Hi,

I still can't access the site, my current IP is: 118.71.49.142

I hope you can add it to your whitelist soon while I'm still using it.

P/s: Why do you need to use that ban mode?

Thanks,
User avatar
Platinum Boarder

GK User
Mon Jun 04, 2012 3:57 pm
Added!

Boss want the site offline until it is opened but fully funtional to make test.
User avatar
Fresh Boarder

GK User
Wed Jun 06, 2012 3:18 pm
But my IP is now changed :(

You could try other solutions http://www.google.com/search?q=hide+my+ ... =firefox-a
User avatar
Platinum Boarder

GK User
Thu Jun 07, 2012 8:39 am
Ok, i will quit the ban for today till friday night. it is ok for you?
User avatar
Fresh Boarder

GK User
Thu Jun 07, 2012 12:47 pm
Yes please, let me know when it's ready and I will try to help right away.

Thanks,
User avatar
Platinum Boarder

GK User
Thu Jun 14, 2012 8:06 am
Hi Don,

Ban is removed since last thrusday. did you have time to have a look at it?

Thanks!
User avatar
Fresh Boarder

GK User
Thu Jun 14, 2012 2:04 pm
Hi mate,

Sorry I didn't know that, I have just tried to login but the credentials don't work for me, can you please correct?

Thanks,
User avatar
Platinum Boarder

GK User
Thu Jun 14, 2012 2:34 pm
I PM you with the new credentials!
User avatar
Fresh Boarder

GK User
Fri Jun 15, 2012 10:36 am
Yeah they work now but the FTP credentials, please update. Moreover, please check this screenshot and clarify http://easycaptures.com/fs/uploaded/567/9082605535.jpg

thanks,
User avatar
Platinum Boarder

GK User
Tue Jun 19, 2012 8:27 am
Hi Don,

I reply the other day with the access data via PM.

Thanks
User avatar
Fresh Boarder

GK User
Tue Jun 19, 2012 2:41 pm
Hello,

I did it for you, please check and confirm.
User avatar
Platinum Boarder


cron