Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2006, 09:50 PM
New Pligger
 
Join Date: Dec 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
pligg cloud

just playing around with the cloud concept after i saw it on digg.com

http://www.apbnews.com/cloud.php

basically showing the last 200 published stories in the cloud format, could easily be extended to show submitted stories, and restricted to categories as well.

i'm still running a pretty old version of pligg, but can post the code for the page if anyone wants it.

cheers,
mubs
Reply With Quote
  #2 (permalink)  
Old 02-02-2006, 10:12 PM
Constant Pligger
 
Join Date: Jan 2006
Posts: 197
Thanks: 1
Thanked 0 Times in 0 Posts
looks good, although I belive this already esists in pligg 5.10, no?

how many levels do you ahve in your code? 2-3? can you assign different css classes to each level?

(level1: italic, size 7 level2: normal, underline, size8, level3: normal, size 10) etc
Reply With Quote
  #3 (permalink)  
Old 02-02-2006, 10:22 PM
New Pligger
 
Join Date: Dec 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sorry haven't seen the most recent versions of pligg, opps.

but looking at the tags on pligg.com this is different from what's been built.

the tag cloud looks at the tags set to each story and lets you see the stories in that tag, kinda like an ad hoc category.

what this does is size the different stories based on the the number of votes they have. an easy way to see the popular stories.

i coded to have 5 levels and each one has it own class in the css, so you can set the font size, background color, etc. of each level as you want to.

mubs
Reply With Quote
  #4 (permalink)  
Old 02-03-2006, 01:49 AM
Constant Pligger
 
Join Date: Jan 2006
Posts: 197
Thanks: 1
Thanked 0 Times in 0 Posts
awsome mubs, thanks guess ones taht are more voted on would make more sence did you post the code somewhere?
Reply With Quote
  #5 (permalink)  
Old 02-03-2006, 02:26 AM
New Pligger
 
Join Date: Dec 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
code is attached. (might require approval before it appears, and you'll have to rename from .php.txt to just .php)

you can pass in ?type=queued and it will show the queued stories instead of the published ones.

i included in the bottom of the file in php comments the CSS classes i used as an example, you'll have to add the appropriate classes to your css file.

let me know if you have any questions.

cheers,
mubs
Attached Files
File Type: txt cloud.php.txt (2.4 KB, 64 views)
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Tags not cloud in Pligg v9.9 bhatiacane Bug Report 4 05-03-2008 02:16 AM


Search Engine Friendly URLs by vBSEO 3.2.0