Changeset 469864
- Timestamp:
- 12/01/2011 02:02:55 PM (14 years ago)
- Location:
- site-slideshow/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
site-slideshow.php (modified) (1 diff)
-
slideshow-gallery-generate.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
site-slideshow/trunk/readme.txt
r469393 r469864 5 5 Requires at least: 2.9 6 6 Tested up to: 3.2.1 7 Stable tag: 2.2. 17 Stable tag: 2.2.2 8 8 9 9 Slideshow gallery widget presenting one picture for every post containing images with link to the post owning this picture … … 68 68 <li>2.1.1 Fixing minor bugs</li> 69 69 <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> 71 72 </ul> -
site-slideshow/trunk/site-slideshow.php
r469393 r469864 7 7 Author URI: http://internetdienste-berlin.de 8 8 Description: 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. 19 Version: 2.2.2 10 10 */ 11 11 -
site-slideshow/trunk/slideshow-gallery-generate.php
r469393 r469864 31 31 'publish'= post_status ")); 32 32 33 $wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides33 @$wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides 34 34 CHANGE `post_title` `title` VARCHAR( 149 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, 35 35 CHANGE `post_name` `image` VARCHAR( 53 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL , … … 39 39 ")); 40 40 41 $wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides41 @$wpdb->query($wpdb->prepare("ALTER TABLE $prefix" . "site_slides 42 42 DROP `post_status` , 43 43 DROP `post_type`")); 44 44 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`)")); 46 46 global $wpdb; 47 47 $query ="SELECT * FROM $prefix" . "site_slides"; 48 48 $result = mysql_query ($query); 49 echo mysql_error(); 50 $rows = mysql_num_rows($result); 49 @$rows = mysql_num_rows($result); 51 50 for($j = 0; $j< $rows; ++$j){ 52 51 $ngg=0; … … 95 94 } 96 95 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=''")); 98 97 $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS hilfstabellexyz")); 99 98 $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")); 101 100 $wpdb->query($wpdb->prepare("RENAME TABLE hilfstabellexyz TO $prefix" . "site_slides")); 102 101 $runflag=1;
Note: See TracChangeset
for help on using the changeset viewer.