Page 1 of 1

Messages are NOT being deleted

Posted: Fri Jun 30, 2006 3:01 pm
by MrBaseball34
Script URL: http://www.theshipmanfamily.com/mboard
Version of script: 1.22
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

The messages aren't being deleted when I enter the admin pwd.

I modified mboard.php to write all the <!--o-->, <!--s-->, <!--z-->
and <!--k--> comments CORRECTLY, per W3C guidelines, to <!-- o -->,
<!-- s -->, <!-- z --> and <!-- k -->.

Could this be the problem?

I also do not see where you are actually deleting the file in the msg dir in
doDelete.

Posted: Fri Jun 30, 2006 3:55 pm
by Klemen
Yes, changing the comment tags is the problem. You will have to update all the regular expressions and strstr searches to make that work.

Deleting of messages is done with the unlink PHP function.

XHTML support, then?

Posted: Fri Jun 30, 2006 4:20 pm
by MrBaseball34
Then you should consider updating the code to handle comments correctly per the specs. Better yet, would be to support XHTML
strict, then it would force you to do that.

reverted

Posted: Fri Jun 30, 2006 8:21 pm
by MrBaseball34
I tried updating the regexs, too, but it still didn't work.
I will revert back to the non-std code.