WordPress MU Sitewide Tags Pages 0.3.1

One of these days I’ll rename all my plugins and give them nice snappy titles.

Version 0.3.1 of the Sitewide Tags Pages plugin (for WordPress MU) has just been released. If you’ve been using this plugin you should probably update because this fixes a number of bugs including the problem with the Prologue Theme (and possibly Feedwordpress but I haven’t tested that.)
This release wouldn’t have been possible without the help of Thomas Schneider!

Main changes:

  • Pages are now filtered out because they don’t really fit neatly anywhere in the global posts page.
  • Prologue Theme problem with wp_insert_category() is fixed.
  • Set comment and ping status of global posts to closed.
  • Lots of translation work, including a German translation.
  • Lots of fixes related to when blogs change status, or posts are edited.

Grab it from the download page.


46 Comments

Trent (10 comments.) on October 1, 2008 at 4:43 pm.

This works perfectly Donncha now with the Prologue theme and I really appreciate it now that I can use it again ;)

Reply

Donncha (1707 comments.) on October 1, 2008 at 5:42 pm.

Glad to hear that Trent! That was the main reason for this release.

Reply

John (3 comments.) on October 1, 2008 at 11:06 pm.

I imagine I’ll tell the story some day, but it’s a long one. Short version – I just got done implementing a much more complicated solution to main blog aggregating this morning, and here you are updating your much more elegant plugin. Thank you, regardless, I so much prefer your method of going about this process.

Thankfully,

John

Reply

George (10 comments.) on October 3, 2008 at 7:29 am.

Donncha, you are the man! It seems to work with the Prologue themes I’ve tested. Thanks for getting on this so quickly.

George

Reply

Stuart on October 4, 2008 at 12:02 pm.

Awesome plugin, Donncha! I just wish I’d come across this earlier! The problem I have is that I already have several hundred posts across our 30 or so WPMU blogs. The plugin works great for new posts (it’s great that the permalinks point back to the source blog), but I can’t figure out how to grab all the existing posts to display in the tag cloud. Is there an easy way of doing this? Did I miss something?

I tried exporting all posts from the source blogs and importing them into my main WPMU blog but then the permalinks just point to this blog. Perhaps the plugin would notice if I exported and reimported all posts back into each of the source blogs?

Will your plugin pick up on existing posts if they are modified/republished or have their status changed in any way?

The only other option I can think of is to travel back in time and install your plugin before anyone started posting, but I haven’t figured out how to do that yet either. I’ll be sure to let you know if I do, though ;-)

Reply

iamzaks (1 comments.) on October 4, 2008 at 6:19 pm.

Hello,
This is a plugin I have been hoping to find for months! You are the man!

I cannot get it to work though, I think I might have installed it wrong… Whenever I update the “options” page the Blogname always remains as “tags” I cannot change it. Also, I don’t know how it works, I mean, do I have to make edits to the theme? If you could post a step by step detailed instruction on how to work and set up this plugin I would really appreciate it, and I’m sure I would not be the only one.

PS: using WPmu 1.6.1, using the default home theme or K2
Thanks :)

Reply

John (3 comments.) on October 6, 2008 at 8:13 pm.

@Stuart – if you save an old blog post on an individual blog it will update at the uber-blog. You don’t have to change anything, just open the post and click “save.”

I suspect export/import will work as well, since that would be a save event. May be faster, so long as everything goes right. :)

~ John

Reply

Boonika on October 7, 2008 at 3:40 pm.

Bravo Thomas – Bravo Donncha!

Reply

John (3 comments.) on October 7, 2008 at 9:55 pm.

Hi Donncha,

So, I’ve been quietly banging around trying to fix something, and I’m coming up empty. I’ll keep working on it, I’m throwing it out here mostly to see if anyone else has the same issue. Note that this problem existed with the .2x version and .31.

When a new post is written on a “sub” blog, it gets copied over to the “main” blog perfectly. It also brings its tags along perfectly. The categories, however, get turned into numerals, and occasionally (instead) the wrong category is attached.

Fortunately it’s a small installation with only a post or two per day (right now), so manually fixing these things is not a crisis. Still…

The installation is using 2.6.2, there were no plugins installed and no changes made to the code. Since then, I have added wpmufeed although I’m not doing much with it at the moment.

Any thoughts from y’all would be appreciated. In the meantime, back at it!

~ John

Reply

Todd on March 7, 2009 at 4:23 pm.

Was the numerals issue solved? I’m still having this issue. Was anyone able to find a solution to this? Thanks!

Reply

Klark (2 comments.) on October 9, 2008 at 2:05 pm.

Awesome plugin!

Maybe Sitewide Tags isn’t the right name for it. It allows much more – Site Wide Feed, Sitewide Search, Sitewide Archives.

Reply

MrBrian (1 comments.) on October 10, 2008 at 8:46 am.

@Stuart:

I just wrote some code to populate the tags blog with all the old posts before the plugin was added.

You’ll need my plugin WPMU Power Tools.
And the code: http://pastebin.com/f675f492a

Just stick it in the PHP Executor, select ‘all blogs’, and hit execute.

Reply

Joss Winn (1 comments.) on October 21, 2008 at 3:33 pm.

Hello,

I’ve noticed that with site-wide-tools installed, there’s a problem with Twitter Tools whereby two posts are made to Twitter, one from my blog, the other from the /tags/ blog (which does not have Twitter Tools activated). Not sure if this is something you can fix or Alex King can fix, but it’s a reproducible problem.

Thanks for any help.

Joss

Reply

Stephen Collins (1 comments.) on October 23, 2008 at 12:31 pm.

On a setup I’m doing for a client, this has come in massively handy.

As I’m no PHP coder, I could use a little help if I can impose.

I want the titles shown on the aggregated list, I’d like to show the name of the blog the post has been harvested from as well, so, something like:

An Amazing Post from Some Blog

so that readers can differentiate the source of the posts. Id like to show it on only the front, aggregated page and not on individual blogs. For the time being, all blogs are using the same theme.

Reply

Andrea_R (4 comments.) on October 23, 2008 at 2:38 pm.

Just found it doesn’t play nice with More_Privacy _options. :)

If you changed the check from

if ( get_blog_status($post_blog_id, “public”) == 0 )
return;

to

if ( get_blog_status($post_blog_id, “public”) != 1 )
return;

then it should do it.

Reply

rizapn (1 comments.) on October 25, 2008 at 7:03 am.

I prefer not to close comment status, but add these lines :

function sitewide_tags_get_comments_num($count)
{
global $blog_id,$wpdb,$post;

$tags_blog_id = get_site_option(‘tags_blog_id’);
if (!$tags_blog_id || $blog_id!=$tags_blog_id) return $count;
$base = $wpdb->base_prefix;
list($post_blog_id,$post_id) = explode(‘.’, $post->guid);
$r = $wpdb->get_col(“SELECT comment_count FROM $base{$post_blog_id}_posts WHERE ID=$post_id”);
if (is_array($r)) return $r[0];
return $count;
}
add_filter(‘get_comments_number’, ‘sitewide_tags_get_comments_num’);

so, your plugin will also display the correct comment number from the original post.

rizapn

Reply

Sven Wiesner (1 comments.) on November 5, 2008 at 10:52 am.

Hey, i have to say thank you for this nice plugin, its help a lot to make WordPress MU more usable! Keep it on.

Reply

Klark (2 comments.) on November 6, 2008 at 3:53 am.

Hey Donncha,

WP-Supercache does not clear or update on the blog defined as the Site Wide Tags blog. In my case, that’s the main blog. When a post is removed or edited it doesn’t update.

Reply

Colas Nahaboo (1 comments.) on November 6, 2008 at 5:38 pm.

Mr brian code to populate the blog is wrong. see the good version: http://pastebin.com/fe375d1

Reply

