Forum Moderators: coopster

Message Too Old, No Replies

Working with blogs in PHP

         

dbarasuk

10:06 am on Sep 12, 2009 (gmt 0)

10+ Year Member



Hi,
In a blog page, it's possible that someone can send evil messages to your blog. How can one control what comes in before it appears on the public web page?

regards

tangor

10:08 am on Sep 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Moderate all incoming before releasing. Vet the comments. More work, but is 100% effective.

dbarasuk

10:12 am on Sep 12, 2009 (gmt 0)

10+ Year Member



Yes, but how, i have no idea concerning that process,
please help more.

dbarasuk

9:14 am on Sep 13, 2009 (gmt 0)

10+ Year Member



Can someone point me to the right tutorial for this?

trillianjedi

1:39 pm on Sep 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That'll depend on the blog software you're using, so you'll need to read the documentation.

It's usually a configuration option.

dbarasuk

1:36 pm on Sep 15, 2009 (gmt 0)

10+ Year Member



I want to be able able to write it myself in PHP.
THis is what i want:

On a webpage i want to provide users with a textarea where they can type something to make their voice heard. Later on another page, i provide a link called blog from which you can be redirected to another page listing all the messages that have been sent by web users. What i am afraid of is the fact someone types in evil messages. How can I delete that evil message before it is displayed on the web page? People who see what i am talking about can tell me how the procedure is organized.

Thank you for your help

tangor

2:25 pm on Sep 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Any input sent via the form will need to be processed for what is allowed, then strip all that is not allowed. Strongly suggest you look at some existing PHP blog programs to see how the back end processing is done.

You can also search webmasterworld for "sanitize" which leads to a number of threads, which might provide some knowledge regarding this task.

londrum

2:34 pm on Sep 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



easiest way to do it is to have a column in your database table called 'checked', or something, and when every post comes in this field is automatically given a tick.

then you do an admin section which displays all the posts with a tick. if the post is okay, then remove the tick.

when you display the posts on your page, all you have to do is show the ones without a tick. that way nothing can get displayed without you checking it.

dbarasuk

2:16 pm on Sep 16, 2009 (gmt 0)

10+ Year Member



I think the post from londrum gives me much insight
Thank you landrum and all of you who tried