Member
Member
jesse   2012-12-10, 02:32
#1

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

Member
Member
jesse   2012-12-10, 02:35
#2

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

Member
Member
jesse   2012-12-10, 03:35
#3

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 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!

Administrator
Administrator
acrylian   2012-12-10, 10:25
#4

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.