On 7 Sep 2001, at 11:55, Jeff Martin wrote:
[snip]
> Thanks for publishing your user-panel
> Quick Question---How do I change the navigation panel so that there isn't a
> link to the e-smith/mitel website? I don't want the link to confuse the
> users since some of them can't control the mouse very well and will end up
> clicking on the e-smith/mitel link instead of the desired links.

The e-smith logo and link are generated by the e-smith perl 
function genNavigationHeader.  To remove the link from the e-smith-
user panel you'd need to either change this function or make the 
user-panel not use it.

I don't like the idea of changing the base e-smith code so try this:
- Login as root on your server
- Edit the /etc/e-smith/web/functions/userpanel-navigation file with 
vi or pico
- Goto line 68 and change this line:

    esmith::cgi::genNavigationHeader ($q);

into this line:

    # esmith::cgi::genNavigationHeader ($q);

- Add this text verbatim below that line:

    print <<EOF;
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>e-smith manager</TITLE></HEAD>
<BODY TOPMARGIN="0" MARGINWIDTH="0" ALINK="#707070" MARGINHEIGHT="0" BGCOLOR="#FFFFFF" 
LEFTMARGIN="0" LINK="#707070" VLINK="#707070" TEXT="#000000">
<IMG HEIGHT="226" BORDER="0" ALT="e-smith logo" SRC="/e-smith-common/e-smith-logo.gif" 
ALIGN="top" WIDTH="197">
<DIV STYLE="position: absolute; visibility: inherit; top: 100px; left: 16px; z-index: 
2">
EOF

- Save the file
- Done

This just replaces the function that generates the logo with a 
simple print of what it would normally be generated minus the A 
tags for the link.

Daniel van Raay


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to