Upload SWF file in wordpress

Here is the code to Upload swf file in wordpress. function swf_upload($mimes) { if (function_exists(‘current_user_can’)){ $unfiltered = $user ? user_can($user, ‘unfiltered_html’) : current_user_can(‘unfiltered_html’); } if (!empty($unfiltered)) { $mimes[‘swf’] = ‘application/x-shockwave-flash’; } return $mimes; } add_filter(‘upload_mimes’, ‘swf_upload’); We can use Kimili Flash plugin to embed the flash file.

Read More…

Migrate Twitter API from Version 1 to 1.1

My twitter feed response is started showing below message when i was tried to access users_timeline using this URL https://api.twitter.com/1/statuses/user_timeline.xml?include_entities=true&include_rts=true&screen_name=karthi0110&count=1 “The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.” I have tried by replacing version 1 to 1.1 in the request URL https://api.twitter.com/1.1/statuses/user_timeline.xml?include_entities=true&include_rts=true&screen_name=karthi0110&count=1 it shown “Bad Authentication data” error. […]

Read More…