190 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.

190 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

190 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by