Announcement

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

#241 2018-01-30 08:42:45

teekay
Member
2013-06-12
385

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

elece wrote:

Hi,

I have a little problem and I'll be grateful if someone can help...

(sorry, I'm not sure if opening a new topic or add this as a reply to main Darkroom theme thread)

After updating the theme yesterday, I noticed the carousel in homepage (with the script of Tom Kuther using Piwigo API to load the newest 10 images) stopped working.

It looks that the line:
var pwg_api = "/ws.php?format=json&method=pwg.categories.getImages&recursive=true&per_page=10&recursive=true&order=date_available%20desc";
is getting a 404 error.
I tested some things, as putting the absolute path of ws.php, purge compiled templates, change permissions of ws.php... but without any results.
Maybe it is related to some PHP configuration in my server? I'm completely lost.
Thank you!

site: www.elece.net/galeria
Piwigo 2.9.2
OS: Linux
PHP: 7.1.13
MySQL: 5.6.38 [2018-01-28 02:08:26]
Graphic library: ImageMagick 6.9.4-10

On your site it should work with /galeria/ws.php. Check the javascript console for errors if it doesn't.

Offline

 

#242 2018-01-30 08:48:43

teekay
Member
2013-06-12
385

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

PolyWogg wrote:

I confess upfront that I'm not sure if this is a "theme" issue or a "core" issue. I'm running BS Darkroom, everything more or less works (occasionally Admin Tools wants to reset me back to a preview of another theme, but I don't think that is a theme issue).

The one thing I can't figure out is field placement on the Album Page or the Photo Page. I would like the photo caption on my Album Page and Photo pages to be the same -- but Album Page puts the title below the photo while the Photo Page puts the Description there.

Which leaves me with five options:

a. Enter the same thing in the title and description manually when I upload every time;

b. Come up with some sort of CSS or HTML / plugin code that tells the core to copy the title into the description or the description into the title every time it loads a page;

c. Modify the Album page layout so it shows the description as caption instead of the Title;

d. Modify the Photo page layout so it shows the title as caption instead of the Description; or,

** e. Modify the Photo page layout so it shows BOTH the title and the Description as caption.

My preference would be E, as it would allow me to enter a title for most photos and it would show up everywhere, and if I had a longer description for a photo, it would show up too but only on the Photo page.

However, when I look at the TPL files, it doesn't seem to me that this is a theme solution. Anyone know where I should be looking?

Paul
aka PolyWogg

I think E is a good idea, and maybe make it configurable via theme settings

Offline

 

#243 2018-01-30 21:44:59

PolyWogg
Member
2014-08-17
59

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

>>> ** e. Modify the Photo page layout so it shows BOTH the title and the Description as caption.

>>I think E is a good idea, and maybe make it configurable via theme settings

I agree completely. :) Except I have NO idea how to even start.

I can't even figure out if this is code that is buried in the core, or if it is set by the theme. I'd be fine to even just add / edit some code manually to YOUR theme, but I can't find any code that even remotely looks like it is posting the description or title. The funny part is a couple of other themes DO merge them, but in the album page. Yet even there I can't figure out how they do it.

Sigh. Looks like I'm stuck with A for now.

P.

Offline

 

#244 2018-01-30 23:25:55

PolyWogg
Member
2014-08-17
59

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

So I found picture. tpl, and the refs to description include:

     data-description="{$thumbnail.DESCRIPTION}"

in two places. I could change that to $thumbnail.NAME. That would be telling it that the description never gets displayed, I think, just that the field will be the name/title field. It also exists in index.TPL


Although perhaps I'd be better off trying it as "data-description="{$thumbnail.NAME}" & "{$thumbnail.DESCRIPTION}" ??

P.

Offline

 

#245 2018-02-01 13:33:11

teekay
Member
2013-06-12
385

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

PolyWogg wrote:

So I found picture. tpl, and the refs to description include:

     data-description="{$thumbnail.DESCRIPTION}"

in two places. I could change that to $thumbnail.NAME. That would be telling it that the description never gets displayed, I think, just that the field will be the name/title field. It also exists in index.TPL


Although perhaps I'd be better off trying it as "data-description="{$thumbnail.NAME}" & "{$thumbnail.DESCRIPTION}" ??

P.

The text below the main image is set in [Github] piwigo-bootstrap-darkroom file template/picture.tpl@L38

No idea why the variable is called $COMMENT_IMG, but it's the description. If you replace the two $COMMENT_IMGs with $current.TITLE it should do what you want for now.

The data-description stuff is for the PhotoSwipe slideshow.

Last edited by teekay (2018-02-01 13:37:58)

Offline

 

#246 2018-02-03 06:24:08

PolyWogg
Member
2014-08-17
59

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

>> If you replace the two $COMMENT_IMGs with $current.TITLE it should do what you want for now.

YES! That works perfectly! Thank you, thank you, thank you!

I *never* would have figured that out. (Comment???? is description but description is not...umm, okay!)

Paul
aka lazy uploader who only wants to put the title in

Offline

 

#247 2018-02-19 03:03:19

windracer
Member
St. Pete, FL
2014-12-28
202

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

windracer wrote:

When doing a search from a mobile device, the entered search text doesn't appear. I think the CSS is setting the font to white (or light gray)? Is there a way to fix this just on the mobile version?

While this was fixed in the Bootswatch Minty color theme in 2.2.0, it's still an issue with Bootswatch Slate. When typing in the search field, the box is white and the text is white so you can't see it.

Offline

 

#248 2018-02-20 20:17:56

elece
Member
2016-10-23
5

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

teekay wrote:

[
On your site it should work with /galeria/ws.php. Check the javascript console for errors if it doesn't.

Hi Teekay, thank you!  It was the path. I don't know if I changed it while updating, but the path was "../ws.php". I added the /galeria and worked.

I even tested previously with absolute path (http://...etc) so previously discarded that possibility. But it worked perfectly.

Thanks again!

Offline

 

#249 2018-03-03 16:54:18

MarcRJacobs
Member
Houston, Texas
2013-05-27
30

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

Hi; I can't get the Carousel to work on my site. I only have 1 plugin installed; Additional Pages. It seems to generate the Json properly as seen attached. The site and theme were working fine before I tried to add the carousel. But, it never loads any images. Any ideas what I have done wrong.

=====================

{"stat":"ok","result":{"paging":{"page":0,"per_page":10,"count":"164"},"images":[{"id":216,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31724.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:49:11","date_available":"2018-03-02 21:04:02","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/216","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210402-caa2f120.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210402-caa2f120-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210402-caa2f120-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210402-caa2f120.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/216\/category\/14"}]},{"id":215,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31722.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:49:00","date_available":"2018-03-02 21:03:38","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/215","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210338-509409f8.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210338-509409f8-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210338-509409f8-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210338-509409f8.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/215\/category\/14"}]},{"id":214,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31721.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:46:27","date_available":"2018-03-02 21:03:33","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/214","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210333-5cb1f7dd.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/214\/category\/14"}]},{"id":213,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31720.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:46:11","date_available":"2018-03-02 21:03:29","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/213","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210329-17de17a2.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210329-17de17a2-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210329-17de17a2-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210329-17de17a2.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/213\/category\/14"}]},{"id":212,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31719.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:45:32","date_available":"2018-03-02 21:03:24","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/212","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210324-8dcd2d75.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210324-8dcd2d75-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210324-8dcd2d75.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/212\/category\/14"}]},{"id":211,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31718.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:45:19","date_available":"2018-03-02 21:03:20","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/211","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210320-39e56b7e.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210320-39e56b7e-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210320-39e56b7e-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210320-39e56b7e.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/211\/category\/14"}]},{"id":210,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31717.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:43:09","date_available":"2018-03-02 21:03:15","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/210","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210315-66c3f2b9.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210315-66c3f2b9.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/210\/category\/14"}]},{"id":209,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31716.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:42:57","date_available":"2018-03-02 21:03:11","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/209","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210311-eb6c379a.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210311-eb6c379a-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210311-eb6c379a-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210311-eb6c379a.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/209\/category\/14"}]},{"id":208,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31715.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:42:42","date_available":"2018-03-02 21:03:06","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/208","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210306-40b28a8f.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210306-40b28a8f-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210306-40b28a8f-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210306-40b28a8f.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/208\/category\/14"}]},{"id":207,"width":1600,"height":900,"hit":0,"file":"M_Jacobs-31714.jpg","name":null,"comment":null,"date_creation":"2013-10-19 13:42:29","date_available":"2018-03-02 21:03:00","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/207","element_url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210300-46126f54.jpg","derivatives":{"square":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-sq.jpg","width":120,"height":120},"thumb":{"url":"https:\/\/www.marcrjacobs.com\/photos\/_data\/i\/upload\/2018\/03\/02\/20180302210300-46126f54-th.jpg","width":144,"height":81},"2small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-2s.jpg","width":240,"height":135},"xsmall":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-xs.jpg","width":432,"height":243},"small":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-sm.jpg","width":576,"height":324},"medium":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-me.jpg","width":792,"height":445},"large":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-la.jpg","width":1008,"height":567},"xlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210300-46126f54-xl.jpg","width":1224,"height":688},"xxlarge":{"url":"https:\/\/www.marcrjacobs.com\/photos\/upload\/2018\/03\/02\/20180302210300-46126f54.jpg","width":"1600","height":"900"}},"categories":[{"id":14,"url":"https:\/\/www.marcrjacobs.com\/photos\/index.php?\/category\/14","page_url":"https:\/\/www.marcrjacobs.com\/photos\/picture.php?\/207\/category\/14"}]}]}}

Last edited by MarcRJacobs (2018-03-03 16:55:36)

Offline

 

#250 2018-03-04 20:40:00

teekay
Member
2013-06-12
385

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

@MarcRJacobs: where do you get that output, in the javascript console or directly on the page?
And where are you trying to add the carousel?

Offline

 

#251 2018-03-04 21:45:57

elece
Member
2016-10-23
5

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

Do you noticed, each image URL path has "\/" for each "/" making it inaccesible:

http:\/\/www.marcrjacobs.com\/photos\/i.php?\/upload\/2018\/03\/02\/20180302210315-66c3f2b9-xl.jpg

I don't know how this path is generated, however.

Last edited by elece (2018-03-04 21:46:37)

Offline

 

#252 2018-03-04 22:07:04

windracer
Member
St. Pete, FL
2014-12-28
202

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

My guess is those forward slashes are just being escaped with the backslash so that's why it looks like that.

Offline

 

#253 2018-03-04 22:36:26

MarcRJacobs
Member
Houston, Texas
2013-05-27
30

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

Thanks for the responses to all, I guess I should have provided my detail... sorry.

I got that output by pasting the Json call up on the URL. And yes, the back slashes are just escaped characters. This is the Json output that the CSS block I pasted in returns. I wanted to verify it was actually getting the 10 most recent docs. I'm trying to put the carousel on the home page. https://www.marcrjacobs.com/photos/

Offline

 

#254 2018-03-04 22:39:52

deheme
Member
IDF
2014-12-12
92

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

Hello,
As a future enhancement, would it be possible to customise the hero image for each album? For example by selecting the representative image as the hero image.

Btw, I don't know how to remove the hero image from the first page only when a carousel is defined.
( I don't know if it is the rich way but I made the request on github : [Github] piwigo-bootstrap-darkroom issue #157)

DéHème

Offline

 

#255 2018-03-04 22:42:38

teekay
Member
2013-06-12
385

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

MarcRJacobs wrote:

Thanks for the responses to all, I guess I should have provided my detail... sorry.

I got that output by pasting the Json call up on the URL. And yes, the back slashes are just escaped characters. This is the Json output that the CSS block I pasted in returns. I wanted to verify it was actually getting the 10 most recent docs. I'm trying to put the carousel on the home page. https://www.marcrjacobs.com/photos/

Try

var pwg_api = "/photos/ws.php .."

You need the full path, like elece some posts above.

Last edited by teekay (2018-03-04 22:43:44)

Offline

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

Board footer

Powered by FluxBB

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