isDisabled()) { $this->_errors[] = __('Sorry, this plugin cannot currently be used.', $this->_slug); switch ($wpFlickrEmbed->isDisabled()) { case self::DISABLED_REASON_CURL_FOPEN: $this->_errors[] = __('Your version of PHP does not support curl, and allow_url_fopen is disabled.
Thus is preventing Flickr authentication.', $this->_slug); break; case self::DISABLED_REASON_PHP_VERSION: $this->_errors[] = __('This plugin requires PHP 5.2 or above.', $this->_slug); break; } } // flickr auth result $authResult = @$_GET['auth_result']; if ('success' === $authResult) { $this->_messages[] = __('Flickr authorization successful.', $this->_slug); } else if ('fail' === $authResult) { $this->_errors[] = __('Oops, something went wrong whilst trying to authorize access to Flickr.', $this->_slug); } } /** * Handle form submissions. */ public function handleFormSubmissions() { global $wpFlickrEmbed; if ('clear_flickr' === $_POST['action']){ $wpFlickrEmbed->clearFlickrAuthentication(); $this->_messages[] = __('Flickr authorization cleared', $this->_slug); } else if ('update' === $_POST['action']){ $wpFlickrEmbed->update_settings($_POST); $this->_messages[] = __('Options updated', $this->_slug); } unset($_POST['action']); } /** * Show options form. */ public function drawAdminForms() { add_meta_box( $this->_slug . '-flickr-auth', __( 'Flickr authorization', $this->_slug ), array( &$this, 'drawFlickrAuthMetaBox' ), $this->_slug, 'normal'); add_meta_box( $this->_slug . '-options', __( 'Options', $this->_slug ), array( &$this, 'drawOptionsMetaBox' ), $this->_slug, 'normal'); do_meta_boxes($this->_slug, 'normal', ''); } /** * Callback for rendering flickr auth meta box. */ public function drawFlickrAuthMetaBox() { global $wpFlickrEmbed; ?> authenticatedWithFlickr()): ?>
_slug) ?>: settings[self::FLICKR_USER_NAME]); ?>
_slug) ?>: settings[self::FLICKR_USER_NSID]); ?>

_slug) ?>

_slug) ?>: settings[self::OPTION_PHOTO_LINK]) { ?>checked="checked" />
settings[self::OPTION_PHOTO_LINK]) { ?>checked="checked" />
settings[self::OPTION_PHOTO_LINK]) { ?>checked="checked" />
_slug) ?>:
_slug); ?>
_slug) ?>:
_slug); ?>

drawWidebarWidget('wp-flickr-embed-support', 'Need help?', array(&$this, 'drawSidebarSupportWidget')); $this->drawWidebarWidget('wp-flickr-embed-spread-word', 'Spread the word!', array(&$this, 'drawSidebarSpreadWordWidget')); } /** * Draw a sidebar widget. * * @param string $id ID of the widget. * @param string $title Title of the widget. * @param string $contentFn Callback for content. */ private function drawWidebarWidget( $id, $title, $contentFn ) { ?>

If you are having problems with this plugin, please ask a question in the support forums.

Want to help make this plugin even better? All donations are used to improve this plugin, so please donate $5, $10 or $20!

Or you could: