Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Move Logoff (User) to Left Menu

 

 


avrom
User

Mar 15, 2009, 3:06 AM

Post #1 of 5 (1039 views)
Shortcut
Move Logoff (User) to Left Menu Can't Post

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 :))


ross
Staff / Moderator


Mar 16, 2009, 11:02 AM

Post #2 of 5 (980 views)
Shortcut
Re: [virgodesign] Move Logoff (User) to Left Menu [In reply to] Can't Post

Hi Avrom

Thanks for posting!

You should be able to move that button over but you'll need to be working with the CMS Builder interface templates which isn't really something we recommend. The main thing here is that once you have it setup once, you'll actually need to do the same thing over and over again each time you upgrade because the interface templates are always re-done.

Let me know if you are ok with this and we'll have a look at it together.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



avrom
User

Mar 16, 2009, 6:04 PM

Post #3 of 5 (968 views)
Shortcut
Re: [ross] Move Logoff (User) to Left Menu [In reply to] Can't Post

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


Dave
Staff / Moderator


Mar 17, 2009, 10:35 AM

Post #4 of 5 (939 views)
Shortcut
Re: [virgodesign] Move Logoff (User) to Left Menu [In reply to] Can't Post

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):


Code
<?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
 


avrom
User

Mar 17, 2009, 6:41 PM

Post #5 of 5 (931 views)
Shortcut
Re: [Dave] Move Logoff (User) to Left Menu [In reply to] Can't Post

Perfecto :)) That was easy...

Thanks Dave.
Avrom