Forums

primary blog switcher questions (4 posts)

  1. Ovidiu
    Member
    Posted 3 months ago #

    referring to this plugin: http://wpmudev.org/project/primary-blog-switcher-for-site-admins by dsader

    Works fine so far but I have loads of users, which are only subscribers to the primary blog. now if I want to switch them over to the dashboard blog (as defines inside the site admin options) I click on their name, and on the page where I can edit their profile, I can't chose another blog as their primary one.

    if I edit a user which belongs to multiple blogs I can select the primary one.

    how about refining this plugin, so if a user is only a member in the primary blog, I can go to the edit user and chose in the drop down for his primary blog between the main blog and the dashboard blog? would make sense, right?

    besides, how about not showing the main site admin user on top of the dashboard as having blog ID 1 as his primary blog? I won't change MY primary blog and it jsut takes up space there showing the admin user :-)

    other wise thanks for this great plugin.

  2. dsader
    Member
    Posted 3 months ago #

    I've simply chopped and pasted the switcher as it appears on the My Blogs page from mu.php

    Before selecting a primary blog, a user must already have a role for that blog.

    The adding users to blogs is already built into the edit user profile page ...

    While editing a user on the main blog, look at "Role: - no role for this blog" and add user to the main blog. Follow the links in the admin notice this plugin creates while on any blog, and you'll be adding the user to that blog. No need for more code, I figure.

    Visit the dashboard of your dashboard blog, and follow the same edit user link and you'll be adding the user to the dashboard blog.

    After they've been added, then select the blog as primary.

    I haven't used this plugin long enough myself to warrant changes, I'll keep an eye out for changes/enhancement ideas.

    Thanks.

  3. Ovidiu
    Member
    Posted 3 months ago #

    ok, thx for the plugin adn the feedback. if you keep using the plugin, please think about my ideas, it would simplify the process, one wouldn't have to jump around between the main blog and the dashboard blog.
    Also removing the site_admin from the display would clean up things, as after I "correct" all user's primary blogs, the site_admin is still showing in that list :-(

    ###edit###
    as it is now, I visit the dashboard blog, edit all the users showing on top of my dashboard one by one to make them subscribers to the dashboard blog, then head back to the main blog, edit the same lsit of users again to take away their subscriber role from the main blog and change their primary blog to be the dashboard blog, right? Seems liek a lot of back and forth...

  4. dsader
    Member
    Posted 3 months ago #

    You are describing the same tedium I experience. It is not easy at all to migrate users to and fro. The process was more a pain with only the paginated list of users at wpmu-users. I never have more than a couple hundred users in a term. I right click each user name in my browser to open as a new tab and let the server and the browser do the jumping around.

    To remove the admin user from the notice modify the $query near the top of the plugin:

    $query = "SELECT * FROM {$wpdb->users} WHERE ID !='1'"; // exclude "admin" user

Reply

You must log in to post.

About this Topic