NextGEN Gallery – WordPress Gallery Plugin - Version 0.40

Version Description

Download this release

Release Info

Developer alexrabe
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 0.40
Comparing to
See all releases

Code changes from version 0.39 to 0.40

admin/addgallery.php CHANGED
@@ -274,7 +274,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
274
  // add images to database
275
  if (is_array($imageslist)) {
276
  foreach($imageslist as $picture) {
277
- $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext) VALUES ('$gallery_id', '$picture', '$picture') ");
278
  if ($result) $count_pic++;
279
  }
280
  }
@@ -475,7 +475,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
475
  // add images to database
476
  if (is_array($imageslist)) {
477
  foreach($imageslist as $picture) {
478
- $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext) VALUES ('$dest_gallery', '$picture', '$picture') ");
479
  if ($result) $count_pic++;
480
  }
481
  }
274
  // add images to database
275
  if (is_array($imageslist)) {
276
  foreach($imageslist as $picture) {
277
+ $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$gallery_id', '$picture', '$picture' , 0) ");
278
  if ($result) $count_pic++;
279
  }
280
  }
475
  // add images to database
476
  if (is_array($imageslist)) {
477
  foreach($imageslist as $picture) {
478
+ $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$dest_gallery', '$picture', '$picture', 0) ");
479
  if ($result) $count_pic++;
480
  }
481
  }
