OpticBlaze / ss3Gallery

Silverstripe 3 Image gallery
10 stars 1 forks source link

SS3 Gallery images not visible in public domain #2

Open mhenden opened 10 years ago

mhenden commented 10 years ago

Having issues with SS3 Gallery... I replaced my 'code' file with your updated version (30 April 2014 at 9:59pm -- Code4 ZIP) and assigned permissions to my client. Initially all my gallery images disappeared but, logged in as my client, I was able to to re-link everything. The only aggravating thing left is that the pages are not invisible to public view (??!).

Incidentally I had to comment line 34 ($gridFieldConfig->addComponent(new GridFieldBulkEditingTools());) to get it to run in the backend -- had a Fatal Error otherwise...

Can you give me any pointers as to what might be going on?

mhenden commented 10 years ago

Further to this, if I'm logged in (either as Admin or as Client) I can see the pages but the links to the images are broken... looks like another permissions issue. I've been through your code but can't see anything obviously pointing to this in there...

[in case you haven't already twigged, I also go by the handle 'arthurdent']!

OpticBlaze commented 10 years ago

Hi there,

1) Use the latest GITHUB version. I modified a substatial portion of the code since posting it on the forums and i see you are using that.

The GITHUB version for example does not have the gridFieldConfig->addComponent(new GridFieldBulkEditingTools() line of code.

2) Also when you remove that version...be aware that the old way SS3 worked you incuded the pretty photo code in your template...it now calls it directly from the GalleyPage.php file...so be careful for duplications.

3) Dont forget to run a dev build once installed and run a ?flush=1 on the front end as well.

From: Mike Henden [mailto:notifications@github.com] Sent: 05 May 2014 03:48 AM To: OpticBlaze/ss3Gallery Subject: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Having issues with SS3 Gallery... I replaced my 'code' file with your updated version (30 April 2014 at 9:59pm -- Code4 ZIP) and assigned permissions to my client. Initially all my gallery images disappeared but, logged in as my client, I was able to to re-link everything. The only aggravating thing left is that the pages are not invisible to public view (??!).

Incidentally I had to comment line 34 ($gridFieldConfig->addComponent(new GridFieldBulkEditingTools());) to get it to run in the backend -- had a Fatal Error otherwise...

Can you give me any pointers as to what might be going on?

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2 .Image removed by sender.

OpticBlaze commented 10 years ago

Hi Mike

Yes i did figure out who you are :-)

Are you running the latest version of?

Remember some time back we had issues with newer version that did not want to work.

This has now been sorted and i am running the latest builds in the gallery module. That could explain broken links.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 05 May 2014 04:27 AM To: OpticBlaze/ss3Gallery Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Further to this, if I'm logged in (either as Admin or as Client) I can see the pages but the links to the images are broken... looks like another permissions issue. I've been through your code but can't see anything obviously pointing to this in there...

