WordPress Flickr Tag Plugin V1.1 으로 업그레이드

WordPress Plugin인 Flickr Tag에 Lightbox Plugin 이용시 원본 파일 사이즈를 정할 수 있게 하는 방법에서 수정한 Flickr Tag에서 최근 Flickr가 Medium Size로 기존의 500과 새로 추가된 640 Medium에 대해서 추가된 수정본입니다.

1. 수정된 전체 Flickr Tag Plugin V1.1은 이것은 제가 수정한 Flickr Tag에 있습니다.

2. 다음은 V1.0과 V1.1의 diff 된 파일입니다.

  • FlickrTagAdmin.php

    --- flickr-tag-youngwhan/FlickrTagAdmin.php 2009-09-27 17:39:50.000000000 -0600
    +++ flickr-tag-v1.1/FlickrTagAdmin.php  2010-11-20 18:16:30.000000000 -0700
    @@ -72,11 +72,12 @@
     >
     
     <select size=1 name="flickr_tag_<?php echo $entity; ?>_size">
    -    <option value="square" <?php if($this->request[$entity . '_size'] == "square") echo "selected"; ?>>Square (75 x 75 pixels)</option>
    -    <option value="thumbnail" <?php if($this->request[$entity . '_size'] == "thumbnail") echo "selected"; ?>>Thumbnail (100 x 75 pixels)</option>
    -    <option value="small" <?php if($this->request[$entity . '_size'] == "small") echo "selected"; ?>>Small (240 x 180 pixels)</option>
    -    <option value="medium" <?php if($this->request[$entity . '_size'] == "medium") echo "selected"; ?>>Medium (500 x 375 pixels)</option>
    -    <option value="large" <?php if($this->request[$entity . '_size'] == "large") echo "selected"; ?>>Large (1024 x 768 pixels)</option>
    +    <option value="square" <?php if($this->request[$entity . '_size'] == "square") echo "selected"; ?>>Square (75 x height pixels)</option>
    +    <option value="thumbnail" <?php if($this->request[$entity . '_size'] == "thumbnail") echo "selected"; ?>>Thumbnail (100 x height pixels)</option>
    +    <option value="small" <?php if($this->request[$entity . '_size'] == "small") echo "selected"; ?>>Small (240 x height pixels)</option>
    +    <option value="medium" <?php if($this->request[$entity . '_size'] == "medium") echo "selected"; ?>>Medium (500 x height pixels)</option>
    +    <option value="medium 640" <?php if($this->request[$entity . '_size'] == "medium640") echo "selected"; ?>>Medium (640 x height pixels)</option>
    +    <option value="large" <?php if($this->request[$entity . '_size'] == "large") echo "selected"; ?>>Large (1024 x height pixels)</option>
         <option value="original" <?php if($this->request[$entity . '_size'] == "original") echo "selected"; ?>>Original (varies in size)</option>
     </select>
     
    @@ -92,11 +93,12 @@
     >
     
     <select size=1 name="flickr_tag_<?php echo $entity; ?>_actualsize">
    -    <option value="square" <?php if($this->request[$entity . '_actualsize'] == "square") echo "selected"; ?>>Square (75 x 75 pixels)</option>
    -    <option value="thumbnail" <?php if($this->request[$entity . '_actualsize'] == "thumbnail") echo "selected"; ?>>Thumbnail (100 x 75 pixels)</option>
    -    <option value="small" <?php if($this->request[$entity . '_actualsize'] == "small") echo "selected"; ?>>Small (240 x 180 pixels)</option>
    -    <option value="medium" <?php if($this->request[$entity . '_actualsize'] == "medium") echo "selected"; ?>>Medium (500 x 375 pixels)</option>
    -    <option value="large" <?php if($this->request[$entity . '_actualsize'] == "large") echo "selected"; ?>>Large (1024 x 768 pixels)</option>
    +    <option value="square" <?php if($this->request[$entity . '_actualsize'] == "square") echo "selected"; ?>>Square (75 x height pixels)</option>
    +    <option value="thumbnail" <?php if($this->request[$entity . '_actualsize'] == "thumbnail") echo "selected"; ?>>Thumbnail (100 x height pixels)</option>
    +    <option value="small" <?php if($this->request[$entity . '_actualsize'] == "small") echo "selected"; ?>>Small (240 x height pixels)</option>
    +    <option value="medium" <?php if($this->request[$entity . '_actualsize'] == "medium") echo "selected"; ?>>Medium (500 x height pixels)</option>
    +    <option value="medium640" <?php if($this->request[$entity . '_actualsize'] == "medium640") echo "selected"; ?>>Medium (640 x height pixels)</option>
    +    <option value="large" <?php if($this->request[$entity . '_actualsize'] == "large") echo "selected"; ?>>Large (1024 x height pixels)</option>
         <option value="original" <?php if($this->request[$entity . '_actualsize'] == "original") echo "selected"; ?>>Original (varies in size)</option>
     </select>
     
  • FlickrTagCommon.php

    --- flickr-tag-youngwhan/FlickrTagCommon.php    2009-09-27 17:40:12.000000000 -0600
    +++ flickr-tag-v1.1/FlickrTagCommon.php 2010-11-20 18:12:01.000000000 -0700
    @@ -63,6 +63,7 @@
        "thumbnail" => "_t",
        "small" => "_m",
        "medium" => "",
    +   "medium640" => "_z",
        "large" => "_b",
        "original" => "_o"
     );
    @@ -72,6 +73,7 @@
          "thumbnail" => "_t",
          "small" => "_m",
          "medium" => "",
    +     "medium640" => "_z",
          "large" => "_b",
          "original" => "_o"
      );
    
  • FlickrTagEngine.php

    --- flickr-tag-youngwhan/FlickrTagEngine.php    2009-09-27 17:39:40.000000000 -0600
    +++ flickr-tag-v1.1/FlickrTagEngine.php 2010-11-20 18:18:54.000000000 -0700
    @@ -116,7 +116,7 @@
          'photoset_id'       => $param,
          'privacy_filter'    => 1, // public
          'method'        => 'flickr.photosets.getPhotos',
    -     'extras'        => 'original_format',
    +     'Extras'        => 'original_format',
          'format'        => 'php_serial'
      );
    

3. 다음은 Screenshot 입니다.
Screen shot 2010-11-20 at 6.10.15 PM

You May Also Like

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다