Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Fixing WordPress
    In reply to: Approve Posts
    impirius

    (@impirius)

    Thanks for the response! I found a plugin to require approval for new posts, but here’s the catch; the site owners would like to approve not only new posts but also any subsequent edits.

    I may be wrong, but I figure the best way to achieve this is to save each post submission into a clone of the posts table. After that, an administrator can approve the post, in which case it’s copied to the real posts table. So basically, any changes to posts or pages would need to be redirected to this “holding area”.

    This could be done by digging in to the code and changing some stuff around, but then I’d lose the ability to upgrade WP (not to mention that such a hack wouldn’t be of much use to anyone but me). I’d like to make it into a plugin, but I’m not sure that abducting post submissions is possible. (Please correct me if I’m wrong!)

    Forum: Fixing WordPress
    In reply to: Approve Posts
    impirius

    (@impirius)

    Anyone mind if I resurrect this topic? I’m trying to create a system in which an administrator must approve new posts or edits. Is there any way through plugins to “capture” posts before they’re saved to the DB so that I can save them to a different DB table? I’d like to do this through plugins if possible.

    Thanks!

    Thread Starter impirius

    (@impirius)

    Yep, spencerp, that’s the one! That solves half the problem; if only there was an equivalent plugin or hack that prevented the <br> <p> </p> tags from being stripped before the post is inserted into the database, I could use them both.

    Thread Starter impirius

    (@impirius)

    Seriously!

    I know there’s a Text Filter plugin which can be used to prevent WordPress from altering the post content coming out of the database; do you know of any which prevent it from altering the content going in?

    Thread Starter impirius

    (@impirius)

    KatGirl: Thanks for the link; I’ll keep an eye on that topic as well.

    Viper007Bond: Thank you for the advice. I commented out the line
    // add_filter('the_content', 'wpautop');
    but unfortunately, the issue persists. Assigning a class to the br tags prevents them from being deleted, but I’m not sure that’s a good long-term solution.

Viewing 5 replies - 1 through 5 (of 5 total)