• Resolved snowboardmommy

    (@snowboardmommy)


    Hi! Fun plugin! I am creating a multisite network and would like to be able to create “standard” quizzes in the root site and then allow all the blogs to use them, without having to bloat the datbase by adding all quizzes to every single blog. Any plans or suggestions for using with multisite? Thanks!

    http://wordpress.org/extend/plugins/slickquiz/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Hey @snowboardmommy! I haven’t tried using SlickQuiz on a multi-site setup yet and I don’t have much (read: any) experience with how those work, but I will say that the quizzes that get saved to the DB are not tied to specific sites – so if you have the SlickQuiz plugin installed on each site and they all share the same DB, it’s likely you’d have access to them on each site…. really not sure though 🙂

    Let me know what you find!

    Thread Starter snowboardmommy

    (@snowboardmommy)

    Hi Jewl,

    Thanks for your speedy replies. I have learned a lot about how SlickQuiz works in Multisite! I don’t know if you want me to post it here, github, just email/private message. It’s not bad, at all, for not having any MS-specific programming, it’s holding up pretty well, actually!

    ~Bonnie

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Go ahead and post it here – I’m sure your knowledge could be helpful to others!

    Thread Starter snowboardmommy

    (@snowboardmommy)

    Hi Jewl,

    Under WordPress Multisite there are two ways to activate plugins. One is for the Super Admin to activate the plugin “Networkwide”. This means that the plugin is automatically available and activated for all sites in the Multsite Network. The second way is to leave it unactivated “networkwide” and allow the individual site administrators to activate the plugin in their admin panel. (There is a third “MustUse” but as a plugin developer with other things to do and support, you probably don’t want to go there).

    Also, under Multisite, each individual site has its own set of database tables for posts, comments, options and other data that pertains to only that site (please see Multisite references below and on the WordPress.org website.)

    Under Multisite, The Slick Quiz Plugin, is for the most-part behaving very well. It is well written using WordPress coding standards that allow it to be forward, backward and also Multisite compatible.

    When Slick Quiz is activated “Network Wide”, it is activating itself on each site (adding the two custom tables and the default option)as soon as *anyone* _visits_ the site (not logs in, not activates the plugin, just visiting the home page triggers the activation).

    I personally am not comfortable with this, so I deactivated the plugin network wide and am activating on a per-site basis. For this version of Slick Quiz(1.1.8), I would recommend that just about everyone using it on Multisite, activate it on a per-site basis as well; but it is obviously up to the individual Multisite Owner/Super Admin.

    If you, the developer, wish to make the plugin more Multisite friendly, I would recommend reading the Shiba Shake article about writing / activating a plugin for both single installations and Multisite (see references below). There is also a good chapter dedicated to Multisite in the book “Professional WordPress” by Brad Williams et al that also discusses coding the activation for both single and multisite installations.

    In order to “share” quizzes, I have written a function in my own plugin that finds the quizzes in the root site and then copies them into the sub-sites that wish to use them. If you wanted to support this feature in Slick Quizzes, I think I would recommend that each quiz author be able to mark their quiz as “share on network” (if it is a multisite installation) and then allow other site admins to import shared quizzes to their site. Although, what I would really recommend is getting more opinions from the Multisite development community on this! I think the database tables should remain on a per-site basis so that site admins & authors can make their own quizzes and potentially use network-shared quizzes too.

    I hope this information is helpful. This is a fun, light quiz plugin and I really like that it is written with “just having fun” sort of “social sharing / viral quizzes” in mind.

    References / Resources:
    http://halfelf.org/ebooks/wordpress-multisite-101/
    http://shibashake.com/wordpress-theme/write-a-plugin-for-wordpress-multi-site

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Hi snowboardmommy – thanks so much for such a thorough writeup! All very good stuff to know!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite Support?’ is closed to new replies.