Chip's Tips for Developers

Contains coding, but not narcotic.

WordPress tag cloud widget version 2.0 for Jerome’s Keywords 2.0

September 6th, 2006 11:04:31 am pst by Sterling Camden

vapourtrailsJerome has released a 2.0 beta version of his famous Jerome’s Keywords plugin, on which my tag cloud widget is based. Some of the functions I used in my widget are no longer available, so the previous version of my widget will not work with it. Thus, I have updated the widget, which you can download below.

Jerome seems to have fixed the problems in the plugin itself that I mentioned here and here. When he releases this version from beta, I’ll remove my corrected versions. I’ll go ahead now and add updates to let people know about the beta.

tagcloudoptionsJerome also included all of my widget’s options (other than Title) in a new “Tag Cloud Display” section of the plugin’s options. So, I have removed those options from the widget option panel. Please go into “Options/Jerome’s Keywords” and update your tag cloud options there.

Note also that this version of the widget is not compatible with earlier versions of the plugin. If you need a widget for earlier versions of Jerome’s Keywords, get version 1.1 of the widget here.

UPDATE: Get the latest version with improved cache control here.

Posted in PHP, SQL, Web, Wildly popular, WordPress | 67 Comments » RSS 2.0 | Sphere it!

RSS feed | Trackback URI

67 Comments »

MyAvatars 0.2

[...] tag cloud widget version 2.0 for Jerome’s Keywords 2.0 — Chip’s Tips for Developers on Tag cloud sidebar widget for WordPressSterling Camden on Magic quotes correction for Jerome’s Keywords WordPress pluginSterling Camden onContactMike on Magic quotes correction for Jerome’s Keywords WordPress pluginironclaw on Contact Post Stats [...]

 
MyAvatars 0.2

[...] Comments Sterling Camden on Correction for Jerome’s Keywords plugin for WordPressTag cloud sidebar widget for WordPress — Chip’s Tips for Developers on WordPress tag cloudwidget version 2.0 for Jerome’s Keywords 2.0WordPress tag cloud widget version 2.0 for Jerome’s Keywords 2.0 — Chip’s Tips for Developers on Tag cloud sidebar widget for WordPressSterling Camden on Magic quotes correction for Jerome’s Keywords WordPress pluginSterling Camden on Contact Post Stats [...]

 
MyAvatars 0.2

[...] 2.0 — Chip’s Tips for Developers on Tag cloud sidebar widget for WordPressSterling Camden on Magic quotes correction for Jerome’s Keywords WordPress plugin PostStats [...]

 
MyAvatars 0.2

[...] Recent Comments sterling on Thanks, I needed that splash of Google juiceapotheon on Thanks, I needed that splash of Google juiceWordPress tag cloud widget version 2.0 for Jerome’s Keywords 2.0 — Chip’s Tips for Developers on Tag — you’re it, Jerome!sterling on Thanks, I needed that splash of Google juicesterling on ChaCha: dance card full? Post Stats [...]

 
MyAvatars 0.2
Comment by cinefilo

You could add widget the function ‘function_exists’ for if not exist plugins donīt show error.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

That’s a very good idea, cinefilo. I would add that, but Jerome has agreed to include the widget in his released version of the plugin, so it would not be necessary then.

 
MyAvatars 0.2

[...] Jerome Lavigne has a 2.0 beta version of his Jerome’s Keywords plugin for WordPress available. Besides implementing lots of cool new features and fixing some important bugs, Jerome reworked most of the code. As a result, my tag cloud widget no longer worked. So, I created a new version that is 2.0 compatible. Unfortunately, it is not 1.9 compatible, so make sure you get the right one. With my eager permission, Jerome intends to include my widget in the next released version of the plugin, at which time I’ll take down my latest download and point over to his site instead. [...]

 
MyAvatars 0.2
Comment by cinefilo

Sterling, There are many people donīt use widgets then itīs more important this function for theme :D

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

cinefilo, if you’ve installed the Jerome’s Keywords 2.0 plugin, you can easily add the tag cloud to your theme by calling one function in the plugin ($JKeywords->formatAllTags)

 
MyAvatars 0.2
Comment by Eliyahu ben David Subscribed to comments via email

Hi, Cool widget. I really want to use it but I’m having problems getting it to display properly. It is extending beyond the edge of my page so that my page is not displaying properly, forcing me to disable it. In other words, it is not staying within the margins of my sidebar. Any ideas?

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Eliyahu,

That’s a strange problem. Sounds like maybe the sidebar is not in a div of its own? I looked at your site and didn’t see a tag cloud. Perhaps if you could put it back up, I could look at the page and examine the source to see what’s going on.

Shalom,

Chip

 
MyAvatars 0.2
Comment by adam Subscribed to comments via email

