The MU forums have moved to WordPress.org

creating a global dashboard (3 posts)

  1. hyrxx
    Member
    Posted 15 years ago #

    i want to create a global dashboard for my users to use so that everytime they login or click a link to dashboard it will point to http://dashboard.example.com
    i want to create a duplicate dashboard as i still want the regular on accessable to me via /wp-admin
    i plan on hacking it so it needs to be duplicated

    how do i go about this?

  2. torre
    Member
    Posted 15 years ago #

    i place a dashboard widget with the content of one blog to all my users.

    function my_wp_dashboard_global() {

    switch_to_blog('38'); // Number of blog

    query_posts('cat=225'); // Number of cat
    while (have_posts()) : the_post();
    _e('<h4>') . the_title() . _e('</h4>') . "\n";
    the_content();
    endwhile;

    restore_current_blog();
    }

    function my_wp_dashboard_setup() {
    wp_add_dashboard_widget( 'my_wp_dashboard_global', __( 'News der Admins' ), 'my_wp_dashboard_global' );
    }

    add_action('wp_dashboard_setup', 'my_wp_dashboard_setup');

    And i deactivate with die simple-dashboard plugin other widgets on the dashboard.

  3. VentureMaker
    Member
    Posted 15 years ago #

    hyrxx, any particular reason why you want such a thing? :)

About this Topic

  • Started 15 years ago by hyrxx
  • Latest reply from VentureMaker