[in case you haven't already twigged, I also go by the handle 'arthurdent']!

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42155054 .Image removed by sender.

mhenden commented 10 years ago

Getting more than slightly confused now Shaun…

I’ve completely pulled all old code out and replaced with new master code from GitHub for all three components (ss3Gallery, GridFieldBulkEditingTools and SortableFieldGrid). Did a /Dev/Build/ and ?flush=all — a few times! Still have the same issue — if I’m logged in as admin I can see pages/images (well, where the images should be — links are still broken, if I’m not logged I’m pages are invisible.

I’ve changed page settings from ‘inherit’ to ‘anybody can view this page’ with the same result.

Sorry to trouble you again — but I have no idea what’s happening here!

???

MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 5/05/2014, at 8:06 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike

Yes i did figure out who you are :-)

Are you running the latest version of?

Remember some time back we had issues with newer version that did not want to work.

This has now been sorted and i am running the latest builds in the gallery module. That could explain broken links.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 05 May 2014 04:27 AM To: OpticBlaze/ss3Gallery Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Further to this, if I'm logged in (either as Admin or as Client) I can see the pages but the links to the images are broken... looks like another permissions issue. I've been through your code but can't see anything obviously pointing to this in there...

[in case you haven't already twigged, I also go by the handle 'arthurdent']!

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42155054 .Image removed by sender. — Reply to this email directly or view it on GitHub.

mhenden commented 10 years ago

FWIW if I try to view page when not logged in it tells me the page is secured… then redirects me to login page.

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 11:29 am, Mike Henden mike@mhdesign.co.nz wrote:

Getting more than slightly confused now Shaun…

I’ve completely pulled all old code out and replaced with new master code from GitHub for all three components (ss3Gallery, GridFieldBulkEditingTools and SortableFieldGrid). Did a /Dev/Build/ and ?flush=all — a few times! Still have the same issue — if I’m logged in as admin I can see pages/images (well, where the images should be — links are still broken, if I’m not logged I’m pages are invisible.

I’ve changed page settings from ‘inherit’ to ‘anybody can view this page’ with the same result.

Sorry to trouble you again — but I have no idea what’s happening here!

???

MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 5/05/2014, at 8:06 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike

Yes i did figure out who you are :-)

Are you running the latest version of?

Remember some time back we had issues with newer version that did not want to work.

This has now been sorted and i am running the latest builds in the gallery module. That could explain broken links.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 05 May 2014 04:27 AM To: OpticBlaze/ss3Gallery Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Further to this, if I'm logged in (either as Admin or as Client) I can see the pages but the links to the images are broken... looks like another permissions issue. I've been through your code but can't see anything obviously pointing to this in there...

[in case you haven't already twigged, I also go by the handle 'arthurdent']!

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42155054 .Image removed by sender. — Reply to this email directly or view it on GitHub.

OpticBlaze commented 10 years ago

Hi there,

I have been able to duplicate on my side. Will work on solution and get back to you

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 07 May 2014 01:31 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Getting more than slightly confused now Shaun…

I’ve completely pulled all old code out and replaced with new master code from GitHub for all three components (ss3Gallery, GridFieldBulkEditingTools and SortableFieldGrid). Did a /Dev/Build/ and ?flush=all — a few times! Still have the same issue — if I’m logged in as admin I can see pages/images (well, where the images should be — links are still broken, if I’m not logged I’m pages are invisible.

I’ve changed page settings from ‘inherit’ to ‘anybody can view this page’ with the same result.

Sorry to trouble you again — but I have no idea what’s happening here!

???

MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 5/05/2014, at 8:06 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike

Yes i did figure out who you are :-)

Are you running the latest version of?

Remember some time back we had issues with newer version that did not want to work.

This has now been sorted and i am running the latest builds in the gallery module. That could explain broken links.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 05 May 2014 04:27 AM To: OpticBlaze/ss3Gallery Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Further to this, if I'm logged in (either as Admin or as Client) I can see the pages but the links to the images are broken... looks like another permissions issue. I've been through your code but can't see anything obviously pointing to this in there...

[in case you haven't already twigged, I also go by the handle 'arthurdent']!

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42155054 .Image removed by sender. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42372677 .Image removed by sender.

OpticBlaze commented 10 years ago

Ok getting somewhere...

If you comment out line 25 on GalleryPage.php

            //function canView($Member = null){if(permission::check('VIEW_GALLERY')){return true;}else{return false;}}

Then the gallery is visible on the front end. Turns out canView is not just meant for CMS but for the frontend as well...

Working on rest

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 07 May 2014 01:31 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Getting more than slightly confused now Shaun…

I’ve completely pulled all old code out and replaced with new master code from GitHub for all three components (ss3Gallery, GridFieldBulkEditingTools and SortableFieldGrid). Did a /Dev/Build/ and ?flush=all — a few times! Still have the same issue — if I’m logged in as admin I can see pages/images (well, where the images should be — links are still broken, if I’m not logged I’m pages are invisible.

I’ve changed page settings from ‘inherit’ to ‘anybody can view this page’ with the same result.

Sorry to trouble you again — but I have no idea what’s happening here!

???

MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 5/05/2014, at 8:06 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike

Yes i did figure out who you are :-)

Are you running the latest version of?

Remember some time back we had issues with newer version that did not want to work.

This has now been sorted and i am running the latest builds in the gallery module. That could explain broken links.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 05 May 2014 04:27 AM To: OpticBlaze/ss3Gallery Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Further to this, if I'm logged in (either as Admin or as Client) I can see the pages but the links to the images are broken... looks like another permissions issue. I've been through your code but can't see anything obviously pointing to this in there...

[in case you haven't already twigged, I also go by the handle 'arthurdent']!

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42155054 .Image removed by sender. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42372677 .Image removed by sender.

OpticBlaze commented 10 years ago

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun

mhenden commented 10 years ago

VICTORY AT LAST!!

Thanks for all your help on this Shaun. Think you have yourself a module there!!

cheers MIKE

ps If you’re ever in Wgtn to watch the 'Boks play the ABs I’ll buy you a drink or three!

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 9:51 pm, Shaun de Greeff notifications@github.com wrote:

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun — Reply to this email directly or view it on GitHub.

mhenden commented 10 years ago

Hi Shaun

Sorry to bother you again — just one more niggling little thing… I’m trying to set lightbox text styles on prettyPhotoCustom.css but I can’t seem to get font to stick — it defaults to whatever the users browser detail is. I’ve tried !important which worked for a moment but seeks to have defaulted again. Have you ever struck this and do you know what might be causing it?

I’ve had a look at prettyPhoto.css which is a much more formidable file but can’t see anything causing it over there either?

Any ideas? MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 8/05/2014, at 3:24 pm, Mike Henden mike@mhdesign.co.nz wrote:

VICTORY AT LAST!!

Thanks for all your help on this Shaun. Think you have yourself a module there!!

cheers MIKE

ps If you’re ever in Wgtn to watch the 'Boks play the ABs I’ll buy you a drink or three!

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 9:51 pm, Shaun de Greeff notifications@github.com wrote:

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun — Reply to this email directly or view it on GitHub.

OpticBlaze commented 10 years ago

Hi Mike....

In prettyPhotoCustom.css you have the following lines on line 5 and 6:

/* Sets the font for the pretty photo pop up */

div.ppt { font-family: "Courier New", Courier, monospace; font-size:1em;}

.pp_description { font-family: "Courier New", Courier, monospace; font-size:1.2em; font-style:normal;}

Changing it there should make the changes permanent. The following is however important:

1) prettyPhotoCustom.css is called via requirements in the ss3Gallery module folder. I If you have it included in your template folder on Page.ss it will overide the css file in the module folder. This could explain why it works and then does not...the css files loaded via requirements is loaded first and then the one in the template.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 09 May 2014 07:51 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Hi Shaun

Sorry to bother you again — just one more niggling little thing… I’m trying to set lightbox text styles on prettyPhotoCustom.css but I can’t seem to get font to stick — it defaults to whatever the users browser detail is. I’ve tried !important which worked for a moment but seeks to have defaulted again. Have you ever struck this and do you know what might be causing it?

I’ve had a look at prettyPhoto.css which is a much more formidable file but can’t see anything causing it over there either?

Any ideas? MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 8/05/2014, at 3:24 pm, Mike Henden mike@mhdesign.co.nz wrote:

VICTORY AT LAST!!

Thanks for all your help on this Shaun. Think you have yourself a module there!!

cheers MIKE

ps If you’re ever in Wgtn to watch the 'Boks play the ABs I’ll buy you a drink or three!

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 9:51 pm, Shaun de Greeff notifications@github.com wrote:

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42635549 .Image removed by sender.

mhenden commented 10 years ago

Thanks Shaun. I have only just found that the ss3Gallery module folder stylesheet was overriding the stylesheet in my Themes folder. This has fixed the font on the ‘description’ type. But I still can’t see how to change the ‘Title’ font?

This is the way things are set at present… how do I grab the ‘title’ tag?

thanks MIKE

div.ppt { font-family:'Helvetica, Arial, sans-serif’ !important; } .pp_description { font-size:14px; line-height: 18px; font-style:normal; padding-left: 120px; background-color: #FF0; }

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 9/05/2014, at 7:43 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike....

In prettyPhotoCustom.css you have the following lines on line 5 and 6:

/* Sets the font for the pretty photo pop up */

div.ppt { font-family: "Courier New", Courier, monospace; font-size:1em;}

.pp_description { font-family: "Courier New", Courier, monospace; font-size:1.2em; font-style:normal;}

Changing it there should make the changes permanent. The following is however important:

1) prettyPhotoCustom.css is called via requirements in the ss3Gallery module folder. I If you have it included in your template folder on Page.ss it will overide the css file in the module folder. This could explain why it works and then does not...the css files loaded via requirements is loaded first and then the one in the template.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 09 May 2014 07:51 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Hi Shaun

Sorry to bother you again — just one more niggling little thing… I’m trying to set lightbox text styles on prettyPhotoCustom.css but I can’t seem to get font to stick — it defaults to whatever the users browser detail is. I’ve tried !important which worked for a moment but seeks to have defaulted again. Have you ever struck this and do you know what might be causing it?

I’ve had a look at prettyPhoto.css which is a much more formidable file but can’t see anything causing it over there either?

Any ideas? MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 8/05/2014, at 3:24 pm, Mike Henden mike@mhdesign.co.nz wrote:

VICTORY AT LAST!!

Thanks for all your help on this Shaun. Think you have yourself a module there!!

cheers MIKE

ps If you’re ever in Wgtn to watch the 'Boks play the ABs I’ll buy you a drink or three!

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 9:51 pm, Shaun de Greeff notifications@github.com wrote:

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42635549 .Image removed by sender. — Reply to this email directly or view it on GitHub.

OpticBlaze commented 10 years ago

I tried this on my side at it worked:

/* Sets the font for the pretty photo pop up */

div.ppt { font-family: Georgia, "Times New Roman", Times, serif; font-size:1.8em;}

.pp_description { font-family:'Font2'; font-size:1.2em; font-style:normal;}

Check for conflicts

From: Mike Henden [mailto:notifications@github.com] Sent: 09 May 2014 10:03 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Thanks Shaun. I have only just found that the ss3Gallery module folder stylesheet was overriding the stylesheet in my Themes folder. This has fixed the font on the ‘description’ type. But I still can’t see how to change the ‘Title’ font?

This is the way things are set at present… how do I grab the ‘title’ tag?

thanks MIKE

div.ppt { font-family:'Helvetica, Arial, sans-serif’ !important; } .pp_description { font-size:14px; line-height: 18px; font-style:normal; padding-left: 120px; background-color: #FF0; }

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 9/05/2014, at 7:43 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike....

In prettyPhotoCustom.css you have the following lines on line 5 and 6:

/* Sets the font for the pretty photo pop up */

div.ppt { font-family: "Courier New", Courier, monospace; font-size:1em;}

.pp_description { font-family: "Courier New", Courier, monospace; font-size:1.2em; font-style:normal;}

Changing it there should make the changes permanent. The following is however important:

1) prettyPhotoCustom.css is called via requirements in the ss3Gallery module folder. I If you have it included in your template folder on Page.ss it will overide the css file in the module folder. This could explain why it works and then does not...the css files loaded via requirements is loaded first and then the one in the template.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 09 May 2014 07:51 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Hi Shaun

Sorry to bother you again — just one more niggling little thing… I’m trying to set lightbox text styles on prettyPhotoCustom.css but I can’t seem to get font to stick — it defaults to whatever the users browser detail is. I’ve tried !important which worked for a moment but seeks to have defaulted again. Have you ever struck this and do you know what might be causing it?

I’ve had a look at prettyPhoto.css which is a much more formidable file but can’t see anything causing it over there either?

Any ideas? MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 8/05/2014, at 3:24 pm, Mike Henden mike@mhdesign.co.nz wrote:

VICTORY AT LAST!!

Thanks for all your help on this Shaun. Think you have yourself a module there!!

cheers MIKE

ps If you’re ever in Wgtn to watch the 'Boks play the ABs I’ll buy you a drink or three!

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 9:51 pm, Shaun de Greeff notifications@github.com wrote:

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42635549 .Image removed by sender. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42642186 .Image removed by sender.

mhenden commented 10 years ago

Put your code straight into local environment and it worked here too — no probs.

Replaced with my font styling and it worked again.

Put on live site and flushed it a few times and — eventually — it worked there too!!! (obviously jammed in the cache)

Thanks again! MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 9/05/2014, at 8:33 pm, Shaun de Greeff notifications@github.com wrote:

I tried this on my side at it worked:

/* Sets the font for the pretty photo pop up */

div.ppt { font-family: Georgia, "Times New Roman", Times, serif; font-size:1.8em;}

.pp_description { font-family:'Font2'; font-size:1.2em; font-style:normal;}

Check for conflicts

From: Mike Henden [mailto:notifications@github.com] Sent: 09 May 2014 10:03 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Thanks Shaun. I have only just found that the ss3Gallery module folder stylesheet was overriding the stylesheet in my Themes folder. This has fixed the font on the ‘description’ type. But I still can’t see how to change the ‘Title’ font?

This is the way things are set at present… how do I grab the ‘title’ tag?

thanks MIKE

div.ppt { font-family:'Helvetica, Arial, sans-serif’ !important; } .pp_description { font-size:14px; line-height: 18px; font-style:normal; padding-left: 120px; background-color: #FF0; }

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 9/05/2014, at 7:43 pm, Shaun de Greeff notifications@github.com wrote:

Hi Mike....

In prettyPhotoCustom.css you have the following lines on line 5 and 6:

/* Sets the font for the pretty photo pop up */

div.ppt { font-family: "Courier New", Courier, monospace; font-size:1em;}

.pp_description { font-family: "Courier New", Courier, monospace; font-size:1.2em; font-style:normal;}

Changing it there should make the changes permanent. The following is however important:

1) prettyPhotoCustom.css is called via requirements in the ss3Gallery module folder. I If you have it included in your template folder on Page.ss it will overide the css file in the module folder. This could explain why it works and then does not...the css files loaded via requirements is loaded first and then the one in the template.

Shaun

From: Mike Henden [mailto:notifications@github.com] Sent: 09 May 2014 07:51 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Hi Shaun

Sorry to bother you again — just one more niggling little thing… I’m trying to set lightbox text styles on prettyPhotoCustom.css but I can’t seem to get font to stick — it defaults to whatever the users browser detail is. I’ve tried !important which worked for a moment but seeks to have defaulted again. Have you ever struck this and do you know what might be causing it?

I’ve had a look at prettyPhoto.css which is a much more formidable file but can’t see anything causing it over there either?

Any ideas? MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 8/05/2014, at 3:24 pm, Mike Henden mike@mhdesign.co.nz wrote:

VICTORY AT LAST!!

Thanks for all your help on this Shaun. Think you have yourself a module there!!

cheers MIKE

ps If you’re ever in Wgtn to watch the 'Boks play the ABs I’ll buy you a drink or three!

14 Brees Street, Lower Hutt, Wellington, New Zealand p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 7/05/2014, at 9:51 pm, Shaun de Greeff notifications@github.com wrote:

About the linking

Have you tried deleting the gallery page and setting it up again...i.e loading images again.

I tried it on my side and it worked

Also make sure you are running on 3.1.4....i had some major issues with 3.1.2 and 3.13 because of how page inherited from sitetree (public vs private statements)

Shaun — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42635549 .Image removed by sender. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-42642186 .Image removed by sender. — Reply to this email directly or view it on GitHub.

mhenden commented 10 years ago

Hi Shaun, sorry to say I'm having more issues! Another site I did last year (the first I used your gallery module on) needed upgrading -- client wants to be able to upload photos! Which meant that I've updated my local environment site for testing (SS 3.1.5) and put the latest versions of ss3Gallery, SortableGridField and GridFieldBulkEditingTools. I also downloaded latest version of DB from the live site to ensure my local environment was as close to the live site as possible before I updated the SilverStripe install.

Unfortunately I can't view or edit gallery pages unless I'm logged in as Admin. All I get is:

Log in You don't have access to this page. If you have another account that can access that page, you can log in again.

And even when I'm logged in I can't see any images on the local site! All I see is the page title witin my template.

Of course, the problem may not even exist on the live site if I simply updated everything. But I'm sure you can understand my reluctance to do this as I think there's a real possibility that the live site could turn to custard!

All I can think of is permissions issues. But having checked the CMS and seen that everything looks OK, I'm a bit stumped. Any ideas?

OpticBlaze commented 10 years ago

Hi Mike,

1) Did you enable the permissions on the CMS? Security->Groups tick the

2) I have to upgrade one of my own sites shortly...will probably run into the same problem. Will let you know

From: Mike Henden [mailto:notifications@github.com] Sent: 12 June 2014 01:10 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Hi Shaun, sorry to say I'm having more issues! Another site I did last year (the first I used your gallery module on) needed upgrading -- client wants to be able to upload photos! Which meant that I've updated my local environment site for testing (SS 3.1.5) and put the latest versions of ss3Gallery, SortableGridField and GridFieldBulkEditingTools. I also downloaded latest version of DB from the live site to ensure my local environment was as close to the live site as possible before I updated the SilverStripe install.

Unfortunately I can't view or edit gallery pages unless I'm logged in as Admin All I get is:

Log in You don't have access to this page. If you have another account that can access that page, you can log in again.

And even when I'm logged in I can't see any images on the local site!

Of course, the problem could not even exist on the live site if I simply updated everything. But I'm sure you can understand my reluctance to do this as I think there's a real possibility that the live site could turn to custard!

All I can think of is permissions issues. But having checked the CMS and seen that everything looks OK, I'm a bit stumped. Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-45812094 .Image removed by sender.

mhenden commented 10 years ago

Thanks for coming back to me Shaun

Checked permissions — all is set correctly and pages can be accessed from the backend. You just need to be logged in to access pages on the live site. And when you do see pages there are no images?!

Weird?! MIKE

On 13/06/2014, at 2:53 am, Shaun de Greeff notifications@github.com wrote:

Hi Mike,

1) Did you enable the permissions on the CMS? Security->Groups tick the

2) I have to upgrade one of my own sites shortly...will probably run into the same problem. Will let you know

From: Mike Henden [mailto:notifications@github.com] Sent: 12 June 2014 01:10 AM To: OpticBlaze/ss3Gallery Cc: Shaun de Greeff Subject: Re: [ss3Gallery] SS3 Gallery images not visible in public domain (#2)

Hi Shaun, sorry to say I'm having more issues! Another site I did last year (the first I used your gallery module on) needed upgrading -- client wants to be able to upload photos! Which meant that I've updated my local environment site for testing (SS 3.1.5) and put the latest versions of ss3Gallery, SortableGridField and GridFieldBulkEditingTools. I also downloaded latest version of DB from the live site to ensure my local environment was as close to the live site as possible before I updated the SilverStripe install.

Unfortunately I can't view or edit gallery pages unless I'm logged in as Admin All I get is:

Log in You don't have access to this page. If you have another account that can access that page, you can log in again.

And even when I'm logged in I can't see any images on the local site!

Of course, the problem could not even exist on the live site if I simply updated everything. But I'm sure you can understand my reluctance to do this as I think there's a real possibility that the live site could turn to custard!

All I can think of is permissions issues. But having checked the CMS and seen that everything looks OK, I'm a bit stumped. Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/OpticBlaze/ss3Gallery/issues/2#issuecomment-45812094 .Image removed by sender. — Reply to this email directly or view it on GitHub.