470,833 Members | 1,956 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

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.
Jul 17 '05 #1
3 1793
I noticed that Message-ID:
<84**************************@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/
Jul 17 '05 #2
"Geoff Berrow" <bl******@ckdog.co.uk> wrote in message
news:jc********************************@4ax.com...
I noticed that Message-ID:
<84**************************@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/


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/
Jul 17 '05 #3
I noticed that Message-ID: <_N********************@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/
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by Jason | last post: by
5 posts views Thread by Steve Teeples | last post: by
5 posts views Thread by Andrew | last post: by
1 post views Thread by Michael D. Reed | last post: by
reply views Thread by jennifer.perkins | last post: by
22 posts views Thread by KitKat | last post: by
9 posts views Thread by Ringo | last post: by
12 posts views Thread by =?Utf-8?B?ZGdvdw==?= | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.