Scripts in the network admin dashboard enables a super admin user to:

  1. Generate Usage Reports
  2. Batch Edit

Usage Reports

The following usage reports can be downloaded from Scripts:

  1. Blogs List –  blogs listed by their URL, blog name, admin email address, number of users, number of posts, number of pages, date created, date last updated and privacy.
  2. Theme Usage – lists theme usage on all sites by URL, blog name, admin email address and theme name. 
  3. Plugin Usage – lists plugin usage on all sites by URL, blog name, admin email address and plugin name. 
  4. Admin List – blogs listed by their URL, blog name, admin email address
  5. Complete Users List – users listed by their username, email address, First name, last name, date username created, number of sites they are attached to and their authentication method.
  6. Index additional data – allows a super admin user to run a script on the options table, theme mods, custom post type, table entries count.

Reports are generated as follows:
1. Go to Dashboard > Scripts in the network admin dashboard.
Scripts

2.  Click on Run Index to Generate Reports.

  • On networks with more than 6,000 sites you need to use the Filter blogs option to index the network in smaller batches.
  • For example, set the date range for a year and then click Run Index to Generate Reports. Click Clear Index to run the next date range once you’ve downloaded the year’s reports.

Run Index

3.  You’ll see a progress bar while it is indexing the network.
Progress

4.  The reports appear once it has finished indexing.
Reports

5.  Click on the report you want to download.

6.  Open the report in your spreadsheet software and use Sort to sort the data.

Here is how to download a list of all class blogs and student blogs using the additional data option:

You can download a report that lists all your class blog URLs as follows:

1. Go to Dashboard > Scripts > Usage Reports in network admin.

Scripts

2. Select Option from Index additional data and select Is_class

Is Class

  • For networks that host over 10,000 sites, we recommend you index in 1-2 year date ranges and download a series of reports.

3. Click Run Index to Generate Report.

4. Once you’ve finished indexing you click to download the Options Usage list to obtain a list of the class blog.

Download Options Usage list

You run a new report to obtain a list of student blogs attached to the class blogs via My Class as follows:

1. Click on Clear Index.

2. Select Option from Index additional data and select class_blog

Student blog

3. Click Run Index to Generate Report.

4. Once you’ve finished indexing you click to download the Options Usage list to obtain a list of the student blogs.

The student blog ID is listed in Column A under ID and the Class blog ID the student blog is attached to is listed in Column E under Data.

Student blog info

You can cross reference the Student blog data with the Class blog data to identify the class blog URL or search sites using the class blog ID.

Site search in network admin using blog ID 6 returns the following class blog URL.

Class blog info

Batch Edit

Batch edit enable you to:

  1. Bulk archive sites.
  2. Remove users from all sites (but not delete them).
  3. Change the privacy of a site.
  4. Change Site theme.
  5. Activate/deactivate plugin.
  6. Remove student blogs from a class blog.
  7. Attach blogs to a class blog.

You use Batch edit as follows:
1. Go to Dashboard > Scripts in the network admin dashboard.
Scripts

2.  Click on Batch Edit tab.
Batch Edit

To remove usernames:
1. Add the usernames.

2. Select Remove users from all Sites (but not delete them) from Actions drop down menu.
Remove users

3. Click Submit.

To change themes, plugins, privacy or archive sites:
1. Add the blognames.

  • If you use URLs it needs to be written in the form of http://myschool.com/mysite

2.  Select Archive sites, Change Privacy of a Site, Change Site theme, Activate or Deactivate plugin from the Actions drop down menu. 

  • You can’t change privacy on a site attached to a class blog via My Class.  The site needs to be removed from the class blog or the privacy needs to be changed in My Class > Settings.

Select Site option

3.  Click Submit.

Batch Add or Remove from Class blog:

You are able to either batch add a list of existing student blogs to a class blog and bulk remove student blogs from a class blog using Batch Edits in network admin.

You add student blogs to a class blog as follows:

1. Go to Dashboard > Scripts > Batch Edits in network admin.

Scripts

2. Add the blognames, blog IDs or the blog URLs of the student blogs you want to attach to the class blog via My Class.

Add student blogs

3. Select Attach blogs to class from Actions drop-down menu and add the class blog ID.

Attach blogs to class

4. Add the class blog ID by searching using the blog path. When you type in the blog path into the ‘search by blog path’ field it automatically searches for the blog URL.

Search for class blog ID

  • My Class must be set up on the class blog using My Class > Create Class before it can be used as a Class blog.
  • If the student blogs are already attached to a class blog you need to first remove their blogs from that class blog before you can add their blogs to a new class blog.

Once it has found the blog URL click on URL to add the blog ID.

Confirm class blog

5. Click Submit.

You remove student blogs from a class blog as follows:

1. Go to Dashboard > Scripts > Batch Edits in network admin.

2. Add the blognames, blog IDs or the blog URLs of the student blogs you want to remove from a class blog.

Add blog URLs

3. Select Attach blogs to class from Actions drop-down menu.

Remove from blog