Tweet.js-Mod icon indicating copy to clipboard operation
Tweet.js-Mod copied to clipboard

A small update to enable passing extra parameters with the request

Open maimairel opened this issue 12 years ago • 2 comments

I'm integrating a slightly modified version of your tweet-js php script into Wordpress. The PHP script will then be able to fetch the API keys from the Wordpress options.

The change in the JS file I made is to accommodate Wordpress AJAX requests that needs an extra 'action' parameter.

Thanks :)

maimairel avatar Jun 12 '13 16:06 maimairel

Unfortunately this doesn't help me. I need to find a way to include my theme options in index.php file as StanScates suggested... This is the easiest way.

// get all theme options 
include (TEMPLATEPATH . '/framework/theme-files.php'); // this will get global variables from theme options

But the problem is that my theme_get_option function for every field (consumer key, consumer secret and so on) is not recognized.

Regards

Anyway thanks a lot for your answer and time.

Qodux avatar Jun 14 '13 11:06 Qodux

Well finally I found the solution...

For those who are trying to integrate Tweet.js-Mod with WP and get the 4 key’s from theme options…

http://pastebin.com/cm6bDM2k

Hope this helps and saves your itme…

Qodux avatar Jun 17 '13 08:06 Qodux