BB Unix Network Monitor - Message

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

Re: {bb} bbgen --htmlextension



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


>Cool. That changes the extentions in the html dir. But the links (the
>colored dots) are still pointing to .html. Is that in bbgen.c?

It's in bbgen all-right - the pagegen.c file. Search for "Dont use
htmlextension" and change the .html in the fprintf command that
follows (there are two places in that file).

Henrik



 >-Ellick

>On Fri, 2004-08-06 at 06:27 +0000, Henrik Storner wrote: 

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

>--=-SBIug3y2roxqMACWDBrL
>Content-Type: text/html; charset=utf-8
>Content-Transfer-Encoding: 7bit

><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
><HTML>
><HEAD>
>  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
>  <META NAME="GENERATOR" CONTENT="GtkHTML/3.1.16">
></HEAD>
><BODY>
>Cool. That changes the extentions in the html dir. But the links (the colored dots) are still pointing to .html. Is that in bbgen.c?<BR>
>-Ellick<BR>
><BR>
>On Fri, 2004-08-06 at 06:27 +0000, Henrik Storner wrote: 
><BLOCKQUOTE TYPE=CITE>
><PRE>
><FONT COLOR="#000000">In &lt;<A HREF="1091744799.5184.5.camel@cav-ejohnson1.cavionad.cavion.net"">mailto:1091744799.5184.5.camel@cav-ejohnson1.cavionad.cavion.net";>1091744799.5184.5.camel@cav-ejohnson1.cavionad.cavion.net</A>&gt; Ellick Johnson &lt;<A HREF="mailto:ejohnson@cavionplus.com";>ejohnson@cavionplus.com</A>&gt; writes:</FONT>

><FONT COLOR="#000000">&gt;When I use the --htmlextention=.php in my bb-display.sh it only changes</FONT>
><FONT COLOR="#000000">&gt;bb.html and bb2.html to .php. I use the STATIC option for my pages. How</FONT>
><FONT COLOR="#000000">&gt;do I get bbgen to make all those pages .php as well instead of .html?</FONT>

><FONT COLOR="#000000">Those pages are not created by bbgen, but by the bbd daemon - as soon</FONT>
><FONT COLOR="#000000">as a status message is received, it generates the html file.</FONT>

><FONT COLOR="#000000">So to change it, you must change the $BBHOME/src/bbd.c file. Around</FONT>
><FONT COLOR="#000000">line 2119 (search for &quot;CREATING HTML FILE&quot;) there is a line that</FONT>
><FONT COLOR="#000000">reads</FONT>

><FONT COLOR="#000000">    sprintf(htmlname, &quot;%s/%s.html&quot;, bbhtmldir, tmpfilename);</FONT>

><FONT COLOR="#000000">Change the .html there to .php or whatever you want, then run</FONT>
><FONT COLOR="#000000">&quot;make; make install&quot; and restart Big Brother.</FONT>

><FONT COLOR="#000000">Henrik</FONT>
></PRE>
></BLOCKQUOTE>
></BODY>
></HTML>

>--=-SBIug3y2roxqMACWDBrL--

>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
>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.
-- 
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