Konstantin (8 comments.) on November 6, 2008 at 7:57 pm.

Hello, I decided to switch from MuTags to this plugin, but when I activate it nothing happends. I get a Global Posts link on the top of the admin panel, but when I go to mysite.com/tags it returns a 404.

Could it be because I am using the multi-db script? Does this script create a new global table that I am unaware of?

Thanks.

Reply

Konstantin (8 comments.) on November 8, 2008 at 12:12 am.

Ok disregard that last comment, I managed to fix it.

I got a new blog created and its filling up with tags. But now I’d like to add the tag cloud to my home page which uses the home theme.

I’ve tried

But it wont show up. How can I include the cloud from /tags/ into the home page?

Reply

Sergio (2 comments.) on November 8, 2008 at 8:11 am.

Hi! Thanks for the great plugin! It works really well!
However, I would also support the request by Stephen to add a functionality to get also the originating blog name somehow.
Maybe a solution could be to simply attach it to a meta field for each post (similarly to what is done now for the permalink) so that it can be retrieved and used in templates?
What do you think?
Thanks again!
S.

Reply

Sergio (2 comments.) on November 8, 2008 at 10:02 am.

well, found that the solution was quite easy after all, just adding four lines of code.
I published some details on my blog, here:

http://tekne.ecletticamente.eu/wordpress/wordpress-mu-sitewide-tags-pages/

Reply

MrBrian on November 12, 2008 at 2:03 am.

@Konstantin:

Can you explain how you got sitewide tags working with multi-db? I noticed mine isn’t working either.

As to your question, you put this code in your home theme:
http://pastebin.com/f5baa5e4

Reply

smilesquare (1 comments.) on November 12, 2008 at 8:42 am.

Great plugin!
After a try, I found that in subdomain page still show up tag link like this : http://sub.domain.com/tag/mytag
how can I change it to http://domain.com/tag/mytag

Thank you.

Reply

Mat_ (1 comments.) on November 18, 2008 at 12:24 pm.

It seems to have problems with buddypress.
They are related here:
http://buddypress.org/forums/topic.php?id=231
and here:
http://mu.wordpress.org/forums/topic.php?id=9851

Any help ? :)
Thanks!!

Reply

Konstantin (8 comments.) on December 4, 2008 at 4:52 pm.

@MrBrian:

Do you have MuTags installed? I found out that the template file from that plugin was causing the /tags/ blog not to show up since I had a page called tags in the main blog. Once I deleted it all was fine.

Reply

Konstantin (8 comments.) on December 14, 2008 at 3:08 am.

I’d like to suggest a feature for a future release: exclude tags option (unless you can already do that and I cant find out how).

Reply

Satranç (1 comments.) on December 28, 2008 at 10:44 pm.

Hi @Donncha,
I translated it to Turkish for thanks.
I used your plugin at http://satranc.biz/ and you can find translation files at http://abdullaharik.com/wordpress-mu-sitewide-tags-pages-031-turkce/ .

Reply

Sander on January 9, 2009 at 6:49 pm.

I like the sitewide tags plugin!

sitewide tags copies a blogentry to the main blog.

When using a the plugins ‘gd star rating’ or ‘wp-postratings’ each blogitem have 2 rates:
one on the mainblog and one on the individual blog.

How can we resolve that?

Reply

D'Arcy Norman on January 13, 2009 at 11:07 pm.

I’m using More_privacy_options to let blog owners have a bit more granularity in defining the privacy level of their blog, and 0.3.1 was “leaking” private posts. I made the change mentioned by Andrea, and that should solve it. Thanks!

Reply

Jim (12 comments.) on January 26, 2009 at 5:30 pm.

Donncha et al.

I have a question, I am using this blog as a way to create a syndication hub for a university using tags, category feeds etc. The tags plugin finds only those posts open to Google in the privacy setting right now. I am using the More privacy settings option, and I was wondering if it might be able to also bring in posts no searchable by Google, which is the second option in the more privacy options. I would even like it to find posts only available to the UMW community given the tags blog is no Google searchable. Does anyone know how to do this?

