Bugs fixed, + comments features

I fixed the last few bugs with my comments administration thing (I broke that completely while trying to fix them but reverted to old code and tried another solution) and there are now only two minor bugs remaining. These two bugs are simply error reporting bugs, and all they are is they aren't telling the admin what he/she did wrong when editing the comment. I'll fix that another time, as I know the only two causes for this bug (deleting the pid the comment is linked to, and sticking a letter in the pid the comment is linked to).

I also (quickly, as it was simply adding 1 line of code and editing another) added new lines to comments. The comments now work properly.

I also made sure that all html and php inserted into comments is simply displayed and not used, meaning once the comments forms actually work, nobody will be able to stick some malicious code into the page! :-D
Posted by .Lou on Tue. 10th of April 2007 9:49:57 PM
View/post Comment(s) (0)

Bug found, bug fixed

Well I added a feature in the admin cp where I can change the post id of a comment. However, that meant a little bug appeared.

The bug was that whenever I edited a comment and didn't change the pid number, mysql didn't accept the string, and therefore did not update the comment. I fixed that, and all is good now, but I tested it and this same bug is also true if I don't change any of the other components here. This should be fixed relatively fast as it's an easy fix, but still.

Testing bbcode: WOOT
Posted by .Lou on Tue. 10th of April 2007 8:22:45 PM
Updated on Fri. 13th of April 2007 10:05:29 PM.
View/post Comment(s) (1)

[FIXED]nl2br bug fixed

Well, my administration is going to be easier. I fixed the dodgy bug with nl2br!

WOOOOO!

Edit: there's only one problem now, it adds an extra line at the end of each post, not sure why though.

Edit2: Nevermind, no it doesn't.
Posted by .Lou on Tue. 10th of April 2007 7:36:58 PM
Updated on Tue. 10th of April 2007 7:38:44 PM.
View/post Comment(s) (3)

Newest ... 22 23 24 - 25 - 26 27 Oldest