Super Category (multi-blog) plugin – V 0.8
Posted on Friday the 2nd of February, 2007 at 7:18 pm in PluginsUnfortunately this is only for Wordpress 2.1
The Super Category plugin allows you to have multiple websites running off of one install and one database (one set of tables). The websites can share content if you wish it, and can have different titles, descriptions and themes. This plugin is a true plugin: there are NO HACKS and NO THEME EDITS of any kind. The plugin works with any other plugins and themes that use Wordpress’ built in APIs, and features modular functions that can even make other plugins that use custom queries work also.
If you find a problem with the plugin please let me know what happened using as much detail as possible. Unfortunately, I cannot currently ensure every plugin works with this plugin, so please let me know which ones don’t work. I will try to have a fix within a few weeks.
Download Super Category (multi-blog) plugin – V 0.8
Known Issues
Unfortunately wp_list_archives does not work with the plugin because Wordpress does not allow us to filter months with posts from other Super Categories, so you will get a lot of empty archives. However, if you have posts in the same months on all sites then this doesn’t effect you.
There are likely to be other issues, so please activate this first on a test site. While I have made it easy to activate and deactivate, there may be complications. If you deactivate it, you will manually have to delete the super category (this will not delete child categories), and all settings should go back to the defaults.
Installation:
- Read section entitled “Parking Domains” — if you know what a parked domain is AND can park them, you can skip this part.
- Download Plugin
- Read all instructions–I’m a good writer, so it won’t be too much of a chore.
- Upload super_cat.php to wp-content/plugins/
- Activate Plugin
- Follow instructions that you previously read.
- Bask in the glory of the easiest, best, most advanced and most convenient multiblog in the history of Wordpress.
- Send a donation with a number greater than 0 (preferably followed by lots of zeros to the right of the decimal place to me) or rabid monkeys will eat your slippers.
I Assume That…
- You have access to virtual sub-domains or parked domains, or know how to forward all requests to a single file.
- You have at least a mid-level working knowledge of how wordpress displays information.
- You are using a clean install, or that any pre-existing categories and links you want part of one site. If this is not true it is not difficult to change it later.
- You want all the same options and activated plugins on all sites. Currently you can have separate blog titles, descriptions, themes, posts, categories, pages, links, and feeds. Everything but basically.
- You want any pre-existing pages on your blog to be available to all blogs. Again if this is not true it is easy to change.
- You use themes that use fairly normal methods to display categories, links, posts, etc. Themes that don’t use the api’s provided and actually touch the database won’t allow the filters to filter. These themes may need to be edited.
- The same goes for plugins.
- You will read all of the instructions–yah right.
How To Use It.
- The Super Category that you will be using is your site URL. This includes the subdomain and the top-level domain. So for example, http://www.mail.google.com would have a Super Category of ‘mail.google.com’, http://anthologyoi.com would have a Super Category of anthologyoi.com
- The basic idea of this plugin is that anything that can be designated for a single site is added to a Super Category. Super Categories are designated for categories and pages. You may then add other pages and categories to those Super Categories by making them children.
- Parent categories and pages will function as normal except for when they are Super Categories.
- Links and Posts can be added to the categories as normal.
- To have pages visible on all sites do not add them to a Super Category. To have links and posts on multiple sites just select categories with different Super Categories.
- You can have as many sites and super categories, and no matter how you add posts or pages your readers will never know there are multiple sites.
- Posts and links SHOULD NEVER be added directly to Super Categories
- The Super Category management page you can change the blog title, description or theme for each Super Category. You can also add them.
Integration
I have tried to make it easy to expand Super Categories to work with other plugins and options allowing people to fit this plugin to their needs. While I could have left it up to the plugin developers to “fix” their plugins, I thought the best way to implement this is to make integration so easy that developers and users alike had little reason not to. However, this section is still in the works, so it may not work all the time.
Assuming the plugin only needs to use a basic filter structure. You can use the sprcat_option_filters(’optionname’) function to automatically create a basic filter and filter function (direct replacement of the default database value with one from the Super Category).
The filter sprcat_get_options should be used to add menu items to the Super Category edit page. The filter passes the current mode (either add or edit), the current option value array and the correct super category name that the option will be used for; all of the passed values are required as add and edit modes require different naming conventions, the set option values are important, and the super category name is required to process the option..
Ensure that you return the options as a two column row
ADD ROW: <tr><td>Option Description</td><td><input type="text" value="" name="sprcat_new[option_name]"/></td></tr>
EDIT ROW:
<tr><td>Option Description</td><td><input type="text" value="$sprcat[option_name]" name="sprcat[$spr_cat][option_name]"/></td></tr>
Parking Domains
This is not a How-To guide for parking domains; instead it is meant to be just a brief introduction and explanation of what you will need to be able to do to use this plugin. Without parked domains this plugin is almost worthless (although there are some useful traits) so make sure you can use them before you install the plugin.
First of all to park a domain you need a minimum of two domains. A parked domain is a domain that points to the EXACT same place as another domain without using frames or redirections. It is not an add-on domain which points to a sub-folder. You may not be able to park domains depending on your hosting company; if you can’t you must either switch companies or convince your companies to allow you to park domains. Occasionally, a hosting company may refer to parked domains as aliased domains or one of several other names. If the domain name can point to the same folder as another domain name it will work no matter what the name is.
Secondly, you must make sure that the parked domains are registered with valid name servers and have propagated through the DNS before adding them to this plugin. While there will be no obvious errors if you try to do it before hand, none of the options will work until the domain is fully propagated.


