Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Twitter widget obsolete #48

Open
nukeador opened this issue Jul 3, 2013 · 5 comments
Open

Twitter widget obsolete #48

nukeador opened this issue Jul 3, 2013 · 5 comments
Labels
Milestone

Comments

@nukeador
Copy link
Member

nukeador commented Jul 3, 2013

Twitter widget code is not obsolete, we need to use the new code.

@ghost ghost assigned nukeador Jul 3, 2013
@nukeador
Copy link
Member Author

nukeador commented Jul 3, 2013

I tried using the new code:

{% load i18n %}
<a class="twitter-timeline" width="600" height="500" data-chrome="nofooter transparent" data-link-color="#264373" href="https://twitter.com/search?q=%23{{ event.twitterTag }}">{{ event.name }}</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>
</script>

But it seems the new API doesn't allow dynamic widgets, you have to create them on twitter site and then get a unique data-widget-id

http://dev.twitbridge.com/discussions/15463

WTF?

@francjp
Copy link

francjp commented Apr 19, 2014

So we cannot add the hashtag of the event??, Reps portal has that integrated, so it should be a nice feature to have in the events page.

@nukeador
Copy link
Member Author

I can't find where the reps events show tweets.

We can, however, just link to the twitter hashtag page

@francjp
Copy link

francjp commented Apr 21, 2014

My mistake, only shows flickr photos with the hashtag, and then a "share" button.
I would suggest the "share" option instead of the hashtag page.

@nukeador
Copy link
Member Author

We already have a "Tweet" button at the top of each event.

@nukeador nukeador removed their assignment Apr 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants