Home > Archive > PHP Programming > July 2004 > Help with message system
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Help with message system
|
|
| White_Domino 2004-07-30, 3:56 pm |
| 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 2004-07-30, 3:56 pm |
| I noticed that Message-ID:
<84747315.0407300636.79964f19@posting.google.com> from White_Domino
contained the following:
>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.
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/
| |
| Chung Leong 2004-07-31, 3:55 am |
| "Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:jc3lg09b3i61at2214rfah5kosct0ae4ke@
4ax.com...
> I noticed that Message-ID:
> <84747315.0407300636.79964f19@posting.google.com> from White_Domino
> contained the following:
>
>
> 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/
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.innerHTML;
s = s.replace(/broken links/g, 'sightings of WMD');
document.body.innerHTML = s;
}
</script>
--
Obey the Clown - http://www.conradish.net/bobo/
| |
| Geoff Berrow 2004-07-31, 8:55 am |
| I noticed that Message-ID: <_NCdnRlA9oXrl5bc4p2dnA@comcast.com> from
Chung Leong contained the following:
>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:
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/
|
|
|
|
|