StanScates / Tweet.js-Mod

Basic wrapper for Seaofclouds / Tweet.js that incorporates functionality with Twitter's v1.1 API
MIT License
234 stars 103 forks source link

Getting user info from WordPress Widget #34

Open mtburdon opened 11 years ago

mtburdon commented 11 years ago

Hi there,

I've been using tweet.js to implement Twitter into an existing WordPress widget I have created however I'm having difficulty getting the users info (consumer key etc) from the widget to the index.php file.

I've set up fields for the user to add their info in, that's working fine, however it's the passing the info to the index.php file I'm having difficulty with.

I've added another param to the call so when initiating the library in my widget file, as well as passing in the username, modpath etc, I can add the consumer key on. This can then be retrieved in the jquery.tweet.js file and used by putting s.consumer_key.

As you know though, I need to add the consumer key and other info into the index.php file. I've tried my best however PHP is not my strongest language, so any help would be greatly appreciated.

Cheers, Martin