Move Logoff (User) to Left Menu

5 posts by 3 authors in: Forums > CMS Builder
Last Post: March 17, 2009   (RSS)

By avrom - March 15, 2009

Hi Dave,

I would like to move the "Logoff (User)" link in the header to the left menu. I assume that's not too hard..

Cheers
Avrom

Thanx :))

Re: [ross] Move Logoff (User) to Left Menu

By avrom - March 16, 2009

Hi Ross,

Thanks for the reply. Yes I am aware that I will have to be careful with this on upgrades, but since I'm only modifying the CSS, header and footer files, it should be straightforward enough.

The code in header.php is like this, and I would like to move it to the menu bar links:

<?php if ($CURRENT_USER): ?>
| <a href="?action=logoff"><?php printf(__("Logoff (%s)"), htmlspecialchars($CURRENT_USER['username'])); ?></a>
<?php endif ?>

Many thanks,
Avrom

Re: [virgodesign] Move Logoff (User) to Left Menu

By Dave - March 17, 2009

Hi Avrom,

Open cmsAdmin/lib/menus/header.php and search for 'menuBar'. The code to add it will probably look something like this (new code in red):

<?php if ($CURRENT_USER): ?>
<div id="menuBar">
<ul>
<?php echo $menuLinks ?>
<li><a href="?action=logoff"><?php printf(__("Logoff (%s)"), htmlspecialchars($CURRENT_USER['username'])); ?></a></li>
</ul>
</div>
<?php endif ?>


Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Move Logoff (User) to Left Menu

By avrom - March 17, 2009

Perfecto :)) That was easy...

Thanks Dave.
Avrom