Category/search/news/commenters/XFields cloud

Download plugins, language packs and stuff.

Category/search/news/commenters/XFields cloud

Postby FI-DD » Mon Feb 19, 2007 10:52 pm

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.)
Attachments
cloud.zip
Category/search/news cloud
(2.89 KiB) Downloaded 421 times
Last edited by FI-DD on Mon Feb 26, 2007 8:22 pm, edited 5 times in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Saszoo » Mon Feb 19, 2007 11:02 pm

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?
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby scottdallas » Mon Feb 19, 2007 11:10 pm

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.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Tue Feb 20, 2007 1:23 am

Saszoo wrote:Is it possible to modify to cloud more things?


If you are using the search history plugin you can show a search cloud now. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby astrostart » Tue Feb 20, 2007 6:01 pm

Very nice hack! I tested it and it works fine! :)



Good work, FI-DD!
User avatar
astrostart
 
Posts: 124
Joined: Sun Feb 11, 2007 6:08 pm
Location: The Netherlands

Postby Saszoo » Tue Feb 20, 2007 7:07 pm

OMB (oh my buddha)

That is so nice:) Thanks a k :D
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby FI-DD » Tue Feb 20, 2007 8:00 pm

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. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby astrostart » Tue Feb 20, 2007 8:07 pm

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!
User avatar
astrostart
 
Posts: 124
Joined: Sun Feb 11, 2007 6:08 pm
Location: The Netherlands

Postby FI-DD » Tue Feb 20, 2007 8:14 pm

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?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Tue Feb 20, 2007 9:00 pm

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?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Tue Feb 20, 2007 11:39 pm

News cloud is working now including the possibility to cut the title after a certain number of words.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Wed Feb 21, 2007 12:38 am

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!
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Wed Feb 21, 2007 7:34 pm

Update: You can show a commenters cloud now.



scottdallas wrote:What inspired you to make something as original and cool as this?


A wordpress plugin. :oops:
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Wed Feb 21, 2007 10:39 pm

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.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Thu Feb 22, 2007 12:10 am

scottdallas wrote: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.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron