| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
Category/search/news/commenters/XFields cloud |
|
This plugin shows a category cloud based on the number of news per category, a news cloud based on the number of views per article, a commenters cloud based on the comments left per author or a XFields cloud based on the number of values per XField.
The more news in the category/views per article the bigger it gets:
Cat 1 Cat 4 Cat 3
Cat 2 Cat 6 Cat 5
If you are using the search history plugin you can show a search cloud, too.
Installation:
1. Upload the plugin, activate it and go to "Options -> Category cloud" to change the settings.
2. Put show_the_cloud($cloud, $limit, $orderby, $min_size, $max_size, $start, $end); where you want to show the cloud.
3. Explanation:
 |  | $cloud => Used to define what to show. (defaults to 'category')
'category' - shows the category cloud
'news' - shows the news cloud
'search' - shows the search cloud (if available)
'commenters' - shows the commenters cloud
'xfield:my_xfield' - shows the cloud for the XField "my_xfield"
$limit => Used to define how much to show. (defaults to '0')
0 - show everything
25 - show the top 25 items
$orderby => Used to define how to show the data. (defaults to 'asc')
'asc' - order ascending
'desc' - order descending
'random' - order randomly
$min_size => Used to define the minimum font size. (defaults to '10')
'10' - font size 10
$max_size => Used to define the maximum font size. (defaults to '30')
'30' - font size 30
$start => Used to define the beginning of the cloud, only available in news/commenters cloud. (defaults to 'false' -> show everything)
$end => Used to define the end of the cloud, only available in news/commenters cloud. (defaults to 'false' -> show everything)
Example code:
1. show_the_cloud($cloud = 'news', $limit = 25, $orderby = 'random', $min_size = '9', $max_size = '25');
2. show_the_cloud($cloud = 'xfield:music', $limit = 10, $orderby = 'asc', $min_size = '10', $max_size = '30');
3. show_the_cloud($cloud = 'commenters', $limit = 10, $orderby = 'asc', $min_size = '10', $max_size = '30', $start = time() - (3600 * 24 * 30), $end = time());
(Third example shows commenters cloud of the last 30 days.) |
| Description: |
| Category/search/news cloud |
|
 Download |
| Filename: |
cloud.zip |
| Filesize: |
2.89 KB |
| Downloaded: |
251 Time(s) |
Last edited by FI-DD on Mon Feb 26, 2007 8:22 pm; edited 5 times in total |
|
| Mon Feb 19, 2007 10:52 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
|
Wow:) That's a cool feature:D Thanks!
Is it possible to modify to cloud more things?
I'm thinking xfield values and searchwords, maybe based on the search history plug in you've created?
_________________ My cute.ru site |
|
| Mon Feb 19, 2007 11:02 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Dude, that's JUST what I needed for this project I've been working on. I'm going to test that here in the next few days and I'll show you it up and working.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Mon Feb 19, 2007 11:10 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
 |  | Is it possible to modify to cloud more things? |
If you are using the search history plugin you can show a search cloud now. 
|
|
| Tue Feb 20, 2007 1:23 am |
|
 |
astrostart

Joined: 11 Feb 2007 Posts: 124 Location: The Netherlands |
|
|
|
Very nice hack! I tested it and it works fine!
Good work, FI-DD!
|
|
| Tue Feb 20, 2007 6:01 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
|
OMB (oh my buddha)
That is so nice:) Thanks a k 
_________________ My cute.ru site |
|
| Tue Feb 20, 2007 7:07 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
It's not yet working correctly. There's a bug when sorting the input. I'll fix it and add a "news" cloud to it. 
|
|
| Tue Feb 20, 2007 8:00 pm |
|
 |
astrostart

Joined: 11 Feb 2007 Posts: 124 Location: The Netherlands |
|
|
|
A news cloud?
Sounds cool but how do you want to sort that? On views?
_________________ My site: http://www.astrostart.nl | Thanks to everyone here who has helped me! |
|
| Tue Feb 20, 2007 8:07 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Yes, on views. And I'm planning to put in a variable to limit the output. So if you have 500 news you can only display the top 20 or whatever.
No need for a news cloud?
|
|
| Tue Feb 20, 2007 8:14 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Definitely a need for a news cloud. News cloud filtered by views would be AWESOME. However, long {title}'s might make it messy for some people. Think short title would work with this? Truncating the {title} to keep things flowing nicely?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue Feb 20, 2007 9:00 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
News cloud is working now including the possibility to cut the title after a certain number of words.
|
|
| Tue Feb 20, 2007 11:39 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Dude, you went above and beyond on this. This thing is amazing. I can't even comprehend or keep up with your brilliance. What inspired you to make something as original and cool as this? Cutephp's Cutenews can't even compare with you on the scene with Cutenews.ru!
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Feb 21, 2007 12:38 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Update: You can show a commenters cloud now.
 |  | What inspired you to make something as original and cool as this? |
A wordpress plugin. 
|
|
| Wed Feb 21, 2007 7:34 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
I bet this has more flexibility than any wordpress plugin! Cool, a commenters cloud. I'm glad I haven't installed it yet.. it seems this is still an ongoing work in progress for you lol. It keeps getting fancier and fancier.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Feb 21, 2007 10:39 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
 |  | it seems this is still an ongoing work in progress for you lol. |
I'd say it's finished as I'm getting out of ideas right now.
Saszoo suggested using XFields as input but I don't see how a certain XField can be used as a cloud.
|
|
| Thu Feb 22, 2007 12:10 am |
|
 |
|