Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • This seems to be a great plugin. Easy to use and all! Thanks much.

    One thing I’d like to do is force all entries to be ‘moderated’ but I cannot seem to find the way to make that happen. Anyone have any pointers? Thanks…

    Thread Starter daddio

    (@daddio)

    Skippy, thank you! That is absolutely what I was looking to make happen! I guess I missed that part of the code when I was looking through. Thanks again!
    2fargon, you’re correct – the “logged in” user won’t be able to post, but that is exactly what I am looking for with this particular blog. This one is my ramblings, just a personal/family informational kind of thing.
    Thanks again for the help!

    Thread Starter daddio

    (@daddio)

    I finally figured this out…it’s amazing what a little Stoli will do for you…er…me. I honestly don’t know if this is the “correct” solution, but it works.
    Here is the top of my index.php file now, after my “hacks”:

    <?php
    /* Don't remove these lines. */
    $blog = 1;
    require('wp-config.php');
    get_currentuserinfo();
    if ( $user_level == "0" || ! isset($user_level) ) { $cat = 1; }
    elseif ( $user_level == "1" ) { $cat = '1 2'; }
    require('wp-blog-header.php');

    I looked around the code some more, and found that I needed the wp-config.php file code in order to get the get_currentuserinfo() function. So, I just started playing, and TaDa! I have something that works. And it should be pretty portable to “updated” versions of index.php. It would be really nice if this ability (obviously not this code) could be considered for inclusion in WP, but my simple hack will do what I am looking to do.
    One other note: I saw a lot of references to $cat='1,2' in other posts, and that was really messing me up, as the proper syntax is like I have it above – $cat='1 2' – with the space and not the comma. Just thought I would point that out for anyone else having problems.

    Thread Starter daddio

    (@daddio)

    Okay, I looked further, and did find some posts that were similar in nature to mine (don’t know how I didn’t see them the first time). But while they were similar, they weren’t the same. After reading those posts, I am thinking I need to split this into two questions:
    1. Is it possible, without too much customization, to get the user_level and user_login information prior to the wp_start() command? With that information, I think I could limit things the way I am trying to – the way I did in b2.
    2. Or, if that is too much modification, is it possible to remove the ability to post for user_levels other than, say, ‘9’?
    Actually, I think those are both things I would like to make happen. My blog is an “only me” post blog, with only comments permitted by others, and like in the original post, I have the “general” category for everyone, one additional category (two total) for the next level user, and then all categories for all other levels, all without the ability to post.
    Anyone have any ideas, or places to look? Thanks!

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