Insert latest Twitter update as Gallery Description

Hi.

Any ideas how I could go about having Zenphoto pull my latest twitter status in and display it as my 'Gallery Description' on the front page?

Thanks,

Jesse

Comments

  • Just clarifying I *did* search and found dead links pointing to "ZenTwitter"
    http://www.zenphoto.org/support/topic.php?id=6445

    Thanks!

    Edit:
    I found this on pulling the Twitter feed using PHP, but so far cannot figure out where I would put this code to have it display. I'm using the default theme.

    "Add a Twitter Feed with PHP"
    http://blog.ninanet.com/2010/04/19/twitter-feed-with-php
  • and... I seem to be solving my own problem, so I'll share.

    Ninanet's code is great.
    I dropped the php part into the <head> area of the default theme's index.php file.
    Further down I found the "gallery description" insert point, deleted that line, and replaced it with the HTML from nina's code.
    Took a bit of tweaking (I removed the text so that only the twitter content shows, reformatted it a bit) but it works.
    post here if you'd like more description though I'm sure most of you know far more than me.

    Thanks!
  • acrylian Administrator, Developer
    You also could have read the theming tutorial to learn the basics of Zenphoto themes first..:-)

    NOTE: That this solution uses the RSS feed Twitter bascially secretly provides for each account. This will break soon as Twitter has announced its new API a while ago and announced to abandon RSS and other things after a grace period:
    https://dev.twitter.com/docs/api/1.1/overview#JSON_support_only
    You then will have to use the OAuth API to do what you wish or use the widgets Twitter provides.
Sign In or Register to comment.