Home > Flickrの写真をWordpressの記事に直接貼り付けるプラグイン

Flickrの写真をWordpressの記事に直接貼り付けるプラグイン

  • 2008-03-31 (月) 23:45
  • | |

* Added screencast!
※スクリーンキャストを追加しました。英語表記ですが、
日本語版Wordpressをお使いの方はもちろん日本語表記が行なわれます。)

Wordpress 2.5 のリッチエディターにて、Flickr の写真を選択してエディター上に貼り付けられるプラグイン「Wordpress Media Flickr 1.0.0」をリリースします。

必要なもの

  • Wordpress 2.5
  • Flickrアカウント

動作確認環境

  • Internet Explorer 6, 7
  • FireFox 2.0.0.13
  • Safari 3.1

ダウンロード

インストール方法

アーカイブをダウンロードし展開後、ディレクトリごと /wp-content/plugins にコピーします。 あとはWordpressの管理画面にて「Wordpress Media Flickr」プラグインを有効にするだけです。

Wordpress Media Flickrの設定

管理画面の「設定」から「Media Flickr」を選択します。 画面の流れに従ってFlickrの利用認証を行うと、記事の投稿画面から自分の写真を貼り付けることができます。

Flickrの写真を記事に貼り付ける

記事の投稿画面のツールバーにFlickrアイコンが増えているかと思います。これをクリックするとWordpress Media Flickrのダイアログが表示されます。

自分の写真や全体の写真を検索し、写真をクリックすると写真の位置を選択する画面が表示されます。位置を選択後「挿入」をクリックすることで記事に貼り付けることができます。

また写真一覧の写真タイトルの左にあるアイコンをクリックすることで、新しいウィンドウが開かれ写真をFlickrで確認することができます。

不具合や要望など

不具合やご意見、ご要望などありましたらコメントやメールいただければと思います。

Let’s enjoy Flickr!

※ちなみに私はあまりFlickrを活用できていません…

Comments:31

Jeremy 08-04-03 (木) 12:37

Had an issues with the plugin because it was using file_get_contents which was turned off (blocked) by my hosting provider (1and1). I renamed the function to my_file_get_contents and put this function at the top of the file wp-media-flickr.php:

function my_file_get_contents($url) {
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
return $file_contents;
}

I was then able to authenticate and properly use the plugin when adding a post. Thanks for a great plugin.

Jeremy

Painter - Anders Rehn 08-04-14 (月) 12:45

Hello and thanks for a nice plugin!

I think that Flickr has disabled your API key.
When I click on “Flickr Authenticate” in my Wordpress admin, I get transported to flickr.com and see the error message:
“Oops! The API key or signature is invalid.”

I did signup for my own API key, but I guess that is useless?

Regards,
Anders.

Emo 08-04-16 (水) 1:01

Hi, what changes should i make in order to make this plugin automatically add a class=”lightview” when I instert a flickr picture in my post?
I´ve been playing with wp-media-flickr.js but had no success.
Thanks

Mosey 08-04-18 (金) 11:26

I must be really dim, but when I click on ‘Flickr Authenticate’ the browser doesn’t do anything. I”m trying this on Firefox 2.0.0.14 and am about to try it on IE.

Mosey 08-04-18 (金) 11:34

