Posts: 342
Threads: 64
Joined: Nov 2017
2023-01-07, 09:32:55
(This post was last modified: 2023-01-07, 09:33:54 by multicolor.)
Gallery plugin you want use it!
This is an easy to use gallery plugin with 5 modern solutions excluding the use of jquery. Just turn it on, create galleries, copy the shortcode and paste it into CKEditor
Posts: 154
Threads: 6
Joined: Jan 2013
Thanks multicolor. Just tried it quickly on a 3.3.16 (php7.4) instal.
Loved interface and usabilty, all images displayed as a stack in page without any of the gallery/lightbox methods present. Are there any other dependancies that I need?
Posts: 1,891
Threads: 82
Joined: Apr 2010
(2023-01-07, 09:32:55)multicolor Wrote: Gallery plugin you want use it!
This is an easy to use gallery plugin with 5 modern solutions excluding the use of jquery. Just turn it on, create galleries, copy the shortcode and paste it into CKEditor
When selecting the PhotoSwip gallery, a warning appears
Code: Warning: Undefined variable $gal in C:\OSPanel\domains\gsphp8.ia\plugins\monsterGallery.php on line 165
Posts: 1,891
Threads: 82
Joined: Apr 2010
And the thumbnails are not cut off for all galleries.
Posts: 342
Threads: 64
Joined: Nov 2017
(2023-01-07, 21:03:16)davetest Wrote: Thanks multicolor. Just tried it quickly on a 3.3.16 (php7.4) instal.
Loved interface and usabilty, all images displayed as a stack in page without any of the gallery/lightbox methods present. Are there any other dependancies that I need?
Noo  All included on code plugin. Only get_header and get_footer on template.
Posts: 342
Threads: 64
Joined: Nov 2017
2023-01-08, 02:34:51
(This post was last modified: 2023-01-08, 02:56:54 by multicolor.)
(2023-01-07, 21:36:47)Oleg06 Wrote: And the thumbnails are not cut off for all galleries.
What module type of gallery no cut thumbnails?
1.0.1 fixed photoSwipe fixed. soon more modules and function for using on template
Posts: 1,891
Threads: 82
Joined: Apr 2010
(2023-01-08, 02:34:51)multicolor Wrote: (2023-01-07, 21:36:47)Oleg06 Wrote: And the thumbnails are not cut off for all galleries.
What module type of gallery no cut thumbnails?
1.0.1 fixed photoSwipe fixed. soon more modules and function for using on template
They are not cut to size, as in I18N Gallery.
https://prnt.sc/Uja3wrnvQsf0
Posts: 342
Threads: 64
Joined: Nov 2017
2023-01-08, 07:16:30
(This post was last modified: 2023-01-08, 08:24:07 by multicolor.)
(2023-01-08, 06:01:55)Oleg06 Wrote: (2023-01-08, 02:34:51)multicolor Wrote: (2023-01-07, 21:36:47)Oleg06 Wrote: And the thumbnails are not cut off for all galleries.
What module type of gallery no cut thumbnails?
1.0.1 fixed photoSwipe fixed. soon more modules and function for using on template
They are not cut to size, as in I18N Gallery.
https://prnt.sc/Uja3wrnvQsf0 yes it is, first input create width resize thumbnails, next two create width- and height
screen:
https://prnt.sc/F9YGkbnANQgE
https://prnt.sc/FqaSj4yO3qTB
always you can create
.monsterGallery-grid img{
width: 120px;
height: 120px;
object-fit: cover;}
and important,
try this plugin on php 7.4+
Posts: 342
Threads: 64
Joined: Nov 2017
2.0 - added migrator url after you change domain, and fixes few small error.
Posts: 42
Threads: 7
Joined: Feb 2010
Where do I place the shortcode
<?php monsterGalleryShow("example");?>[% mg=example %] ?
Posts: 1,891
Threads: 82
Joined: Apr 2010
(2023-05-26, 13:19:07)tommy Wrote: Where do I place the shortcode
<?php monsterGalleryShow("example");?>[% mg=example %] ?
Short code in page editor. PHP code into a component or into a template.
Posts: 42
Threads: 7
Joined: Feb 2010
(2023-05-26, 13:33:10)Oleg06 Wrote: (2023-05-26, 13:19:07)tommy Wrote: Where do I place the shortcode
<?php monsterGalleryShow("example");?>[% mg=example %] ?
Short code in page editor. PHP code into a component or into a template.
I did that but the shortcode rendered the gallery right after opening of BODY tag instead of where I placed it in the page. I noticed the plugin inject the CSS on the header tag. Is the JS injected via the footer tag?
Just to double confirm the shortcode is using brackets [] not {} correct?
Posts: 342
Threads: 64
Joined: Nov 2017
Shortcode you should paste on ckeditor, not template. Remember about get_header() and get_footer() on yours template
Posts: 42
Threads: 7
Joined: Feb 2010
(2023-05-26, 18:01:55)multicolor Wrote: Shortcode you should paste on ckeditor, not template. Remember about get_header() and get_footer() on yours template
Tested with a blank template, I notice the styles were injected both at the <HEAD> section as well as within the page where I inserted the shortcode. There are also additional inline styles in the page. Is it meant to be like that?
Code: <HEAD>
<link rel="stylesheet" href="glightbox.min.css">
</HEAD>
<BODY>
<main>
<link rel="stylesheet"href="glightbox.min.css">
<style>
.monsterGallery-grid{
display:flex;
flex-direction:row;
flex-wrap:wrap;gap:3px
}
@media(max-width:768px){
.monsterGallery{
width:95%;
margin:0 auto;
display:flex;
flex-wrap:wrap;
flex-direction:column;
}
.monsterGallery-grid a{
margin:0;
padding:0;
}
.monsterGallery-grid img{
max-width:100% !important;}
}
</style>
<div class="monsterGallery-grid">...</div>
</BODY>
Posts: 342
Threads: 64
Joined: Nov 2017
(2023-05-26, 21:00:40)tommy Wrote: (2023-05-26, 18:01:55)multicolor Wrote: Shortcode you should paste on ckeditor, not template. Remember about get_header() and get_footer() on yours template
Tested with a blank template, I notice the styles were injected both at the <HEAD> section as well as within the page where I inserted the shortcode. There are also additional inline styles in the page. Is it meant to be like that?
Code: <HEAD>
<link rel="stylesheet" href="glightbox.min.css">
</HEAD>
<BODY>
<main>
<link rel="stylesheet"href="glightbox.min.css">
<style>
.monsterGallery-grid{
display:flex;
flex-direction:row;
flex-wrap:wrap;gap:3px
}
@media(max-width:768px){
.monsterGallery{
width:95%;
margin:0 auto;
display:flex;
flex-wrap:wrap;
flex-direction:column;
}
.monsterGallery-grid a{
margin:0;
padding:0;
}
.monsterGallery-grid img{
max-width:100% !important;}
}
</style>
<div class="monsterGallery-grid">...</div>
</BODY>
looks like you try shortcode and and function on one time. Send me real website on pm with password to can i show you how it work
Posts: 42
Threads: 7
Joined: Feb 2010
2023-05-26, 23:11:34
(This post was last modified: 2023-05-27, 00:17:15 by tommy.)
(2023-05-26, 22:40:09)multicolor Wrote: (2023-05-26, 21:00:40)tommy Wrote: (2023-05-26, 18:01:55)multicolor Wrote: Shortcode you should paste on ckeditor, not template. Remember about get_header() and get_footer() on yours template
Tested with a blank template, I notice the styles were injected both at the <HEAD> section as well as within the page where I inserted the shortcode. There are also additional inline styles in the page. Is it meant to be like that?
Code: <HEAD>
<link rel="stylesheet" href="glightbox.min.css">
</HEAD>
<BODY>
<main>
<link rel="stylesheet"href="glightbox.min.css">
<style>
.monsterGallery-grid{
display:flex;
flex-direction:row;
flex-wrap:wrap;gap:3px
}
@media(max-width:768px){
.monsterGallery{
width:95%;
margin:0 auto;
display:flex;
flex-wrap:wrap;
flex-direction:column;
}
.monsterGallery-grid a{
margin:0;
padding:0;
}
.monsterGallery-grid img{
max-width:100% !important;}
}
</style>
<div class="monsterGallery-grid">...</div>
</BODY>
looks like you try shortcode and and function on one time. Send me real website on pm with password to can i show you how it work
i only use the function in template without adding shortcode too. You can view this code duplication even with a clean GS install with this plugin. The gallery still works even with this duplication
Posts: 342
Threads: 64
Joined: Nov 2017
Ok good if works. I check this duplicate on next release
Posts: 42
Threads: 7
Joined: Feb 2010
2023-05-27, 10:32:43
(This post was last modified: 2023-05-27, 19:00:39 by tommy.)
(2023-05-27, 05:02:49)multicolor Wrote: Ok good if works. I check this duplicate on next release
Thanks, meanwhile can point me to which lines to remove in the code to prevent both the js and css injections in the header and footer. I managed to remove the inline styles in the module code. Basically I just need the gallery + thumbnails functionality minus all the js and css which I ll custom add via my own library. Thanks!
EDIT: Ok I've found the cause for the duplication, its at the monsterGallery.php file, remove the duplicated echo call for the module accordingly:
if ($modulesClass->getNameModules() == 'baguettebox') {
echo '<link rel="stylesheet" href="' . $SITEURL . 'plugins/monsterGallery/modules/
baguettebox/baguetteBox.min.css">';
$modulesClass->baguettebox();
echo $modulesClass->gal;
};
Posts: 342
Threads: 64
Joined: Nov 2017
Yesterday, 04:24:27
(This post was last modified: Yesterday, 04:24:41 by multicolor.)
MonsterGallery 3.0 is here!
- moved thumb folder to data/other/
- fixed transparent thumbnail creation for png and webp
- back to list button added
- added responsive width,height, gap settings, added thumbnail cover-contain option,
- removed duplicate css from code.
Download:
http://get-simple.info/extend/plugin/mon...lery/1332/
or:
https://getsimplecms-ce-plugins.github.io/
|