•  » Themes
  •  » [Theme] GreyDragon Theme

#316 2020-01-06 18:57:26

KrisvH
Member
2016-09-03
2

Re: [Theme] GreyDragon Theme

Hi guys,

What a great theme and configuration options. Using it. The only thing is that I can't seem to figure out is how to make the photos/photo-page adapt/fit to the screen. This does work when I use it in combination with Fotorama. However, then I loose other aspects like social media links etc. Would be great if there is a way to make the photo page more adaptive. Or am I missing a trick?

Regards,

Kris
www.kris.photos
Piwigo 2.10.1
GreyDragon Theme - 1.3.3

Offline

 

#317 2020-01-28 10:50:58

Frank
Member
2020-01-28
1

Re: [Theme] GreyDragon Theme

Hi,
I am using your theme (at faces.photo, still in work), and it looks great.
The only drawback is: I cannot see the "About"-link anymore.
No, I didn't switch it off in the theme settings ("Hide About Link" is unchecked). I do use some plugin, i.e.:
"Additional pages", "PWG stuffs", "Admin Tool", "Community", "Extended description", "gdThumb", "Mobile Theme for tablets", "Personal About" and a few more.
I switched off some of them, but that didn't change anything.
Any idea?

I can still see the dot after "Register" (in "Login· Register· "), so this looks to me like a CSS problem...

Thanks for any help,
Frank

Update: I worked around it, by the way, by using the homepage from "Additional pages", but this isn't a solution to the issue...

Last edited by Frank (2020-01-28 17:20:14)

Offline

 

#318 2020-02-16 20:45:24

jeffreybillings
Member
2017-04-24
1

Re: [Theme] GreyDragon Theme

Great theme.  It makes my life a lot easier.  But I have one request/suggestion.  I'd like to highlight the "Cart" link on the single image page.  Where would I look to either modify the CSS or other file. to do that?  Or is this something you'd be willing to include in the next theme update?

Offline

 

#319 2020-12-29 11:03:12

augras
Member
2018-12-24
6

Re: [Theme] GreyDragon Theme

Hi,

I use GreyDragon and i'm very glad with it. But i was looking for PgDown and PgUp buttons.
I use some code i have found on the web and it works fine.

In the Admin Menu Theme Config, in the Custom css field put the code (don't forgot to register) :

Code:

/*---------------------------------------
   add scroll-down/scroll-top buttons
----------------------------------------*/
.scroll-page {
  font-size: 20px;
  background-color: #000000; /* Scroll bg color */
  border-radius: 3px;
  color: #ffffff;
  opacity: 1;
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
  display: none;
  cursor: pointer;
}

.scroll-page i {
  background: url('sprite.png'); /* PNG fallback */
  background-image: url('sprite.svg'); /* SVG image */
  background-repeat: no-repeat;
  color: inherit;
  display: block;
  width: 38px;
  height: 35px;
  padding: 15px;
}


.scroll-page .scroll-up {
  background-position: -26px 10px;
  padding-bottom: 5px;
        opacity: 0.6;
}

.scroll-page .scroll-down {
  background-position: 10px 5px;
  padding-top: 5px;
        opacity: 0.6;
}

.scroll-up:hover {
  opacity: 1;
}

.scroll-down:hover {
  opacity: 1;
}
.scroll-page:hover {
  opacity: 1;
}

.rtl .scroll-page {
  right: auto;
  left: 25px;
}

@media only screen and (max-width: 800px), only screen and (max-device-width: 800px) {
  .scroll-page {
    display: none !important;
  }
}

Take care to these 2 lines :

Code:

background: url('sprite.png'); /* PNG fallback */
  background-image: url('sprite.svg'); /* SVG image */

It needs 2 files for the arrows up and down, sprite.png and sprite.svg : with this code these files must be at the same place cutom.css file in /local/greydragon. You can use what you want for the arrows but change the code with your files name.


And then add in /themes/greydragon/template/header.tpl just after the body, line 118 with 1.3.3 version, the code :

Code:

<!-- scroll-up/scroll-down buttons -->
<div class="scroll-page">
  <i class="scroll-up"></i>
  <i class="scroll-down"></i>
</div>

<script>

(function($) { // Avoid conflicts with other libraries

'use strict';

$(function() {
  var settings = {
      min: 150,
      scrollSpeed: 10000
    },
    button = $('.scroll-page'),
    buttonHidden = true;

  $(window).scroll(function() {
    var pos = $(this).scrollTop();
    if (pos > settings.min && buttonHidden) {
      button.stop(true, true).fadeIn(4000);
      buttonHidden = false;
    } else if(pos <= settings.min && !buttonHidden) {
      button.stop(true, true).fadeOut(4000);
      buttonHidden = true;
    }
  });

  var scrollPage = function() {
    $('html, body').animate({
      scrollTop: ($(this).hasClass('scroll-up')) ? 0 : $(document).height()
    }, settings.scrollSpeed);
  };

  $('.scroll-page > i').bind('click touchstart', scrollPage);
});

})(jQuery);

</script>

And that's all.

Maybe there is a best way, a best code : i don't know.

I don't find how to join files !

This code is not from me, i got it on the web some time ago and use it on an another website.

If you want ta add this option you can use it, modify it as you want.

Thanks for this theme,

Philippe

Last edited by augras (2020-12-29 16:52:19)

Offline

 

#320 2020-12-29 15:19:31

augras
Member
2018-12-24
6

Re: [Theme] GreyDragon Theme

If you have a lot of thumbnails, like i have, you may want to stop your scroll down or up.
For that you must add in the header.tpl file, just after the line "$('.scroll-page > i').bind('click touchstart', scrollPage);" the code :

Code:

//STOP scroll-up/scroll-down with 
//- scroll
//- mouse click
//- mousewheel
//- hit a key-->
  $('html, body').bind('scroll mousedown DOMMouseScroll mousewheel keyup', function(){
    $('html, body').stop();
  });

Philippe

Offline

 

#321 2021-01-10 15:06:12

augras
Member
2018-12-24
6

Re: [Theme] GreyDragon Theme

In the css code there are these lines

Code:

@media only screen and (max-width: 800px), only screen and (max-device-width: 800px) {
  .scroll-page {
    display: none !important;
  }

that means the scroll buttons will not display with a resolution or a window less than 800px.
To get always the scroll buttons you must comment are delete these lines.

Offline

 

#322 2021-01-23 14:39:16

mulanee
Member
2006-11-25
38

Re: [Theme] GreyDragon Theme

Hi tyhere,

Still very happy with Greydragon.

Nevertheles I got this issue on 2 different websites (each with its own different setup) as well, by calling the greydragon configuration page:

Code:

Warning: Invalid argument supplied for foreach() in /var/www/sda/5/7/tigerfr/galerie/themes/greydragon/admin/admin.inc.php on line 48
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sda/5/7/tigerfr/galerie/themes/greydragon/admin/admin.inc.php:48) in /var/www/sda/5/7/tigerfr/galerie/include/page_header.php on line 94

Code:

Notice: Undefined index: plugin_menu_items in /volume1/web/ebgy.fr.nf/piwigo/themes/greydragon/admin/admin.inc.php on line 48 Notice: Trying to get property 'value' of non-object in /volume1/web/ebgy.fr.nf/piwigo/themes/greydragon/admin/admin.inc.php on line 48 Warning: Invalid argument supplied for foreach() in /volume1/web/ebgy.fr.nf/piwigo/themes/greydragon/admin/admin.inc.php on line 48

Last edited by mulanee (2021-01-23 14:41:35)

Offline

 

#323 2021-03-04 02:22:07

Serge D
Member
US
2014-07-15
383

Re: [Theme] GreyDragon Theme

this is related to deprecation of plugin_menu_items array in admin template

https://piwigo.org/doc/doku.php?id=dev:changes_in_2.11

I have posted question in How-to
Once I get answer, this will be fixed

Offline

 

#324 2021-03-04 22:46:00

Serge D
Member
US
2014-07-15
383

Re: [Theme] GreyDragon Theme

version 1.3.5 has been released

+ Verified compatibility with PIWIGO 11.x
+ Translation files synced from repo
- Fix misalignment of admin section header for PW 11+
- Fix issue with plugin detection

Offline

 

#325 2021-04-07 14:43:44

ashishkumarji
Member
2021-04-07
2

Re: [Theme] GreyDragon Theme

this is very good theme, i love it

Offline

 

#326 2021-11-05 08:33:35

Serge D
Member
US
2014-07-15
383

Re: [Theme] GreyDragon Theme

version 1.3.6
+ Verified compatibility with PIWIGO 12.x
+ Bootstrap CSS updated to 5.0.1
+ ADMIN: New option "No Carrousel click to Enter" to accommodate extended Carrousel navigation in the root page making click behavior on the slide now optional
+ Root page styles optimizations
+ Added safety wrappers for variables in some templates as required by new SMARTY engine

Offline

 

#327 2021-11-05 08:38:09

Serge D
Member
US
2014-07-15
383

Re: [Theme] GreyDragon Theme

Please note, theme relies on the "Additional Pages" plugin which is not yet verified for PIWIGO 12
Your root page may be lost as result

Offline

 

#328 2021-11-09 16:50:26

erAck
Only trying to help
2015-09-06
2153

Re: [Theme] GreyDragon Theme

The latest 1.3.6 update still lacks a removal of the second prefilter argument, see https://github.com/Piwigo/Piwigo/wiki/T … prefilters

Code:

--- themes/greydragon/themeconf.inc.php.orig    2021-11-05 08:22:02.000000000 +0100
+++ themes/greydragon/themeconf.inc.php 2021-11-09 16:30:56.715646496 +0100
@@ -91,7 +91,7 @@
   $template->set_prefilter('picture', 'greydragon_prepare_meta');
 }

-function greydragon_prepare_meta($tpl_source, &$smarty) {
+function greydragon_prepare_meta($tpl_source) {

   $metadata = greyDragonCore::Instance()->getPageTabs();

Without, there's this in the PHP log:

PHP Warning:  Parameter 2 to greydragon_prepare_meta() expected to be a reference, value given in .../include/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php on line 63

Which btw also holds for the GDThumb plugin, see [Forum, topic 31596] Patches for plugin compatibility in Piwigo 12.


Running Piwigo at https://erack.net/gallery/

Offline

 

#329 2021-11-10 05:05:19

Serge D
Member
US
2014-07-15
383

Re: [Theme] GreyDragon Theme

version 1.3.7
- Removed smarty reference in prefilter function
+ Removed compatibility with older versions of PIWIGO. Min required version is now 11.x
+ Minor changes to lang files to reflect the small changes in the label in admin area

Offline

 

#330 2021-12-11 19:54:08

maxima
Member
2021-11-26
24

Re: [Theme] GreyDragon Theme

In translations

$lang['Piwigo %s Core Installed (min required %s)'] = 'Nameščeno jedro Piwigo %s (min. zahtevano %s)';

He does not accept the translation

Missing:

$lang['Full Screen Galery'] = 'Full Screen Galery';
$lang['No Carrousel click to Enter'] = 'No Carrousel click to Enter'

Offline

 
  •  » Themes
  •  » [Theme] GreyDragon Theme

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact