BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} bbgen --htmlextension



In <1091744799.5184.5.camel@cav-ejohnson1.cavionad.cavion.net> Ellick Johnson <ejohnson@cavionplus.com> writes:

>When I use the --htmlextention=.php in my bb-display.sh it only changes
>bb.html and bb2.html to .php. I use the STATIC option for my pages. How
>do I get bbgen to make all those pages .php as well instead of .html?

Those pages are not created by bbgen, but by the bbd daemon - as soon
as a status message is received, it generates the html file.

So to change it, you must change the $BBHOME/src/bbd.c file. Around
line 2119 (search for "CREATING HTML FILE") there is a line that
reads

    sprintf(htmlname, "%s/%s.html", bbhtmldir, tmpfilename);

Change the .html there to .php or whatever you want, then run
"make; make install" and restart Big Brother.

Henrik
-- 
Henrik Storner
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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