General Actions:
Log-in
Wiki:
Courses
▼
:
Document Index
»
Space:
DCNM2009
▼
:
Document Index
»
Page:
ActivityCloud
Search
DCNM2009
:
ActivityCloud
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
ActivityCloud
Wiki source code of
ActivityCloud
Last modified by
Hal Eden
on 2010/08/20 11:32
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: $context.setCacheDuration(3600) 2: <span style="font-size:0.8em">the size of the names correlates to the users' activity in the wiki</span> 3: 4: #if($xwiki.statsService.enabled) 5: #set($period=$xwiki.criteriaService.periodFactory.createSinceWeeksPeriod(3)) 6: #set($interval=$xwiki.criteriaService.rangeFactory.createHeadRange(50)) 7: #set($stats=$xwiki.statsService.getVisitStatistics('save',$period,$interval)) 8: #set($group="XWiki.DCNM2009") 9: #set($maxActivity=1) 10: #foreach($item in $stats) 11: #set($userName = $xwiki.getUserName($item.name)) 12: #if($userName) 13: #set($user2 = $xwiki.getUser($item.name)) 14: #if($user2.isUserInGroup($group)) 15: #set($activityLevel=(4.00*$item.pageSaves+$item.pageViews)) 16: #if($activityLevel >= $maxActivity) 17: #set($maxActivity = $activityLevel) 18: #end 19: #end 20: #end 21: #end 22: <p style="line-height: 1.2"> 23: #foreach($item in $stats) 24: #set($userName = $xwiki.getUserName($item.name)) 25: #if($userName) 26: #set($user2 = $xwiki.getUser($item.name)) 27: #if($user2.isUserInGroup($group)) 28: #set($normalizedActivity=(4.00*$item.pageSaves+$item.pageViews)/$maxActivity) 29: #set($size=4+20*$normalizedActivity) 30: <span style="font-size:${size}pt">$userName, </span> 31: #end 32: #end 33: #end 34: 35: </p> 36: * [See the full statistics and photos of the community members>All+Members] 37: #if($stats.size() > 0) 38: #else 39: #end 40: #else 41: #end
Search
Search query
Quick Links
DSSF 2008
DCNM 2009
HCCF 2010
Document Index
Sandbox
Tag Cloud
11
2.0
3 guys and a girl
a1
a11
a12
a2
a3
Andrew Fischer
Android
applications
art
Assignment
ATLAS
awesome
Baird
bairdw
beer
bicycles
blog
bouldering
climbing
code
collaboration
Computer
computers
constructionism
content
Creations
creativity
Crowdsourcing
CS
CSCW
cycling
dcnm
design
dev
digital-imaging
digitaldivide
Directions
Distance
dssf
education
engineering
Facebook
facial-recognition
FourNames
Frisbee
geo-tagging
Google
googletalk
gPhone
GPL
grader
graphic
guerrero
guitar
HCCF10
HCCF2010
HCI
Hiphophipottomi
how to create a page
human
internet
iPhone
isaac
junior
koh
kyuhan
learning
lifelong-learning
MakeshiftCrew
Maps
media
meetings
mega-creativity
meta-design
metadesign
mobile-devices
mobile-health
motivation
music
name-tagging
networking
new
organizing-photographs
participation
people-tagging
Ph.D.
photoshop
profile
Project
projects
Python
Q1
Questionnaire
relationships
Science
snowboard
Snowboarding
social
social-capital
software
SQL
Storm Drain
storytelling
student
stuff
superkyle
TAM
Team Awesome
Team Cacti
Team3
Theoretical
Trevor Aparicio
trust-online
usability
USC
user-generated
Users
Walking
WE Love Peaches!!!
web
WeLovePeaches!!!
wiki