diff --git a/serendipity_event_imageselectorplus/ChangeLog b/serendipity_event_imageselectorplus/ChangeLog index 383d7e5b..a81b8726 100644 --- a/serendipity_event_imageselectorplus/ChangeLog +++ b/serendipity_event_imageselectorplus/ChangeLog @@ -1,10 +1,18 @@ +0.39: +----- + * added form target to + * added non-image object uploads with link/image generation via radio field, + * which creates a real link instead of using the hidden quickblog tag + * removed some obsolet functions + * disabled allow_comments, moderate_comments to always take default values + 0.38: ---- -Changed default value of quickblog image size to default -$serendipity['thumbSize']. This prevents creation of another -image copy to the MediaLibrary, if not changed to another value. -Added a description lang constant for this. + * Changed default value of quickblog image size to default + $serendipity['thumbSize']. This prevents creation of another + image copy to the MediaLibrary, if not changed to another value. + * Added a description lang constant for this. 0.37: diff --git a/serendipity_event_imageselectorplus/lang_en.inc.php b/serendipity_event_imageselectorplus/lang_en.inc.php index 69a265ec..60c935f1 100644 --- a/serendipity_event_imageselectorplus/lang_en.inc.php +++ b/serendipity_event_imageselectorplus/lang_en.inc.php @@ -32,3 +32,4 @@ @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 7624e1a1..3ffcef0e 100644 --- a/serendipity_event_imageselectorplus/plugin_mediainsert.tpl +++ b/serendipity_event_imageselectorplus/plugin_mediainsert.tpl @@ -2,10 +2,10 @@
' . htmlspecialchars($serendipity['POST']['quickblog']['body']) . '
'; + } else { + $entry['body'] = '' . htmlspecialchars($serendipity['POST']['quickblog']['body']); + } $entry['authorid'] = $serendipity['authorid']; $entry['exflag'] = false; - $entry['categories'][0] = $serendipity['POST']['quickblog']['category']; - $entry['allow_comments'] = 'true'; - $entry['moderate_comments'] = 'false'; + $entry['categories'][0] = htmlspecialchars($serendipity['POST']['quickblog']['category']); + #$entry['allow_comments'] = 'true'; //disabled to take default values + #$entry['moderate_comments'] = 'false'; //disabled to take default values $serendipity['POST']['properties']['fake'] = 'fake'; $id = serendipity_updertEntry($entry); @@ -590,6 +642,7 @@ class serendipity_event_imageselectorplus extends serendipity_event $entry = serendipity_fetchEntry('id', $serendipity['GET']['id']); $imageid = $serendipity['GET']['image']; $imgsrc = ''; + if (preg_match('@@imsU', $entry['body'], $imgmatch)) { $imgsrc = $imgmatch[1]; } elseif (preg_match('@@imsU', $entry['extended'], $imgmatch)) { @@ -610,7 +663,7 @@ class serendipity_event_imageselectorplus extends serendipity_event echo '