Differences

This shows you the differences between two versions of the page.

english:phpwcms_replacer_rts:frontend_init:cp_trigger:wysiwyg-image-resize [2009/05/25 13:07]
Knut Heermann (flip-flop)
english:phpwcms_replacer_rts:frontend_init:cp_trigger:wysiwyg-image-resize [2018/06/03 18:09] (current)
Line 1: Line 1:
{{indexmenu_n>10}} {{indexmenu_n>10}}
-====== WYSIWYG (FCK) image resize ======+====== WYSIWYG (F/CK) image resize ======
-====== FCK editor in CPs: Images from filecenter ======+====== F/CK editor in CPs: Images from filecenter ======
-===== V1.5.2: Thumb cropping & LightBox & ReMooz & EnlargeIt =====+===== V1.5.3: Thumb cropping & LightBox & ReMooz & EnlargeIt & random-image =====
-##**Only for FCK editor available!!** (since V1.4.2 r308 (07.03.2009)##+  * **Available for the FCK editor** since V1.4.2 r308 (07.03.2009) 
 +  * **Available for the CK editor** since V1.4.7 r416 (03.05.2011)
 +\\
**Short description:** \\ **Short description:** \\
-Based on the new experimental function for using filecenter images with the fck wysiwyg editor using in CPs. The height/width image paramters from fck are injected into the used function image_resized.php and carry over into the function cmsimage.php. +Based on the new experimental function for using filecenter images with the f/ck wysiwyg editor using in CPs. The height/width image paramters from f/ck are injected into the used function image_resized.php and carry over into the function cmsimage.php. Have a look too: [[english/phpwcms_replacer_rts/frontend_render/fck-images-from-filecenter]]
  * LightBox (System integrated)   * LightBox (System integrated)
  * [[http://digitarald.de/project/remooz/|ReMooz]] (requires mootools 1.2.x -> in installation set available)   * [[http://digitarald.de/project/remooz/|ReMooz]] (requires mootools 1.2.x -> in installation set available)
  * [[http://enlargeit.timos-welt.de/english/11/|EnlargeIt! v1.1]] (optional for wiki writing people)   * [[http://enlargeit.timos-welt.de/english/11/|EnlargeIt! v1.1]] (optional for wiki writing people)
 +  * random-image: Catch a image from a folder of the filecenter //(V1.5.3)//.
  * Thumb cropping   * Thumb cropping
Line 39: Line 42:
**Version:** V1.5.2  //2009/05/21//  \\ **Version:** V1.5.2  //2009/05/21//  \\
**Update:**  xnp (next/prev) generally set in file available **Update:**  xnp (next/prev) generally set in file available
 +**Update:**  V1.5.3  //2009/10/05// random-image
**Tag:** See below **Tag:** See below
Line 54: Line 58:
Please enhanced this list by yourself in the file ##template/inc_script/frontend_init/trigger_call_fck_ximage_resize.php## around line 30: Please enhanced this list by yourself in the file ##template/inc_script/frontend_init/trigger_call_fck_ximage_resize.php## around line 30:
-([[english/technics/internally-function-call/content-part-types|Content part Types]])+([[english/technics/internal-function-call/content-part-types|Content part Types]])
<note tip>**//EnlargeIt// is available for persons those who write useful contributions, translations or video clips into the wiki.** // <note tip>**//EnlargeIt// is available for persons those who write useful contributions, translations or video clips into the wiki.** //
 +(Alternatively make an donation).//</note>
 +
 +<note tip>**//random-image// is available for persons those who write useful contributions, translations or video clips into the wiki.** //
(Alternatively make an donation).//</note> (Alternatively make an donation).//</note>
Line 70: Line 77:
-==== Switch setup in your fck editor: ====+==== Switch setup in your f/ck editor: ====
-**FCK -> images -> enhanced -> style sheet class:** //separated with blanks!!//  +**F/CK -> images -> enhanced -> style sheet class:** //separated with blanks!!//  
  * **xcrop**    = crop thumb on \\   * **xcrop**    = crop thumb on \\
Line 82: Line 89:
  * **xenlarge** = (Optional) EnlargeIt images on  [[http://enlargeit.timos-welt.de/english/11/|EnlargeIt! v1.1]]     * **xenlarge** = (Optional) EnlargeIt images on  [[http://enlargeit.timos-welt.de/english/11/|EnlargeIt! v1.1]]  
  * **xnoenlarge** = (Optional) //EnlargeIt off if EnlargeIt is set generally in this file// \\   * **xnoenlarge** = (Optional) //EnlargeIt off if EnlargeIt is set generally in this file// \\
 +  * **xrandom**   = (Optional) random-image on //(random-image from a folder in filecenter where the indicated picture lies)//\\
 +  * **xnorandom** = (Optional) random-image off //(if set generally to on)//\\
e.g. ##xcrop xlight##    --> using Thumb cropping and LightBox \\ e.g. ##xcrop xlight##    --> using Thumb cropping and LightBox \\
Line 87: Line 96:
e.g. ##xremo xcrop##     --> using ReMooz and Thumb cropping. \\ e.g. ##xremo xcrop##     --> using ReMooz and Thumb cropping. \\
e.g. ##xenlarge xcrop##  --> using EnlargeIt and Thumb cropping. \\ e.g. ##xenlarge xcrop##  --> using EnlargeIt and Thumb cropping. \\
-e.g. ##xnoenlarge##      --> no EnlargeIt is used for this image if set $xenlargeit = 1 in file direct+e.g. ##xnoenlarge##      --> no EnlargeIt is used for this image if set $xenlargeit = 1 in file direct \\ 
 +e.g. ##xrandom xlight xnp##      --> catch a random-image from a folder in filecenter, using LighBox and the next/prev function if more then one image available in LightBox (this cp). \\
\\ \\
 +
==== Switch setup direct in file fck_ximage_resize.php: ==== ==== Switch setup direct in file fck_ximage_resize.php: ====
Around line 105 //(but I think most people never change this item)//. Around line 105 //(but I think most people never change this item)//.
Line 99: Line 110:
  * **$ixenlargeit** = false; //Using EnlargeIt generally = true (optional)//   * **$ixenlargeit** = false; //Using EnlargeIt generally = true (optional)//
  * **$ixnp** = true; //Using next/prev switch generally = true (for LightBox and EnlargeIt)//   * **$ixnp** = true; //Using next/prev switch generally = true (for LightBox and EnlargeIt)//
 +  * **$ixrandom** = false; //Using random-image generally = true (optional)//
Line 185: Line 197:
} }
 +?>
</code> </code>
Line 194: Line 206:
**Version:** V1.5.2  //2009/05/26//  \\ **Version:** V1.5.2  //2009/05/26//  \\
-**Update:**  --   +**Update:**  V1.5.3  //2009/10/05//  
**Filename:** fck_ximage_resize.php    \\ **Filename:** fck_ximage_resize.php    \\
Line 204: Line 216:
-<code php|h template/inc_script/fck_ximage_resize/fck_ximage_resize.php |h>+<code php|h template/inc_script/fck_ximage_resize/fck_ximage_resize.php (v1.5.2) |h>
<?php <?php
/********************************************************************************************* /*********************************************************************************************
Line 329: Line 341:
                         
         // Using the prev/next feature generally          // Using the prev/next feature generally
-            $xnp_inner   = true; // available for LightBox and EnlargeIt+            $ixnp        = false; // available for LightBox and EnlargeIt
Line 396: Line 408:
                         
            $xcrop      =  in_array('xcrop',     $temp);             $xcrop      =  in_array('xcrop',     $temp);
-            $xnp        = (in_array('xnp',       $temp) OR $xnp_inner == true) ? true : false;+            $xnp        = (in_array('xnp',       $temp) OR $ixnp == true) ? true : false;
            $xlight     =  in_array('xlight',   $temp);             $xlight     =  in_array('xlight',   $temp);
Line 474: Line 486:
?> ?>
</code> </code>
 +
 +\\
 +
 +**Update v1.5.3** //(Only necessary if random-image is used)//
 +
 +
 +<code php|h template/inc_script/fck_ximage_resize/fck_ximage_resize.php (v1.5.3) |h>
 +<?php
 +/*********************************************************************************************
 + trigger CP_WYSIWYG_image_resize V1.5.3  05.10.09  K.Heermann (flip-flop) http://planmatrix.de
 +
 + Since phpwcms V1.4.2 r308 (07.04.2009)
 + Based on the new experimental function for using filecenter images with the fck wysiwyg editor.
 + CPs: 1 => textimage, 14 => wysiwyg, 26 => recipe, 32 => tabs
 +
 + -> http://code.google.com/p/phpwcms/source/detail?r=308
 + "FCKEditor got support for phpwcms file browser. Use new setting
 + $phpwcms['FCK_FileBrowser'] = 1 in conf.inc.php to enable it (thanks Markus Köhl
 + <www.pagewerkstatt.ch> for idea and code)."
 + -------------
 + 23.03.09 KH V1.0.0: First script
 + 25.03.09 KH V1.1.0: Own jpg qualitiy around line 70, error correktion (&amp;q=)-> thanks to claus
 + 25.03.09 KH V1.2.0: Experimental cmsimage function included (stored img files and crop - better quality)
 + 27.03.09 KH V1.3.0: Switch in this file: $xlite = switches the LightBox generally to on
 + 29.03.09 KH V1.4.0: Add: EnlargeIt! for zooming images http://enlargeit.timos-welt.de/english/11/
 + 30.03.09 KH V1.4.1: Add: EnlargeIt!: group classes for prev/next output. General on switch
 + 18.04.09 KH V1.4.2: Add: ReMooz: ReMooz (v1.0) http://digitarald.de
 + 21.04.09 KH V1.5.0: Add: Changeover into a separate file, for a better handling in modules
 + 21.05.09 KH V1.5.1: Add: Changeover EnlargeIt/ReMooz into separate files.
 +                    Changed ReMooz container from <div .. to <span ...
 +                    (fck-<p><span...> ...</span>:  Only inline elements are allowed inside p tags)
 +  26.05.09 KH V1.5.2: Add: Generally xnp (next/prev) setup in file direct.
 +  05.10.09 KH V1.5.3: Add: Random image (optinal) catch an random-image from filecenter folder
 +  -------------
 + Switches in class name set:
 +  xcrop = crop thumb on| xlight = LightBox on| xnp = nextprev on in LighBox
 +  xlight = LightBox on
 +  xnolight = LightBox off if LightBox is set generally in this file ($ixlightbox = true;)
 +  xremo = ReMooz on
 +  xnoremo = ReMooz off if ReMooz is set generally in this file ($ixeremo = true;)
 +
 +  xenlarge = EnlargeIt! on
 +  xnoenlarge = EnlargeIt! off if EnlargeIt! is set generally in this file ($ixenlargeit = true;)
 +
 +  lightbox call switched from filearchive to cmsimage.php function ($cmsimage = true;)
 +  (A new image is generated in content/images/)
 +
 + The height/widht paramters from fck are injected into the used function image_resized.php
 + (with jpg quality declared in conf.inc.php)
 +
 + *********************************************************************************************/
 +// -------------------------------------------------------------------------------------------
 +// obligate check for phpwcms constants
 +  if (!defined('PHPWCMS_ROOT')) {
 +    die("You Cannot Access This Script Directly, Have a Nice Day."); }
 +// -------------------------------------------------------------------------------------------
 +
 +
 +function fck_ximage_resize($text) {
 +
 + // ========================================================================
 + // Search for all image strings between "<img"       ">"
 +   $text = preg_replace_callback("/<img(.*?) \/>/", "my_image_resize" , $text);
 + // ========================================================================
 +
 + // ------------------------------------------------------------------------
 + // Only if ReMooz is active: Set a unique container around and a unique addEvent
 + // Othewise only one container is possible for all ReMoozed images on the whole site.
 + // ------------------------------------------------------------------------
 +
 + if ( strpos($text, 'rel="remoozboxed"') ) // ReMooz in use?
 + {
 + $my_random = substr(md5(microtime()),0,16);  // We need a string for a unique id
 +
 +
 + $GLOBALS['block']['custom_htmlhead']["remooz_'.$my_random.'"] = '  <script type="text/javascript">
 +
 +// <![CDATA[
 +window.addEvent(\'load\', function() {
 +
 +  ReMooz.assign(\'#my-remooz-image_'.$my_random.' a[rel=remoozboxed]\', {
 +   \'origin\': \'img\',
 +   \'resizeFactor\': 0.85, // resize to maximum 85% of screen size
 +   \'margin\': 20,
 +   \'dragging\': true, // disable dragging
 +   \'centered\': false // resize to center of the screen, not relative to the source element
 +  });
 +});
 +   // ]]>
 +
 +  </script>';
 +
 +
 + $text = '<div id="my-remooz-image_'.$my_random.'">'.$text.'</div>';
 + };
 + // ---END ReMooz-----------------------------------------------------------
 +
 + return $text;
 +}
 +
 +
 + // --- Inner function --------------------------------------
 + // $img_tag[0] -> Here we admit into a complete string "<img       >"
 + // $img_tag[1] -> is the string between "<img        >"
 + function my_image_resize($img_tag) {
 +
 +
 + if (strpos($img_tag[1],'image_resized.php')) {  // image_resized.php available?
 +
 + /***********************************************************************
 +  Switches for own JPG quaility, generally function call and generally LightBox
 +  - simple image_resized without file storage (low rendered img qualitiy)
 +  - img/cmsimage with rendered file stored in content/images/* (better quality)
 + **********************************************************************/
 + // Switch between quality parameter from config or your own one
 +    $quality = 85; // default
 + // $my_quality = $GLOBALS['phpwcms']['jpg_quality'];
 +
 + // The image quality generated by image_resized is very crappy
 + // Switch between simple image_resized = 0  <-> img/cmsimage = 1
 +    $cmsimage = true;
 +    
 + // Using the LightBox generally
 +    $ixlightbox  = false;
 +    
 + // Using the ReMooz generally
 +    $ixremooz    = false;
 +    
 + // Using the EnlargeIt generally
 +    $ixenlargeit = false;
 +    
 + // Using the prev/next feature generally
 +    $ixnp        = false; // available for LightBox and EnlargeIt
 +    
 + // Using a random picture generally
 +    $ixrandom    = false;
 +
 +
 + // Priority 1-LightBox, 2-ReMooz, 3-EnlargeIt
 + // Only one methode is allowed
 +    if ($ixlightbox)  {$ixremooz = false; $ixenlargeit = false;}
 +      elseif ($ixremooz)  {$ixenlargeit = false; $ixlightbox = false; $ixnp = false;}
 +        elseif ($ixenlargeit)  {$ixremooz = false; $ixlightbox = false;}
 + //**********************************************************************
 + // FCK -> images -> enhanced -> style sheet class:
 + // Classes separated with blanks
 + // - xcrop       = crop thumb on
 + // - xnp         = nextprev on      // LightBox and EnlargeIt
 + // - xlight      = lightbox on
 + // - xnolight    = lightbox off (if set generally to on)
 + // - xremo       = ReMooz on
 + // - xnoremo     = ReMooz off (if set generally to on)
 + // - xenlarge    = (Optional) EnlargeIt! on
 + // - xnoenlarge  = (Optional) EnlargeIt! off (if set generally to on)
 + // - xrandom     = A random image from one filecenter folder
 +
 +
 + // e.g. xcrop xlight        -> using Thumb cropping and LightBox
 + // e.g. xlight xnp          -> using LightBox and the next/prev function
 + //                             if more then one image available in LightBox (this cp)
 + // e.g. xcrop xenlarge xnp  -> using Thumb cropping, EnlargeIt! and prev/next
 + // e.g. xcrop xremo         -> using Thumb cropping and ReMooz
 + // e.g. xcrop xremo xrandom -> using Thumb cropping, ReMooz and a randomized image
 + //**********************************************************************
 +
 +
 + // 1. Dimensions adjusted in fck image attributes:           e.g. height="150" width="200"
 + // 2. Dimensions adjusted direct using the computer mouse:   e.g. style="width: 200px; height: 150px;"
 +
 + preg_match_all('/((height="|height: )(\d+)("|px))|((width="|width: )(\d+)("|px))|filearchive\/([a-fA-F0-9]{32}).([jJpPeEgGnNiIfF]{3,4})"/', $img_tag[1], $temp); // "fck height/width" search and save in $temp[3]/[7] = value
 +
 + // Set search- and replacer
 +
 +//kh Wird erwartet: <img src="image_resized.php?format=jpg&w=100&h=200&q=85&imgfile=test.jpg" alt="" border="0">
 +//kh Alte Version: $search  = '#image_resized\.php\?format\=(.*?)\&amp;q\=(.*?)\&amp;imgfile\=filearchive/(.*?)" #';
 +
 + $search   = '#image_resized\.php\?format\=(.*?)\&amp;q\=(.*?)\&amp;imgfile\=filearchive/([a-fA-F0-9]{32}).([jJpPeEgGnNiIfF]{3,4})"#';
 + $width    = implode($temp[7]);    // FCK image width
 + $height   = implode($temp[3]);    // FCK image height
 + $image[1] = implode($temp[9]);    // Filecenter hash name
 + $image[2] = implode($temp[10]);   // Filecenter hash extend
 +
 + $img_wrap  = array();
 + $enlargeit  = '';
 + $temp       = '';
 +
 +
 + if (empty($cmsimage)) { // ====== using simple image_resized without stored files?
 + $replace = 'image_resized.php?format=$1'.'&amp;w='.$width.'&amp;h='.$height.'&amp;q='.$quality.'&amp;imgfile=filearchive/$3.$4" ';
 + }
 + else { // ====== No,we uses cmsimage
 + // and there we have some paramaters concealed in class names
 + $title  = preg_match('/title\="(.*?)"/i',$img_tag[1], $g) ? html_specialchars($g[1]) : '' ;  //
 +
 + // === catch the classes and sort if xnp ist set
 + $class_temp  = preg_match('/class="(.*?)"/i',$img_tag[1], $g) ? trim($g[1]) : '';  // cut out all class names
 + $temp = explode(' ', $class_temp);
 + $class = '';
 + asort($temp);
 +
 + foreach($temp as $value)
 + $class .= $value.' ';
 +
 + $xcrop      =  in_array('xcrop',     $temp);
 + $xnp        = (in_array('xnp',       $temp) OR $ixnp == true) ? true : false;
 +
 + $xlight     =  in_array('xlight',    $temp);
 + $xnolight   =  in_array('xnolight',  $temp);
 +
 + $xremo      =  in_array('xremo',     $temp);  // only if no LightBox and no EnlargeIt
 + $xnoremo    =  in_array('xnoremo',   $temp);
 +
 + $xenlarge   = in_array('xenlarge',   $temp);  // only if no LightBox
 + $xnoenlarge = in_array('xnoenlarge', $temp);
 +
 + $xrandom    = (in_array('xrandom',   $temp) OR $ixrandom == true) ? true : false;
 +
 + // Generaly switch over all
 + if ($ixlightbox)      {$xlight   = 'xlight'; $xremo = '';      $xenlarge = '';}
 + elseif ($ixremooz)    {$xlight   = '';       $xremo = 'xremo'; $xenlarge = ''; $xnp = '';}
 + elseif ($ixenlargeit) {$xlight   = '';       $xremo = '';      $xenlarge = 'xenlarge';}
 +
 +
 + // Priority 1-LightBox, 2-ReMooz, 3-EnlargeIt
 + if (!empty($xlight)) {$xremo    = ''; $xenlarge = '';}
 + elseif (!empty($xremo))  {$xenlarge = ''; $xlight   = '';}
 + elseif (!empty($xenlarge)) {$xremo  = ''; $xlight   = '';}
 +
 + // Inject into class string in EnlargeIt! section some lines down
 +
 + // ======= cmsimage parameter set
 + // get segments: cmsimage.php/%WIDTH%x%HEIGHT%x%CROP%x%QUALITY%/%HASH%.%EXT%
 + // by default this should be enough: cmsimage.php/%WIDTH%x%HEIGHT/%HASH%.%EXT%
 +
 + // for lightbox images used from config
 + // $phpwcms['img_prev_width']   //max width of the large preview image
 + // $phpwcms['img_prev_height']  //max height of the large preview image
 +
 +
 + // ====== Random ?? Set in class or generally
 + // ====== Random include file available?
 +
 + if ( !empty($xrandom) OR $ixrandom )
 + if (file_exists($GLOBALS[basepath].'/template/inc_script/fck_ximage_resize/inc_random.php') ) {
 +  include $GLOBALS[basepath].'/template/inc_script/fck_ximage_resize/inc_random.php'; // this will include a.php
 + }
 + // ====== END Random
 +
 +
 + // ====== LIGHTBOX ?? Set in class or generally
 +// if ( (!$xnolight) AND ($xlight OR $ixlightbox) ) {
 + if ( empty($xnolight) AND (!empty($xlight) OR $ixlightbox) ) {
 + $xnextprev = !empty($xnp) ? '[xcpid'.$GLOBALS['crow']['acontent_id'].']' : '';  // next/prev for lightbox?
 +
 + $img_wrap['begin'] = '<a href="img/cmsimage.php/'.$GLOBALS['phpwcms']['img_prev_width'].'x'.$GLOBALS['phpwcms']['img_prev_height'].'/'.$image[1].'.'.$image[2].'" rel="lightbox'.$xnextprev.'" title="'.$title.'" target="_blank">';
 + $img_wrap['end']   = '</a>';
 +
 +
 + initializeLightbox();  // start mootools and slimbox
 +
 + } // LightBox END ======
 +
 +
 + // ====== ReMooz ?? Set in class or generally
 + // ====== ReMooz include file available?
 +
 + if ( empty($xnoremo) AND (!empty($xremo) OR $ixremooz) )
 + if (file_exists($GLOBALS[basepath].'/template/inc_script/fck_ximage_resize/inc_remooz.php') ) {
 +  include $GLOBALS[basepath].'/template/inc_script/fck_ximage_resize/inc_remooz.php'; // this will include a.php
 + }
 + //  END ReMooz ======
 +
 +
 + // ====== EnlargeIt ?? Set in class or generally
 + // ====== EnlargeIt include file available?
 +
 + if ( empty($xnoenlarge) AND (!empty($xenlarge) OR $ixenlargeit) )
 + if (file_exists($GLOBALS[basepath].'/template/inc_script/fck_ximage_resize/inc_enlargeit.php') ) {
 +  include $GLOBALS[basepath].'/template/inc_script/fck_ximage_resize/inc_enlargeit.php'; // this will include a.php
 + }
 + // ====== END EnlargeIt
 +
 +
 + // ====== Thumb with width/height and crop from FCK
 + //kh Wird erwatet: cmsimage.php/%WIDTH%x%HEIGHT%x%CROP%x%QUALITY%/%HASH%.%EXT%
 + //-kh v152 $replace = 'img/cmsimage.php/'.$width.'x'.$height.'x'.$xcrop.'x'.$quality.'/$3.$4" '.$enlargeit;
 + $replace = 'img/cmsimage.php/'.$width.'x'.$height.'x'.$xcrop.'x'.$quality.'/'.$image[1].'.'.$image[2].'" '.$enlargeit;
 +
 + } // END cms_image
 +
 + $img_tag[0] = $img_wrap['begin'] . preg_replace($search, $replace, $img_tag[0]) . $img_wrap['end'];
 + } // END my_image_resize
 +
 + return $img_tag[0];
 + }
 + // ---------------------------------------------------------
 +
 +
 +?>
 +</code>
 +
 +\\
 +
\\ \\
Line 482: Line 797:
**Version:** V1.5.1  //2009/05/21//  \\ **Version:** V1.5.1  //2009/05/21//  \\
-**Update:**  --   +**Update:**  V1.5.3  //2009/10/07//    
**Filename:** inc_remooz.php    \\ **Filename:** inc_remooz.php    \\
Line 539: Line 854:
?> ?>
 +</code>
 +
 +
 +\\
 +**Update v1.5.3**
 +<code php |h d:template/inc_script/fck_ximage_resize/inc_remooz.php (v1.5.3) |h >
 +<?php
 +/*********************************************************************************************
 + trigger CP_WYSIWYG_image_resize V1.5.3  05.10.09  K.Heermann (flip-flop) http://planmatrix.de
 + 21.05.09 KH V1.5.1: Add: Changeover EnlargeIt/ReMooz into separate files.
 + 05.10.09 KH V1.5.3: Change: some small changes (Random added).
 +*********************************************************************************************/
 +// ----------------------------------------------------------------
 +// obligate check for phpwcms constants
 +  if (!defined('PHPWCMS_ROOT')) {
 +    die("You Cannot Access This Script Directly, Have a Nice Day."); }
 +// ----------------------------------------------------------------
 +
 +
 + // ReMooz and no prev/next: Generates a random class name (from image file name)
 + // At this moment (v1.0) there is no function for prev/next
 +
 + if ( empty($xnoremo) AND (!empty($xremo) OR $ixremooz) )
 + {
 + if ($ixremooz) {
 + $class .= 'xremo';
 + // insert the class, for better formatting
 + $img_tag[0] = preg_replace('/class="(.*?)"/i', 'class="'.trim($class).'"', $img_tag[0]) ;
 + }
 +
 + $img_wrap['begin'] = '<span class="my_remooz-class">'.LF;
 + $img_wrap['begin'] .= '<a rel="remoozboxed" href="img/cmsimage.php/'.$GLOBALS['phpwcms']['img_prev_width'].'x'.$GLOBALS['phpwcms']['img_prev_height'].'/'.$image[1].'.'.$image[2].'" title="'.$title.'">';
 + $img_wrap['end']   = '</a>'.LF.'</span>'.LF;
 +
 +
 +// *** EDIT ReMooz *********************************************************************
 +
 + $GLOBALS['block']['custom_htmlhead']['remooz.css'] = '  <link rel="stylesheet" type="text/css" href="'.TEMPLATE_PATH.'inc_js/mootools/remooz/ReMooz.css" />';
 + $GLOBALS['block']['custom_htmlhead']['remooz_inner.css'] = '  <style type="text/css">
 +    .xremo {  border:1px solid #666; }
 +  </style>';
 +
 + $GLOBALS['block']['custom_htmlhead']['mootools.js'] = '  <script src="'.TEMPLATE_PATH.'inc_js/mootools/mootools.js" type="text/javascript"></script>';
 +// $GLOBALS['block']['custom_htmlhead']['mootools-more.js']  = '  <script src="'.TEMPLATE_PATH.'inc_js/mootools/mootools-more.js" type="text/javascript"></script>';
 + $GLOBALS['block']['custom_htmlhead']['remooz.js'] = '  <script src="'.TEMPLATE_PATH.'inc_js/mootools/remooz/ReMooz.js" type="text/javascript"></script>';
 +
 + // JS call please the in the head of thid file
 +
 +// *** END EDIT ReMooz *****************************************************************
 +
 + }
 + //  END ReMooz ======
 +?>
</code> </code>
Line 555: Line 923:
=== fck-ximage-resize only === === fck-ximage-resize only ===
-  * ximage_resize (all files)+  * ximage_resize //(V1.5.2)//
{{:english:phpwcms_replacer_rts:frontend_init:cp_trigger:fck_ximage_resize_260509.zip|fck_ximage_resize_260509.zip}} {{:english:phpwcms_replacer_rts:frontend_init:cp_trigger:fck_ximage_resize_260509.zip|fck_ximage_resize_260509.zip}}
Line 572: Line 940:
=== Complete file set === === Complete file set ===
-  * ximage_resize (all files)+  * ximage_resize (all files) //(V1.5.2)//
  * ReMooz   * ReMooz
  * MooTools V1.2.2 (core and more)   * MooTools V1.2.2 (core and more)
Line 595: Line 963:
**V1.5.1** //21.05.09// : + Changeover EnlargeIt/ReMooz into separate files. \\ **V1.5.1** //21.05.09// : + Changeover EnlargeIt/ReMooz into separate files. \\
Changed ReMooz container from <div .. to <span ... (fck-<p><span...> ...</span>:  Only inline elements are allowed inside p tags)\\ Changed ReMooz container from <div .. to <span ... (fck-<p><span...> ...</span>:  Only inline elements are allowed inside p tags)\\
-**V1.5.2** //26.05.09// : + Generally xnp (next/prev) setup in file direct (only for LightBox and EnlargeIt)+**V1.5.2** //26.05.09// : + Generally xnp (next/prev) setup in file direct (only for LightBox and EnlargeIt) \\ 
 +**V1.5.3** //05.10.09// : + random-image (optional) catch an random-image from filecenter folder
english/phpwcms_replacer_rts/frontend_init/cp_trigger/wysiwyg-image-resize.1243249635.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0