From f14cec04a2af467553ef4a101a062cf50cfcf9a1 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 7 Sep 2014 10:12:34 +0200 Subject: [PATCH] isp - new mediainsert cases --- serendipity_event_imageselectorplus/ChangeLog | 10 + .../UTF-8/documentation_cs.html | 185 ----------- .../UTF-8/documentation_cz.html | 185 ----------- .../UTF-8/lang_de.inc.php | 28 +- ...entation_en.html => documentation_de.html} | 307 +++++++++++------- .../documentation_en.html | 93 ++++-- .../lang_de.inc.php | 28 +- .../lang_en.inc.php | 7 +- .../plugin_mediainsert.tpl | 12 +- .../serendipity_event_imageselectorplus.php | 39 ++- 10 files changed, 357 insertions(+), 537 deletions(-) delete mode 100644 serendipity_event_imageselectorplus/UTF-8/documentation_cs.html delete mode 100644 serendipity_event_imageselectorplus/UTF-8/documentation_cz.html rename serendipity_event_imageselectorplus/{UTF-8/documentation_en.html => documentation_de.html} (51%) diff --git a/serendipity_event_imageselectorplus/ChangeLog b/serendipity_event_imageselectorplus/ChangeLog index c7f8a2c0..a0f7a3b4 100644 --- a/serendipity_event_imageselectorplus/ChangeLog +++ b/serendipity_event_imageselectorplus/ChangeLog @@ -1,4 +1,14 @@ +0.42: +----- + + * Merge new xml structure "picperrow" and "hideafter" by user "nogat" + http://board.s9y.org/viewtopic.php?f=4&t=20058, 2014-08-22 + * add some media gallery css + * minors for version switch + + 0.41: +----- * removed wrong slash in plugin_mediainsert.tpl fullimage link path diff --git a/serendipity_event_imageselectorplus/UTF-8/documentation_cs.html b/serendipity_event_imageselectorplus/UTF-8/documentation_cs.html deleted file mode 100644 index a8dbb3c6..00000000 --- a/serendipity_event_imageselectorplus/UTF-8/documentation_cs.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - Dokumentace: Avatar Plugin - - -

Dokumentace pluginy Serendipity ImageSelectorPlus

- -

Dokumentaci k tomuto pluginu přeložil do češtiny Vladimír Ajgl (vlada [zavinac] ajgl [tecka] cz) dne 26.6.2011. Od té doby mohl být plugin pozměněn nebo mohly být rozšířené jeho funkce. Zkontrolujte pro jistotu i anglickou dokumentaci a ChangeLog. - -

Obecný popis

-

- Plugin ImageSelectorPlus se používá k usnadnění práce s obrázky, především k vkládání obrázků z mediatéky (interní galerie Serendipity). -

- -

QuickBlog

-

-Při nahrávání obrázku ho rovnou můžete vystavit jako příspěvek. Řiďte se podle instrukcí nad formulářem QuickBlogu na straně s nahráváním souborů. -

- -

Změna vzhledu příspěvku QuickBlogu

-

- Plugin používá šablonu "plugin_quickblog.tpl". Její změnou změníte vzhled vkládaných obrázků. -

- -

Informace o obrázku jsou uchovány v poli {$quickblog}, které má tyto části: -

-

- - -

Hromadné vkládání obrázků

- Další funkcí je hromadné vkládání obrázků. Funguje na principu, že v textu příspěvku napíšete xml strukturu, kterou plugin nahradí obrázky z databáze. -

- -

Kdy se to hodí?

-

- Když píšete fotoblog a potřebujete do příspěvku vkládat více obrázků najednou. Když máte padesát fotek, které jsou navíc očíslované, tak je můžete vložit buď po jedné, jak to Serendipity umožňují v základu, nebo pomocí jediné řádky s použitím popisovaného pluginu. -

- -

Příklady

-

Příklad 1 - vkládáme části galerie

-
-        <mediainsert>
-            <gallery name="MyHolidays/" />
-            <media type="single" name="pict0034" />
-            <media type="single" name="pict0032" />
-            <media type="range" prefix="pict00" start="35" stop="52" />
-        </mediainsert>
-    
-

- Takto vložíme z galerie "MyHolidays" obrázek "pict0034", po něm obrázek "pict0032" a pak všechny obrázky od "pict0035" do "pict0052". - -

-

- -

Příklad 2 - vkládáme celou galerii najednou

-
-        <mediainsert>
-            <gallery name="MyHolidays/" />
-            <media type="gallery" />
-        </mediainsert>
-    
- -

Důležité

-

Plugin je relativně citlivý na (ne)správnost syntaxe xml. Pokud není bezchybná, typicky zapomenete na ukončovací zpětné lomítko v tagu media, můžete vyřadit z činnosti celý blog!!! (prostě není ošetřená kontrola správnosti syntaxe a parser na špatné syntaxi havaruje)

- -

Přehled xml tagů

-
-
<mediainsert>
-
hlavní kontejner pro vkládané obrázky
- -
<gallery>
-
cesta ke galerii, ze které mají být brány obrázky (reltivně k adresáři uploads/ - bez úvodního lomítka a s ukončujícím lomítkem - "MyHolidays" nebo "/MyHolidays/" jsou špatně. Správně je "MyHolidays/".)
- -
<media>
-
Určuje, které obrázky mají být vloženy. Na základě atributu "type" je možno vložit obrázky třemi způsoby: - -
    -
  • "single" - vloží jeden obrázek se jménem zadaným atributem "name"
  • -
  • "gallery" - bez dalších atributů, vloží celou galerii
  • -
  • "range" - vloží číslované obrázky od obrázku "prefix""start" do obrázku "prefix""stop" (viz. příklad 1)
  • -
-
-
- -

Změna vzhledu vkládaných obrázků

-

- Plugin používá šablonu "plugin_mediainsert.tpl". Její změnou změníte vzhled vkládaných obrázků.

- -

Informace o obrázku jsou uchovány v poli {$plugin_mediainsert_media}, které má tyto části: -

-

- - -

Rozbalování ZIP archivů

- -

K čemu je to dobré

-

Kupříkladu když chcete nahrát mnoho souborů najednou. Nemusíte vybírat jednotlivé soubory po jednom (což je zdlouhavé). Prostě je zabalíte do zip archivu, nahrajete tento archiv a ten bude na blogu rozbalen.

- -

Vlastnosti rozbalování ZIPů

-

-

-

- - -

Automatická změna velikosti obrázků

- -

Tato funkce automaticky prohledá příspěvek blogu a vyhledá obrázky, které jsou zadány ve formě:

- -
-<img src="/uploads/mujobrazek.jpg" width="100" height="150" />
-
- -

Když najde obrázek v tomto formátu (pokud najde obrázek s definovanou výškou a/nebo šířkou), nahradí jeho atribut 'src' (adresa obrázku) odkazem na skript pro změnu velikosti obrázku 'serendipity_admin_image_selector.php'. Tedy přepíše odkaz na něco jako:

- -
-<img src="http://www.mujblog.cz/serendipity_admin_image_selector.php?serendipity[image]=1&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=100&serendipity[resizeHeight]=150" width="100" height="150" />
-
- -

Tato vlastnost šetří váš čás, pokud potřebujete použít stejný obrázek ve více rozlišeních a může také ušetřit čas nutný pro stažení obrázků při prohlížení vašeho blogu. Vliv na rychlost blogu je minimální, protože se změna velikosti obrázku provede jenom jednou, při prvním přepisu tagu <img>. -

- -

Poznámky

- -
    -
  1. Poměr stran obrázku je zachován.
  2. -
  3. Stačí definovat pouze jeden z atributů 'width' nebo 'height'. Pokud není zadán žádný z nich, obrázek je ignorován a adresa není nahrazena adresou na skript pro změnu velikosti obrázku.
  4. -
  5. Pokud jsou zadány dohromady jak šířka ('width'), tak výška ('height'), obrázek bude zvětšen/zmenšen při zachování poměrů stran tak, aby se vešel do zadané oblasti.
  6. -
- -

Autoři

-

-Garvin Hicking, Německo - všechno ostatní
-Vladimír Ajgl (vlada [at] ajgl [dot] cz), Česká republika, 19.11.2007 - hromadné vkládání obrázků do příspěvků pomocí XML, hromadné nahrávání v ZIP souboru -

- - -

Historie verzí (ChangeLog)

- - - - - diff --git a/serendipity_event_imageselectorplus/UTF-8/documentation_cz.html b/serendipity_event_imageselectorplus/UTF-8/documentation_cz.html deleted file mode 100644 index a8dbb3c6..00000000 --- a/serendipity_event_imageselectorplus/UTF-8/documentation_cz.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - Dokumentace: Avatar Plugin - - -

Dokumentace pluginy Serendipity ImageSelectorPlus

- -

Dokumentaci k tomuto pluginu přeložil do češtiny Vladimír Ajgl (vlada [zavinac] ajgl [tecka] cz) dne 26.6.2011. Od té doby mohl být plugin pozměněn nebo mohly být rozšířené jeho funkce. Zkontrolujte pro jistotu i anglickou dokumentaci a ChangeLog. - -

Obecný popis

-

- Plugin ImageSelectorPlus se používá k usnadnění práce s obrázky, především k vkládání obrázků z mediatéky (interní galerie Serendipity). -

- -

QuickBlog

-

-Při nahrávání obrázku ho rovnou můžete vystavit jako příspěvek. Řiďte se podle instrukcí nad formulářem QuickBlogu na straně s nahráváním souborů. -

- -

Změna vzhledu příspěvku QuickBlogu

-

- Plugin používá šablonu "plugin_quickblog.tpl". Její změnou změníte vzhled vkládaných obrázků. -

- -

Informace o obrázku jsou uchovány v poli {$quickblog}, které má tyto části: -

-

- - -

Hromadné vkládání obrázků

- Další funkcí je hromadné vkládání obrázků. Funguje na principu, že v textu příspěvku napíšete xml strukturu, kterou plugin nahradí obrázky z databáze. -

- -

Kdy se to hodí?

-

- Když píšete fotoblog a potřebujete do příspěvku vkládat více obrázků najednou. Když máte padesát fotek, které jsou navíc očíslované, tak je můžete vložit buď po jedné, jak to Serendipity umožňují v základu, nebo pomocí jediné řádky s použitím popisovaného pluginu. -

- -

Příklady

-

Příklad 1 - vkládáme části galerie

-
-        <mediainsert>
-            <gallery name="MyHolidays/" />
-            <media type="single" name="pict0034" />
-            <media type="single" name="pict0032" />
-            <media type="range" prefix="pict00" start="35" stop="52" />
-        </mediainsert>
-    
-

- Takto vložíme z galerie "MyHolidays" obrázek "pict0034", po něm obrázek "pict0032" a pak všechny obrázky od "pict0035" do "pict0052". - -

-

- -

Příklad 2 - vkládáme celou galerii najednou

-
-        <mediainsert>
-            <gallery name="MyHolidays/" />
-            <media type="gallery" />
-        </mediainsert>
-    
- -

Důležité

-

Plugin je relativně citlivý na (ne)správnost syntaxe xml. Pokud není bezchybná, typicky zapomenete na ukončovací zpětné lomítko v tagu media, můžete vyřadit z činnosti celý blog!!! (prostě není ošetřená kontrola správnosti syntaxe a parser na špatné syntaxi havaruje)

- -

Přehled xml tagů

-
-
<mediainsert>
-
hlavní kontejner pro vkládané obrázky
- -
<gallery>
-
cesta ke galerii, ze které mají být brány obrázky (reltivně k adresáři uploads/ - bez úvodního lomítka a s ukončujícím lomítkem - "MyHolidays" nebo "/MyHolidays/" jsou špatně. Správně je "MyHolidays/".)
- -
<media>
-
Určuje, které obrázky mají být vloženy. Na základě atributu "type" je možno vložit obrázky třemi způsoby: - -
    -
  • "single" - vloží jeden obrázek se jménem zadaným atributem "name"
  • -
  • "gallery" - bez dalších atributů, vloží celou galerii
  • -
  • "range" - vloží číslované obrázky od obrázku "prefix""start" do obrázku "prefix""stop" (viz. příklad 1)
  • -
-
-
- -

Změna vzhledu vkládaných obrázků

-

- Plugin používá šablonu "plugin_mediainsert.tpl". Její změnou změníte vzhled vkládaných obrázků.

- -

Informace o obrázku jsou uchovány v poli {$plugin_mediainsert_media}, které má tyto části: -

-

- - -

Rozbalování ZIP archivů

- -

K čemu je to dobré

-

Kupříkladu když chcete nahrát mnoho souborů najednou. Nemusíte vybírat jednotlivé soubory po jednom (což je zdlouhavé). Prostě je zabalíte do zip archivu, nahrajete tento archiv a ten bude na blogu rozbalen.

- -

Vlastnosti rozbalování ZIPů

-

-

-

- - -

Automatická změna velikosti obrázků

- -

Tato funkce automaticky prohledá příspěvek blogu a vyhledá obrázky, které jsou zadány ve formě:

- -
-<img src="/uploads/mujobrazek.jpg" width="100" height="150" />
-
- -

Když najde obrázek v tomto formátu (pokud najde obrázek s definovanou výškou a/nebo šířkou), nahradí jeho atribut 'src' (adresa obrázku) odkazem na skript pro změnu velikosti obrázku 'serendipity_admin_image_selector.php'. Tedy přepíše odkaz na něco jako:

- -
-<img src="http://www.mujblog.cz/serendipity_admin_image_selector.php?serendipity[image]=1&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=100&serendipity[resizeHeight]=150" width="100" height="150" />
-
- -

Tato vlastnost šetří váš čás, pokud potřebujete použít stejný obrázek ve více rozlišeních a může také ušetřit čas nutný pro stažení obrázků při prohlížení vašeho blogu. Vliv na rychlost blogu je minimální, protože se změna velikosti obrázku provede jenom jednou, při prvním přepisu tagu <img>. -

- -

Poznámky

- -
    -
  1. Poměr stran obrázku je zachován.
  2. -
  3. Stačí definovat pouze jeden z atributů 'width' nebo 'height'. Pokud není zadán žádný z nich, obrázek je ignorován a adresa není nahrazena adresou na skript pro změnu velikosti obrázku.
  4. -
  5. Pokud jsou zadány dohromady jak šířka ('width'), tak výška ('height'), obrázek bude zvětšen/zmenšen při zachování poměrů stran tak, aby se vešel do zadané oblasti.
  6. -
