Version Description
- Major Bug fixed with saving of Data
Download this release
Release Info
Developer | Gallery-Bank |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 3.0.32 |
Comparing to | |
See all releases |
Code changes from version 3.0.31 to 3.0.32
- gallery-bank.php +1 -1
- lib/add-new-album-class.php +68 -132
- readme.txt +6 -2
- views/edit-album.php +15 -25
gallery-bank.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
|
6 |
Author: Tech Banker
|
7 |
-
Version: 3.0.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
|
6 |
Author: Tech Banker
|
7 |
+
Version: 3.0.32
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
lib/add-new-album-class.php
CHANGED
@@ -66,86 +66,26 @@ else
|
|
66 |
$ux_albumid = intval($_REQUEST["album_id"]);
|
67 |
$ux_controlType = esc_attr($_REQUEST["controlType"]);
|
68 |
$ux_img_name = esc_attr(html_entity_decode($_REQUEST["imagename"]));
|
69 |
-
$ux_albumCover = esc_attr($_REQUEST["isAlbumCoverSet"]);
|
70 |
-
$ux_title = html_entity_decode(esc_attr($_REQUEST["title"]));
|
71 |
-
$ux_description = html_entity_decode(esc_attr($_REQUEST["description"]));
|
72 |
-
$ux_tags = html_entity_decode(esc_attr($_REQUEST["tags"]));
|
73 |
-
$ux_urlRedirect = esc_attr($_REQUEST["urlRedirect"]);
|
74 |
$img_gb_path = esc_attr($_REQUEST["img_gb_path"]);
|
75 |
-
$cover_width = intval($_REQUEST["cover_width"]);
|
76 |
-
$cover_height = intval($_REQUEST["cover_height"]);
|
77 |
|
78 |
if ($ux_controlType == "image") {
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
)
|
97 |
-
);
|
98 |
-
process_album_upload($img_gb_path, $cover_width, $cover_height);
|
99 |
-
}
|
100 |
-
else
|
101 |
-
{
|
102 |
-
$wpdb->query
|
103 |
-
(
|
104 |
-
$wpdb->prepare
|
105 |
-
(
|
106 |
-
"INSERT INTO " . gallery_bank_pics() . " (album_id,thumbnail_url,title,description,url,video,date,tags,pic_name,album_cover)
|
107 |
-
VALUES(%d,%s,%s,%s,%s,%d,CURDATE(),%s,%s,%d)",
|
108 |
-
$ux_albumid,
|
109 |
-
$img_gb_path,
|
110 |
-
$ux_title,
|
111 |
-
$ux_description,
|
112 |
-
$ux_urlRedirect,
|
113 |
-
0,
|
114 |
-
$ux_tags,
|
115 |
-
$ux_img_name,
|
116 |
-
0
|
117 |
-
)
|
118 |
-
);
|
119 |
-
}
|
120 |
-
echo $pic_id = $wpdb->insert_id;
|
121 |
-
$wpdb->query
|
122 |
-
(
|
123 |
-
$wpdb->prepare
|
124 |
-
(
|
125 |
-
"UPDATE " . gallery_bank_pics() . " SET sorting_order = %d WHERE pic_id = %d",
|
126 |
-
$pic_id,
|
127 |
-
$pic_id
|
128 |
-
)
|
129 |
-
);
|
130 |
-
}
|
131 |
-
else
|
132 |
-
{
|
133 |
-
$wpdb->query
|
134 |
-
(
|
135 |
-
$wpdb->prepare
|
136 |
-
(
|
137 |
-
"INSERT INTO " . gallery_bank_pics() . " (album_id,thumbnail_url,title,description,url,video,date,tags,pic_name)
|
138 |
-
VALUES(%d,%s,%s,%s,%s,%d,CURDATE(),%s,%s)",
|
139 |
-
$ux_albumid,
|
140 |
-
"",
|
141 |
-
$ux_title,
|
142 |
-
$ux_description,
|
143 |
-
$ux_urlRedirect,
|
144 |
-
1,
|
145 |
-
$ux_tags,
|
146 |
-
$ux_img_name
|
147 |
-
)
|
148 |
-
);
|
149 |
echo $pic_id = $wpdb->insert_id;
|
150 |
$wpdb->query
|
151 |
(
|
@@ -179,61 +119,57 @@ else
|
|
179 |
}
|
180 |
else if ($_REQUEST["param"] == "update_pic")
|
181 |
{
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
$ux_picId
|
234 |
-
)
|
235 |
-
);
|
236 |
-
}
|
237 |
die();
|
238 |
}
|
239 |
else if ($_REQUEST["param"] == "delete_pic")
|
66 |
$ux_albumid = intval($_REQUEST["album_id"]);
|
67 |
$ux_controlType = esc_attr($_REQUEST["controlType"]);
|
68 |
$ux_img_name = esc_attr(html_entity_decode($_REQUEST["imagename"]));
|
|
|
|
|
|
|
|
|
|
|
69 |
$img_gb_path = esc_attr($_REQUEST["img_gb_path"]);
|
|
|
|
|
70 |
|
71 |
if ($ux_controlType == "image") {
|
72 |
+
$wpdb->query
|
73 |
+
(
|
74 |
+
$wpdb->prepare
|
75 |
+
(
|
76 |
+
"INSERT INTO " . gallery_bank_pics() . " (album_id,thumbnail_url,title,description,url,video,date,tags,pic_name,album_cover)
|
77 |
+
VALUES(%d,%s,%s,%s,%s,%d,CURDATE(),%s,%s,%d)",
|
78 |
+
$ux_albumid,
|
79 |
+
$img_gb_path,
|
80 |
+
"",
|
81 |
+
"",
|
82 |
+
"http://",
|
83 |
+
0,
|
84 |
+
"",
|
85 |
+
$ux_img_name,
|
86 |
+
0
|
87 |
+
)
|
88 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
echo $pic_id = $wpdb->insert_id;
|
90 |
$wpdb->query
|
91 |
(
|
119 |
}
|
120 |
else if ($_REQUEST["param"] == "update_pic")
|
121 |
{
|
122 |
+
$album_data = json_decode(stripcslashes($_REQUEST["album_data"]),true);
|
123 |
+
foreach($album_data as $element)
|
124 |
+
{
|
125 |
+
$field = explode("|", $element);
|
126 |
+
if ($field[0] == "image") {
|
127 |
+
if ($field[3] == "checked") {
|
128 |
+
$wpdb->query
|
129 |
+
(
|
130 |
+
$wpdb->prepare
|
131 |
+
(
|
132 |
+
"UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, url = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
|
133 |
+
$field[4],
|
134 |
+
$field[5],
|
135 |
+
$field[7],
|
136 |
+
$field[6],
|
137 |
+
1,
|
138 |
+
$field[1]
|
139 |
+
)
|
140 |
+
);
|
141 |
+
process_album_upload($field[2], $field[8], $field[9]);
|
142 |
+
} else {
|
143 |
+
$wpdb->query
|
144 |
+
(
|
145 |
+
$wpdb->prepare
|
146 |
+
(
|
147 |
+
"UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, url = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
|
148 |
+
$field[4],
|
149 |
+
$field[5],
|
150 |
+
$field[7],
|
151 |
+
$field[6],
|
152 |
+
0,
|
153 |
+
$field[1]
|
154 |
+
)
|
155 |
+
);
|
156 |
+
}
|
157 |
+
} else {
|
158 |
+
$wpdb->query
|
159 |
+
(
|
160 |
+
$wpdb->prepare
|
161 |
+
(
|
162 |
+
"UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
|
163 |
+
$field[4],
|
164 |
+
$field[5],
|
165 |
+
$field[6],
|
166 |
+
0,
|
167 |
+
$field[1]
|
168 |
+
)
|
169 |
+
);
|
170 |
+
}
|
171 |
+
|
172 |
+
}
|
|
|
|
|
|
|
|
|
173 |
die();
|
174 |
}
|
175 |
else if ($_REQUEST["param"] == "delete_pic")
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank,contact-banker
|
|
3 |
Tags: admin, AJAX, album, albums, best gallery plugin, best portfolio plugin, comments, easy media gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, gallery, gallery album, gallery bank, gallery image, gallery wordpress plugin, grid gallery, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, sidebar, slideshow, thumbnails, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.9.1
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -48,7 +48,7 @@ It provides a powerful engine for uploading and managing galleries of images & v
|
|
48 |
|
49 |
Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
|
50 |
|
51 |
-
***May
|
52 |
|
53 |
<a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
54 |
|
@@ -483,6 +483,10 @@ is False in shortcode.
|
|
483 |
|
484 |
== Changelog ==
|
485 |
|
|
|
|
|
|
|
|
|
486 |
= 3.0.31 =
|
487 |
|
488 |
* Few Bugs Fixed
|
3 |
Tags: admin, AJAX, album, albums, best gallery plugin, best portfolio plugin, comments, easy media gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, gallery, gallery album, gallery bank, gallery image, gallery wordpress plugin, grid gallery, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, sidebar, slideshow, thumbnails, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.9.1
|
6 |
+
Stable tag: 3.0.32
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
48 |
|
49 |
Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
|
50 |
|
51 |
+
***May 26, 2014: We're happy to announce that Gallery Bank reached 129,300+ plugin downloads in only 12 months. We frequently receive positive feedback from people using our Gallery Bank Plugin for WordPress. Thanks so much for your support!***
|
52 |
|
53 |
<a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
54 |
|
483 |
|
484 |
== Changelog ==
|
485 |
|
486 |
+
= 3.0.32 =
|
487 |
+
|
488 |
+
* Major Bug fixed with saving of Data
|
489 |
+
|
490 |
= 3.0.31 =
|
491 |
|
492 |
* Few Bugs Fixed
|
views/edit-album.php
CHANGED
@@ -401,6 +401,7 @@ if (count($album_css) != 0)
|
|
401 |
var cover_width = <?php echo $cover_thumbnail_width; ?>;
|
402 |
var cover_height = <?php echo $cover_thumbnail_height; ?>;
|
403 |
var delete_array = [];
|
|
|
404 |
|
405 |
oTable = jQuery("#data-table-edit-album").dataTable
|
406 |
({
|
@@ -461,6 +462,7 @@ if (count($album_css) != 0)
|
|
461 |
var tags = "";
|
462 |
var urlRedirect = "";
|
463 |
var picId = "";
|
|
|
464 |
|
465 |
controlType = jQuery(value.cells[1]).find("img").attr("type");
|
466 |
picId = jQuery(value.cells[1]).find("img").attr("imageId");
|
@@ -470,24 +472,19 @@ if (count($album_css) != 0)
|
|
470 |
description = jQuery(value.cells[2]).find("textarea").eq(0).val();
|
471 |
tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
|
472 |
urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
});
|
484 |
});
|
485 |
-
|
486 |
-
setTimeout(function () {
|
487 |
-
jQuery("#update_album_success_message").css("display", "none");
|
488 |
-
window.location.href = "admin.php?page=gallery_bank";
|
489 |
-
}, 3000);
|
490 |
-
}
|
491 |
});
|
492 |
}
|
493 |
});
|
@@ -522,15 +519,8 @@ if (count($album_css) != 0)
|
|
522 |
var controlType = "image";
|
523 |
var image_name = file.name;
|
524 |
var img_gb_path = file.target_name;
|
525 |
-
var isAlbumCoverSet = "";
|
526 |
-
var title = "";
|
527 |
-
var description = "";
|
528 |
-
var tags = "";
|
529 |
-
var urlRedirect = "http://";
|
530 |
jQuery.post(ajaxurl, "album_id=" + albumid + "&controlType=" + controlType + "&imagename=" + image_name +
|
531 |
-
"&img_gb_path=" + img_gb_path + "&
|
532 |
-
"&description=" + encodeURIComponent(description) + "&tags=" + encodeURIComponent(tags) + "&urlRedirect=" + urlRedirect +
|
533 |
-
"&cover_height=" + cover_height + "&cover_width=" + cover_width +
|
534 |
"¶m=add_pic&action=add_new_album_library", function (data) {
|
535 |
|
536 |
jQuery.post(ajaxurl, "img_path=" + file.target_name + "&img_name=" + file.name + "&image_width=" + image_width +
|
401 |
var cover_width = <?php echo $cover_thumbnail_width; ?>;
|
402 |
var cover_height = <?php echo $cover_thumbnail_height; ?>;
|
403 |
var delete_array = [];
|
404 |
+
var array_album_data = [];
|
405 |
|
406 |
oTable = jQuery("#data-table-edit-album").dataTable
|
407 |
({
|
462 |
var tags = "";
|
463 |
var urlRedirect = "";
|
464 |
var picId = "";
|
465 |
+
var row_data = "";
|
466 |
|
467 |
controlType = jQuery(value.cells[1]).find("img").attr("type");
|
468 |
picId = jQuery(value.cells[1]).find("img").attr("imageId");
|
472 |
description = jQuery(value.cells[2]).find("textarea").eq(0).val();
|
473 |
tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
|
474 |
urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
|
475 |
+
|
476 |
+
row_data = controlType +"|"+picId+"|"+img_gb_path+"|"+isAlbumCoverSet+"|"+title+"|"+description+
|
477 |
+
"|"+tags+"|"+urlRedirect+"|"+cover_width+"|"+cover_height;
|
478 |
+
|
479 |
+
array_album_data.push(row_data);
|
480 |
+
});
|
481 |
+
jQuery.post(ajaxurl, "album_data="+JSON.stringify(array_album_data)+ "¶m=update_pic&action=add_new_album_library", function () {
|
482 |
+
setTimeout(function () {
|
483 |
+
jQuery("#update_album_success_message").css("display", "none");
|
484 |
+
window.location.href = "admin.php?page=gallery_bank";
|
485 |
+
}, 10000);
|
486 |
});
|
487 |
+
|
|
|
|
|
|
|
|
|
|
|
488 |
});
|
489 |
}
|
490 |
});
|
519 |
var controlType = "image";
|
520 |
var image_name = file.name;
|
521 |
var img_gb_path = file.target_name;
|
|
|
|
|
|
|
|
|
|
|
522 |
jQuery.post(ajaxurl, "album_id=" + albumid + "&controlType=" + controlType + "&imagename=" + image_name +
|
523 |
+
"&img_gb_path=" + img_gb_path + "&cover_height=" + cover_height + "&cover_width=" + cover_width +
|
|
|
|
|
524 |
"¶m=add_pic&action=add_new_album_library", function (data) {
|
525 |
|
526 |
jQuery.post(ajaxurl, "img_path=" + file.target_name + "&img_name=" + file.name + "&image_width=" + image_width +
|