Piwigo.org

You are not logged in. (Register / Login)

Announcement

  • Forum Index
  •  » Themes
  •  » [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

#166 2017-03-03 19:34:34

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Kinsman wrote:

Thanks for notifying the author, we can wait and see what happens I guess.

I am in no way a coder, just a simple hack and paste person so for now I have my site working by replacing register.tpl with the one from Smart Pocket. It's not pretty but it works until a better solution can be found.

http://www.bikesnstuff.net/gallery/register.php

Update: I saw this post from Mystic on github, so it does not look promising re a fix.

"Sorry I stopped PHP development, merge requests are welcomed."

Basic support for the plugin is now in 1.5.7 (moved menu item into Identification menu). It does work with the default register page here (I guess that's when using hybrid auth)

Offline

 

#167 2017-03-03 19:57:25

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13013
Website

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

teekay wrote:

In new version 1.5.7 you can now set

Code:

$conf['bootstrap_darkroom_core_js_in_header'] = true;

in local/config/config.php. This will force loading jQuery in the header.

Very good idea! We may do that also in Elegant. Very useful!


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#168 2017-03-03 20:50:09

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

plg wrote:

teekay wrote:

In new version 1.5.7 you can now set

Code:

$conf['bootstrap_darkroom_core_js_in_header'] = true;

in local/config/config.php. This will force loading jQuery in the header.

Very good idea! We may do that also in Elegant. Very useful!

Cool! Could this even be a global option all themes could make use of?

Offline

 

#169 2017-03-04 06:16:18

Kinsman
Member
Registered: 2017-03-01
Posts: 15

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Thanks for the updates in 1.5.7, when you say BatchDownloader was already supported do you have any thoughts why the button would not appear, when it is appearing in other themes?

Perhaps I should be asking the BatchDownloader author?

Offline

 

#170 2017-03-04 06:48:28

Kinsman
Member
Registered: 2017-03-01
Posts: 15

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Never mind, I'm an idiot and the icon was there all along. Do you know how it could be hidden for guests though?

Also the social plugin links look much nicer, I had to keep the hacked registration though.

Offline

 

#171 2017-03-04 12:23:16

Guillaume C
Member
Registered: 2017-02-11
Posts: 7

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

teekay wrote:

In new version 1.5.7 you can now set

Code:

$conf['bootstrap_darkroom_core_js_in_header'] = true;

in local/config/config.php. This will force loading jQuery in the header.

Yes, that works ! Thanks a lot !

----------------------

Now rest to resolve the favicon problem.

Code:

    <link rel="shortcut icon" type="image/x-icon" href="./local/favicon.ico">
    <link rel="icon" sizes="192x192" href="themes/bootstrapdefault/img/logo.png">
    <link rel="apple-touch-icon" sizes="192x192" href="themes/bootstrapdefault/img/logo.png">

I don't want use a personal template for a simple favicon ;-)

-> Simple suggestion : is it possible to set favicon and apple-touch-icon like options in a future version ?

Last edited by Guillaume C (2017-03-04 12:24:04)

Offline

 

#172 2017-03-05 08:48:22

Kinsman
Member
Registered: 2017-03-01
Posts: 15

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Now rest to resolve the favicon problem.

Code:

    <link rel="shortcut icon" type="image/x-icon" href="./local/favicon.ico">
    <link rel="icon" sizes="192x192" href="themes/bootstrapdefault/img/logo.png">
    <link rel="apple-touch-icon" sizes="192x192" href="themes/bootstrapdefault/img/logo.png">

I don't want use a personal template for a simple favicon ;-)

-> Simple suggestion : is it possible to set favicon and apple-touch-icon like options in a future version ?

Hi, where did you put the above code? I would love to use those icons too. :-)

BTW my download button problem was caused by the download by size mod, it was not obeying permissions on the photo page, so once removed the button was gone.

Last question, I notice the quick edit menu (and most menus added by mods as well) is very difficult to read, I presume this is because the css is from the parent "lighter"  bootstrap theme, as I see the same colors in the dark demo menus.

Is there somewhere I could alter that css to be more readable?

Offline

 

#173 2017-03-05 10:39:48

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Guillaume C wrote:

Now rest to resolve the favicon problem.

Code:

    <link rel="shortcut icon" type="image/x-icon" href="./local/favicon.ico">
    <link rel="icon" sizes="192x192" href="themes/bootstrapdefault/img/logo.png">
    <link rel="apple-touch-icon" sizes="192x192" href="themes/bootstrapdefault/img/logo.png">

I don't want use a personal template for a simple favicon ;-)

-> Simple suggestion : is it possible to set favicon and apple-touch-icon like options in a future version ?

The best thing would be to extend the PersoFavicon plugin. Until then, you can use a custom plugin in Administration -> Plugins -> LocalFiles Editor -> Personal Plugin. Paste this between the <?php ... ?> tags:

Code:

add_event_handler('loc_begin_page_header', 'changeAppIconFilter' );
function changeAppIconFilter() {
  global $template;
  
  $template->set_prefilter('header', 'changeAppIcon');
}

function changeAppIcon($content, &$smarty) {
  $search = '#themes/bootstrapdefault/img/logo.png#';
  $replacement = 'local/mylogo.png';
  return preg_replace($search, $replacement, $content);
}

Upload the image somewhere in the Piwigo folder, local/ is a good spot. Change the $replacement line accordingly.
Make sure the Personal Plugin is enabled in Administration -> Plugins -> Manage

Offline

 

#174 2017-03-05 10:41:25

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Kinsman wrote:

Last question, I notice the quick edit menu (and most menus added by mods as well) is very difficult to read, I presume this is because the css is from the parent "lighter"  bootstrap theme, as I see the same colors in the dark demo menus.

Is there somewhere I could alter that css to be more readable?

https://github.com/tkuther/piwigo-boots … Javascript

Some plugins that add menubar buttons may not be supported yet.

Last edited by teekay (2017-03-05 10:43:25)

Offline

 

#175 2017-03-05 11:17:24

moose
Member
Location: Upper Bavaria, Germany
Registered: 2013-01-03
Posts: 35

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

I'd just like to say thank you to teekay for adding 'language switch' support to his last release 1.5.7 of bootstrap darkroom. A attache to screenshots to see it in action.

Furthermore, I think adding jqeury support to the header is a big step ahead too.

Greetinx,

moose


Uploaded Images

Offline

 

#176 2017-03-05 11:52:00

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Forwarding thanks re Language Switch @plg, see http://piwigo.org/forum/viewtopic.php?p … 37#p166937 :)

Offline

 

#177 2017-03-05 16:15:25

Guillaume C
Member
Registered: 2017-02-11
Posts: 7

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

teekay wrote:

The best thing would be to extend the PersoFavicon plugin. Until then, you can use a custom plugin in Administration -> Plugins -> LocalFiles Editor -> Personal Plugin.

Thanks again for your reactivity.

Here are the files for Germain and french full translation: http://guillaumecyriaque.be/transfert/b … rkroom.zip
- admin templates : 3 files
- DE translate updated lines 69 & next ("Googleised", sorry)
- FR translate

Cheers

Last edited by Guillaume C (2017-03-05 16:23:08)

Offline

 

#178 2017-03-05 17:52:36

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Guillaume C wrote:

teekay wrote:

The best thing would be to extend the PersoFavicon plugin. Until then, you can use a custom plugin in Administration -> Plugins -> LocalFiles Editor -> Personal Plugin.

Thanks again for your reactivity.

Here are the files for Germain and french full translation: http://guillaumecyriaque.be/transfert/b … rkroom.zip
- admin templates : 3 files
- DE translate updated lines 69 & next ("Googleised", sorry)
- FR translate

Cheers

Thanks for the language update, Guillaume.

Most parts from the "Bootstrap Default Settings" tab should actually be submitted to boostrapdefault theme.
I'll include them anyway now.

Offline

 

#179 2017-03-08 16:00:10

amilcar
Member
Registered: 2017-03-08
Posts: 2

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

hi all,

thanks for this great theme !

i have one issue that was not corrected with latest releases.

In categories view, if the description is longer than 3 lines (in the frontend, below the category thumbnail) albums are not shown correctly.
You can then have 1 album in one line and 2 on the other line instead of having all the albums following each other.

if i switch to list view and then switch again to grid view, albums are shown correctly. if i navigate and come back to category view using "home" or galery title then the view is broken again.

attached is an image where i added some text to the description marked with red arrow to show the "bug"

if i delete those lines, the category view is ok as you can check here :
http://zorus.org/gplusphoto


piwigo : 2.8.6
php : 5.6.3
bootstrap and bootstrap darkroom updated to the latest version

any idea ? thanks !!!


Uploaded Images

Last edited by amilcar (2017-03-08 16:24:48)

Offline

 

#180 2017-03-08 16:55:38

teekay
Member
Registered: 2013-06-12
Posts: 224

Re: [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

amilcar wrote:

hi all,

thanks for this great theme !

i have one issue that was not corrected with latest releases.

In categories view, if the description is longer than 3 lines (in the frontend, below the category thumbnail) albums are not shown correctly.
You can then have 1 album in one line and 2 on the other line instead of having all the albums following each other.

if i switch to list view and then switch again to grid view, albums are shown correctly. if i navigate and come back to category view using "home" or galery title then the view is broken again.

attached is an image where i added some text to the description marked with red arrow to show the "bug"

if i delete those lines, the category view is ok as you can check here :
http://zorus.org/gplusphoto


piwigo : 2.8.6
php : 5.6.3
bootstrap and bootstrap darkroom updated to the latest version

any idea ? thanks !!!

This must be added by some plugin I guess, because, by default, the description is hidden on category pages in grid view.

EDIT: managed to reproduce. It happens if you enter html-formatted descriptions in album settings. This confuses the equalheights jQuery plugin used in bootstrapdefault.
Fixed in [Github] piwigo-bootstrap-darkroom commit f9d81b97 but I guess it's not the fix you'd expect. To really keep the description in next version, use custom CSS like

Code:

.content-grid .col-inner .caption .description {
  display: block;
}

Maybe I'll turn it into a config option, but that would require a fix for the misaligned grid.

UPDATE: I found a fix for the misalignment, and added an option to explicitly display the category description for grid view, too. Will be in next version.

Last edited by teekay (2017-03-08 19:10:10)

Offline

 
  • Forum Index
  •  » Themes
  •  » [Theme] Bootstrap Darkroom (w/ PhotoSwipe, HTML5 video & more)

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact