Foursquare 多重四方形';保存';一页上的按钮

Foursquare 多重四方形';保存';一页上的按钮,foursquare,microformats,Foursquare,Microformats,我正在一个网站上工作,该网站显示一个场馆列表,并希望为列表中的每个场馆添加一个四方“保存”按钮。是否可以在一个页面上显示多个Foursquare“保存”按钮?我尝试创建多个vCard块(每个场地一个)并在每个块中插入一个“保存”按钮,但没有提取位置。在检查了widgets.js和widgets.asyncbundle.js的源代码后,我发现将“保存到Foursquare”按钮的数据上下文设置为VCard的ID会将这两个链接起来。像这样: 阿姆斯特丹中央车站 车站乘客15 阿姆斯特丹, 阿姆斯特

我正在一个网站上工作,该网站显示一个场馆列表,并希望为列表中的每个场馆添加一个四方“保存”按钮。是否可以在一个页面上显示多个Foursquare“保存”按钮?我尝试创建多个vCard块(每个场地一个)并在每个块中插入一个“保存”按钮,但没有提取位置。

在检查了
widgets.js
widgets.asyncbundle.js
的源代码后,我发现将“保存到Foursquare”按钮的
数据上下文设置为VCard的ID会将这两个链接起来。像这样:


阿姆斯特丹中央车站
车站乘客15
阿姆斯特丹,
阿姆斯特丹,
1012AB
贾巴尔伯斯潘
贾巴尔伯斯潘
乌得勒支,
乌得勒支,
3521AL

但事实上,这并没有被记录下来,它可能会在不久的将来被更改。

保存到foursquare小部件的进行中文档可以访问@。随着时间的推移,它们会被清理干净,但应该足够好,可以帮助解决这个问题和将来与小部件相关的问题=)

特别是,有关您所需的“数据上下文”属性的文档将很快推送到链接页面。

尝试使用“数据视频”:



全在PartyRadio工作室
歌唱音乐厅
复古克卢布
蒂萨·杜克
佐尔德·茨里亚夫·库尔特·帕尔特 (功能(){ 窗口。uuuu fourSq={“uid”:“606”}; var s=document.createElement('script'); s、 类型='text/javascript'; s、 src='1〕http://platform.foursquare.com/js/widgets.js'; s、 异步=真; var ph=document.getElementsByTagName('script')[0]; ph.parentNode.insertBefore(s,ph); })();
一定要使用class=“vcard”(而不是像4q文档中那样使用class=“vcard”),这对我的博客很有用。我有一个参观的地方的清单,他们现在工作得很好。希望德4sq团队在未来构建一个更好的解决方案,像一个隐藏的文本字段一样,将文本字段的值作为场地的URL。这可以减少页面作者的工作量,效果非常好。请注意,如果您是一个组织,vcard格式有点不同:父元素上的class=“org fn”,然后包含组织名称的子元素上的class=“organization name”。使用此功能,我可以让我们的两个博物馆位置显示相对的4Square保存按钮。文档中没有提到页面上多个按钮的
数据上下文
属性,因此,提到这一点,说“但应该足够好,以帮助这个和未来的小部件相关的问题”是没有帮助的..文档将很快更新,包括attributeOk,不知道你是4sq的工作,无论如何,当您知道文档没有包含属性时,将文档作为解决方案来提及仍然是一种误导。再加上你的回答,这将很快在文档中描述,我将撤销我的否决票。
 <!-- Place this anchor tag where you want the button to go -->
<br />
All In PartyRadio Studio<a href="https://foursquare.com/intent/venue.html" class="fourSq-widget" data-vid="50575a55e0e27c7feb062116">Save to foursquare</a>
<br />
Sing Sing Music Hall<a href="https://foursquare.com/intent/venue.html" class="fourSq-widget" data-vid="4d47d1fe2165721ebe9ac0d7">Save to foursquare</a>
<br />
Retro Klub<a href="https://foursquare.com/intent/venue.html" class="fourSq-widget" data-vid="4d437d813616b60c2764dac2">Save to foursquare</a>
<br />
Tisza Dokk<a href="https://foursquare.com/intent/venue.html" class="fourSq-widget" data-vid="4f73231de4b0e3a99689cc61">Save to foursquare</a>
<br />
Zöld Zsiráf Kultúrpart<a href="https://foursquare.com/intent/venue.html" class="fourSq-widget" data-vid="4ffad97ef13633933ececa5f">Save to foursquare</a>

<!-- Place this script somewhere after the anchor tag above. If you have multiple buttons, only include the script once. -->
<script type='text/javascript'>
  (function() {
    window.___fourSq = {"uid":"606"};
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.src = 'http://platform.foursquare.com/js/widgets.js';
    s.async = true;
    var ph = document.getElementsByTagName('script')[0];
    ph.parentNode.insertBefore(s, ph);
  })();
</script>