I’m sure its probably something I need to configure in CSS or maybe my browser is at fault… If you look at my tag cloud, the font on a large tag is laying over other tags. If it didn’t have the white box behind it, I wouldn’t mind so much.

Any clues? I’m not real good with php and new to Wordpress.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

adam, try setting an upper limit on the font size. In the WordPress dashboard, Options/Jerome’s Keywords, under “Tag Cloud Display”, set the “Tag count scaling maximum:” to 5 or 6. Depending on the font, you may need to tweak this to avoid overlap. Better test all browser types, too — or at least the ones you care about.

 
MyAvatars 0.2
Comment by J. Pisano

Sterling,

I’ve noticed a problem using the two new versions of yours and Jeromes keywords/tagcloud. When I choose a tagcloud seperator from Jerome’s options the “tags” go spilling over the border and outside the sidebar. Any ideas?

Thanks,

Joe

http://www.mustech.net

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Joe, I just changed my sidebar here to use “, ” (comma, space) for a separator, and I’m not seeing a problem. However, Eliyahu in comment 10 above experienced the same problem you are describing. Could be something to do with the way your sidebar is rendered. What separator are you using?

 
MyAvatars 0.2
Comment by J. Pisano

Chip,

I’ll go ahead and set it so it spills so you can check it in the next hour. I am using the K2 kubrick and haven’t had any problems with it with anything else. I’ve tried multiple seperators and have the problem with all of them.

I validated my code about a week ago, I’ll check it again. I’ve been messing heavily with the widgets.

My seperator of choice is two periods: .. tag ..

You can see it here:

http://www.mustech.net

Thanks,
Joe

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Joe, try eliminating the leading space and adding a trailing one instead.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

BTW, Joe. Your site doesn’t fail in Firefox for me. Only in IE.

 
MyAvatars 0.2
Comment by J. Pisano

and….. Ta-Da! As usual, tremendous work! Thanks Sterling. A simple space reversal? Well, IE just never seems to stop confounding everyone….

Thanks,

Joe

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Good news, Joe. I don’t really understand how IE gets so confused when that space precedes the elipsis.

What makes this more likely to occur is that Jerome’s option for tag cloud display contains a space by default, so if you just click in the field and add your elipsis, you get it after a space. It also isn’t clear from the UI that a trailing space can be entered into the field, even though that is excruciatingly logical.

 
MyAvatars 0.2
Comment by J. Pisano

Sterling,

I have run into another bump with the plugins. It seems to happen in Opera, Firefox, IE6 and IE7. When exceding the maximum amount of tags in Jerome’s “Maximum number of tags to display” variable I get the following errors… If I keep the tags to a number under the maximum or set it to 0 I don’t have the problem. Do you experience this?

Thanks. Joe

/home/pisanojm/public_html/mustech/wp-content/plugins/jeromes-keywords/jeromes-keywords.php on line 474

Warning: key() [function.key]: Passed variable is not an array or object in /home/pisanojm/public_html/mustech/wp-content/plugins/jeromes-keywords/jeromes-keywords.php on line 481

Warning: Invalid argument supplied for foreach() in /home/pisanojm/public_html/mustech/wp-content/plugins/jeromes-keywords/jeromes-keywords.php on line 482

Warning: Invalid argument supplied for foreach() in /home/pisanojm/public_html/mustech/wp-content/plugins/jeromes-keywords/jeromes-keywords.php on line 494

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

I don’t see the error messages, Joe, but I also don’t get any tags. Could be an error reporting option in PHP that we have set differently. In any case, this is occurring in Jerome’s code (which I call from the widget to format the tags), and the line numbers don’t reveal much to me. Have you installed Jerome’s latest beta version?

 
MyAvatars 0.2
Comment by Andy Clark Subscribed to comments via email

Done the cloud is now live and working cheers for the code and now the link.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Cool, Andy. You’ll get a free link in my end-of-day post on http://chipsquips.com. I also subscribed to your blog, so you’ll see a link in the sidebar blogroll there as well. Good luck on your new blog!

 
MyAvatars 0.2
Comment by Andy Clark Subscribed to comments via email

Hi Sterling

I having one problem not sure how it has happened but I can’t get to my Manage Keywords/Tags area. And since I put in a bunch of keywords and space separated them instead of comma I have one massive tag!

Can you point me in the right direction?

Cheers
Andy

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

That’s strange, Andy, it should be in the Dashboard just as you described. Try this url:

<your blog url>/wp-admin/edit.php?page=jeromes-keywords/managetags.php

 
MyAvatars 0.2
Comment by Maher Marey Subscribed to comments via email

Hello,

Thanks first to this great plugin :)
I actived the Jerome’s Keywords and work great for my and tags for any post work good,but in keywords-tagcloud widget i need to ask about how to add tags in Sidebar.php file like your WP!!!!!

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Maher,

