BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Add link to a page
Good gosh...just create an smtp.html page in the help directory and
point users to a link in that page. Within 5 minutes, you'll have a
custom smtp help page that can be accessed for any device running the
smtp test by just clicking on the smtp header at the top of the column.
Paul
>>> pcclark@tiscali.co.uk 07/29/04 2:20 PM >>>
On Wed, 2004-07-28 at 23:34, Misty Stanley-Jones wrote:
> Except I do not have any such file. :( I copied bb_footer to
something
> called smtp_footer and added the link and restarted the BB server and
no
> dice.
I've been looking at the code and here is what I found. The type of
solution depends heavily on whether you have BBLOGSTATUS set to STATIC
or DYNAMIC. If STATIC, the log status pages are regenerated each
cycle by "bbd". It loads the header files at start-up and this does
not present any clear way to add custom content. To get the exact
behaviour that you want might require the design of a custom config
file and addition of a parser to load the links that you want into
"bbd" at start-up. Then a conditional statement could be added to
the page generation code to display a link if it exists.
A much, much simpler (but a little less tidy) option would be to add
a link to the standard hostsvc_header or hostsvc_footer and point that
at a CGI script. That script can then re-direct the user based on the
page that it was called from (using the HTTP_REFERER variable). The
down side is that the link will always be there, even if most tests
only display a default page behind it.
If you're using BBLOGSTATUS set to DYNAMIC, however, things start to
look a lot simpler. Because the pages are created (and header files
loaded) "on the fly", it should be relatively simple to switch files
on based on the type of test.
Cheers, Phil.
--
Anyone can do any amount of work provided it isn't the work he is
supposed
to be doing at the moment. (Robert Benchley)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index