Changes for page TwitterMacros

Last modified by Ludovic Dubost on 2009/01/02 17:09

From version 9.1
edited by Ludovic Dubost
on 2009/01/02 16:42
Change comment: There is no comment for this version
To version 8.1
edited by Ludovic Dubost
on 2009/01/02 16:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,11 +2,10 @@
2 2   * Twitter macros allowing to display twitter data
3 3   *#
4 4  
5 -#macro(twitter_display $list $nb $withuser)
5 +#macro(twitter_display $list $withuser)
6 6  {pre}
7 7  <table>
8 8  #foreach($msg in $list)
9 -#if($velocityCount<$nb)
10 10  <tr>
11 11  <td style="border: 0px; border-bottom:1px dashed #D2DADA;">
12 12  #if($withuser)<a href="$msg.user.URL">$msg.user.name</a>#end $msg.text
... ... @@ -14,25 +14,24 @@
14 14  </td>
15 15  </tr>
16 16  #end
17 -#end
18 18  </table>
19 19  {/pre}
20 20  #end
21 21  
22 22  
23 -#macro(twitter_search $text $nb)
21 +#macro(twitter_search $text)
24 24  #if(!$twitter)
25 25  #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy"))
26 26  #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008"))
27 27  #end
28 -#twitter_display($tg.search($text) $nb true)
26 +#twitter_display($tg.search($text) true)
29 29  #end
30 30  
31 -#macro(twitter_user $user $nb)
29 +#macro(twitter_user $user)
32 32  #if(!$twitter)
33 33  #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy"))
34 34  #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008"))
35 35  #end
36 -#twitter_display($twitter.getUserTimeline($user) $nb false)
34 +#twitter_display($twitter.getUserTimeline($user) false)
37 37  #end
38 38