I am playing around and I want to know how you can get those little alert boxes if something in the message is wrong.

In datahandlers.php there is a set_error() function that I saw used elsewhere, but it doesn't return anything, and it requires an error code argument, and I don't know if I have to insert/register the error code somewhere, or whether I can just call it what I want.

I am just playing around with the post datahandler - new post, update post and new thread, and I want to have an error occur if certain criteria is not matched when I submit a new post.

So....any help would be appreciated, thanks.


P.S - do error messages automatically happen for quick reply (JS alert) or do you have to manually do them?
P.P.S - I am hooking in through "datahandler_post_insert_post"

Messages In This Thread
$post->set_error() - by blueparukia - 2008-10-02, 06:52 AM
RE: $post->set_error() - by Yumi - 2008-10-02, 07:59 AM
RE: $post->set_error() - by blueparukia - 2008-10-02, 10:12 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)