Reply

Olivier on January 28, 2009 at 12:24 am.

Hi, I ‘d like to know if it possible when you delete a post entry on a blog that the entry on the tag blog is deleted too. The same when a post is updated on a blog the post on the tag blog is updated too. For now when you delete a post, the post on the tegs blog is still there and when you update a post and save on a blog it creates a new entry on the tags blog. Any Ideas? Thanks.

Reply

MrBrian on January 28, 2009 at 5:50 am.

Olivier,

The latest version of the plugin does that. Do you have an old version?

Reply

Olivier on January 28, 2009 at 11:39 am.

I have the version 0.3.1. I think it is the last one. But I am running WPMU 1.3.3. I know I should have updated it a long time ago but I use multi-DB with more than 4000 db so I was kind of scared to upgrade the whole thing. Anyway, is there a way that this function works with mu 1.3.3? Thank you.

Reply

Steffen (3 comments.) on February 1, 2009 at 12:36 am.

Hi Donncha.
I use the custom taxonomies plugin.
http://nerdlife.net/custom-taxonomies/

The plugin also use the db tables wp_terms wp_term_relationship and term_taxonomy. But its not working.
It stores just the old term-id and not the old name/slug in wp_term of tags pages blog.
Any Ideas? Thank you.

Reply

Steffen (3 comments.) on February 2, 2009 at 12:25 pm.

this is my result, but this does not work yet pefectly…

// custom taxonomy ‘band’ exit in current and global blog
$tax_band = wp_get_object_terms($post_id, ‘band’, array(‘fields’ => ‘names’));

// after if( $global_post->ID != ” ) {
wp_delete_object_term_relationships( $global_post->ID, ‘band’ );

// after $p = wp_insert_post( $post );
wp_set_object_terms($p, $tax_band, ‘band’, $append = false);

it work not by publishing, but after editing.

Reply

Steffen (3 comments.) on February 2, 2009 at 2:34 pm.

OK
the problem is the priority of the hook
booth are set to 10
I changed the custom taxonomie hook on 9 for solving the problem.

http://nerdlife.net/custom-taxonomies/
in custax.class.php
line 100:
add_action(‘save_post’, array(&$this, ‘save’), 9);

Reply

Todd on February 14, 2009 at 8:45 pm.

I’m noticing a strange bug where all categories are converted to numbers when imported to sitewide blog. Anyone else having this issue or know of a fix?

Thanks for the fantastic plugin!!!

Reply

Tom on August 31, 2009 at 1:13 pm.

It has created a new subblog but it is not picking up the latest posts and so there are no tags to display. Do I need to change any access permissions on the database or ftp?

Reply

Bolekz (1 comments.) on December 3, 2009 at 5:53 am.

Hi Donncha,
first off, amazing plugin and keep up the good work.
I have a little problem, as it doesn’t show my galleries in the main blog. Iam trying it for hours now, but no luck. It takes single pictures without a problem, but no gallery will show.
any ideas?
thanks a lot?

Reply

Milos (1 comments.) on April 4, 2010 at 9:22 am.

Hello,

I’ve read everything about this plug-in I ran into, but still can not make my uber-blog homepage be populated with posts from other blogs. Whenever I edit options, set my Blogname, it reverts to “tags” and there’s nothing I can do about it.

Reply

Luiz Guilherme Gama on January 26, 2011 at 7:27 pm.

First, thanks for the plugin.
I had sometime wasted but I could make it work pretty nice.
I have just one question for a new website.
I need to let people publish their posts only to their own blogs and make it appear at the main blog as a draft (not published), so I will select what may appear or not at the main blog.

How can I do it? I tried in many ways and failed until now.

Thanks in advance,
Luiz Guilherme

Reply

Leave Your Comment

Your email will not be published or shared. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Holy Shmoly! is Stephen Fry proof thanks to caching by WP Super Cache