Owner: Henry
Type: WPMU Plugin
Created: 2007-12-04 10:19:48
Last Modified: 2008-03-14 07:23:40
MuTags 0.3.zip (857 download(s))
MuTags0.2b.zip (635 download(s))
MuTags0.2.zip (135 download(s))
MuTags 0.1b.zip (68 download(s))
Another site wide tags solution for WordpressMU. Everytime someone posts, updates or deletes a blog post, the MuTags (wp_global_tags) table is updated with the correct information. This plugin then retrieves data from the MuTags table to create a tag cloud and display results for each tag. This plugin also includes an importer to import existing Wordpress tags and optionally categories into the MuTags table. Read the readme for installation and upgrading. Notice: I recommend that version 0.3 is only used for testing, because a great amount of people have suffered of different problems with it. Sorry...
I'm getting "No tags found..." as the tag cloud result. (After posts with tags are published.) Global_tags table appears to be empty.
Help plz, Error in my server: Warning: preg_replace() [function.preg-replace]: Unknown modifier 'b' in C:\xampp\htdocs\blogs2\wp-content\mu-plugins\MuTags.php on line 628
Hi! Cloud works, but the links not. I get these lines: Warning: templateredirect(/homepages/18/d11694981/htdocs/B-WPMU/wp-content/themes/k2/tag_results.php) [function.templateredirect]: failed to open stream: No such file or directory in /homepages/18/d11694981/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 909 Warning: templateredirect() [function.include]: Failed opening '/homepages/18/d11694981/htdocs/B-WPMU/wp-content/themes/k2/tag_results.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/18/d11694981/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 909 I tried netfirm permalinks, no difference. What do I have to do? Thanks for help! Lars
Lars First of all use MuTags 0.2b if you aren't already using it. Looking at the error msg you posted, it seems that you're not using this plugin on your home theme/blog? The plugin only works with the main blog.
Hi Henry, thanks, seems to work better now. What do I have to do, to change the behaviour after a click in the cloud? I would like to have a new window with the blog of the relatd article. if you go to 99.fitpro.de and click you see what happens now... not that pretty. Looking forward to your reply Best Lars
ooops.... I installed the plugin in the theme directory with all my themes in it. When I work on another blog of the network I still get this: Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/18/d11694981/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/18/d11694981/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: Cannot modify header information - headers already sent by (output started at /homepages/18/d11694981/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php:494) in /homepages/18/d11694981/htdocs/B-WPMU/wp-includes/pluggable.php on line 440 Is it in the wrong directory? Is it K2 since I am using different stylesheets?
Have you read the readme, because it tells you to place mutags.php to mu-plugins -folder and tag_results.php to your theme folder, which should be wp-content/themes/home or if you're using another theme, then place tag_results.php into that themes folder.
Yes, I read the readme. I placed the plugin in the mu-plugins folder. It was something with the style, since I created a new sheet for the blog to have it used just by the main site an now the error disappeared. Any way to have the cloud linking directly to the site? Right now the linke opens within the main blog and after that to the blog the link point to Thanks for your support! Lars
Still get error messages when publishing on a sub-blog: Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php on line 494 Warning: Cannot modify header information - headers already sent by (output started at /homepages/18/xx/htdocs/B-WPMU/wp-content/mu-plugins/MuTags.php:494) in /homepages/18/xx/htdocs/B-WPMU/wp-includes/pluggable.php on line 440
Great plugin thanks! I've found bug in 797 line: if(!$results) { die('There was an error'); which cause that tags import didn't work when there is blog without posts. (then $results give empty array)
Hello: I have installed the mutags latest version. It pulls all the tags and even displays them in a page result. But I can only click on the local (main) blog search results. Posts from other sites redirect to the same page. Take a look at: http://meradera.com/ towards the bottom right hand side is the tag cloud. Click on gizzy or http://meradera.com/tag/gizzy/ the first result is a post within the main site. It links fine. The second post is at http://gizzy.meradera.com/ and it does not link at all. please help.
At first glance, it looks like there's a bug on line 534 of version 0.3 of this plugin.
The very last clause in the SQL query is "$blog_id = $blog_id". That will always return true because it's if value = value. I'm guessing the first $ is a mistake and it should be "blog_id = $blog_id". I haven't checked or verified this though, so don't quote me if it all gets borked! ![]()
At first glance, it looks like there's a bug on line 534 of version 0.3 of this plugin.
The very last clause in the SQL query is "$blog_id = $blog_id". That will always return true because it's if value = value. I'm guessing the first $ is a mistake and it should be "blog_id = $blog_id". I haven't checked or verified this though, so don't quote me if it all gets borked! ![]()
I am hoping someone can help me. I have uploaded mutags.php to my mu plugins folder and placed the tagresults.php in the theme folder I am using for the admin account. When I go to the index page I have created I am seeing the tags - different sizes etc. great - but, when I click on any of the tags the link takes me to the signup page. Can anyone tell me why this might be happening? Thanks! Helen
chmac Youre right, there's a bug, thanks for pointing that out. helencpo You need to create a page with the tagresults.php as the template. It's all in the readme...
Henry, fantastic plugin... Two things... First, you confirm an error mentioned by chmac... Is his fix the correct one or will you be releasing a corrected version? Second, I'm a newbie so forgive me if the answer is painfully obvious... Is there a way to have the results page return just the title, author, and blog it's posted on instead of the whole post?
How difficult would it be to change this plugin so that someone can define a specific set of blogs to output a tag-cloud from. My goal would be to have several of these groups within one WordPressMU system. I would assume that the best method would be to define a function that extracts tags from the database based on blog ids. I could probably code it, I'm just looking for some advice on where to start... or if this would actually be the best way
jwesseldyke: chmac's fix is the correct one. You can remove the_content() from tag_results.php to remove post content. Andre Malan: Not very hard... Mutags saves the tags into wp_global_tags table and assignes each of them a specific blog_id that they belong to.
My installation of wp mu is in a sub-dir of my web root. My tag cloud appears ok, but link targets ignore the sub-dir. Each link goes to: "www.****com/tags/tag_name", but it needs to go to "www.***.com/subdir/tags/tag_name". thanks
Just to make my question clear: on another site you posted this response a couple of months ago: "If you want tags to appear like http://siteurl.com/blogs2/tag/randomtag you need to keep the tag base as "tag", create a page with the slug tag and tag_results.php as the template and blogs2 as the parent page. If you visit the tag base page, it should say somthing like "you're looking for something that isn't here", but when you add a correct tag after the tag base for example tag/spaghetti, you should see the results. " I don't understand what you mean by 'set blogs2' as the parent page. this implies 'create a new page called blogs2 and set it as the parent page'. What else can 'parent page' mean? When i try this it makes no difference. Help!!
mark_l_sanders: The example that I gave you should have worked if your wpmu install was in your site root. Im afraid that you might need to modify the preg_replace piece inside the function get_tag_results() to make this plugin work with your setup. One last thing you might try is to set the "tag base" to "subdir/tag" instead of just "tag". -Henry
henry: the solution is to change the mu_tag_cloud function in MuTags.php. The start of the link path is hardcoded as '/'. It should be replaced with a variable representing the blog install dir. So, replace:
with Hope this is readable (not many formatting options in these comments). Does this solution work for you? markhenry: the solution is to change the mu_tag_cloud function in MuTags.php. The start of the link path is hardcoded as '/'. It should be replaced with a variable representing the blog install dir. So, replace:
with Hope this is readable (not many formatting options in these comments). Does this solution work for you? markSorry about the above two posts: can't seem to include the code!! Basically about line 1081 of MuTags.php, each tag is echoed along with a target href. The href is hard coded as root. It should be calculated using something like get_option("home") to pick up the actual install directory of WPMU. Could an admin delete the above two comments, please (and then this sentence...)? thanks
mark your solution sounds good. I know there's lots to improve in mutags, but currently I don't have the time/will to develope mutags any further. My goal was to create a working concept for site wide tags to wpmu and I'm happy to see my solution was accepted, but mutags really is just a concept and I hope that people themselves will modify it to their needs. -Henry
I found a bug. I had several tags like: China -- 1 record, Australia -- 2 records, Russia -- 3 records, Test -- 1 record. Then I deleted a message that had a "test" teg. Then I got the following result: China -- 0 record, Australia -- 1 record, Russia -- 2 records. Everything got 1 point lower. When I press a tag I see all the results correctly, but the number of tags on the main page is incorrect. Also, because of the wrong numbers of records I see wrong sizes... You may check it here: blogion.ru Version: 0.1
i have to thank you about ur plugin i know it's a silly question , but is it secure to use this plugin ? i toke a look at the file and didn't know how to limit video service domains . i asked the question on the forums but still didn't get any answer http://mu.wordpress.org/forums/topic.php?id=8413 thanks
You must be registered and logged in to post comments. Not registered? Click here to get your free account!