0

I have a website in Drupal and I wants same look of twitter widget as in https://www.stanford.edu/ .

There is a module also available in Drupal for Twitter i.e "Drupal feed".

https://www.stanford.edu/ site is mentioned in this module also.

So please help me out so that i can get same look..

Thanks in Advance..

Note : The code i am using is given below.

<a class="twitter-timeline"  href="https://twitter.com/tweettestwidget" data-widget-id="603417854055034880" data-chrome="noheader nofooter noborders transparent" data-tweet-limit="1" data-conversation="none">Tweets by @tweettestwidget</a><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>

4

1 回答 1

0

我使用 Twitter 模块创建了一个类似的 Twitter 提要。 https://www.drupal.org/project/twitter

你可以在这里看到我创建的提要http://gekkos.com

然后,您可以使用视图显示 Twitter 提要。然后使用视图模板来设置输出样式。

例如,我的视图模板文件是views-view-fields-tweets--block.tpl.php

<div class="tweet">
<p><a target="_blank" href="https://twitter.com/<?php print $fields['screen_name']->content;?>"><?php print $fields['screen_name']->content;?></a> <?php print $fields['text']->content;?> - <em><?php print $fields['created_time']->content;?></em></p>

然后只需使用 CSS 设置输出样式。

于 2015-06-01T04:28:18.967 回答