Plugin Directory

Changeset 469864


Ignore:
Timestamp:
12/01/2011 02:02:55 PM (14 years ago)
Author:
didr
Message:
 
Location:
site-slideshow/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • site-slideshow/trunk/readme.txt

    r469393 r469864  
    55Requires at least: 2.9
    66Tested up to: 3.2.1
    7 Stable tag: 2.2.1
     7Stable tag: 2.2.2
    88
    99Slideshow gallery widget presenting one picture for every post containing images with link to the post owning this picture
     
    6868<li>2.1.1 Fixing minor bugs</li>
    6969<li>2.2.0 Serious bug in context of encapsulation a fixed. Sometimes it caused error messages during image uploading </li>
    70  
     70<li>2.2.1 Former version 2.2.0 crashed</li>
     71<li>2.2.2 wrong error messages during image uploading are now suppressed totally</li>
    7172</ul>
  • site-slideshow/trunk/site-slideshow.php

    r469393 r469864  
    77Author URI: http://internetdienste-berlin.de
    88Description: Site Slideshow as a sidebar widget represents for any article or page one image of the standard gallery, but it is not repeated any image when it is used by different posts and we show only the first image of every post. Klicking on the slide leads to the article/page the image stems from. There are some options for adapting the slideshow for your purposes. Further information look at http://www.internetdienste-berlin.de/2011/01/artikel-und-seiten-ubergreifende-slideshow-gallery-als-plugin/
    9 Version: 2.2.1
     9Version: 2.2.2
    1010*/
    1111
  • site-slideshow/trunk/slideshow-gallery-generate.php

    r469393 r469864  
    3131            'publish'=  post_status "));
    3232
    33 $wpdb->query($wpdb->prepare("ALTER TABLE  $prefix" . "site_slides
     33@$wpdb->query($wpdb->prepare("ALTER TABLE  $prefix" . "site_slides
    3434 CHANGE `post_title` `title` VARCHAR( 149 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    3535CHANGE `post_name` `image` VARCHAR( 53 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
     
    3939"));
    4040
    41 $wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides
     41@$wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides
    4242DROP `post_status` ,
    4343DROP `post_type`"));
    4444
    45 $wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides ADD  PRIMARY KEY (`ID`)"));
     45@$wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides ADD  PRIMARY KEY (`ID`)"));
    4646global $wpdb;
    4747$query ="SELECT * FROM $prefix" . "site_slides";
    4848$result = mysql_query ($query);
    49 echo mysql_error();
    50 $rows = mysql_num_rows($result);
     49@$rows = mysql_num_rows($result);
    5150for($j = 0; $j< $rows; ++$j){
    5251$ngg=0;
     
    9594        }
    9695
    97 $wpdb->query($wpdb->prepare("DELETE FROM $prefix" . "site_slides WHERE image_url=''"));
     96@$wpdb->query($wpdb->prepare("DELETE FROM $prefix" . "site_slides WHERE image_url=''"));
    9897$wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS hilfstabellexyz"));
    9998$wpdb->query($wpdb->prepare("CREATE TABLE  hilfstabellexyz SELECT * FROM $prefix" . "site_slides LIMIT $limit"));
    100 $wpdb->query($wpdb->prepare("DROP TABLE $prefix" . "site_slides"));
     99@$wpdb->query($wpdb->prepare("DROP TABLE $prefix" . "site_slides"));
    101100$wpdb->query($wpdb->prepare("RENAME TABLE hilfstabellexyz TO $prefix" . "site_slides"));
    102101$runflag=1;
Note: See TracChangeset for help on using the changeset viewer.