- -

Autoři

-

-Garvin Hicking, Německo - všechno ostatní
-Vladimír Ajgl (vlada [at] ajgl [dot] cz), Česká republika, 19.11.2007 - hromadné vkládání obrázků do příspěvků pomocí XML, hromadné nahrávání v ZIP souboru -

- - -

Historie verzí (ChangeLog)

- - - - - diff --git a/serendipity_event_imageselectorplus/UTF-8/lang_de.inc.php b/serendipity_event_imageselectorplus/UTF-8/lang_de.inc.php index f33fd63d..17576280 100644 --- a/serendipity_event_imageselectorplus/UTF-8/lang_de.inc.php +++ b/serendipity_event_imageselectorplus/UTF-8/lang_de.inc.php @@ -1,12 +1,36 @@ - + * DE-Revision: Revision of UTF-8/lang_de.inc.php + * Revised by "nogat" 2014/08/22 + */ @define('PLUGIN_EVENT_IMAGESELECTORPLUS_NAME', 'Erweiterte Optionen für Bildauswahl'); -@define('PLUGIN_EVENT_IMAGESELECTORPLUS_DESC', 'Ermöglicht erweiterte Optionen beim Einfügen von Bildern aus der Mediendatenbank. [Serendipity >= 0.9]'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_DESC', 'Ermöglicht erweiterte Optionen beim Einfügen von Bildern aus der Mediendatenbank.'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET', 'Ziel des Links'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET_JS', 'Popup (via JavaScript, angepasste Größe)'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET_ENTRY', 'Isolierter Eintrag'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET_BLANK', 'Popup (via target=_blank)'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_QUICKBLOG', 'QuickBlog'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_QUICKBLOG_DESC', 'Wenn Sie bei den folgenden Feldern mindestens einen Titel eintragen, wird das Bild sofort als neuer Blog-Artikel eingestellt. Das Ausgabedesign kann über die Datei quickblog.tpl eingestellt werden.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_MAXWIDTH', 'Maximale Breite des Miniaturbildes (verwirft die Höhenangabe)'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_MAXHEIGHT', 'Maximale Höhe des Miniaturbildes (verwirft die Breitenangabe)'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_AUTORESIZE', 'Ändert die Bildgröße anhand der Breiten - und Höhenangabe'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_AUTORESIZE_DESC', 'Sendet automatische Größen Ihrer Bilder an den Browser, basierend auf der Breiten/Höhenangabe des IMG-Tag. Dies kann Ihr Leben erleichtern, außerdem die Downloadzeiten verringern und die Serverseitige Performance verbessern. (Hinweis: Die Seitenverhältnisse bleiben erhalten)'); + +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FILES', 'ZIP-Archive entpackt'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FILES_BLABLAH', 'Hochgeladene ZIP-Archive entpacken? - Vorgabe für das Formular auf der Bilder-Upload-Seite.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FILES_DESC', 'Hochgeladene ZIP-Archive entpacken?'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_OK', 'ZIP-Archive erfolgreich entpackt!'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FAILED', 'Fehler beim entpacken der ZIP-Archive!'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_IMAGE_FROM_ARCHIVE', 'Bild aus einem ZIP-Archive'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_ADD_TO_DB', 'zur Datenbank hinzugefügt'); + +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD', 'jhead nutzen, um EXIF-Daten zu erhalten'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD_DESC', 'Überschreibt das Standardverhalten und benutzt externe Funktionen (Calls), um per jhead EXIF-Daten zu erhalten. Nutzen Sie diese Option nur, wenn jhead installiert ist und auch ausgeführt werden kann!'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_IMAGE_SIZE_DESC', 'Wenn Sie die voreingestellte $serendipity[\'thumbSize\'] Größe hier ändern, wird ein zusätzliches Bild in der genannten Größe in der Mediendatenbank erstellt. Dies Image Instanz wird dann im Frontend als Bildvorschau mit entsprechendem Link zum Original Bild in ihrem Blogeintrag benutzt.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_ASOBJECT', 'Objekt-Type ist kein Bild?'); + diff --git a/serendipity_event_imageselectorplus/UTF-8/documentation_en.html b/serendipity_event_imageselectorplus/documentation_de.html similarity index 51% rename from serendipity_event_imageselectorplus/UTF-8/documentation_en.html rename to serendipity_event_imageselectorplus/documentation_de.html index c525cfb9..14b07fbd 100644 --- a/serendipity_event_imageselectorplus/UTF-8/documentation_en.html +++ b/serendipity_event_imageselectorplus/documentation_de.html @@ -1,121 +1,186 @@ -

Serendipity ImageSelectorPlus Plugin Documentation

- -

General description

-

- ImageSelectorPlus plugin is used to facilitate manipulation with images, especially their insertion into posts. -

