Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Category/search/news/commenters/XFields cloud
Goto page 1, 2, 3, 4, 5  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Category/search/news/commenters/XFields cloud
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Category/search/news/commenters/XFields cloud Reply with quote
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:

Quote:
$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.)




cloud.zip
 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 View user's profile Send private message
Guest








Please login to hide the ads.

Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
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 View user's profile Send private message Visit poster's website
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Mon Feb 19, 2007 11:10 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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. Smile
Tue Feb 20, 2007 1:23 am View user's profile Send private message
astrostart



Joined: 11 Feb 2007
Posts: 124
Location: The Netherlands

Post Reply with quote
Very nice hack! I tested it and it works fine! Smile



Good work, FI-DD!
Tue Feb 20, 2007 6:01 pm View user's profile Send private message Visit poster's website
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
OMB (oh my buddha)

That is so nice:) Thanks a k Very Happy

_________________
My cute.ru site
Tue Feb 20, 2007 7:07 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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. Smile
Tue Feb 20, 2007 8:00 pm View user's profile Send private message
astrostart



Joined: 11 Feb 2007
Posts: 124
Location: The Netherlands

Post Reply with quote
A news cloud? Confused



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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Tue Feb 20, 2007 9:00 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Wed Feb 21, 2007 12:38 am View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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. Embarassed
Wed Feb 21, 2007 7:34 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Wed Feb 21, 2007 10:39 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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. Smile



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 View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.