Help with message system

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • White_Domino

    Help with message system

    I am looking to implement a message system on my web site that would
    allow users to input their name and a comment and have it appear
    automatically online. Perhaps a facility to have the message checked
    for profanities would be nice. I don't want a full blown guestbook but
    mealy a small section that allows people to comment on the pages
    content and add their opinion.

    Does anybody know how I might achieve this with either tailored code
    or perhaps an off-the-shelf package? Thanks in advance.
  • Geoff Berrow

    #2
    Re: Help with message system

    I noticed that Message-ID:
    <84747315.04073 00636.79964f19@ posting.google. com> from White_Domino
    contained the following:
    [color=blue]
    >I am looking to implement a message system on my web site that would
    >allow users to input their name and a comment and have it appear
    >automaticall y online. Perhaps a facility to have the message checked
    >for profanities would be nice. I don't want a full blown guestbook but
    >mealy a small section that allows people to comment on the pages
    >content and add their opinion.[/color]

    OK, dead simple system that uses a text file to store the entries.



    to edit the file go to



    Refinements (such as not allowing html etc) are left up to you.

    Want it?

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • Chung Leong

      #3
      Re: Help with message system

      "Geoff Berrow" <blthecat@ckdog .co.uk> wrote in message
      news:jc3lg09b3i 61at2214rfah5ko sct0ae4ke@4ax.c om...[color=blue]
      > I noticed that Message-ID:
      > <84747315.04073 00636.79964f19@ posting.google. com> from White_Domino
      > contained the following:
      >[color=green]
      > >I am looking to implement a message system on my web site that would
      > >allow users to input their name and a comment and have it appear
      > >automaticall y online. Perhaps a facility to have the message checked
      > >for profanities would be nice. I don't want a full blown guestbook but
      > >mealy a small section that allows people to comment on the pages
      > >content and add their opinion.[/color]
      >
      > OK, dead simple system that uses a text file to store the entries.
      >
      > http://www.ckdog.co.uk/logger/display.php
      >
      > to edit the file go to
      >
      > http://www.ckdog.co.uk/logger/editlog.php
      >
      > Refinements (such as not allowing html etc) are left up to you.
      >
      > Want it?
      >
      > --
      > Geoff Berrow (put thecat out to email)
      > It's only Usenet, no one dies.
      > My opinions, not the committee's, mine.
      > Simple RFDs http://www.ckdog.co.uk/rfdmaker/[/color]

      I wouldn't call disallowing html a "refinement ." It an absolute must.
      Otherwise you're just people to deface your site.

      In your example, if I post the following (and comments are shown to the
      public) it would cast a rather strange light on you:

      <script>

      window.onload = function() {
      var s = document.body.i nnerHTML;
      s = s.replace(/broken links/g, 'sightings of WMD');
      document.body.i nnerHTML = s;
      }

      </script>


      --
      Obey the Clown - http://www.conradish.net/bobo/


      Comment

      • Geoff Berrow

        #4
        Re: Help with message system

        I noticed that Message-ID: <_NCdnRlA9oXrl5 bc4p2dnA@comcas t.com> from
        Chung Leong contained the following:
        [color=blue]
        >I wouldn't call disallowing html a "refinement ." It an absolute must.
        >Otherwise you're just people to deface your site.
        >
        >In your example, if I post the following (and comments are shown to the
        >public) it would cast a rather strange light on you:[/color]


        We get a lot of people here asking for very simple scripts that they can
        use. As such I intend to put together some 'bare bones' scripts for
        newbies that are simple to implement and modify. Thanks for pointing
        out the weakness in this one. Would htmlentities() be sufficient, do
        you think?
        --
        Geoff Berrow (put thecat out to email)
        It's only Usenet, no one dies.
        My opinions, not the committee's, mine.
        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

        Comment

        Working...