-
AuthorPosts
-
January 14, 2013 at 9:36 pm #183991
Hi!
I’m trying to display a single tweet (ie the latest tweet from my twitter-account) as a blockquote in the user5 position. I found several guides on the internet, all using the twitter API (which I prefer), but I don’t have succes up to now.
Look for example at http://visualharmonydesign.com/blog/online-marketing/show-your-latest-twitter-post-on-your-website/. That is a fairly simple guide (however, it uses twitter.com/statuses, which should be twitter.com/1/statuses).
It states that you add
<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>
<script src="http://twitter.com/statuses/user_timeline/your_username.json?callback=twitterCallback2&count=1" type="text/javascript"></script>
right before the </ body> tag.When I paste the script lines in default.php (copied that one to /templates/ja_mendozite/page) and add
<div id="twitter_div"><ul id="twitter_update_list"><li> </li></ul></div>
to a custom-html module in position user5, nothing happens, only the title of the module is displayed.Any-one got a clue?
I got the code in default.php right: when I look at the page with google chrome, and choose inspect element, and follow the links in the script, I end up dead-right on blogger.js and when i follow the second link I get my latest tweet. Mind you: in chrome, using inspect element, it is not displayed on the site!
Luna Garden Moderator
Luna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
January 16, 2013 at 9:51 am #480003Hello Rikbollen,
I don’t think that code would work at all, it’s kind of old. Did you try this code in default template of Joomla to see if it works ?
For an easy way, we do have a module support to show your tweets from your account Twitter.
Here is download link: http://www.joomlart.com/forums/downloads.php?do=file&id=3219
and the user guide: http://www.joomlart.com/forums/topic/ja-twitter-module-for-joomla-2-5-userguide/
January 16, 2013 at 10:15 pm #480080Luna,
Thank you for your reply! This looks promissing… Gonna wrestle with it a bit. Setting up looks pretty straight-forward, I’ll probably will have some probs styling it as a blockquote (being a noob!) but when I need help, I surely will look for it here!
Thank you again!
Rik
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by rikbollen 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
