Plugin Directory

Changeset 603099


Ignore:
Timestamp:
09/24/2012 01:37:52 PM (14 years ago)
Author:
didr
Message:

Version 2.3.0 is released

Location:
site-slideshow/trunk
Files:
3 edited

Legend:

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

    r521733 r603099  
    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<li>2.3.0 A bug wasting memory is fixed </li>
    7071 
    7172</ul>
  • site-slideshow/trunk/site-slideshow.php

    r521733 r603099  
    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.4
     9Version: 2.3.0
    1010*/
    1111
  • site-slideshow/trunk/slideshow-gallery-generate.php

    r521278 r603099  
    55
    66global $runflag;
    7 $runflag=0;
     7/*$runflag=0;*/
    88
    99/*Ganz gewiss ist diese brutale Umsetzung eines sql-Programms in ein php-Programms nicht vom feinsten und mit vielen
    1010unnötigen Aktionen belastet, aber wenn ich mal schlauer sein sollte, mach ich es auch schlauer, hoff ich*/
    11 class dk_slideshow_update extends GaleriePlugin{
     11add_action ('save_post','dk_slideshow_update');
     12/*add_action ('plugins_loaded','dk_slideshow_update');*/
    1213function dk_slideshow_update(){
    1314global $wpdb;
    1415$prefix = $wpdb -> prefix;
    1516global $runflag; /*der Hook 'save_post' verursacht einen zweimaligen Durchlauf, durch diesen Flag wird das verhindert*/
    16 if ($runflag==1)return;
    17 add_action ('save_post',array(&$this,'dk_slideshow_update'));
    18 add_action ('plugins_loaded',array(&$this,'dk_slideshow_update'));
    19 $pre = $this -> pre;
    20 $limit =get_option($pre . 'limit') ;
     17/*if ($runflag==1)return;*/
     18
     19$limit =get_option('Galerielimit') ;
    2120$wpdb->query($wpdb->prepare("DROP TABLE if EXISTS $prefix" . "site_slides"));
    2221$wpdb->query($wpdb->prepare("CREATE TABLE IF NOT EXISTS $prefix" . "site_slides (
     
    5049$rows = mysql_num_rows($result);
    5150for($j = 0; $j< $rows; ++$j){
    52 $ngg=0;
     51$ngg=-1;
     52$src=-1;
    5353$id =mysql_result($result,$j,'ID');
    5454$images = get_children($id,'ARRAY_A');
     
    6969        $image_url='';
    7070    }
    71 elseif ($src>0) {
     71elseif ($src>-1) {
    7272    if (stripos ($content,'.jpg',$src +5)){$ende=stripos($content,'.jpg',$src+5);
    7373    $leng=$ende+1 - $src;
     
    7777        $image_url='';}
    7878}
    79 elseif ($ngg>0){
     79elseif ($ngg>-1){
    8080    $ende = stripos($content,']',$ngg); if (($ende-$ngg <18)){
    8181    $galida=stripos($content,'=',$ngg)+1;
     
    100100$wpdb->query($wpdb->prepare("DROP TABLE $prefix" . "site_slides"));
    101101$wpdb->query($wpdb->prepare("RENAME TABLE hilfstabellexyz TO $prefix" . "site_slides"));
    102 $runflag=1;
     102
    103103    }
    104 }
    105 $Table = new dk_slideshow_update();
     104
     105
     106
    106107?>
Note: See TracChangeset for help on using the changeset viewer.