admin/album.php CHANGED
@@ -167,7 +167,7 @@ function getgallerycontainer($galleryid = 0) {
167
  if ($gallery) {
168
 
169
  // set image url
170
- $act_thumbnail_url = get_settings ('siteurl')."/".$gallery->path.ngg_get_thumbnail_folder($gallery->path, FALSE);
171
  $act_thumb_prefix = ngg_get_thumbnail_prefix($gallery->path, FALSE);
172
 
173
  $post= get_post($gallery->pageid);
167
  if ($gallery) {
168
 
169
  // set image url
170
+ $act_thumbnail_url = get_option ('siteurl')."/".$gallery->path.ngg_get_thumbnail_folder($gallery->path, FALSE);
171
  $act_thumb_prefix = ngg_get_thumbnail_prefix($gallery->path, FALSE);
172
 
173
  $post= get_post($gallery->pageid);
admin/manage.php CHANGED
@@ -134,9 +134,9 @@ function nggallery_admin_manage_gallery() {
134
 
135
  if ($_POST['scanfolder']) {
136
  // Rescan folder
137
- //TODO: Wenn keine bilder vorhanden sind , fehler beim scannen
138
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
139
- $old_imageslist = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ");
 
140
  // read list of images in folder
141
  $new_imageslist = ngg_scandir(WINABSPATH.$gallerypath);
142
  // check difference
@@ -187,7 +187,7 @@ function nggallery_manage_gallery_main() {
187
  </thead>
188
  <tbody>
189
  <?php
190
- $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ");
191
  if($gallerylist) {
192
  foreach($gallerylist as $gallery) {
193
  $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
@@ -230,8 +230,8 @@ function nggallery_pciturelist() {
230
  $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
231
 
232
  // set gallery url
233
- $act_gallery_url = get_settings ('siteurl')."/".$act_gallery->path."/";
234
- $act_thumbnail_url = get_settings ('siteurl')."/".$act_gallery->path.ngg_get_thumbnail_folder($act_gallery->path, FALSE);
235
  $act_thumb_prefix = ngg_get_thumbnail_prefix($act_gallery->path, FALSE);
236
 
237
  //TODO: Do with wp_register_script
@@ -432,7 +432,7 @@ if($picturelist) {
432
  function ngg_update_pictures( $nggdescription, $nggalttext, $nggexclude, $nggalleryid ) {
433
  // update all pictures
434
 
435
- global $wpdb,$act_gid;
436
 
437
  if (is_array($nggdescription)) {
438
  foreach($nggdescription as $key=>$value) {
@@ -447,7 +447,7 @@ function ngg_update_pictures( $nggdescription, $nggalttext, $nggexclude, $nggall
447
  }
448
  }
449
 
450
- $nggpictures = $wpdb->get_results("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$act_gid'");
451
 
452
  if (is_array($nggpictures)){
453
  foreach($nggpictures as $picture){
134
 
135
  if ($_POST['scanfolder']) {
136
  // Rescan folder
 
137
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
138
+ $old_imageslist = array();
139
+ $old_imageslist[] = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ");
140
  // read list of images in folder
141
  $new_imageslist = ngg_scandir(WINABSPATH.$gallerypath);
142
  // check difference
187
  </thead>
188
  <tbody>
189
  <?php
190
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
191
  if($gallerylist) {
192
  foreach($gallerylist as $gallery) {
193
  $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
230
  $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
231
 
232
  // set gallery url
233
+ $act_gallery_url = get_option ('siteurl')."/".$act_gallery->path."/";
234
+ $act_thumbnail_url = get_option ('siteurl')."/".$act_gallery->path.ngg_get_thumbnail_folder($act_gallery->path, FALSE);
235
  $act_thumb_prefix = ngg_get_thumbnail_prefix($act_gallery->path, FALSE);
236
 
237
  //TODO: Do with wp_register_script
432
  function ngg_update_pictures( $nggdescription, $nggalttext, $nggexclude, $nggalleryid ) {
433
  // update all pictures
434
 
435
+ global $wpdb;
436
 
437
  if (is_array($nggdescription)) {
438
  foreach($nggdescription as $key=>$value) {
447
  }
448
  }
449
 
450
+ $nggpictures = $wpdb->get_results("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$nggalleryid'");
451
 
452
  if (is_array($nggpictures)){
453
  foreach($nggpictures as $picture){
admin/settings.php CHANGED
@@ -241,7 +241,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
241
  <tr>
242
  <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
243
  <td><input type="text" name="galImages" value="<?php echo $ngg_options[galImages] ?>" size="3" maxlength="3" /><br />
244
- <?php _e('Value 0 = No Navigation, all images on one page','nggallery') ?></td>
245
  </tr>
246
  <tr>
247
  <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
241
  <tr>
242
  <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
243
  <td><input type="text" name="galImages" value="<?php echo $ngg_options[galImages] ?>" size="3" maxlength="3" /><br />
244
+ <?php _e('0 will disable pagination, all images on one page','nggallery') ?></td>
245
  </tr>
246
  <tr>
247
  <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
changelog.txt CHANGED
@@ -1,6 +1,10 @@
1
  NextGEN Gallery
2
  by Alex Rabe
3
 
 
 
 
 
4
  V0.39 - 28.04.2007
5
  - Added : Set ORDER BY for gallery
6
  - Bugfix : check now for Exclude != 1
1
  NextGEN Gallery
2
  by Alex Rabe
3
 
4
+ V0.40 - 29.04.2007
5
+ - NEW : TinyMCE Button integration
6
+ - Removed : CSS Style : remove width/height in album
7
+
8
  V0.39 - 28.04.2007
9
  - Added : Set ORDER BY for gallery
10
  - Bugfix : check now for Exclude != 1
css/Black_Minimalism .css CHANGED
@@ -46,8 +46,6 @@ it's only a template design
46
  margin:4px 0px 4px 5px;
47
  padding:4px;
48
  position:relative;
49
- width:100px;
50
- height:75px;
51
  }
52
 
53
  .ngg-thumbnail img:hover {
46
  margin:4px 0px 4px 5px;
47
  padding:4px;
48
  position:relative;
 
 
49
  }
50
 
51
  .ngg-thumbnail img:hover {
css/ngg_shadow.css CHANGED
@@ -46,8 +46,6 @@ it's only a template design
46
  margin:4px 0px 4px 5px;
47
  padding:4px;
48
  position:relative;
49
- width:100px;
50
- height:75px;
51
  }
52
 
53
  .ngg-thumbnail img:hover {
46
  margin:4px 0px 4px 5px;
47
  padding:4px;
48
  position:relative;
 
 
49
  }
50
 
51
  .ngg-thumbnail img:hover {
css/nggallery.css CHANGED
@@ -46,8 +46,6 @@ it's only a template design
46
  margin:4px 0px 4px 5px;
47
  padding:4px;
48
  position:relative;
49
- width:100px;
50
- height:75px;
51
  }
52
 
53
  .ngg-thumbnail img:hover {
46
  margin:4px 0px 4px 5px;
47
  padding:4px;
48
  position:relative;
 
 
49
  }
50
 
51
  .ngg-thumbnail img:hover {
js/editor_plugin.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Docu : http://tinymce.moxiecode.com/tinymce/docs/customization_plugins.html
2
+
3
+ // Load the language file
4
+ tinyMCE.importPluginLanguagePack('NextGEN', 'en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');
5
+
6
+ var TinyMCE_NextGENPlugin = {
7
+ /**
8
+ * Returns information about the plugin as a name/value array.
9
+ * The current keys are longname, author, authorurl, infourl and version.
10
+ *
11
+ * @returns Name/value array containing information about the plugin.
12
+ * @type Array
13
+ */
14
+ getInfo : function() {
15
+ return {
16
+ longname : 'NextGEN',
17
+ author : 'NextGEN',
18
+ authorurl : 'http://alexrabe.boelinger.com',
19
+ infourl : 'http://alexrabe.boelinger.com',
20
+ version : "1.0"
21
+ };
22
+ },
23
+
24
+ /**
25
+ * Returns the HTML code for a specific control or empty string if this plugin doesn't have that control.
26
+ * A control can be a button, select list or any other HTML item to present in the TinyMCE user interface.
27
+ * The variable {$editor_id} will be replaced with the current editor instance id and {$pluginurl} will be replaced
28
+ * with the URL of the plugin. Language variables such as {$lang_somekey} will also be replaced with contents from
29
+ * the language packs.
30
+ *
31
+ * @param {string} cn Editor control/button name to get HTML for.
32
+ * @return HTML code for a specific control or empty string.
33
+ * @type string
34
+ */
35
+ getControlHTML : function(cn) {
36
+ switch (cn) {
37
+ case "NextGEN":
38
+ return tinyMCE.getButtonHTML(cn, 'lang_NextGEN_desc', '{$pluginurl}/nextgen.gif', 'mceNextGEN');
39
+ }
40
+
41
+ return "";
42
+ },
43
+
44
+ /**
45
+ * Executes a specific command, this function handles plugin commands.
46
+ *
47
+ * @param {string} editor_id TinyMCE editor instance id that issued the command.
48
+ * @param {HTMLElement} element Body or root element for the editor instance.
49
+ * @param {string} command Command name to be executed.
50
+ * @param {string} user_interface True/false if a user interface should be presented.
51
+ * @param {mixed} value Custom value argument, can be anything.
52
+ * @return true/false if the command was executed by this plugin or not.
53
+ * @type
54
+ */
55
+ execCommand : function(editor_id, element, command, user_interface, value) {
56
+
57
+ // Handle commands
58
+ switch (command) {
59
+ // Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser.
60
+ case "mceNextGEN":
61
+ // Do your custom command logic here.
62
+ ngg_buttonscript();
63
+ return true;
64
+ }
65
+ // Pass to next handler in chain
66
+ return false;
67
+ }
68
+
69
+ };
70
+
71
+ // Adds the plugin class to the list of available TinyMCE plugins
72
+ tinyMCE.addPlugin("NextGEN", TinyMCE_NextGENPlugin);
73
+
js/langs/de_DE.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ // German lang variables
2
+
3
+ tinyMCE.addToLang('NextGEN',{
4
+ desc : 'Gallerie einfuegen'
5
+ });
js/langs/en.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ // English lang variables
2
+
3
+ tinyMCE.addToLang('NextGEN',{
4
+ desc : 'Add NextGEN gallery'
5
+ });
js/langs/en_US.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ // English lang variables
2
+
3
+ tinyMCE.addToLang('NextGEN',{
4
+ desc : 'Add NextGEN gallery'
5
+ });
js/nextgen.gif ADDED
Binary file
js/tinymce.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function init() {
2
+ tinyMCEPopup.resizeToInnerSize();
3
+ }
4
+
5
+ function getCheckedValue(radioObj) {
6
+ if(!radioObj)
7
+ return "";
8
+ var radioLength = radioObj.length;
9
+ if(radioLength == undefined)
10
+ if(radioObj.checked)
11
+ return radioObj.value;
12
+ else
13
+ return "";
14
+ for(var i = 0; i < radioLength; i++) {
15
+ if(radioObj[i].checked) {
16
+ return radioObj[i].value;
17
+ }
18
+ }
19
+ return "";
20
+ }
21
+
22
+
23
+ function insertNGGLink() {
24
+
25
+ var tagtext;
26
+
27
+ var gallery = document.getElementById('gallery_panel');
28
+ var album = document.getElementById('album_panel');
29
+ var singlepic = document.getElementById('singlepic_panel');
30
+
31
+ // who is active ?
32
+ if (gallery.className.indexOf('current') != -1) {
33
+ var galleryid = document.getElementById('gallerytag').value;
34
+ var showtype = getCheckedValue(document.getElementsByName('showtype'));
35
+ if (galleryid != 0 )
36
+ tagtext = "["+ showtype + "=" + galleryid + "]";
37
+ else
38
+ tinyMCEPopup.close();
39
+ }
40
+
41
+ if (album.className.indexOf('current') != -1) {
42
+ var albumid = document.getElementById('albumtag').value;
43
+ var showtype = getCheckedValue(document.getElementsByName('albumtype'));
44
+ if (albumid != 0 )
45
+ tagtext = "[album=" + albumid + "," + showtype + "]";
46
+ else
47
+ tinyMCEPopup.close();
48
+ }
49
+
50
+ if (singlepic.className.indexOf('current') != -1) {
51
+ var singlepicid = document.getElementById('singlepictag').value;
52
+ var imgWidth = document.getElementById('imgWidth').value;
53
+ var imgHeight = document.getElementById('imgHeight').value;
54
+ var imgeffect = getCheckedValue(document.getElementsByName('imgeffect'));
55
+ if (singlepicid != 0 ) {
56
+ if (imgeffect == "none")
57
+ tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "]";
58
+ else
59
+ tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "," + imgeffect + "]";
60
+ } else {
61
+ tinyMCEPopup.close();
62
+ }
63
+ }
64
+
65
+ if(window.tinyMCE) {
66
+ window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
67
+ // tinyMCE.execCommand("mceCleanup");
68
+ tinyMCE.selectedInstance.repaint();
69
+ } else {
70
+ edCanvas = mceWindow.document.getElementById('content');
71
+ window.edInsertContent(edCanvas, tagtext);
72
+ }
73
+ tinyMCEPopup.close();
74
+ }
lang/nggallery.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-04-26 21:07+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -19,6 +19,104 @@ msgstr ""
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  #: ../nggfunctions.php:267
23
  #: ../nggfunctions.php:283
24
  msgid "Watch gallery"
@@ -284,15 +382,6 @@ msgstr ""
284
  msgid "with permission 777 manually !"
285
  msgstr ""
286
 
287
- #: ../admin/addgallery.php:231
288
- #: ../admin/addgallery.php:282
289
- #: ../admin/admin.php:13
290
- #: ../admin/manage.php:44
291
- #: ../admin/manage.php:298
292
- #: ../admin/settings.php:119
293
- msgid "Gallery"
294
- msgstr ""
295
-
296
  #: ../admin/addgallery.php:231
297
  msgid "already exists"
298
  msgstr ""
@@ -379,10 +468,6 @@ msgstr ""
379
  msgid "Manage Gallery"
380
  msgstr ""
381
 
382
- #: ../admin/admin.php:16
383
- msgid "Album"
384
- msgstr ""
385
-
386
  #: ../admin/admin.php:17
387
  msgid "Options"
388
  msgstr ""
@@ -407,34 +492,34 @@ msgstr ""
407
  msgid "About"
408
  msgstr ""
409
 
410
- #: ../admin/album.php:36
411
- #: ../admin/album.php:37
412
  msgid "Update Successfully"
413
  msgstr ""
414
 
415
- #: ../admin/album.php:43
416
  msgid "Album deleted"
417
  msgstr ""
418
 
419
- #: ../admin/album.php:84
420
  msgid "Manage Albums"
421
  msgstr ""
422
 
423
- #: ../admin/album.php:91
424
  msgid "No album selected"
425
  msgstr ""
426
 
427
- #: ../admin/album.php:110
428
  #: ../admin/manage.php:205
429
- #: ../admin/manage.php:405
430
  msgid "Delete"
431
  msgstr ""
432
 
433
- #: ../admin/album.php:110
434
  msgid "Delete album ?"
435
  msgstr ""
436
 
437
- #: ../admin/album.php:112
438
  #: ../admin/settings.php:153
439
  #: ../admin/settings.php:191
440
  #: ../admin/settings.php:228
@@ -445,35 +530,35 @@ msgstr ""
445
  msgid "Update"
446
  msgstr ""
447
 
448
- #: ../admin/album.php:117
449
  msgid "Select Gallery"
450
  msgstr ""
451
 
452
- #: ../admin/album.php:150
453
  msgid "Album Page ID"
454
  msgstr ""
455
 
456
- #: ../admin/album.php:159
457
  msgid "No Album selected"
458
  msgstr ""
459
 
460
- #: ../admin/album.php:190
461
  #: ../admin/manage.php:179
462
- #: ../admin/manage.php:370
463
  msgid "ID"
464
  msgstr ""
465
 
466
- #: ../admin/album.php:191
467
  msgid "Name"
468
  msgstr ""
469
 
470
- #: ../admin/album.php:192
471
  #: ../admin/manage.php:181
472
- #: ../admin/manage.php:305
473
  msgid "Title"
474
  msgstr ""
475
 
476
- #: ../admin/album.php:193
477
  msgid "Page"
478
  msgstr ""
479
 
@@ -482,10 +567,6 @@ msgstr ""
482
  msgid "deleted successfully"
483
  msgstr ""
484
 
485
- #: ../admin/manage.php:63
486
- msgid "Picture"
487
- msgstr ""
488
-
489
  #: ../admin/manage.php:86
490
  msgid "Watermark successfully added"
491
  msgstr ""
@@ -521,8 +602,8 @@ msgid "Gallery name"
521
  msgstr ""
522
 
523
  #: ../admin/manage.php:182
524
- #: ../admin/manage.php:324
525
- #: ../admin/manage.php:373
526
  #: ../admin/style.php:92
527
  msgid "Description"
528
  msgstr ""
@@ -536,7 +617,7 @@ msgid "Quantity"
536
  msgstr ""
537
 
538
  #: ../admin/manage.php:185
539
- #: ../admin/manage.php:376
540
  msgid "Action"
541
  msgstr ""
542
 
@@ -545,73 +626,73 @@ msgid "Edit"
545
  msgstr ""
546
 
547
  #: ../admin/manage.php:205
548
- #: ../admin/manage.php:405
549
  msgid "Delete this file ?"
550
  msgstr ""
551
 
552
  #: ../admin/manage.php:210
553
- #: ../admin/manage.php:410
554
  msgid "No entries found"
555
  msgstr ""
556
 
557
- #: ../admin/manage.php:307
558
  msgid "Page Link to"
559
  msgstr ""
560
 
561
- #: ../admin/manage.php:310
562
  msgid "Not linked"
563
  msgstr ""
564
 
565
- #: ../admin/manage.php:326
566
  msgid "Preview image"
567
  msgstr ""
568
 
569
- #: ../admin/manage.php:329
570
  msgid "No Picture"
571
  msgstr ""
572
 
573
- #: ../admin/manage.php:344
574
  msgid "Path"
575
  msgstr ""
576
 
577
- #: ../admin/manage.php:352
578
  msgid "Scan Folder for new images"
579
  msgstr ""
580
 
581
- #: ../admin/manage.php:353
582
- #: ../admin/manage.php:417
583
  msgid "Save Changes"
584
  msgstr ""
585
 
586
- #: ../admin/manage.php:358
587
  msgid "No action"
588
  msgstr ""
589
 
590
- #: ../admin/manage.php:359
591
  msgid "Set watermark"
592
  msgstr ""
593
 
594
- #: ../admin/manage.php:360
595
  msgid "Create new thumbnails"
596
  msgstr ""
597
 
598
- #: ../admin/manage.php:361
599
  msgid "Resize images"
600
  msgstr ""
601
 
602
- #: ../admin/manage.php:362
603
  msgid "Delete images"
604
  msgstr ""
605
 
606
- #: ../admin/manage.php:364
607
  msgid "OK"
608
  msgstr ""
609
 
610
- #: ../admin/manage.php:364
611
  msgid "No images selected"
612
  msgstr ""
613
 
614
- #: ../admin/manage.php:364
615
  #, php-format
616
  msgid ""
617
  "You are about to start the bulk edit for %s images \n"
@@ -619,24 +700,24 @@ msgid ""
619
  " 'Cancel' to stop, 'OK' to proceed."
620
  msgstr ""
621
 
622
- #: ../admin/manage.php:371
623
  #: ../admin/settings.php:261
624
  msgid "File name"
625
  msgstr ""
626
 
627
- #: ../admin/manage.php:372
628
  msgid "Thumbnail"
629
  msgstr ""
630
 
631
- #: ../admin/manage.php:374
632
  msgid "Alt &amp; Title Text"
633
  msgstr ""
634
 
635
- #: ../admin/manage.php:375
636
  msgid "exclude"
637
  msgstr ""
638
 
639
- #: ../admin/manage.php:404
640
  msgid "View"
641
  msgstr ""
642
 
@@ -801,17 +882,6 @@ msgstr ""
801
  msgid "Effects"
802
  msgstr ""
803
 
804
- #: ../admin/settings.php:121
805
- #: ../admin/settings.php:310
806
- msgid "Watermark"
807
- msgstr ""
808
-
809
- #: ../admin/settings.php:122
810
- #: ../admin/settings.php:256
811
- #: ../admin/settings.php:412
812
- msgid "Slideshow"
813
- msgstr ""
814
-
815
  #: ../admin/settings.php:138
816
  msgid "Gallery path"
817
  msgstr ""
@@ -911,7 +981,7 @@ msgid "Number of images per page"
911
  msgstr ""
912
 
913
  #: ../admin/settings.php:244
914
- msgid "Value 0 = No Navigation, all images on one page"
915
  msgstr ""
916
 
917
  #: ../admin/settings.php:247
@@ -1136,7 +1206,7 @@ msgid "Reset all settings to default parameter"
1136
  msgstr ""
1137
 
1138
  #: ../admin/setup.php:22
1139
- msgid "Uninstall sucessfull ! Now delete the plugin and Enjoy your life ! Godd luck !"
1140
  msgstr ""
1141
 
1142
  #: ../admin/setup.php:31
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-04-29 00:11+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
22
+ #: ../nggbutton.php:33
23
+ #: ../admin/addgallery.php:231
24
+ #: ../admin/addgallery.php:282
25
+ #: ../admin/admin.php:13
26
+ #: ../admin/manage.php:44
27
+ #: ../admin/manage.php:304
28
+ #: ../admin/settings.php:119
29
+ msgid "Gallery"
30
+ msgstr ""
31
+
32
+ #: ../nggbutton.php:34
33
+ #: ../admin/admin.php:16
34
+ msgid "Album"
35
+ msgstr ""
36
+
37
+ #: ../nggbutton.php:35
38
+ #: ../admin/manage.php:63
39
+ msgid "Picture"
40
+ msgstr ""
41
+
42
+ #: ../nggbutton.php:45
43
+ msgid "Select gallery"
44
+ msgstr ""
45
+
46
+ #: ../nggbutton.php:47
47
+ msgid "No gallery"
48
+ msgstr ""
49
+
50
+ #: ../nggbutton.php:59
51
+ #: ../nggbutton.php:86
52
+ msgid "Show as"
53
+ msgstr ""
54
+
55
+ #: ../nggbutton.php:60
56
+ msgid "Image list"
57
+ msgstr ""
58
+
59
+ #: ../nggbutton.php:61
60
+ #: ../admin/settings.php:122
61
+ #: ../admin/settings.php:256
62
+ #: ../admin/settings.php:412
63
+ msgid "Slideshow"
64
+ msgstr ""
65
+
66
+ #: ../nggbutton.php:72
67
+ msgid "Select album"
68
+ msgstr ""
69
+
70
+ #: ../nggbutton.php:74
71
+ msgid "No album"
72
+ msgstr ""
73
+
74
+ #: ../nggbutton.php:87
75
+ msgid "Extended version"
76
+ msgstr ""
77
+
78
+ #: ../nggbutton.php:88
79
+ msgid "Compact version"
80
+ msgstr ""
81
+
82
+ #: ../nggbutton.php:99
83
+ msgid "Select picture"
84
+ msgstr ""
85
+
86
+ #: ../nggbutton.php:101
87
+ msgid "No picture"
88
+ msgstr ""
89
+
90
+ #: ../nggbutton.php:113
91
+ msgid "Width x Height"
92
+ msgstr ""
93
+
94
+ #: ../nggbutton.php:117
95
+ msgid "Effect"
96
+ msgstr ""
97
+
98
+ #: ../nggbutton.php:118
99
+ msgid "No effect"
100
+ msgstr ""
101
+
102
+ #: ../nggbutton.php:119
103
+ #: ../admin/settings.php:121
104
+ #: ../admin/settings.php:310
105
+ msgid "Watermark"
106
+ msgstr ""
107
+
108
+ #: ../nggbutton.php:120
109
+ msgid "Web 2.0"
110
+ msgstr ""
111
+
112
+ #: ../nggbutton.php:130
113
+ msgid "Cancel"
114
+ msgstr ""
115
+
116
+ #: ../nggbutton.php:134
117
+ msgid "Insert"
118
+ msgstr ""
119
+
120
  #: ../nggfunctions.php:267
121
  #: ../nggfunctions.php:283
122
  msgid "Watch gallery"
382
  msgid "with permission 777 manually !"
383
  msgstr ""
384
 
 
 
 
 
 
 
 
 
 
385
  #: ../admin/addgallery.php:231
386
  msgid "already exists"
387
  msgstr ""
468
  msgid "Manage Gallery"
469
  msgstr ""
470
 
 
 
 
 
471
  #: ../admin/admin.php:17
472
  msgid "Options"
473
  msgstr ""
492
  msgid "About"
493
  msgstr ""
494
 
495
+ #: ../admin/album.php:14
496
+ #: ../admin/album.php:33
497
  msgid "Update Successfully"
498
  msgstr ""
499
 
500
+ #: ../admin/album.php:40
501
  msgid "Album deleted"
502
  msgstr ""
503
 
504
+ #: ../admin/album.php:76
505
  msgid "Manage Albums"
506
  msgstr ""
507
 
508
+ #: ../admin/album.php:84
509
  msgid "No album selected"
510
  msgstr ""
511
 
512
+ #: ../admin/album.php:103
513
  #: ../admin/manage.php:205
514
+ #: ../admin/manage.php:411
515
  msgid "Delete"
516
  msgstr ""
517
 
518
+ #: ../admin/album.php:103
519
  msgid "Delete album ?"
520
  msgstr ""
521
 
522
+ #: ../admin/album.php:105
523
  #: ../admin/settings.php:153
524
  #: ../admin/settings.php:191
525
  #: ../admin/settings.php:228
530
  msgid "Update"
531
  msgstr ""
532
 
533
+ #: ../admin/album.php:110
534
  msgid "Select Gallery"
535
  msgstr ""
536
 
537
+ #: ../admin/album.php:143
538
  msgid "Album Page ID"
539
  msgstr ""
540
 
541
+ #: ../admin/album.php:152
542
  msgid "No Album selected"
543
  msgstr ""
544
 
545
+ #: ../admin/album.php:183
546
  #: ../admin/manage.php:179
547
+ #: ../admin/manage.php:376
548
  msgid "ID"
549
  msgstr ""
550
 
551
+ #: ../admin/album.php:184
552
  msgid "Name"
553
  msgstr ""
554
 
555
+ #: ../admin/album.php:185
556
  #: ../admin/manage.php:181
557
+ #: ../admin/manage.php:311
558
  msgid "Title"
559
  msgstr ""
560
 
561
+ #: ../admin/album.php:186
562
  msgid "Page"
563
  msgstr ""
564
 
567
  msgid "deleted successfully"
568
  msgstr ""
569
 
 
 
 
 
570
  #: ../admin/manage.php:86
571
  msgid "Watermark successfully added"
572
  msgstr ""
602
  msgstr ""
603
 
604
  #: ../admin/manage.php:182
605
+ #: ../admin/manage.php:330
606
+ #: ../admin/manage.php:379
607
  #: ../admin/style.php:92
608
  msgid "Description"
609
  msgstr ""
617
  msgstr ""
618
 
619
  #: ../admin/manage.php:185
620
+ #: ../admin/manage.php:382
621
  msgid "Action"
622
  msgstr ""
623
 
626
  msgstr ""
627
 
628
  #: ../admin/manage.php:205
629
+ #: ../admin/manage.php:411
630
  msgid "Delete this file ?"
631
  msgstr ""
632
 
633
  #: ../admin/manage.php:210
634
+ #: ../admin/manage.php:416
635
  msgid "No entries found"
636
  msgstr ""
637
 
638
+ #: ../admin/manage.php:313
639
  msgid "Page Link to"
640
  msgstr ""
641
 
642
+ #: ../admin/manage.php:316
643
  msgid "Not linked"
644
  msgstr ""
645
 
646
+ #: ../admin/manage.php:332
647
  msgid "Preview image"
648
  msgstr ""
649
 
650
+ #: ../admin/manage.php:335
651
  msgid "No Picture"
652
  msgstr ""
653
 
654
+ #: ../admin/manage.php:350
655
  msgid "Path"
656
  msgstr ""
657
 
658
+ #: ../admin/manage.php:358
659
  msgid "Scan Folder for new images"
660
  msgstr ""
661
 
662
+ #: ../admin/manage.php:359
663
+ #: ../admin/manage.php:423
664
  msgid "Save Changes"
665
  msgstr ""
666
 
667
+ #: ../admin/manage.php:364
668
  msgid "No action"
669
  msgstr ""
670
 
671
+ #: ../admin/manage.php:365
672
  msgid "Set watermark"
673
  msgstr ""
674
 
675
+ #: ../admin/manage.php:366
676
  msgid "Create new thumbnails"
677
  msgstr ""
678
 
679
+ #: ../admin/manage.php:367
680
  msgid "Resize images"
681
  msgstr ""
682
 
683
+ #: ../admin/manage.php:368
684
  msgid "Delete images"
685
  msgstr ""
686
 
687
+ #: ../admin/manage.php:370
688
  msgid "OK"
689
  msgstr ""
690
 
691
+ #: ../admin/manage.php:370
692
  msgid "No images selected"
693
  msgstr ""
694
 
695
+ #: ../admin/manage.php:370
696
  #, php-format
697
  msgid ""
698
  "You are about to start the bulk edit for %s images \n"
700
  " 'Cancel' to stop, 'OK' to proceed."
701
  msgstr ""
702
 
703
+ #: ../admin/manage.php:377
704
  #: ../admin/settings.php:261
705
  msgid "File name"
706
  msgstr ""
707
 
708
+ #: ../admin/manage.php:378
709
  msgid "Thumbnail"
710
  msgstr ""
711
 
712
+ #: ../admin/manage.php:380
713
  msgid "Alt &amp; Title Text"
714
  msgstr ""
715
 
716
+ #: ../admin/manage.php:381
717
  msgid "exclude"
718
  msgstr ""
719
 
720
+ #: ../admin/manage.php:410
721
  msgid "View"
722
  msgstr ""
723
 
882
  msgid "Effects"
883
  msgstr ""
884
 
 
 
 
 
 
 
 
 
 
 
 
885
  #: ../admin/settings.php:138
886
  msgid "Gallery path"
887
  msgstr ""
981
  msgstr ""
982
 
983
  #: ../admin/settings.php:244
984
+ msgid "0 will disable pagination, all images on one page"
985
  msgstr ""
986
 
987
  #: ../admin/settings.php:247
1206
  msgstr ""
1207
 
1208
  #: ../admin/setup.php:22
1209
+ msgid "Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !"
1210
  msgstr ""
1211
 
1212
  #: ../admin/setup.php:31
nggallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: NextGEN Gallery
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
  Description: A NextGENeration Photo gallery for the WEB2.0(beta). At the moment only poor Web1.0 :-(
6
  Author: Alex Rabe
7
- Version: 0.39a
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
@@ -42,7 +42,7 @@ global $wpdb, $wp_version;
42
  if (version_compare($wp_version, '2.1', '>=')) {
43
 
44
  // Version and path to check version
45
- define('NGGVERSION', "0.39");
46
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
47
 
48
  // define URL
@@ -174,7 +174,7 @@ function insert_nextgen_script() {
174
 
175
  template['file'] = '".NGGALLERY_URLPATH."nggbutton.php';
176
  template['width'] = 360;
177
- template['height'] = 220;
178
 
179
  args = {
180
  resizable : 'no',
@@ -231,9 +231,9 @@ function nextgen_button_script() {
231
  }
232
 
233
  // init process for button control
234
- // add_action('init', 'ngg_addbuttons');
235
- // add_action('edit_page_form', 'insert_nextgen_script');
236
- // add_action('edit_form_advanced', 'insert_nextgen_script');
237
 
238
  //#################################################################
239
 
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
  Description: A NextGENeration Photo gallery for the WEB2.0(beta). At the moment only poor Web1.0 :-(
6
  Author: Alex Rabe
7
+ Version: 0.40a
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
42
  if (version_compare($wp_version, '2.1', '>=')) {
43
 
44
  // Version and path to check version
45
+ define('NGGVERSION', "0.40");
46
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
47
 
48
  // define URL
174
 
175
  template['file'] = '".NGGALLERY_URLPATH."nggbutton.php';
176
  template['width'] = 360;
177
+ template['height'] = 210;
178
 
179
  args = {
180
  resizable : 'no',
231
  }
232
 
233
  // init process for button control
234
+ add_action('init', 'ngg_addbuttons');
235
+ add_action('edit_page_form', 'insert_nextgen_script');
236
+ add_action('edit_form_advanced', 'insert_nextgen_script');
237
 
238
  //#################################################################
239
 
nggbutton.php CHANGED
@@ -10,6 +10,9 @@ if (!file_exists($wpconfig)) {
10
  require_once($wpconfig);
11
  require_once(ABSPATH.'/wp-admin/admin.php');
12
 
 
 
 
13
  global $wpdb;
14
  $ngg_options = get_option('ngg_options');
15
 
@@ -17,7 +20,7 @@ $ngg_options = get_option('ngg_options');
17
 
18
  <html xmlns="http://www.w3.org/1999/xhtml">
19
  <head>
20
- <title>{$lang_insert_link_title}</title>
21
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
22
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
23
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
@@ -42,22 +45,23 @@ $ngg_options = get_option('ngg_options');
42
  <br />
43
  <table border="0" cellpadding="4" cellspacing="0">
44
  <tr>
45
- <td nowrap="nowrap"><label for="target"><?php _e("Select gallery", 'nggallery'); ?></label></td>
46
  <td><select id="gallerytag" name="gallerytag" style="width: 200px">
47
- <option value="_self">gallery</option>
48
- <option value="_blank">text 1</option>
 
 
 
 
 
 
 
49
  </select></td>
50
  </tr>
51
  <tr>
52
- <td nowrap="nowrap"><label for="linktitle"><?php _e("TEXT ABC", 'nggallery'); ?></label></td>
53
- <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px" /></td>
54
- </tr>
55
- <tr id="styleSelectRow">
56
- <td><label for="styleSelect"><?php _e("TEXT ABC", 'nggallery'); ?></label></td>
57
- <td>
58
- <select id="styleSelect" name="styleSelect">
59
- <option value="" selected="selected"><?php __("TEXT ABC", 'nggallery'); ?></option>
60
- </select></td>
61
  </tr>
62
  </table>
63
  </div>
@@ -68,11 +72,24 @@ $ngg_options = get_option('ngg_options');
68
  <br />
69
  <table border="0" cellpadding="4" cellspacing="0">
70
  <tr>
71
- <td nowrap="nowrap"><label for="target2"><?php _e("Select album", 'nggallery'); ?></label></td>
72
- <td><select id="target2" name="target2" style="width: 200px">
73
- <option value="zweirt">album</option>
 
 
 
 
 
 
 
 
74
  </select></td>
75
  </tr>
 
 
 
 
 
76
  </table>
77
  </div>
78
  <!-- album panel -->
@@ -82,11 +99,30 @@ $ngg_options = get_option('ngg_options');
82
  <br />
83
  <table border="0" cellpadding="4" cellspacing="0">
84
  <tr>
85
- <td nowrap="nowrap"><label for="target3"><?php _e("Select picture", 'nggallery'); ?></label></td>
86
- <td><select id="target3" name="target3" style="width: 200px">
87
- <option value="start">singlepic</option>
 
 
 
 
 
 
 
 
88
  </select></td>
89
  </tr>
 
 
 
 
 
 
 
 
 
 
 
90
  </table>
91
  </div>
92
  <!-- single pic panel -->
10
  require_once($wpconfig);
11
  require_once(ABSPATH.'/wp-admin/admin.php');
12
 
13
+ // check for rights
14
+ if(!current_user_can('edit_posts')) die;
15
+
16
  global $wpdb;
17
  $ngg_options = get_option('ngg_options');
18
 
20
 
21
  <html xmlns="http://www.w3.org/1999/xhtml">
22
  <head>
23
+ <title>NextGEN Gallery</title>
24
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
25
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
26
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
45
  <br />
46
  <table border="0" cellpadding="4" cellspacing="0">
47
  <tr>
48
+ <td nowrap="nowrap"><label for="gallerytag"><?php _e("Select gallery", 'nggallery'); ?></label></td>
49
  <td><select id="gallerytag" name="gallerytag" style="width: 200px">
50
+ <option value="0"><?php _e("No gallery", 'nggallery'); ?></option>
51
+ <?php
52
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY name ASC");
53
+ if(is_array($gallerylist)) {
54
+ foreach($gallerylist as $gallery) {
55
+ echo '<option value="'.$gallery->gid.'" >'.$gallery->name.'</option>'."\n";
56
+ }
57
+ }
58
+ ?>
59
  </select></td>
60
  </tr>
61
  <tr>
62
+ <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Show as", 'nggallery'); ?></label></td>
63
+ <td><label><input name="showtype" type="radio" value="gallery" checked="checked" /> <?php _e('Image list', 'nggallery') ;?></label><br />
64
+ <label><input name="showtype" type="radio" value="slideshow" /> <?php _e('Slideshow', 'nggallery') ;?></label></td>
 
 
 
 
 
 
65
  </tr>
66
  </table>
67
  </div>
72
  <br />
73
  <table border="0" cellpadding="4" cellspacing="0">
74
  <tr>
75
+ <td nowrap="nowrap"><label for="albumtag"><?php _e("Select album", 'nggallery'); ?></label></td>
76
+ <td><select id="albumtag" name="albumtag" style="width: 200px">
77
+ <option value="0"><?php _e("No album", 'nggallery'); ?></option>
78
+ <?php
79
+ $albumlist = $wpdb->get_results("SELECT * FROM $wpdb->nggalbum ORDER BY name ASC");
80
+ if(is_array($albumlist)) {
81
+ foreach($albumlist as $album) {
82
+ echo '<option value="'.$album->id.'" >'.$album->name.'</option>'."\n";
83
+ }
84
+ }
85
+ ?>
86
  </select></td>
87
  </tr>
88
+ <tr>
89
+ <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Show as", 'nggallery'); ?></label></td>
90
+ <td><label><input name="albumtype" type="radio" value="extend" checked="checked" /> <?php _e('Extended version', 'nggallery') ;?></label><br />
91
+ <label><input name="albumtype" type="radio" value="compact" /> <?php _e('Compact version', 'nggallery') ;?></label></td>
92
+ </tr>
93
  </table>
94
  </div>
95
  <!-- album panel -->
99
  <br />
100
  <table border="0" cellpadding="4" cellspacing="0">
101
  <tr>
102
+ <td nowrap="nowrap"><label for="singlepictag"><?php _e("Select picture", 'nggallery'); ?></label></td>
103
+ <td><select id="singlepictag" name="singlepictag" style="width: 200px">
104
+ <option value="0"><?php _e("No picture", 'nggallery'); ?></option>
105
+ <?php
106
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures ORDER BY filename ASC");
107
+ if(is_array($picturelist)) {
108
+ foreach($picturelist as $picture) {
109
+ echo '<option value="'.$picture->pid.'" >'.$picture->filename.'</option>'."\n";
110
+ }
111
+ }
112
+ ?>
113
  </select></td>
114
  </tr>
115
+ <tr>
116
+ <td nowrap="nowrap"><?php _e("Width x Height", 'nggallery'); ?></td>
117
+ <td><input type="text" size="5" id="imgWidth" name="imgWidth" value="320" /> x <input type="text" size="5" id="imgHeight" name="imgHeight" value="240" /></td>
118
+ </tr>
119
+ <tr>
120
+ <td nowrap="nowrap" valign="top"><?php _e("Effect", 'nggallery'); ?></td>
121
+ <td><label><input name="imgeffect" type="radio" value="none" checked="checked" /> <?php _e('No effect', 'nggallery') ;?></label><br />
122
+ <label><input name="imgeffect" type="radio" value="watermark" /> <?php _e('Watermark', 'nggallery') ;?></label><br />
123
+ <label><input name="imgeffect" type="radio" value="web20" /> <?php _e('Web 2.0', 'nggallery') ;?></label></td>
124
+ </tr>
125
+
126
  </table>
127
  </div>
128
  <!-- single pic panel -->
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://alexrabe.boelinger.com/?page_id=80
4
  Tags: flash, slideshow, images, gallery, media, admin, post
5
  Requires at least: 2.1.3
6
  Tested up to: 2.2
7
- Stable tag: 0.38
8
 
9
  NextGEN Gallery is a Image Gallery plugin for WordPress.
10
 
4
  Tags: flash, slideshow, images, gallery, media, admin, post
5
  Requires at least: 2.1.3
6
  Tested up to: 2.2
7
+ Stable tag:
8
 
9
  NextGEN Gallery is a Image Gallery plugin for WordPress.
10