To add the widget to your sidebar, you will first need to be using a theme that is widget-compatible. Then you need to activate the widget plugin. That will add a new dashboard option under “Presentation” called “Sidebar widgets”, which lets you drag and drop widgets into a prototype sidebar. One of the widgets you can drag and configure is “keywords-tagcloud”.

Hope this makes it clear.

 
 
 
 
MyAvatars 0.2
Pingback by appoulsen.dk

[...] I don’t know if anyone else has been having this problem, but for quite some time I haven’t been able to get my tag cloud to act right (using the Jerome’s keywords and Chipstips tagcloud plugins – bot excellent apps, by the way). No matter which tag you clicked it would always take you to the complete list of entries (front page if you will). I’ve solved it now, but I still fail to see the logic. [...]

 
MyAvatars 0.2

[...] WordPress tag cloud widget version 2.0 for Jerome’s Keywords 2.0 — Chip’s Tips for Developers [...]

 
MyAvatars 0.2
Comment by ronchicago Subscribed to comments via email

here is what i have installed…

jerome’s keywords v 2.0 beta 3
jerome’s keywords related posts v 2.1
keywords tagcloud widget v2.2

now with the above active i can see the menu for jerome’s keywords in the options admin menu. however when i click on the jerome’s keywords link i get this error message = The requested URL /022207/wp-admin/jeromes-keywords/options-jkeywords.php was not found on this server.

my question is i can figure out why this is pointed to “wp-admin” as i could not find any documentation telling me to take it out of the content file.

then when i point to the “option-jkeywords.php where it actually sits = in the wp-content/plugins/jeromekeywords folder i get the following error = Warning: main(admin.php): failed to open stream: No such file or directory in /home/nono/public_html/022207/wp-content/plugins/jeromes-keywords-v2/options-jkeywords.php on line 6

Fatal error: main(): Failed opening required ‘admin.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/nono/public_html/022207/wp-content/plugins/jeromes-keywords-v2/options-jkeywords.php on line 6

any thoughts? thanks. r

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

What version of WordPress and PHP are you using, ronchicago? It sounds like it isn’t behaving as one would expect.

 
MyAvatars 0.2

[...] Keywords” plugin installed, then there is yet another easy way to create a tag cloud. ChipsTips has a great plugin to create a tag cloud easily IF YOU HAVE JEROME’S KEYWORDS [...]

 
MyAvatars 0.2

[...] Keywords” plugin installed, then there is yet another easy way to create a tag cloud. ChipsTips has a great plugin to create a tag cloud easily IF YOU HAVE JEROME’S KEYWORDS [...]

 
MyAvatars 0.2

[...] to all previous posts on this subject for the sake of those who subscribe to comments. Tags:Chip’s Tips for Developers: [...]

 
MyAvatars 0.2
Comment by AsbjÃļrn Subscribed to comments via email

My previous problem just re-appeared. No matter which tag you click, the full list of entries loads. I don’t get it – seems random – but i’m working on locationg the problem right now

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Weird, AsbjÃļrn — since you’re using a modified permalink structure, maybe something’s broken with the .htaccess?

What changes, if any, did you make to the site between when it worked and when it failed?

Have you seen the new version of the widget (not that that should have anything to do with your problem)?

 
MyAvatars 0.2
Comment by AsbjÃļrn Subscribed to comments via email

Tried the new version – didn’t work kinda at a loss, but hey, last time the problem seemingly solved itself, so here’s hoping it’ll do the same this time :)

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

:/

I’d check the .htaccess rules.

 
MyAvatars 0.2
Comment by Marc

I’m getting the following error.

Fatal error: Call to a member function formatAllTags() on a non-object in /home/.kairo/marcphu/project.meyouand.us/wpdev2/wp-content/plugins/keywords-tagcloud.php on line 41

Any possible solutions?

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Have you installed and activated the Jeromes Keywords plugin? BTW, the latest version detects that.

 
MyAvatars 0.2
Comment by Marc

Upgrading to from 1.9 to 2.0 worked! Thanks!

 
MyAvatars 0.2
Comment by marc

Almost worked! — the tag cloud on homepage (index.php) is showing up fine. But as soon as I slip into the individual single permalink page, the database call seems to break:

WordPress database error: [Not unique table/alias: 'jkeywords']
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_post2tag p2t on wp_posts.ID = p2t.post_id INNER JOIN wp_tags t on p2t.tag_id = t.tag_id LEFT JOIN wp_jkeywords AS jkeywords ON (wp_posts.ID = jkeywords.post_id) LEFT JOIN wp_jkeywords AS jkeywords ON (wp_posts.ID = jkeywords.post_id) WHERE 1=1 AND (post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’)) AND t.tag IN (‘korean’) AND jkeywords.tag_name=’korean’ AND jkeywords.tag_name=’korean’ GROUP BY ID ORDER BY post_date DESC LIMIT 0, 10

