Plugin Directory

Changeset 1734808


Ignore:
Timestamp:
09/23/2017 06:42:11 PM (9 years ago)
Author:
ronakg
Message:

version 3.5.6

Location:
awesome-flickr-gallery-plugin
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • awesome-flickr-gallery-plugin/tags/3.5.6/README.txt

    r1438930 r1734808  
    44Tags: awesome, gallery, flickr, photo, image, slideshow, colorbox, portfolio, group, photoset, yahoo, slider, thumbnail, images
    55Requires at least: 3.0
    6 Tested up to: 4.5.2
    7 Stable tag: 3.5.5
     6Tested up to: 4.8.2
     7Stable tag: 3.5.6
    88License: GPLv2 or later
    99
     
    114114== Upgrade Notice ==
    115115
     116= 3.5.6 =
     117[Bug Fix] Photoset not found error on gallery page
     118
    116119= 3.5.3 =
    117120[MAJOR CHANGE] I had to remove the Highslide option from list of slideshows. Apparently it is not compatible with WordPress's set of rules for licensing.
     
    137140
    138141= 3.3.1 =
    139 [MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead. 
     142[MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead.
    140143
    141144= 3.3.0 =
     
    205208
    206209= 3.0.5 =
    207 [FEATURE] Select custom sizes for thumbnails in gallery. 
     210[FEATURE] Select custom sizes for thumbnails in gallery.
    208211[ENHANCEMENT] Flexibility to modify gallery CSS to get desired look
    209212[ENHANCEMENT] Improved error reporting for better debuggability
     
    307310
    308311= 3.3.1 =
    309 * [MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead. 
     312* [MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead.
    310313
    311314= 3.3.0 =
     
    375378
    376379= 3.0.5 =
    377 * [Feature] Select custom sizes for thumbnails in gallery. 
     380* [Feature] Select custom sizes for thumbnails in gallery.
    378381* [Enhancement] Flexibility to modify gallery CSS to get desired look
    379382* [Enhancement] Improved error reporting for better debuggability
  • awesome-flickr-gallery-plugin/tags/3.5.6/afg_admin_settings.php

    r1174039 r1734808  
    420420    if (get_option('afg_flickr_token')) $rsp_obj = $pf->people_getPhotos(get_option('afg_user_id'), array('per_page' => 5, 'page' => 1));
    421421    else $rsp_obj = $pf->people_getPublicPhotos(get_option('afg_user_id'), NULL, NULL, 5, 1);
    422     if (!$rsp_obj) echo afg_error();
     422    if (!$rsp_obj) echo afg_error($pf->error_msg);
    423423    else {
    424424        foreach($rsp_obj['photos']['photo'] as $photo) {
     
    459459
    460460    $message = "Just insert the code <strong><font color='steelblue'>[AFG_gallery]</font></strong> in any of your posts or pages to display the Awesome Flickr Gallery.
    461         <br /><p style='text-align:center'><i>-- OR --</i></p>You can create a new Awesome Flickr Gallery with different settings on page <a href='{$_SERVER['PHP_SELF']}?page=afg_add_gallery_page'>Add Galleries.";
     461        <br /><p style='text-align:center'><i>-- OR --</i></p>You can create a new Awesome Flickr Gallery with different settings on page <a href='" . get_admin_url() . "admin.php?page=afg_add_gallery_page'>Add Galleries.";
    462462    echo afg_box('Usage Instructions', $message);
    463463
  • awesome-flickr-gallery-plugin/tags/3.5.6/afg_libs.php

    r1438930 r1734808  
    44define('SITE_URL', site_url());
    55define('DEBUG', false);
    6 define('VERSION', '3.5.5');
     6define('VERSION', '3.5.6');
    77
    88$afg_sort_order_map = array(
  • awesome-flickr-gallery-plugin/tags/3.5.6/index.php

    r1438938 r1734808  
    44   Plugin URI: http://www.ronakg.com/projects/awesome-flickr-gallery-wordpress-plugin/
    55   Description: Awesome Flickr Gallery is a simple, fast and light plugin to create a gallery of your Flickr photos on your WordPress enabled website.  This plugin aims at providing a simple yet customizable way to create stunning Flickr gallery.
    6    Version: 3.5.5
     6   Version: 3.5.6
    77   Author: Ronak Gandhi
    88   Author URI: http://www.ronakg.com
    99   License: GPL2
    1010
    11    Copyright 2014 Ronak Gandhi (email : ronak.gandhi@ronakg.com)
     11   Copyright 2017 Ronak Gandhi (email : me@ronakg.com)
    1212
    1313   This program is free software; you can redistribute it and/or modify
     
    214214
    215215        if (isset($photoset_id) && $photoset_id) {
    216             $rsp_obj = $pf->photosets_getInfo($photoset_id);
    217             if ($pf->error_code) return afg_error($pf->error_msg);
    218             $total_photos = $rsp_obj['photos'];
     216            $rsp_obj = $pf->photosets_getPhotos($photoset_id, NULL, 1, 1);
     217            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
     218            $total_photos = $rsp_obj['photoset']['total'];
    219219        }
    220220        else if (isset($gallery_id) && $gallery_id) {
    221221            $rsp_obj = $pf->galleries_getInfo($gallery_id);
    222             if ($pf->error_code) return afg_error($pf->error_msg);
     222            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    223223            $total_photos = $rsp_obj['gallery']['count_photos']['_content'];
    224224        }
    225225        else if (isset($group_id) && $group_id) {
    226226            $rsp_obj = $pf->groups_pools_getPhotos($group_id, NULL, NULL, NULL, NULL, 1, 1);
    227             if ($pf->error_code) return afg_error($pf->error_msg);
     227            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    228228            $total_photos = $rsp_obj['photos']['total'];
    229229            if ($total_photos > 500) $total_photos = 500;
     
    231231        else if (isset($tags) && $tags) {
    232232            $rsp_obj = $pf->photos_search(array('user_id'=>$user_id, 'tags'=>$tags, 'extras'=>$extras, 'per_page'=>1));
    233             if ($pf->error_code) return afg_error($pf->error_msg);
     233            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    234234            $total_photos = $rsp_obj['photos']['total'];
    235235        }
    236236        else if (isset($popular) && $popular) {
    237237            $rsp_obj = $pf->photos_search(array('user_id'=>$user_id, 'sort'=>'interestingness-desc', 'extras'=>$extras, 'per_page'=>1));
    238             if ($pf->error_code) return afg_error($pf->error_msg);
     238            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    239239            $total_photos = $rsp_obj['photos']['total'];
    240240            if ($total_photos > 500) $total_photos = 500;
     
    242242        else {
    243243            $rsp_obj = $pf->people_getInfo($user_id);
    244             if ($pf->error_code) return afg_error($pf->error_msg);
     244            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    245245            $total_photos = $rsp_obj['photos']['count']['_content'];
    246246        }
     
    251251                $flickr_api = 'photoset';
    252252                $rsp_obj_total = $pf->photosets_getPhotos($photoset_id, $extras, NULL, 500, $i);
    253                 if ($pf->error_code) return afg_error($pf->error_msg);
     253                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    254254            }
    255255            else if ($gallery_id) {
    256256                $rsp_obj_total = $pf->galleries_getPhotos($gallery_id, $extras, 500, $i);
    257                 if ($pf->error_code) return afg_error($pf->error_msg);
     257                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    258258            }
    259259            else if ($group_id) {
    260260                $rsp_obj_total = $pf->groups_pools_getPhotos($group_id, NULL, NULL, NULL, $extras, 500, $i);
    261                 if ($pf->error_code) return afg_error($pf->error_msg);
     261                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    262262            }
    263263            else if ($tags) {
    264264                $rsp_obj_total = $pf->photos_search(array('user_id'=>$user_id, 'tags'=>$tags, 'extras'=>$extras, 'per_page'=>500, 'page'=>$i));
    265                 if ($pf->error_code) return afg_error($pf->error_msg);
     265                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    266266            }
    267267            else if ($popular) {
    268268                $rsp_obj_total = $pf->photos_search(array('user_id'=>$user_id, 'sort'=>'interestingness-desc', 'extras'=>$extras, 'per_page'=>500, 'page'=>$i));
    269                 if ($pf->error_code) return afg_error($pf->error_msg);
     269                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    270270            }
    271271            else {
    272272                if (get_option('afg_flickr_token')) $rsp_obj_total = $pf->people_getPhotos($user_id, array('extras' => $extras, 'per_page' => 500, 'page' => $i));
    273273                else $rsp_obj_total = $pf->people_getPublicPhotos($user_id, NULL, $extras, 500, $i);
    274                 if ($pf->error_code) return afg_error($pf->error_msg);
     274                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    275275            }
    276276            $photos = array_merge($photos, $rsp_obj_total[$flickr_api]['photo']);
  • awesome-flickr-gallery-plugin/trunk/README.txt

    r1438930 r1734808  
    44Tags: awesome, gallery, flickr, photo, image, slideshow, colorbox, portfolio, group, photoset, yahoo, slider, thumbnail, images
    55Requires at least: 3.0
    6 Tested up to: 4.5.2
    7 Stable tag: 3.5.5
     6Tested up to: 4.8.2
     7Stable tag: 3.5.6
    88License: GPLv2 or later
    99
     
    114114== Upgrade Notice ==
    115115
     116= 3.5.6 =
     117[Bug Fix] Photoset not found error on gallery page
     118
    116119= 3.5.3 =
    117120[MAJOR CHANGE] I had to remove the Highslide option from list of slideshows. Apparently it is not compatible with WordPress's set of rules for licensing.
     
    137140
    138141= 3.3.1 =
    139 [MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead. 
     142[MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead.
    140143
    141144= 3.3.0 =
     
    205208
    206209= 3.0.5 =
    207 [FEATURE] Select custom sizes for thumbnails in gallery. 
     210[FEATURE] Select custom sizes for thumbnails in gallery.
    208211[ENHANCEMENT] Flexibility to modify gallery CSS to get desired look
    209212[ENHANCEMENT] Improved error reporting for better debuggability
     
    307310
    308311= 3.3.1 =
    309 * [MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead. 
     312* [MAJOR CHANGE] Highslide had to be removed from Slideshow options as WordPress moderators objected about the same due to licensing issues. This update removes the Highslide option. If you are using Highslide, you will be migrated to use Colorbox instead.
    310313
    311314= 3.3.0 =
     
    375378
    376379= 3.0.5 =
    377 * [Feature] Select custom sizes for thumbnails in gallery. 
     380* [Feature] Select custom sizes for thumbnails in gallery.
    378381* [Enhancement] Flexibility to modify gallery CSS to get desired look
    379382* [Enhancement] Improved error reporting for better debuggability
  • awesome-flickr-gallery-plugin/trunk/afg_admin_settings.php

    r1174039 r1734808  
    420420    if (get_option('afg_flickr_token')) $rsp_obj = $pf->people_getPhotos(get_option('afg_user_id'), array('per_page' => 5, 'page' => 1));
    421421    else $rsp_obj = $pf->people_getPublicPhotos(get_option('afg_user_id'), NULL, NULL, 5, 1);
    422     if (!$rsp_obj) echo afg_error();
     422    if (!$rsp_obj) echo afg_error($pf->error_msg);
    423423    else {
    424424        foreach($rsp_obj['photos']['photo'] as $photo) {
     
    459459
    460460    $message = "Just insert the code <strong><font color='steelblue'>[AFG_gallery]</font></strong> in any of your posts or pages to display the Awesome Flickr Gallery.
    461         <br /><p style='text-align:center'><i>-- OR --</i></p>You can create a new Awesome Flickr Gallery with different settings on page <a href='{$_SERVER['PHP_SELF']}?page=afg_add_gallery_page'>Add Galleries.";
     461        <br /><p style='text-align:center'><i>-- OR --</i></p>You can create a new Awesome Flickr Gallery with different settings on page <a href='" . get_admin_url() . "admin.php?page=afg_add_gallery_page'>Add Galleries.";
    462462    echo afg_box('Usage Instructions', $message);
    463463
  • awesome-flickr-gallery-plugin/trunk/afg_libs.php

    r1438930 r1734808  
    44define('SITE_URL', site_url());
    55define('DEBUG', false);
    6 define('VERSION', '3.5.5');
     6define('VERSION', '3.5.6');
    77
    88$afg_sort_order_map = array(
  • awesome-flickr-gallery-plugin/trunk/index.php

    r1438938 r1734808  
    44   Plugin URI: http://www.ronakg.com/projects/awesome-flickr-gallery-wordpress-plugin/
    55   Description: Awesome Flickr Gallery is a simple, fast and light plugin to create a gallery of your Flickr photos on your WordPress enabled website.  This plugin aims at providing a simple yet customizable way to create stunning Flickr gallery.
    6    Version: 3.5.5
     6   Version: 3.5.6
    77   Author: Ronak Gandhi
    88   Author URI: http://www.ronakg.com
    99   License: GPL2
    1010
    11    Copyright 2014 Ronak Gandhi (email : ronak.gandhi@ronakg.com)
     11   Copyright 2017 Ronak Gandhi (email : me@ronakg.com)
    1212
    1313   This program is free software; you can redistribute it and/or modify
     
    214214
    215215        if (isset($photoset_id) && $photoset_id) {
    216             $rsp_obj = $pf->photosets_getInfo($photoset_id);
    217             if ($pf->error_code) return afg_error($pf->error_msg);
    218             $total_photos = $rsp_obj['photos'];
     216            $rsp_obj = $pf->photosets_getPhotos($photoset_id, NULL, 1, 1);
     217            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
     218            $total_photos = $rsp_obj['photoset']['total'];
    219219        }
    220220        else if (isset($gallery_id) && $gallery_id) {
    221221            $rsp_obj = $pf->galleries_getInfo($gallery_id);
    222             if ($pf->error_code) return afg_error($pf->error_msg);
     222            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    223223            $total_photos = $rsp_obj['gallery']['count_photos']['_content'];
    224224        }
    225225        else if (isset($group_id) && $group_id) {
    226226            $rsp_obj = $pf->groups_pools_getPhotos($group_id, NULL, NULL, NULL, NULL, 1, 1);
    227             if ($pf->error_code) return afg_error($pf->error_msg);
     227            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    228228            $total_photos = $rsp_obj['photos']['total'];
    229229            if ($total_photos > 500) $total_photos = 500;
     
    231231        else if (isset($tags) && $tags) {
    232232            $rsp_obj = $pf->photos_search(array('user_id'=>$user_id, 'tags'=>$tags, 'extras'=>$extras, 'per_page'=>1));
    233             if ($pf->error_code) return afg_error($pf->error_msg);
     233            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    234234            $total_photos = $rsp_obj['photos']['total'];
    235235        }
    236236        else if (isset($popular) && $popular) {
    237237            $rsp_obj = $pf->photos_search(array('user_id'=>$user_id, 'sort'=>'interestingness-desc', 'extras'=>$extras, 'per_page'=>1));
    238             if ($pf->error_code) return afg_error($pf->error_msg);
     238            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    239239            $total_photos = $rsp_obj['photos']['total'];
    240240            if ($total_photos > 500) $total_photos = 500;
     
    242242        else {
    243243            $rsp_obj = $pf->people_getInfo($user_id);
    244             if ($pf->error_code) return afg_error($pf->error_msg);
     244            if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    245245            $total_photos = $rsp_obj['photos']['count']['_content'];
    246246        }
     
    251251                $flickr_api = 'photoset';
    252252                $rsp_obj_total = $pf->photosets_getPhotos($photoset_id, $extras, NULL, 500, $i);
    253                 if ($pf->error_code) return afg_error($pf->error_msg);
     253                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    254254            }
    255255            else if ($gallery_id) {
    256256                $rsp_obj_total = $pf->galleries_getPhotos($gallery_id, $extras, 500, $i);
    257                 if ($pf->error_code) return afg_error($pf->error_msg);
     257                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    258258            }
    259259            else if ($group_id) {
    260260                $rsp_obj_total = $pf->groups_pools_getPhotos($group_id, NULL, NULL, NULL, $extras, 500, $i);
    261                 if ($pf->error_code) return afg_error($pf->error_msg);
     261                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    262262            }
    263263            else if ($tags) {
    264264                $rsp_obj_total = $pf->photos_search(array('user_id'=>$user_id, 'tags'=>$tags, 'extras'=>$extras, 'per_page'=>500, 'page'=>$i));
    265                 if ($pf->error_code) return afg_error($pf->error_msg);
     265                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    266266            }
    267267            else if ($popular) {
    268268                $rsp_obj_total = $pf->photos_search(array('user_id'=>$user_id, 'sort'=>'interestingness-desc', 'extras'=>$extras, 'per_page'=>500, 'page'=>$i));
    269                 if ($pf->error_code) return afg_error($pf->error_msg);
     269                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    270270            }
    271271            else {
    272272                if (get_option('afg_flickr_token')) $rsp_obj_total = $pf->people_getPhotos($user_id, array('extras' => $extras, 'per_page' => 500, 'page' => $i));
    273273                else $rsp_obj_total = $pf->people_getPublicPhotos($user_id, NULL, $extras, 500, $i);
    274                 if ($pf->error_code) return afg_error($pf->error_msg);
     274                if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg);
    275275            }
    276276            $photos = array_merge($photos, $rsp_obj_total[$flickr_api]['photo']);
Note: See TracChangeset for help on using the changeset viewer.