Hi, just read and am somewhat hesitant about uploading this supercategory8 without at least asking one pressing question (PS: it sounds like a great plugin). Q: Is there an admin or some other dashboard panel whereby plugins can be switched off/on according to use by separate themes (say, 2 themes use one plugin and a 3rd theme uses neither 2 other themes but a 3rd new – unshared- theme)?
Reply to Claire FrancesOkay, hope I was clear. I cannot stand backups, can’t figure out how to get the post content out of a backup, so don’t want a crash on this newly installed wp. 2.1.2 thanks again. hope to hear from you soon.
Great!
Reply to Joan PlanasNot in this plugin.
Reply to AaronHi,
I tried your plugin on a WP 2.12 install, but it breaks everything. Upon activation, the admin stylesheet diretly breaky, the supercategories admin panel isn’t accessible, it gives a 404.
Great idea thogh -
Thanks Tobias
Reply to Tobias SchwarzHi,
I tried your plugin on a WP 2.12 install, but it breaks everything. Upon activation, the admin stylesheet diretly breaky, the supercategories admin panel isn’t accessible, it gives a 404.
– add: I realise this is because the plugin changes the wordpress install directory – in my case: domain.com/wordpress/ – to domain.com. And it’s not possible to undo the change manually.
Great idea thogh -
Thanks Tobias
Reply to Tobias SchwarzYes, this plugin can be temperamental. Do you have a category or page named Wordpress?
Reply to AaronNo, I don’t. Too bad, because I think your plugin really is the kind of thing I would have needed – just imported a huge MT multiblog (4) installation into WP and now I’m struggling to remodel the different blog via categories (I hacked the import script so I do have a category for with the respective blog name for every entry). So, if it worked, your plugin would be “spot on” (maybe you should add a link on the MT import page of the Codex). I’ll try it on a different empty WP installation to see if the effect happens there as well. Is there really no way around the “list-archives” problem listed above? Wouldn’t it be possible to write a custom WPDB query instead that would take the supercategories into account?
Reply to TobiasHmm, ok, maybe I’m not really getting how this works. Installed a clear WP 2.12 in a directory alongside the original wordpress directory, called it wptest. Basically, what I described above happend here as well. The WP path and the Blog path were both changed from a subdirectory domain.com/wptest to domain.com. Not possible to reset manually.
Is that possibly related to differences between WP 2.1 and WP 2.1.2?
Reply to TobiasOkay, I think I understand now. Right now you have to have separate domain names for each super category. For example:
If you have your blog currently installed as http://example.com/wordpress, and you setup a new domain http://example2.com which shows exactly the same thing as http://example.com.
Activating the plugin which will create your main super category example1.com. This looks exactly like http://example.com always did. Now you can add a second super category named example2.com which appears to be a different site.
You must have the same default folder across all sites. If your default install is http://example.com/wordpress/ you cannot have a site that goes to http://example2.com/blog/ it must end in /wordpress
Does this help?
Currently, you have to have the same Wordpress address and Blog address set.
Yes, it is possible; I only meant it isn’t possible without theme changes.
Overall, this plugin is still in Beta stages. It is extremely complex and temperamental.
Reply to AaronHey there, this plugin sounds great and almost exactly what I was looking for. Unfortunately I also seem to suffer from the broken stylesheets problem. As soon as I activate the plugin it all goes to hell – in the admin panel and on the site itself. I’ve tried disabling all other plugins and even different themes.
Don’t really know what else to do. If you have any suggestions as to what could be wrong, I’d love to hear them. In the meantime I’ll go back over your article and see if I’m just missing something.
Thanks
Reply to JeffHi. I have one quastion about SUPERCATEGORY. I install. Park domains. And in all blogs in top of blogroll after the search in deafult theme is ??Warning: Invalid argument supplied for foreach() in /home/a88coua/public_html/wp-content/plugins/super_cat.php on line 127?. What I need to do. Were I can find the instructions? Thank You.
Reply to inokusAnd mail to me Your e-gold. I have not paypall
Hi,
This sounds like the plugin I’ve been looking for for two of my websites. Will you be /are you working on a version that will work with WordPress 2.2.1?
- Carma
Reply to CarmaI might start developing this again for WordPress 2.3, but it was mainly meant as a proof-of-concept, so no guarantees.
The software should work (to the same extent it worked in 2.1) with WordPress 2.2.1.
Reply to AaronIt looked like it was working, then I went to the manage categories page and all the subcategories had disappeared. They could still be used when write a post, but I could not get to a place to edit them or move them to another supercategory. That scared me so I deactivated it.
Reply to CarmaIt would be awesome if this were available for word press 2.3. I hope you’ll have a chance to make the update.
Best of luck!
-Mario
Reply to MarioI hope this becomes available for 2.3!!!
Reply to NateI second that!
Reply to CarmaI third that, as I had no courage to try it yet and it’s exactly what I would need to maintain a section of viewable video clips within my website.
Reply to IvaTHIRDED!
I think this is a great idea for a plugin and I’ve been looking for something like this for the better part of a year. Thanks so much for even getting this started and I hope you’ll continue developing it. Sadly, I lose all CSS when I activate it and I’m in WP 2.2.1
Reply to ThePeteOne more vote for word press 2.3!!
Reply to Marcis GasunsI’m dying to see this for WP 2.3, too!
Reply to ValeriePlease upgrade the plugin for 2.3
Thanks in Advance!
Reply to MargjeWhy WP 2.3 not supported?
Reply to SumbatBecause the plugin was a proof-of-concept mostly and because it was written 10 months ago when WP 2.1 was first released.
Reply to AaronSo, I’m guessing that means we won’t see a version for 2.2 or 2.3?
Not that it makes a difference to me at this point since I’ve already gone and hacked a solution together to achieve the same results. Sadly, it’s stupid messy and doesn’t even work that well yet, but it allows me to do what I want to do.
Reply to ThePeteWell it worked on 2.2, but it doesn’t work on 2.3, and I can’t see any real benefit from updating it because it would require a huge amount of time.
Reply to AaronNope, I’m on 2.2.1 and it most definitely doesn’t work. It was borderline amusing at how much it broke things.
Luckily it just took deactivating the plugin to return all to normal.
Reply to ThePeteHi, as developer of this plugin, I thought I ask what youthink of the following – wouldn’t it bepossible / make sense to use WP’s new taxonomy feature and introduce a “blogs” taxonomy, which could then be used to completely separate content. Does that make sense to you?
From boren.nu – “The flexibility of the schema and API means plugins can add new taxonomies and object types quite easily. One of the Summer of Code projects does just that. The flexibility also allows us to easily retrieve all objects associated with a given term regardless of taxonomy, retrieve all terms from all taxonomies for a given object, and convert all categories to tags with one query.”
http://boren.nu/archives/2007/08/26/wordpress-23-taxonomy-schema/
Thanks!
Reply to tobiasYes, that was one of the reasons I was excited for the new taxonomies when they first announced WP 2.3. However, this plugin will take some time to convert and I’ve chosen to focus my efforts into projects that are a little more widely used.
Reply to AaronOh well, I didn’t know it doesn’t work for the latest version of WordPress 2.3.2.
Now I know, so will deactivate this. Hope I will get everything back.
Reply to CuckooWhile managing the Super category I faced some problems. Have noted them down. If you are working on this, let me know. Maybe I can act as a guinea pig for this experiment.
Hello: I have some questions…
Reply to Leonardo ParadaDo you have some example on line about your plugin? some screenchots?
I don’t understand 100% how your plugin work.
Thanks.
This plugin is not supported. If you want to use it, you are on your own.
Reply to AaronIt work on wordpress 2.7?
Reply to FrumusetePlease upgrade the plugin :/ for 2.8
Thanks in advance for upgrade the plugin :~)
Reply to Murat YIKILMAZhtml kod kralı mvg site html kod kralıhtml kod kralı mvg site html kod kralı
Reply to mvgsitehtml kod kralı mvg site html kod kralı
Reply to mvgsiteThank you very much for yet another first-rate article. I am always searching for original WordPress themes to suggest to my readers. Thanks for creating this article. It’s exactly what I was searching for. Truly great post.
Reply to Carol