This is not happening on the category pages, only the single page that I can see so far.

Any tips on this too?

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Yes, this version of the widget requires version 2.0 of Jerome’s Keywords. Again, the latest version of the widget will detect whether the correct plugin is activated.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Hmm. What version of MySQL are you using?

 
MyAvatars 0.2
Comment by Marc

My webhosting admins say that it’s running on MySQL 5.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

I’m on 4.1.21 — I wonder if there’s something different with aliases. Can you send me a link to your site so I can look at it?

 
MyAvatars 0.2
Comment by marc

I wasn’t very specific with the last diagnosis: actually what is happening is that the tag keyword search page is not calling up the widget correctly.

The single pages are actually working fine.

Here’s an example of where it is breaking:

http://www.project.meyouand.us/wpdev2/?tag=korean

 
MyAvatars 0.2
Comment by Samantha Subscribed to comments via email

Anyone know where I can get Jerome’s Keywords 2.0? I really want to use the tag cloud, but the link to the beta version is unavailable.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Did you try this page? I can get there today.

 
MyAvatars 0.2
Comment by David Subscribed to comments via email

I am using MYSQL5.0.33, I also encount this DB error,
This plugin is nice, is there any possible to make it MYSQL 5 compitabl?
Thanks
-David
——————————————–
WordPress database error: [Not unique table/alias: 'jkeywords']
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts LEFT JOIN wp_jkeywords AS jkeywords ON (wp_posts.ID = jkeywords.post_id) LEFT JOIN wp_jkeywords AS jkeywords ON (wp_posts.ID = jkeywords.post_id) WHERE 1=1 AND (post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’)) AND jkeywords.tag_name=’mp3′ AND jkeywords.tag_name=’mp3′ ORDER BY post_date DESC LIMIT 0, 5

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Check out comment #196 on this post.

Since Jerome is not responding to this issue, I may see if I have time to put put a corrected version soon. In the mean time, you could make the same change that the commenter did.

 
 
MyAvatars 0.2
Comment by Gemma Weirs Subscribed to comments via email

Hi,

How do I make it so that the tags display as a list instead of as it is currently displayed? I would like to display these tags like an unordered list.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Gemma,

Add the following to your theme’s style.css:

a.cosmos {
display: list-item;
}

BTW, have you gotten the most recent version of this widget, and the corrections for Jerome’s Keywords?

 
MyAvatars 0.2
Comment by Gemma Weirs Subscribed to comments via email

Thanks. It worked but I’d like to know how to display the >> sign next to each tag.

Also I get this error when I click on a tag – this replaces the Recnt Posts widget:

SELECT SQL_CALC_FOUND_ROWS dreamblog_posts.* FROM dreamblog_posts LEFT JOIN dreamblog_jkeywords AS jkeywords ON (dreamblog_posts.ID = jkeywords.post_id) LEFT JOIN dreamblog_jkeywords AS jkeywords ON (dreamblog_posts.ID = jkeywords.post_id) WHERE 1=1 AND (post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’)) AND jkeywords.tag_name=’Abuse’ ORDER BY post_date DESC LIMIT 0, 10

I posted this error on jerome’s website too but maybe someone can help here. I tried following the fix found on there but I don’t understand how to do it.

Cheers.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Do you mean having the chevron in place of the list bullet, or following the keyword?

I posted a fix for your SQL duplicate alias error here. All you have to do is download it and upload it to your site.

 
MyAvatars 0.2
Comment by Gemma Weirs Subscribed to comments via email

I mean like this:

>> tag
>> tag
>> tag

and so on.

As for the fix, I already uploaded it but it did not fix the problem.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Add this to style.css:

a.cosmos:before {
content: “>>”;
}

I don’t know why my fix wouldn’t solve your SQL problem. Maybe try deactivating and reactivating the Jerome’s Keywords plugin?

 
MyAvatars 0.2
Comment by DaJuan Tircuit Subscribed to comments via email

How do you correct this error code?

Fatal error: Call to a member function on a non-object in /home/hiddenh1/public_html/resellsoftwarerights/wp-content/plugins/keywords-tagcloud.php on line 53

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Download the most recent version, DaJuan.

What it’s subtlely trying to tell you is that you haven’t activated the Jerome’s Keywords plugin.

 
MyAvatars 0.2
Comment by Sterling Camden Subscribed to comments via email

Gemma (and anyone else listening): I found a flaw in my correction for the duplicate alias error. I’ve fixed the download here.

 
MyAvatars 0.2

[...] just installed a tagging plugin by ChipsQuips.  So far so good.  It seems to be working, I just don’t know how to set it up [...]

 
MyAvatars 0.2

[...] How to create a tag cloud for wordpress chipstips [...]

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Subscribe without commenting

Better Tag Cloud