- -

QuickBlog

-

-When uploading an image, you can post it directly. Follow the instructions above the QuickBlog form. -

- -

Modifying the design of QuickBlog post

-

- Plugin uses template file "plugin_quickblog.tpl" to display the inserted pictures. So by modifying it, you can change the design of displayed images.

-

Information about pictures is stored in an array {$quickblog} which has several parts you can use in your template: -

-

- - -

Multiple image insertions

-

-Another functionality of this plugin is multiple image insertion. If you write an xml structure in your entry, this plugin then replaces this xml structure by pictures from your media library. -

- -

When is it useful?

-

- When you write a blog, where you want to include many pictures in your entries. When you have fifty images and these images numbered in an ascending row, it is lengthy to insert them one by one through the images selector. With this plugin, you can insert all of them using on a single line. -

- -

Examples

-

Example 1 - including parts of gallery

-
-        <mediainsert>
-            <gallery name="MyHolidays/" />
-            <media type="single" name="pict0034" />
-            <media type="single" name="pict0032" />
-            <media type="range" prefix="pict00" start="35" stop="52" />
-        </mediainsert>
-    
-

- This example inserts from the directory "MyHolidays" picture "pict0034", then picture "pict0032" and then all pictures from "pict0035" to "pict0052". -

-

- -

Example 2 - including whole gallery at once

-
-        <mediainsert>
-            <gallery name="MyHolidays/" />
-            <media type="gallery" />
-        </mediainsert>
-    
- -

Important

-

The plugin is sensitive to bad xml syntax. So if it is not perfect, for example if you ommit ending backslash in the media tag, it can cause fail to your whole blog!!!

- -

Review of xml tags

-
-
<mediainsert>
-
general container of media insertion
- -
<gallery>
-
from which gallery to choose the images, attribute name gives the path (prom the directory uploads/ - without the first backslash and WITH the final backslash - "MyHolidays" or "/MyHolidays/" is false. Right is "MyHolidays/".)
- -
<media>
-
Defines which media to insert, first attribute is "type" and it can have next values: -
    -
  • "single" - includes single image given by attribute "name"
  • -
  • "gallery" - without other attributes, includes all images in gallery
  • -
  • "range" - includes numbered images from "prefix""start" to "prefix""stop" (see example1)
  • -
-
-
- -

Modifying the design of inserted galleries

-

- Plugin uses template file "plugin_mediainsert.tpl" to display the inserted pictures. So by modifying it, you can change the design of displayed images.

-

Information about pictures is stored in an array {$plugin_mediainsert_media} which has these parts you can use in your template: -

-

- -

Unzipping ZIP archives

-

What it is good for

-

Typically when you want to upload many pictures at once. You need not to select every image discinctly. Just pack them in the ZIP archive, upload this archive and it will be unzipped on your blog.

- -

Features of unzipping

-

-

-

- -

Authors

-

Garvin Hicking, Germany
-Vladimír Ajgl (vlada [at] ajgl [dot] cz), Czech Republic, 2007-11-19 -

+

Serendipity ImageSelectorPlus Plugin Beschreibung

+ +

Allgemeine Beschreibung

+

+ ImageSelectorPlus Plugin wird verwendet, um nderungen mit Bildern zu erleichtern, insbesondere bei der Einbindung in Artikel. +

+ +

QuickBlog

+

+ Beim Hochladen eines Bildes knnen Sie es direkt verffentlichen. Befolgen Sie die Anweisungen ber dem QuickBlog Eingabefeld. +

+ +

ndern des Aussehens des QuickBlog Eingabefeldes

+

+ Das Plugin verwendet eine Template-Datei "plugin_quickblog.tpl", um die eingefgten Bilder anzuzeigen. Indem Sie diese Datei bearbeiten, knnen Sie das Design der angezeigten Bilder ndern. +

+

+ Informationen zu Bildern werden in einem Array {$quickblog} gehalten, welches aus mehreren Teilen besteht, die Sie in Ihrer Vorlage verwenden knnen: +

+

+ + +

Mehrfaches einbinden von Bildern

+

+Another functionality of this plugin is multiple image insertion. If you write an xml structure in your entry, this plugin then replaces this xml structure by pictures from your media library. +

+ +

When is it useful?

+

+ When you write a blog, where you want to include many pictures in your entries. When you have fifty images and these images numbered in an ascending row, it is lengthy to insert them one by one through the images selector. With this plugin, you can insert all of them using on a single line. +

+ +

Examples

+

Example 1 - including parts of gallery

+
+        <mediainsert>
+            <gallery name="MyHolidays/" />
+            <media type="single" name="pict0034" />
+            <media type="single" name="pict0032" />
+            <media type="range" prefix="pict00" start="35" stop="52" />
+        </mediainsert>
+    
+

+ This example inserts from the directory "MyHolidays" picture "pict0034", then picture "pict0032" and then all pictures from "pict0035" to "pict0052". +

