Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: Admin Welcome Message WP1.5
    Thread Starter blackheart

    (@blackheart)

    What I did was I looke in the index.php file, in the wp-admin directory, then look for the line which says:
    <h2><?php _e('Dashboard'); ?></h2>
    This is where the main body of the dashboard starts. Then on the next line, you can put the if statement.
    <?php if ($user_level != '10') { ?>
    You can change the user level to anything you want really, you could make it so that it’s only for level one authors…etc.
    Then you can put your friendly welcome message, and after that, you must put:
    <?php } else { ?>
    This allows the real dashboard to be shown if the user level is 10.
    Below the line which says:
    <li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
    You must close the if statement, else you get lots of errors, which are anything but friendly. You need the code:
    <?php } ?>
    Simple! If you run into problems, you can email me from my site.

    Forum: Plugins
    In reply to: Admin Welcome Message WP1.5
    Thread Starter blackheart

    (@blackheart)

    Aha, I’ve found it, the answer lies in the menu-header.php file. The variable is $user_level, kinda obvious really…
    All I’ve done is added an extra if statement:
    <?php if ($user_level != '10') { ?>
    Then closed it, so only level 10 users can see the information from the WordPress blog, everyone else gets a friendly welcome message ??

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