Gallery Bank: WordPress Photo Gallery Plugin - Version 1.7.8

Version Description

  • Bugs fixed with Album creation.
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 1.7.8
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.8

css/visuallightbox.css CHANGED
@@ -14,7 +14,7 @@
14
  .imgContainerSingle {
15
  margin: 5px;
16
  padding: 5px;
17
- background: #D8D5D2;
18
  font-size: 11px;
19
  line-height: 1.4em;
20
  float: left;
14
  .imgContainerSingle {
15
  margin: 5px;
16
  padding: 5px;
17
+
18
  font-size: 11px;
19
  line-height: 1.4em;
20
  float: left;
gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
- Version: 1.7.5
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -30,10 +30,9 @@ function plugin_install_script_for_gallery_bank()
30
  {
31
  include_once GALLERY_BK_PLUGIN_DIR .'/install-script.php';
32
  }
33
-
34
  function plugin_load_textdomain()
35
  {
36
- if( function_exists( 'load_plugin_textdomain' ) )
37
  {
38
  load_plugin_textdomain(gallery_bank, false, GALLERY_BK_PLUGIN_DIRNAME .'/languages');
39
  }
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
+ Version: 1.7.8
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
30
  {
31
  include_once GALLERY_BK_PLUGIN_DIR .'/install-script.php';
32
  }
 
33
  function plugin_load_textdomain()
34
  {
35
+ if(function_exists( 'load_plugin_textdomain' ))
36
  {
37
  load_plugin_textdomain(gallery_bank, false, GALLERY_BK_PLUGIN_DIRNAME .'/languages');
38
  }
install-script.php CHANGED
@@ -160,4 +160,24 @@ if (count($wpdb->get_var('SHOW TABLES LIKE "' . gallery_bank_albums() . '"')) !=
160
 
161
  }
162
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  ?>
160
 
161
  }
162
  }
163
+ if (count($wpdb->get_var('SHOW TABLES LIKE "' . gallery_bank_albums() . '"')) != 0)
164
+ {
165
+ $check = $wpdb->get_var
166
+ (
167
+ $wpdb->prepare
168
+ (
169
+ "SHOW COLUMNS FROM " . gallery_bank_albums() . " LIKE 'images_in_row'",""
170
+ )
171
+ );
172
+ if($check != "")
173
+ {
174
+ $wpdb->query
175
+ (
176
+ $wpdb->prepare
177
+ (
178
+ "ALTER TABLE " . gallery_bank_albums() . " DROP images_in_row",""
179
+ )
180
+ );
181
+ }
182
+ }
183
  ?>
lib/album-gallery-bank-class.php CHANGED
@@ -27,8 +27,8 @@ else
27
  $wpdb->prepare
28
  (
29
  "INSERT INTO ".gallery_bank_albums()."(album_name,description,image_width,image_height,border_enable,
30
- border_width,border_color,images_in_row,slideshow,slideshow_interval,album_date,author)
31
- VALUES(%s,%s,%d,%d,%d,%d,%s,%d,%d,%d,CURDATE(),%s)",
32
  $ux_album_name,
33
  $ux_desciption,
34
  $ux_image_width,
@@ -36,7 +36,6 @@ else
36
  $ux_border,
37
  $ux_border_width,
38
  $ux_border_color,
39
- $ux_image_no,
40
  $ux_slide,
41
  $ux_slide_interval,
42
  $current_user->display_name
@@ -64,7 +63,7 @@ else
64
  $wpdb->prepare
65
  (
66
  "UPDATE " .gallery_bank_albums(). " SET album_name = %s, description = %s, image_width = %d, image_height = %d,
67
- border_enable = %d, border_width = %d, border_color = %s, images_in_row = %d, slideshow = %d, slideshow_interval = %d WHERE album_id = %d",
68
  $ux_edit_album_name,
69
  $ux_edit_desciption,
70
  $ux_edit_image_width,
@@ -72,7 +71,6 @@ else
72
  $ux_edit_image_border,
73
  $ux_edit_border_width,
74
  $ux_edit_border_color,
75
- $ux_edit_image_no,
76
  $ux_edit_slide,
77
  $ux_edit_slide_interval,
78
  $albumId
27
  $wpdb->prepare
28
  (
29
  "INSERT INTO ".gallery_bank_albums()."(album_name,description,image_width,image_height,border_enable,
30
+ border_width,border_color,slideshow,slideshow_interval,album_date,author)
31
+ VALUES(%s,%s,%d,%d,%d,%d,%s,%d,%d,CURDATE(),%s)",
32
  $ux_album_name,
33
  $ux_desciption,
34
  $ux_image_width,
36
  $ux_border,
37
  $ux_border_width,
38
  $ux_border_color,
 
39
  $ux_slide,
40
  $ux_slide_interval,
41
  $current_user->display_name
63
  $wpdb->prepare
64
  (
65
  "UPDATE " .gallery_bank_albums(). " SET album_name = %s, description = %s, image_width = %d, image_height = %d,
66
+ border_enable = %d, border_width = %d, border_color = %s, slideshow = %d, slideshow_interval = %d WHERE album_id = %d",
67
  $ux_edit_album_name,
68
  $ux_edit_desciption,
69
  $ux_edit_image_width,
71
  $ux_edit_image_border,
72
  $ux_edit_border_width,
73
  $ux_edit_border_color,
 
74
  $ux_edit_slide,
75
  $ux_edit_slide_interval,
76
  $albumId
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank
3
  Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox
4
  Requires at least: 3.0
5
  Tested up to: 3.6 Beta
6
- Stable tag: 1.7.5
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -97,6 +97,10 @@ Visit [here](http://gallery-bank.com) to upgrade to Pro Version now.
97
 
98
  == Changelog ==
99
 
 
 
 
 
100
  = 1.7.5 =
101
 
102
  * Possible to upload upto 300 images at 1 instance in a n album
3
  Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox
4
  Requires at least: 3.0
5
  Tested up to: 3.6 Beta
6
+ Stable tag: 1.7.8
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.7.8 =
101
+
102
+ * Bugs fixed with Album creation.
103
+
104
  = 1.7.5 =
105
 
106
  * Possible to upload upto 300 images at 1 instance in a n album
views/front_view.php CHANGED
@@ -22,7 +22,6 @@
22
  <h3><?php echo $album->album_name;?></h3>
23
  <div id="view_bank_album_<?php echo $unique_id;?>">
24
  <?php
25
- $row = $album ->images_in_row;
26
  for ($flag = 0; $flag <count($pic_detail); $flag++)
27
  {
28
  if($pic_detail[$flag]->description == "")
22
  <h3><?php echo $album->album_name;?></h3>
23
  <div id="view_bank_album_<?php echo $unique_id;?>">
24
  <?php
 
25
  for ($flag = 0; $flag <count($pic_detail); $flag++)
26
  {
27
  if($pic_detail[$flag]->description == "")
views/menus-gallery-bank.php CHANGED
@@ -1,6 +1,6 @@
1
  <div id="top">
2
  <h1 id="logo"></h1>
3
- <a href="http://gallery-bank.com/" target="_blank"><img style="margin-left:100px;margin-bottom:10px;" src="<?php echo plugins_url('../gfx/notice.png',__FILE__) ?>"/></a>
4
  <div id="menu">
5
  <ul class="sf-js-enabled">
6
  <li id="gallery_bank">
1
  <div id="top">
2
  <h1 id="logo"></h1>
3
+ <a href="http://gallery-bank.com/" target="_blank"><img style="margin-left:100px;margin-bottom:10px;" src="<?php echo GALLERY_BK_PLUGIN_URL.'/gfx/notice.png' ?>"/></a>
4
  <div id="menu">
5
  <ul class="sf-js-enabled">
6
  <li id="gallery_bank">