Plugin Directory

Changeset 167203


Ignore:
Timestamp:
10/26/2009 01:28:22 PM (16 years ago)
Author:
aaron_guitar
Message:
  • Long photo captions are no longer truncated
  • Fixed bug which could cause some of the photos to not be imported
  • Fixed bug with Windows systems not creating the albums table. Manifested itself by acting like it imported the albums and then saying "There are no albums."
Location:
fotobook/tags/3.1.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fotobook/tags/3.1.7/fotobook.php

    r94691 r167203  
    77Author: Aaron Harp
    88Author URI: http://www.aaronharp.com/
    9 Version: 3.1.6
     9Version: 3.1.7
    1010*/
    1111
     
    4040define('FB_OPTIONS_URL', 'options-general.php?page=fotobook/options-fotobook.php');
    4141define('FB_WEBSITE',     'http://www.aaronharp.com/dev/wp-fotobook/');
    42 define('FB_VERSION',     3.16);
     42define('FB_VERSION',     3.17);
    4343define('FB_DONATE',      'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=aaron%40freshwebs%2enet&item_name=Fotobook%20Donation&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8');
    4444
     
    321321        $album['location'] = addslashes($album['location']);       
    322322      }
    323       $album_query = sprintf("INSERT INTO %s SET page_id=%s, aid='%s', cover_pid='%s', owner=%s, name='%s', created=FROM_UNIXTIME(%s), modified=FROM_UNIXTIME(%s), description='%s', location='%s', link='%s', size=%s, hidden=%s, ordinal=%s",
     323      $album_query = sprintf("INSERT INTO %s SET page_id='%s', aid='%s', cover_pid='%s', owner='%s', name='%s', created=FROM_UNIXTIME(%s), modified=FROM_UNIXTIME(%s), description='%s', location='%s', link='%s', size='%s', hidden='%s', ordinal='%s'",
    324324                            FB_ALBUM_TABLE, $page_id, $album['aid'], $album['cover_pid'], $album['owner'], $album['name'], $album['created'], $album['modified'], $album['description'], $album['location'], $album['link'], $album['size'], $hidden, $ordinal); 
    325325      $wpdb->query($album_query);   
     
    336336        $photo['caption'] = addslashes($photo['caption']);
    337337      }
    338       $photo_query = sprintf("INSERT INTO %s SET pid=%s, aid=%s, owner=%s, src='%s', src_big='%s', src_small='%s', link='%s', caption='%s', created=FROM_UNIXTIME(%s), ordinal=%s",
     338      $photo_query = sprintf("INSERT INTO %s SET pid='%s', aid='%s', owner='%s', src='%s', src_big='%s', src_small='%s', link='%s', caption='%s', created=FROM_UNIXTIME(%s), ordinal='%s'",
    339339                             FB_PHOTO_TABLE, $photo['pid'], $photo['aid'], $photo['owner'], $photo['src'], $photo['src_big'], $photo['src_small'], $photo['link'], $photo['caption'], $photo['created'], $ordinal);
    340340      $wpdb->query($photo_query);
     
    401401  add_option('fb_embedded_width', 0);
    402402  add_option('fb_hide_pages', 0);
    403   update_option('fb_version', FB_VERSION);
    404403       
    405404  $photo_table_query = "CREATE TABLE ".FB_PHOTO_TABLE." (
     
    412411                          src_small varchar(255) NOT NULL default '',
    413412                          link varchar(255) NOT NULL default '',
    414                           caption varchar(255) NOT NULL default '',
     413                          caption text NOT NULL,
    415414                          created datetime NOT NULL default '0000-00-00 00:00:00',
    416415                          ordinal tinyint(4) NOT NULL default 0,
     
    424423                          owner int(11) NOT NULL,
    425424                          name varchar(255) NOT NULL default '',
    426                           description text NOT NULL default '',
     425                          description text NOT NULL,
    427426                          location varchar(255) NOT NULL default '',
    428427                          link varchar(255) NOT NULL,
     
    445444  }
    446445 
     446  update_option('fb_version', FB_VERSION);
    447447}
    448448
     
    477477    $wpdb->query('ALTER TABLE '.FB_PHOTO_TABLE.' DROP INDEX id, ADD COLUMN id BIGINT(20) AUTO_INCREMENT NOT NULL FIRST, ADD PRIMARY KEY(id)');
    478478  }
     479
     480  if(get_option('fb_version') < 3.17)
     481    $wpdb->query('ALTER TABLE '.FB_PHOTO_TABLE.' CHANGE `caption` `caption` TEXT');
    479482}
    480483
  • fotobook/tags/3.1.7/readme.txt

    r94691 r167203  
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=aaron%40freshwebs%2enet&item_name=Fotobook%20Donation&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
    44Tags: facebook, photos, images, gallery, fotobook, import, widget, media
    5 Requires at least: 2.3.3
    6 Tested up to: 2.7
    7 Stable tag: 3.1.6
     5Requires at least: 2.5
     6Tested up to: 2.8.4
     7Stable tag: 3.1.7
    88
    99Fotobook is a WordPress plugin that will link to your Facebook account(s) and import all of your photo albums for use in your WordPress installation. It uses the Facebook's API so importing your photos is a breeze.
     
    4040== Frequently Asked Questions ==
    4141
    42 = Fotobook isn't working, what's wrong?
     42= Fotobook isn't working, what's wrong? =
    4343
    4444Before contacting me, make sure your host is running PHP 5.  If not, contact their support to see if it can be changed or switch to a [host](http://www.dreamhost.com/r.cgi?275020/hosting.html|fotobook) that does have PHP 5.
     
    7878Check out my [photo gallery](http://www.aaronharp.com/photo-gallery/).
    7979
    80 == Support ==
    81 
    82 Submit any problems, questions, suggestions, or compliments on the [Facebook Discussion Board](http://www.facebook.com/board.php?uid=2254862517).  Become a fan of the [Fotobook Application](http://www.facebook.com/apps/application.php?id=2254862517) to be notified when updates are available.
    83 
    84 == Change History ==
    85 
    86 2009.02.15 - v3.1.6
     80== Changelog ==
     81
     82= 3.1.7 =
     83
     84* Long photo captions are no longer truncated
     85* Fixed bug which could cause some of the photos to not be imported
     86* Fixed bug with Windows systems not creating the albums table.  Manifested itself by acting like it imported the albums and then saying "There are no albums."
     87
     88= 3.1.6 =
    8789
    8890* Fixed bug where changes to album order were not saved
    8991* Fixed other small bugs
    9092
    91 2008.11.20 - v3.1.5
     93= 3.1.5 =
    9294
    9395* Added cron script for automatically updating albums (see settings panel)
     
    9597* Fixed duplicate key bug when importing photos of multiple users (props Darrell)
    9698
    97 2008.11.19 - v3.1.4
     99= 3.1.4 =
    98100
    99101* Fixed bug where album pages were showing 404 errors
     
    102104* WP Ajax hook is now used for requests
    103105
    104 2008.07.30 - v3.1.3
     106= 3.1.3 =
    105107
    106108* Widget can now be added manually to the sidebar.  See FAQ section
     
    112114* Added debug info to the settings page
    113115
    114 2008.07.04 - v3.1.1
     116= 3.1.1 =
    115117
    116118* Fixed error when user is not tagged in any photos
    117119* Fixed some display/formatting issues
    118120
    119 2008.06.13 - v3.1
     121= 3.1 =
    120122
    121123* Fotobook now creates an album of photos that the user is tagged in
     
    129131* Other small tweaks and fixes
    130132
    131 2008.05.17 - v3.0.7
     133= 3.0.7 =
    132134
    133135* Disabled output buffering for albums because it was causing too many issues.
    134136
    135 2008.04.29 - v3.0.6
     137= 3.0.6 =
    136138
    137139* Fixed fatal error on activation with some setups.
    138140
    139 2008.04.12 - v3.0.5
     141= 3.0.5 =
    140142
    141143* Modified feature for inserting photos into posts to work with WP 2.5's new media library.
     
    145147* Cleaned up the code.
    146148
    147 2008.04.06 - v3.0.3
     149= 3.0.3 =
    148150
    149151* Disabled Wordbook actions when adding and deleting album pages to prevent Wordbook from re-instantiating the Facebook API class.
    150152* Fixed fatal 'Session key invalid or no longer valid' error when upgrading to version 3.
    151153
    152 2008.03.20 - v3.0.2
     154= 3.0.2 =
    153155
    154156* Updated to the latest versions of the PHP4 & 5 Facebook API clients.  Huge speed boost for photo imports with PHP5.
    155157
    156 2008.03.19 - v3.0.1
     158= 3.0.1 =
    157159
    158160* Fixed bug where albums would be imported but it would still say "There are no albums."
    159161* Fixed issue with local scope of $table_prefix during plugin activation in WP2.5.
    160162
    161 2008.03.15 - v3.0
     163= 3.0 =
    162164
    163165* Added support for linking to multiple Facebook accounts
     
    172174* Cleaned up the code a bit.
    173175
    174 2007.09.03 - v2.1
     176= 2.1 =
    175177
    176178* Photos from hidden albums are no longer shown in sidebars. And hidden albums are no longer accessible by their permalink.
     
    182184* Added “Remove All” button in the manage page to get rid of all albums and photos and start over (some people have had problems with partial imports).
    183185
    184 2007.07.10 - v2.0.1
     186= 2.0.1 =
    185187
    186188* Fixed an array_slice backwards compatibility issue with pre PHP 5.0.2 servers
    187189
    188 2007.07.09 - v2.0
     190= 2.0 =
    189191
    190192* Revamped to work with Facebook’s API
     
    193195* Got rid of all the messy cURL and regex stuff.
    194196
    195 2007.04.11 - v1.3.1
     197= 1.3.1 =
    196198
    197199* Fixed to work with Facebook’s new look
    198200
    199 2007.03.27 - v1.3
     201= 1.3 =
    200202
    201203* IMPORTANT: You must deactivate and reactivate the Fotobook plugin after installing this version.
     
    205207* Other minor changes
    206208
    207 2007.01.28 - v1.2.1
     209= 1.2.1 =
    208210
    209211* The long-awaited WP 2.1 compatibility fix.
     
    211213* IMPORTANT: If you already have albums imported, you will need to re-cache them all after installing this update. If you still have problems, then try deleting them and adding them again. If it still doesn’t work, let me know =)
    212214
    213 2007.01.04 - v1.2
     215= 1.2 =
    214216
    215217* Fixed bug that was causing the main album page to not load
     
    218220* New albums are now added to the top instead of bottom
    219221
    220 2006.12.18 - v1.1.1
     222= 1.1.1 =
    221223
    222224* Small layout bug fixes
    223225
    224 2006.12.14 - v1.1
     226= 1.1 =
    225227
    226228* cURL is no longer required
     
    228230* Cleaned up the code
    229231
    230 2006.11.29 - v1.0
     232= 1.0 =
    231233
    232234* First release
    233235
     236== Support ==
     237
     238Submit any problems, questions, suggestions, or compliments on the [Facebook Discussion Board](http://www.facebook.com/board.php?uid=2254862517).  Become a fan of the [Fotobook Application](http://www.facebook.com/apps/application.php?id=2254862517) to be notified when updates are available.
     239
    234240== Help Out! ==
    235241
Note: See TracChangeset for help on using the changeset viewer.