BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: {bb} include an ACK in email notfication ?
- To: <bb@bb4.com>
- Subject: RE: {bb} include an ACK in email notfication ?
- From: "Kelley, Scott" <Scott.Kelley@disney.com>
- Date: Tue, 28 Jun 2005 10:41:54 -0700
- Content-class: urn:content-classes:message
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset="US-ASCII"
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
- Thread-index: AcV3uv8mvUOLGXbqTrClDE+dWlIMZgETTyfA
- Thread-topic: {bb} include an ACK in email notfication ?
OK, so I now have BB notification going out with a link that
automatically populates the "Security Code" field on the ack page.
I had to -
o Make a one line change to bb/src/bbpage.c
o Do a make;../runbb.sh stop;make install;../runbb.sh start
o Make a one line change to bb/www/help/bb-ack.html
o Add some javascript I stole from
http://www.webmasterworld.com/forum91/3806.htm to the bottom of
bb/www/help/bb-ack.html
The change to bbpage.c is to make sure the message goes out with the
link to the ack page. The security code is in a query string argument.
The change to bb-ack.html is to support the use of javascript to parse
the query string and populate the form field.
I was think about trying to get this into deadcat, but I don't see
anyway to package any better than this message.
Below is the exact changes to the two files.
$ diff bbpage.c.DIST bbpage.c
3118c3118
<
sprintf(htmllink,"\n\nPlease see:
%s%s/bb-hostsvc.sh?HOSTSVC=%s",bbwebhost,cgibinurl,hostsvc);
---
>
sprintf(htmllink,"\n\nFor info see: %s%s/bb-hostsvc.sh?HOSTSVC=%s\n\nTo
ACK see:
%s/bb/help/bb-ack.html?id=%i",bbwebhost,cgibinurl,hostsvc,bbwebhost,rand
val);
$ diff bb-ack.html.DIST bb-ack.html
76c76
< <FORM ACTION="/cgi-bin/bb-ack.sh">
---
> <FORM name="acker" ACTION="/cgi-bin/bb-ack.sh">
90a91,112
>
> <script type="text/javascript">
> function getIdFromQstring() {
> var url = document.location+''; // Insures string
> q=url.split('?');
> if (q[1]) {
> var pairs = q[1].split('&');
> for (i=0;i<pairs.length;i++) {
> var keyval = pairs[i].split('=');
> if (keyval[0] == 'id') { var v = keyval[1]; break; }
> }
> }
> if (v) { return v; }
>
> }
>
> // Note also this is inline, avoiding onLoad
> var id = getIdFromQstring();
> if (id) { document.acker.NUMBER.value=id; }
>
> </script>
>
-sk
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Henrik
Storner
Sent: Wednesday, June 22, 2005 10:42 PM
To: bb@bb4.com
Subject: Re: {bb} include an ACK in email notfication ?
In
<F513BD3CAACA5D4D83859A2C587C52C607186E8F@sm-cala-xm12.swna.wdpr.disney.
com> "Kelley, Scott" <Scott.Kelley@disney.com> writes:
>To change the default notification page it looks like I would need to
>hack bbpage.c and remake ? Can anyone comment on this ?
Sounds right.
>How would I remake bb after making a change ?
Just run "make; make install". You'll need to stop BB while
doing the "make install".
>Do I need to worry about bbgen and larrd ?
No.
Regards,
Henrik
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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