+

+ +

Example 2 - including whole gallery at once

+
+        <mediainsert>
+            <gallery name="MyHolidays/" />
+            <media type="gallery" />
+        </mediainsert>
+    
+ +

Beispiel 3 - Versteckt Vorschaubilder nach einer bestimmten Bildnummer

+
+        <mediainsert>
+            <gallery name="MyHolidays/" />
+            <media type="gallery" />
+            <media type="hideafter" nr="2" />
+        </mediainsert>
+    
+

+ In diesem Beispiel werden alle Bilder aus dem Verzeichnis "MyHolidays" angezeigt, aber ab dem 3. Bild werden alle folgenden versteckt. +

+

+ +

Beispiel 4 - Erzeugt einen Zeilenumbruch nach einer bestimmten Bildnummer

+
+        <mediainsert>
+            <gallery name="MyHolidays/" />
+            <media type="gallery" />
+            <media type="hideafter" nr="15" />
+            <media type="picperrow" pr="3" />
+        </mediainsert>
+    
+

+ In diesem Beispiel werden alle Bilder aus dem Verzeichnis "MyHolidays" angezeigt, ab dem 15. Bild werden alle folgenden versteckt. + Auerdem erfolgt eine Anordnung in 5 Reihen (15 / 3 = 5), es sind also 3 Bilder pro Reihe sichtbar in 5 Spalten. +

+ +

Important

+

The plugin is sensitive to bad xml syntax. So if it is not perfect, for example if you ommit ending backslash in the media tag, it can cause fail to your whole blog!!!

+ +

Review of xml tags

+
+
<mediainsert>
+
general container of media insertion
+ +
<gallery>
+
from which gallery to choose the images, attribute name gives the path (prom the directory uploads/ - without the first backslash and WITH the final backslash - "MyHolidays" or "/MyHolidays/" is false. Right is "MyHolidays/".)
+ +
<media>
+
Defines which media to insert, first attribute is "type" and it can have next values: +
    +
  • "single" - includes single image given by attribute "name"
  • +
  • "gallery" - without other attributes, includes all images in gallery
  • +
  • "range" - includes numbered images from "prefix""start" to "prefix""stop" (see example1)
  • +
  • "hideafter" - Versteckt Bilder nach einer bestimmten Anzahl an Bildern (Beispiel 3)
  • +
  • "picperrow" - Erzeugt nach einem Bild einen Umbruch, somit knnen Die Vorschaubilder in Zeilen aufgeteilt werden (Beispiel 4)
  • +
+
+
+ +

Modifying the design of inserted galleries

+

+ Plugin uses template file "plugin_mediainsert.tpl" to display the inserted pictures. So by modifying it, you can change the design of displayed images.

+

Information about pictures is stored in an array {$plugin_mediainsert_media} which has these parts you can use in your template: +

+

+ +

Unzipping ZIP archives

+

What it is good for

+

Typically when you want to upload many pictures at once. You need not to select every image discinctly. Just pack them in the ZIP archive, upload this archive and it will be unzipped on your blog.

+ +

Features of unzipping

+

+

+

+ +

Auto Resizing of Images

+ +

This feature will automatically search through your blog post for images in the form:

+ +
+<img src="/uploads/myimage.jpg" width="100" height="150" />
+
+ +

When it finds an image tag in this form it will replace the value of 'src' attribute with the path +to the image resizing script, serendipity_admin_image_selector.php. The end result would be something +like this:

+ +
+<img src="http://domain.com/serendipity_admin_image_selector.php?serendipity[image]=1&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=100&serendipity[resizeHeight]=150" width="100" height="150" />
+
+ +

This saves you time if you need to use images at multiple resolutions, and can also reduce +download times for users. The performance hit is minimal as the image resize is only done once, +as is the parsing of img tags.

+ +

Notes

+ +
    +
  1. Image aspect ratios are maintained.
  2. +
  3. Only the width or height attribute needs to be specified. If neither is specified then the image tag is ignored
  4. +
  5. If both the width and height attributes are specified the image will be scaled to fit within this area while maintaining the aspect ratio
  6. +
+ +

Authors

+

Garvin Hicking, Germany
+Vladimir Ajgl (vlada [at] ajgl [dot] cz), Czech Republic, 2007-11-19
+User "nogad", http://board.s9y.org/viewtopic.php?f=4&t=20058, 2014-08-22
+Ian, 2014-09-04 +

diff --git a/serendipity_event_imageselectorplus/documentation_en.html b/serendipity_event_imageselectorplus/documentation_en.html index 36b28e64..e5685c7b 100644 --- a/serendipity_event_imageselectorplus/documentation_en.html +++ b/serendipity_event_imageselectorplus/documentation_en.html @@ -60,6 +60,37 @@ Another functionality of this plugin is multiple image insertion. If you write a <media type="gallery" /> </mediainsert> + +

Example 3 - hides preview pictures after specified image number

+
+        <mediainsert>
+            <gallery name="MyHolidays/" />
+            <media type="gallery" />
+            <media type="hideafter" nr="2" />
+        </mediainsert>
+    
+

+ This example inserts all pictures from directory "MyHolidays", but disables visiblity from picture number 3. +

+

+ +

Example 4 - Break floating by newline after certain number of images

+
+        <mediainsert>
+            <gallery name="MyHolidays/" />
+            <media type="gallery" />
+            <media type="hideafter" nr="15" />
+            <media type="picperrow" pr="3" />
+        </mediainsert>
+    
+

+ This example inserts all pictures from directory "MyHolidays", but disables visiblity from picture number 15. + Moreover, an arrangement in 5 rows (15/3 = 5), so there are 3 images per row visible in 5 columns. +

Important

The plugin is sensitive to bad xml syntax. So if it is not perfect, for example if you ommit ending backslash in the media tag, it can cause fail to your whole blog!!!

@@ -78,6 +109,8 @@ Another functionality of this plugin is multiple image insertion. If you write a
  • "single" - includes single image given by attribute "name"
  • "gallery" - without other attributes, includes all images in gallery
  • "range" - includes numbered images from "prefix""start" to "prefix""stop" (see example1)
  • +
  • "hideafter" - hides preview pictures after "nr" ("lastvisiblenumber") (see example3)
  • +
  • "picperrow" - Generate a break for an amount by image, thus the shown thumbnails are divided into rows (Example 4)
  • @@ -115,35 +148,37 @@ Another functionality of this plugin is multiple image insertion. If you write a

    -

    Auto Resizing of Images

    - -

    This feature will automatically search through your blog post for images in the form:

    - -
    -<img src="/uploads/myimage.jpg" width="100" height="150" />
    -
    - -

    When it finds an image tag in this form it will replace the value of 'src' attribute with the path -to the image resizing script, serendipity_admin_image_selector.php. The end result would be something -like this:

    - -
    -<img src="http://domain.com/serendipity_admin_image_selector.php?serendipity[image]=1&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=100&serendipity[resizeHeight]=150" width="100" height="150" />
    -
    - -

    This saves you time if you need to use images at multiple resolutions, and can also reduce -download times for users. The performance hit is minimal as the image resize is only done once, -as is the parsing of img tags.

    - -

    Notes

    - -
      -
    1. Image aspect ratios are maintained.
    2. -
    3. Only the width or height attribute needs to be specified. If neither is specified then the image tag is ignored
    4. -
    5. If both the width and height attributes are specified the image will be scaled to fit within this area while maintaining the aspect ratio
    6. -
    - +

    Auto Resizing of Images

    + +

    This feature will automatically search through your blog post for images in the form:

    + +
    +<img src="/uploads/myimage.jpg" width="100" height="150" />
    +
    + +

    When it finds an image tag in this form it will replace the value of 'src' attribute with the path +to the image resizing script, serendipity_admin_image_selector.php. The end result would be something +like this:

    + +
    +<img src="http://domain.com/serendipity_admin_image_selector.php?serendipity[image]=1&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=100&serendipity[resizeHeight]=150" width="100" height="150" />
    +
    + +

    This saves you time if you need to use images at multiple resolutions, and can also reduce +download times for users. The performance hit is minimal as the image resize is only done once, +as is the parsing of img tags.

    + +

    Notes

    + +
      +
    1. Image aspect ratios are maintained.
    2. +
    3. Only the width or height attribute needs to be specified. If neither is specified then the image tag is ignored
    4. +
    5. If both the width and height attributes are specified the image will be scaled to fit within this area while maintaining the aspect ratio
    6. +
    +

    Authors

    Garvin Hicking, Germany
    -Vladimr Ajgl (vlada [at] ajgl [dot] cz), Czech Republic, 2007-11-19 +Vladimir Ajgl (vlada [at] ajgl [dot] cz), Czech Republic, 2007-11-19
    +User "nogad", http://board.s9y.org/viewtopic.php?f=4&t=20058, 2014-08-22
    +Ian, 2014-09-04

    diff --git a/serendipity_event_imageselectorplus/lang_de.inc.php b/serendipity_event_imageselectorplus/lang_de.inc.php index c25cbf85..ff19f2d3 100644 --- a/serendipity_event_imageselectorplus/lang_de.inc.php +++ b/serendipity_event_imageselectorplus/lang_de.inc.php @@ -1,12 +1,36 @@ - + * DE-Revision: Revision of lang_de.inc.php + * Revised by "nogat" 2014/08/22 + */ @define('PLUGIN_EVENT_IMAGESELECTORPLUS_NAME', 'Erweiterte Optionen fr Bildauswahl'); -@define('PLUGIN_EVENT_IMAGESELECTORPLUS_DESC', 'Ermglicht erweiterte Optionen beim Einfgen von Bildern aus der Mediendatenbank. [Serendipity >= 0.9]'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_DESC', 'Ermglicht erweiterte Optionen beim Einfgen von Bildern aus der Mediendatenbank.'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET', 'Ziel des Links'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET_JS', 'Popup (via JavaScript, angepasste Gre)'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET_ENTRY', 'Isolierter Eintrag'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_TARGET_BLANK', 'Popup (via target=_blank)'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_QUICKBLOG', 'QuickBlog'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_QUICKBLOG_DESC', 'Wenn Sie bei den folgenden Feldern mindestens einen Titel eintragen, wird das Bild sofort als neuer Blog-Artikel eingestellt. Das Ausgabedesign kann ber die Datei quickblog.tpl eingestellt werden.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_MAXWIDTH', 'Maximale Breite des Miniaturbildes (verwirft die Hhenangabe)'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_MAXHEIGHT', 'Maximale Hhe des Miniaturbildes (verwirft die Breitenangabe)'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_AUTORESIZE', 'ndert die Bildgre anhand der Breiten - und Hhenangabe'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_AUTORESIZE_DESC', 'Sendet automatische Gren Ihrer Bilder an den Browser, basierend auf der Breiten/Hhenangabe des IMG-Tag. Dies kann Ihr Leben erleichtern, auerdem die Downloadzeiten verringern und die Serverseitige Performance verbessern. (Hinweis: Die Seitenverhltnisse bleiben erhalten)'); + +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FILES', 'ZIP-Archive entpackt'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FILES_BLABLAH', 'Hochgeladene ZIP-Archive entpacken? - Vorgabe fr das Formular auf der Bilder-Upload-Seite.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FILES_DESC', 'Hochgeladene ZIP-Archive entpacken?'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_OK', 'ZIP-Archive erfolgreich entpackt!'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_FAILED', 'Fehler beim entpacken der ZIP-Archive!'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_IMAGE_FROM_ARCHIVE', 'Bild aus einem ZIP-Archive'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_ADD_TO_DB', 'zur Datenbank hinzugefgt'); + +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD', 'jhead nutzen, um EXIF-Daten zu erhalten'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD_DESC', 'berschreibt das Standardverhalten und benutzt externe Funktionen (Calls), um per jhead EXIF-Daten zu erhalten. Nutzen Sie diese Option nur, wenn jhead installiert ist und auch ausgefhrt werden kann!'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_IMAGE_SIZE_DESC', 'Wenn Sie die voreingestellte $serendipity[\'thumbSize\'] Gre hier ndern, wird ein zustzliches Bild in der genannten Gre in der Mediendatenbank erstellt. Dies Image Instanz wird dann im Frontend als Bildvorschau mit entsprechendem Link zum Original Bild in ihrem Blogeintrag benutzt.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_ASOBJECT', 'Objekt-Type ist kein Bild?'); + diff --git a/serendipity_event_imageselectorplus/lang_en.inc.php b/serendipity_event_imageselectorplus/lang_en.inc.php index 60c935f1..cbeeaa94 100644 --- a/serendipity_event_imageselectorplus/lang_en.inc.php +++ b/serendipity_event_imageselectorplus/lang_en.inc.php @@ -1,10 +1,10 @@ * EN-Revision: Revision of lang_en.inc.php - * Revised by Vladimir Ajgl 2007/11/25 + * Revised by Vladimir Ajgl 2007/11/25 */ @define('PLUGIN_EVENT_IMAGESELECTORPLUS_NAME', 'Extended options for media manager'); @@ -29,7 +29,8 @@ @define('PLUGIN_EVENT_IMAGESELECTORPLUS_UNZIP_ADD_TO_DB', 'added to database'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD', 'Use jhead to obtain EXIF data'); -@define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD_DESC', 'Override the default behaviour and use external calls to jhead to obtain EXIF data. Choose this option only if jhead is installed and can be executed.'); +@define('PLUGIN_EVENT_IMAGESELECTORPLUS_JHEAD_DESC', 'Override the default behaviour and use external calls to jhead to obtain EXIF data. Choose this option only if jhead is installed and can be executed.'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_IMAGE_SIZE_DESC', 'Changing this default $serendipity[\'thumbSize\'] to another value, will add an additional and resized copy of that image to the MediaLibrary. This instance is then used as the preview thumbnail image in your frontend blog entry, linking to the origin image.'); @define('PLUGIN_EVENT_IMAGESELECTORPLUS_ASOBJECT', 'Non-image object?'); + diff --git a/serendipity_event_imageselectorplus/plugin_mediainsert.tpl b/serendipity_event_imageselectorplus/plugin_mediainsert.tpl index b65e2b73..2e096586 100644 --- a/serendipity_event_imageselectorplus/plugin_mediainsert.tpl +++ b/serendipity_event_imageselectorplus/plugin_mediainsert.tpl @@ -1,8 +1,18 @@