On Sat, Aug 30, 2003 at 12:27:12AM -0700, rkl wrote: > Can someone give me a literal value example for this option with a top and > bottom banner? > > here's the content of the INSTALL for this option: > > --enable-bannerprog=program - full path to a banner program.
You want a literal example: --enable-bannerprog=/usr/local/bin/mybanner Where the banner prog contains something like: #!/usr/bin/perl print "<img src=\"http://ad.doubleclick.net/some-bollocks-advert\">"; (where of course the advert can be generated dynamically/randomly) The default templates have only a single banner. If you want top and bottom banners then put tags in the HTML where you want the banners to appear: [#B#]{TOP} ... [#B#]{BOTTOM} The banner program will then be called twice for that page. Your program will get $ARGV[0] for the page name and $ARGV[1] for "TOP" or "BOTTOM". Brian. > sqwebmail replaces the character sequence [#B#] in HTML template > files with the output generated by this program. The first > argument to the program will be the name of the HTML file. The > banner program can use that to customize banner output. > It is also possible for a site to stick multiple @B tags in the > same HTML page. To distinguish each instance follow the @B tag > with up to 30 letters or digits, surrounded by braces. For > example: [#B#]{TOP} and [#B#]{BOTTOM}. "TOP", or "BOTTOM" (or > anything else) will be the second argument to the banner program. > >
