Changes for page Twitter User Feed Macro

Last modified by Ludovic Dubost on 2023/04/25 09:12

From version 10.1
edited by Ludovic Dubost
on 2016/05/26 19:00
Change comment: There is no comment for this version
To version 8.1
edited by Ludovic Dubost
on 2016/05/26 18:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,8 +1,8 @@
1 1  This macro displays a twitter user feed:
2 2  
3 3  {{code}}
4 -{{twitter_user user="ldubost" id="735876381935054848" /}}
4 +{{twitter_user user="ldubost" /}}
5 5  {{/code}}
6 6  
7 -{{twitter_user user="ldubost" id="735876381935054848" /}}
7 +{{twitter_user user="ldubost" /}}
8 8  
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,7 +1,7 @@
1 1  {{velocity}}
2 2  {{html clean=false}}
3 3  #set($user = $xcontext.macro.params.user)
4 -<a class="twitter-timeline" href="https://twitter.com/${user}" data-widget-id="${id}">Tweets de @${user}</a>
4 +<a class="twitter-timeline" href="https://twitter.com/${user}" data-widget-id="">Tweets de @${user}</a>
5 5  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
6 6  {{/html}}
7 7  {{/velocity}}
XWiki.WikiMacroParameterClass[1]
Parameter description
... ... @@ -1,1 +1,0 @@
1 -Id of the feed (to create your feed go to https://twitter.com/settings/widgets/)
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -Yes
Parameter name
... ... @@ -1,1 +1,0 @@
1 -id