Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Photo Gallery
Hai guys,

first.. the above solution for fancyboxproblems works: i.e. remove the -1.3.4 from fancybox-1.3.4.pack.js and from fancybox-1.3.4.css in thephotogallery.php.

second: can anyone please help with fixing the breadcrumbs. In firefox/chrome the first breadcrumb should go to the homepage of the gallery/site, but instead it refers to the current sub-gallery. It works fine though in IE.

this the code from thephotogallery.php: why dows it put anything after baseurl?

# breadcrumbs
if (strpos($folder, '/')) {
$code .= '<div id="the_photo_gallery_breadcrumbs">';
$crumbs = explode('/', $folder);
$baseurl = trim(remove_querystring_var($_SERVER['REQUEST_URI'], 'album'), '/');
$code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> &raquo; ';
$crumbadd = null;
foreach ($crumbs as $crumb) {
if ($crumb != '') {
if ($crumbadd) {
$crumbadd = $crumbadd.'/'.$crumb;
} else {
$crumbadd = $crumb;
}
if (name_convert($crumb) == name_convert($folder)) {
$code .= '<strong>'.name_convert($crumb).'</strong>';
} else {
$code .= '<a href="'.add_querystring_var($baseurl, 'album', $crumbadd).'" >'.name_convert($crumb).'</a> &raquo; ';
}
}
}
$code .= '</div>';
}

PS: if there is a better plugin with support for subdirectories please let me know..

cheers
Reply
well, for me the best plugin is DynPages Big Grin

1. create simple code to read url and parse gallery root and gallery folder
2. reuse fancybox from /admin
3. put code in component and let it display in gallery page
4. modify .htaccess to work with urls /gallery/photoalbum1 instead of /gallery?folder=photoalbum1

this way you can have very similar gallery with custom functions like I did - read custom utf8 name from txt file in folder, next version can have optional description in txt maybe
Reply
(2014-03-08, 01:38:21)morvy Wrote: well, for me the best plugin is DynPages Big Grin

1. create simple code to read url and parse gallery root and gallery folder
2. reuse fancybox from /admin
3. put code in component and let it display in gallery page
4. modify .htaccess to work with urls /gallery/photoalbum1 instead of /gallery?folder=photoalbum1

this way you can have very similar gallery with custom functions like I did - read custom utf8 name from txt file in folder, next version can have optional description in txt maybe

Thanks 4 the swift reply...just installed p01-contact and fancybox quit working! Cant figure out why? So I'm going to start all over... maybe an other cmsWink.. just trolling

MORVY... can you post the url of your result... look at mine microtoys.nl
Reply
I don't have it online, I just like playing with GS Smile

your problem is in double loading jquery and scripts (why ? Smile )
Reply
is it possible that the pictures can stand to the next? When i upload 10 pictures, i dont want that it stand among themselves
Reply
Hello,
How I can choose the outstanding image of each album? or
How to know that I can choose the image plugin?, To name it properly.
thanks
Reply
I just downloaded and tested this plugin - a couple of errors - the plugin has:
/template/js/fancybox/jquery.fancybox-1.3.4.pack.js
/template/js/fancybox/jquery.fancybox-1.3.4.css

but needs
/template/js/fancybox/jquery.fancybox.pack.js
/template/js/fancybox/jquery.fancybox.css

or you can rename the files to make it work Smile
Reply
Hello,

I have a new site with grey one page theme, the photos gallery thumbnail work fine , but picture are not display in lightbox like it was in a older get simple cms i have done before, they are display as picture alone.

What should i do to have a lightbox style showing the big image ?

Thanks
Reply
(2016-08-05, 05:52:01)Bill Wrote: Hello,

I have a new site with grey one page theme, the photos gallery thumbnail work fine , but picture are not display in lightbox like it was in a older get simple cms i have done before, they are display as picture alone.

What should i do to have a lightbox style showing the big image ?

Thanks

Just go back to post #94 in this thread for a fixed version of the plugin.
Reply
(2014-03-08, 01:27:54)vanmo Wrote: Hai guys,

first.. the above solution for fancyboxproblems works: i.e. remove the -1.3.4 from fancybox-1.3.4.pack.js and from fancybox-1.3.4.css in thephotogallery.php.

second: can anyone please help with fixing the breadcrumbs. In firefox/chrome the first breadcrumb should go to the homepage of the gallery/site, but instead it refers to the current sub-gallery.  It works fine though in IE.

this the code from thephotogallery.php: why dows it put anything after baseurl?

# breadcrumbs
 if (strpos($folder, '/')) {
 $code .= '<div id="the_photo_gallery_breadcrumbs">';
 $crumbs = explode('/', $folder);
 $baseurl = trim(remove_querystring_var($_SERVER['REQUEST_URI'], 'album'), '/');
 $code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> &raquo; ';
 $crumbadd = null;
 foreach ($crumbs as $crumb) {
  if ($crumb != '') {
  if ($crumbadd) {
  $crumbadd = $crumbadd.'/'.$crumb;
  } else {
  $crumbadd = $crumb;
  }
  if (name_convert($crumb) == name_convert($folder)) {
  $code .= '<strong>'.name_convert($crumb).'</strong>';
  } else {
  $code .= '<a href="'.add_querystring_var($baseurl, 'album', $crumbadd).'" >'.name_convert($crumb).'</a> &raquo; ';
  }
 }
 }
 $code .= '</div>';
 }

PS: if there is a better plugin with support for subdirectories please let me know..

cheers

Hey guys,
Maybe it can help, late, I know.
I had the same issue, my web site is on a test folder. Here is the code to correct the double folder :


PHP Code:
$baseurl implode('/',array_shift(explode('/',$baseurl))); 

Edit file ThePhotoGallery.php like this :


 
PHP Code:
# breadcrumbs

  if (strpos($folder'/')) {
          $code .= '<div id="the_photo_gallery_breadcrumbs">';
          $crumbs explode('/'$folder);
          $baseurl trim(remove_querystring_var($_SERVER['REQUEST_URI'], 'album'), '/');
          $baseurl implode('/',array_shift(explode('/',$baseurl)));
          echo $baseurl;
          $code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> &raquo; ';
          $crumbadd null;
          foreach ($crumbs as $crumb) {
                  if ($crumb != '') { 
                          if ($crumbadd) {
                                  $crumbadd $crumbadd.'/'.$crumb;
                          } else {
                                  $crumbadd $crumb;
                          }
                          if (name_convert($crumb) == name_convert($folder)) {
                                  $code .= '<strong>'.name_convert($crumb).'</strong>';
                          } else {
                                  $code .= '<a href="'.add_querystring_var($baseurl'album'$crumbadd).'" >'.name_convert($crumb).'</a> &raquo; ';
                          }
                  }
          }
          $code .= '</div>';
  }  

Tested on sub nested folders.
Reply
See this thread if you still use this plugin: http://get-simple.info/forums/showthread.php?tid=8671
Reply
(2016-10-05, 10:56:37)datiswous Wrote: See this thread if you still use this plugin: http://get-simple.info/forums/showthread.php?tid=8671

Thanks to let me know
Reply




Users browsing this thread: 2 Guest(s)