186 posts
    Has been part of the Envato Community for over 2 years Has sold $1+ on Envato Market Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
+1 more
ThemeBuddies says

how are you adding twitter to themes and templates now. I have been looking at it but it looks like you have to include secret keys and other things. Is this stuff safe to upload with a template? How is it done with the new API?

296 posts
    Has referred 1+ members Has sold $10,000+ on Envato Market Has collected 50+ items on Envato Market Made it to the Authors' Hall of Fame
+3 more
CodeFusion says

Create the widget/plugin/script as you normally would (using the new API) – just set the keys as variables that the purchaser must fill in.

I would not distribute the theme with your personal keys! But it is safe (with read only permissions) to use them on the demo.

186 posts
    Has been part of the Envato Community for over 2 years Has sold $1+ on Envato Market Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
+1 more
ThemeBuddies says

The only way I have been able to get it work on the html site is by turning all the pages into php files and using php to display things. This makes it a little harder to preview the pages because you have to have a server set up. Is there an easier way? So I will be uploading a template soon but they will all be php files because of the php used to display the twitter feed.

296 posts
    Has referred 1+ members Has sold $10,000+ on Envato Market Has collected 50+ items on Envato Market Made it to the Authors' Hall of Fame
+3 more
CodeFusion says

With PHP you can Fetch and manipulate the tweets in PHP then echo out a json string. In your HTML, using JS and aJax to decode and parse the json string into your HTML template.

I’ve never tried Twitters new API (1.1) without PHP. According to their developers library page it’s possible. They link to these 3 libraries.

https://github.com/BoyCook/TwitterJSClient
https://github.com/aivis/user-stream
https://github.com/b2arn/noauth

186 posts
    Has been part of the Envato Community for over 2 years Has sold $1+ on Envato Market Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
+1 more
ThemeBuddies says

Thanks for the information.

by
by
by
by
by
by