Just to confirm that Jeremy’s fix worked for me (see Comment #1) A big thank you! :)

yu-ji 08-04-20 (日) 19:10

I was released new version “1.0.2″, try it.

> Jeremy

I fixed this problem, thank you.

> Anders

Please check the new version, maybe fix..

> Emo

I was added function of customize “rel” attribute of link tag.
Please check the new version.

Thank you use my plugin.
Enjoy.

Emo 08-04-21 (月) 0:45

Great!, thanks!! I really appreciate your help. Will try it in a few minutes

Emo 08-04-21 (月) 1:16

I´ve tryied your new version. There´s one little thing that would make it even better. Im using lightview instead of lightbox. It would be great to be able to add some setting options for both as most people use them.
The difference between lightbox is that it´s activated when you add rel=”lightbox” to a link, and lightview is activated with ”
class=”lightview”
Also lightbox allows you to create a gallery by adding rel=”lightbox[galleryname], and lightview by adding class=”lightview” rel=”gallery[galleryname]”

Would this be possible?

Thanks!

yu-ji 08-04-21 (月) 19:26

ok.
I will add function of customize class attribute.

Thank you.

tpalice 08-04-22 (火) 14:12

Hello,
Thank you for this wonderful plug-in! I use flickr all the time, and this plug-in makes it very easy to put flickr photos in my blog.

I would also love to see using lightview as a possible way to display photos in my blog. Hope to see this customization soon.

Cheers!

Prasannah 08-04-23 (水) 21:52

I did make the changes like in the #1 comment and this is the error I got:

User informations

Please authorization according to the following instruction.
Fatal error: Call to undefined function curl_init() in C:\XAMPP\htdocs\blog\wp-content\plugins\wordpress-media-flickr\wp-media-flickr.php on line 12

Emo 08-04-24 (木) 9:42

Great, will be around waiting for the new version.

Thanks!

Prasannah 08-04-24 (木) 18:06

Greetings.Great plugin. I’ve also tried Jeremy’s (Comment #1) idea and I get the Error from flickr that the API is invalid! :-(

Please help!

Mosey 08-04-26 (土) 18:20

With reference to the comment dated (08-04-20 (日) 19:10) - it seems it’s already been fixed?

yu-ji 08-04-28 (月) 0:10

Hi.

The Jeremy’s fix(Comment #1) was inside at version 1.0.2.
Please try again 1.0.2.

The next version is under coding.
Please wait few days, thank you.

Manuel 08-04-28 (月) 4:26

Hey, thank you for your flickr Plug In, I had only one problem with it. If I try to connect it with my flickr account, flickr tell me the API is wrong. Did you know something about this problem?

regards
Manuel

Prasannah 08-04-28 (月) 10:08

I do have version 1.0.2 and still I get the ‘Invalid API’ error. What could be wrong?

yu-ji 08-04-28 (月) 12:47

>Manuel and Prasannah
Please tellme URL of ‘Invalid API’ in flickr?
NOTE: I tested php4, but no problems.

thank you.

Prasannah 08-04-29 (火) 9:32

This is the problematic URI:

http://www.flickr.com/services/auth/?api_key=448e0602a1f453c0e668e701f4bf8924&perms=read&api_sig=8634f45ba191202f13be7a9c1a51966f

Mosey 08-04-29 (火) 16:23

To confirm it worked for me in php5.

Prasannah 08-04-29 (火) 22:56

Well it didn’t work for me! I couldn’t figure out why!!

yu-ji 08-04-29 (火) 23:53

I was released version 1.0.3.
Please check out, thank you.

If your PHP is not supported curl and allow_url_open option is disabled, Flickr authentication is cannot use, sorry…

Prasannah 08-04-30 (水) 0:02

I know for sure that curl and allow_url_open are supported in my server because I have seen other plugins use that. But now I still cannot get authorization from flickr. The same error! TOTALLY CLUELESS!

Emo 08-04-30 (水) 0:37

Yu-Ji, this is GREAT! Just GREAT.
Two things I think are missing:
1) An option to open the original image (bigger) size and not the same that you are showing. Take a look at http://www.fotogeek.com.ar/test-725.htm When you click on the first image it will open it using lightview but in the same size as the “thumbnail”. It should open a bigger size.

If you click on the second image it will open lightview and inside will show the Flickr Page of that image.

Those are the 2 options you added in “Link of photo”. I think there should be a way to open a bigger size version of the image.
2) Maybe an autoupdate option so we can update de plugin using the autoupdate option from the admin control panel? This isn´t really necessary but it would be very useful.

THANKS!!!

Prasannah 08-04-30 (水) 19:48

An update. Without authenticating if I try to use your plugin, it gets some random pictures from flickr (or maybe they’re from your album!?) and I am able to insert them into my posts. Anyways, I am still facing trouble with authenticating it!

yu-ji 08-05-01 (木) 11:55

>Prasannah

Ok, please report contents displayed in the following procedures.

1. Add following lines in wp-config.php
> if(!empty($_GET['page']) && $_GET['page'] == ‘wordpress-media-flickr/wp-media-flickr-admin.php’) {
> define(’DEBUG’, true);
> }

2. Request following URL.
> http://yourdomain/yourblogpath/wp-admin/options-general.php?page=wordpress-media-flickr/wp-media-flickr-admin.php

3. If page is showing errors, copy errors and report here.

4. Rollback wp-config.php

Thank you.

Prasannah 08-05-01 (木) 15:17

I followed those steps and I found NO change at all! I get the normal plugin options page, and when I click on Flickr authenticate, I get the SAME error again!
Oops! The API key or signature is invalid.

Mosey 08-05-02 (金) 4:42

@Prasannah: With all due respect, I think Yu-Ji’s comment was to see if your server/host listed any errors upon loading the WP Media Flickr, admin page, rather than asking you to make the change (which would make no difference as it is actually just code for ‘listing errors’ during code debugging, errors which are not usually shown) and expect a difference.

My experience: I have just downloaded v1.0.3 and tested the installation procedure on WP 2.5.1 (server host has PHP Version 5.2.x and mySQL 5.0.xx) with no problems authenticating to Flickr. Although CURL is enabled, allow_url_fopen has been turned off.

Prasannah 08-05-02 (金) 9:24

@Mosey:
Oh I did not know that man! Sorry! I too run PHP5 with curl enabled. Not sure about allow_url_fopen. I am confused with myself being the ONLY person with this problem!!

Mosey 08-05-02 (金) 9:35

@Prasannah: No worries. Did the debug code throw up any errors or messages for you at all? I think anything from there would be the most useful for the developer, Yu-Ji.

I’m not sure if you were the only person, a “Manuel” mentions having the same authentication issue as well.

And for the next part: I presume this is what you’re aware of already, so apologies for mentioning it if you do: if you visit e.g. http://help.mosso.com/article.php?id=082 and copy/paste the code in the middle (between the blurb) to a new page called e.g. ’something.php’, after uploading it to your server, you can load the file up in your browser and look for allow_url_fopen.

Prasannah 08-05-02 (金) 17:56

@Mosey:
Yeah I do know about phpinfo!! Let me show you mine ->
http://pastebin.ca/1004730

OpenIDでログインできます URL:

Comment Form
Remember personal info

*
表示されている文字を入力してください(大文字・小文字区別無し)
Anti-Spam Image

Trackbacks:2

Trackback URL for this entry
http://factage.com/yu-ji/2008/03/31/wordpress-media-flickr-1_0_0/trackback/
Listed below are links to weblogs that reference
Flickrの写真をWordpressの記事に直接貼り付けるプラグイン from yujilog
trackback from ラワンクルの「新・日記のある暮らし」 08-04-18 (金) 19:51

Flickrの写真をWordpressの記事に直接貼り付けるプラグインを試す

WordPress ME2.2.3からWordPress 2.5にバージョンアップ後、さっそく、試しにFlickrの写真をWordpressの記事に直接貼り付けるプラグインを使ってみました。

trackback from my confidence… 08-05-01 (木) 16:44

Flickrの写真をWordpressの記事へはりつける〜Wordpress Media Flickr〜

Flickrまわりの便利なものを探しているとき、たまたま見つけたプラグイン。
Flickrの写真を自分のブログ(Wordpress)に呼び出して記事に貼り付けることができます。
※WP2.5以上でないと動か…

Home > yujilog > Flickrの写真をWordpressの記事に直接貼り付けるプラグイン

アーカイブ
  • 2008年
    01 02 03 04 05 06
    07 08 09 10 11 12
  • 2006年
    01 02 03 04 05 06
    07 08 09 10 11 12
  • 2005年
    01 02 03 04 05 06
    07 08 09 10 11 12
  • 2004年
    01 02 03 04 05 06
    07 08 09 10 11 12
タグクラウド
Spam Blocked

Return to page top