Page 1 of 1

Inline image gallery links not working

PostPosted: June 15th, 2011, 6:41 pm
by StenCade
I'm having a problem suddenly with my image galleries. I use the NextGEN Gallery plugin, which displays a thumbnail gallery and uses shadowbox or thickbox to display the images when clicked. I have those images (and the gallery page) protected by s2member. Now when I click the images, rather than displaying the image with thickbox, it always acts as a download link instead.

I'm not sure what's changed; it was working fine before. I've got jpg set as an inline type in the download options, and when I choose the "Play as a slideshow" option it works just fine inline, so I'm baffled. I'm not sure whether this error popped up before or after I upgraded to the latest version of s2member (I have the latest versions of both plugins); I've been building another part of the site for the past week or two and just noticed it.

I have a test page set up on my local machine and that has no problems. I'm at a loss! Any ideas where I should be looking for something I may have accidentally changed? I'm posting this on the Wordpress forums too in case it's a NextGEN problem...

Re: Inline image gallery links not working

PostPosted: June 16th, 2011, 4:56 pm
by StenCade
OK, scratch that, it is NOT working fine on my local machine. My test gallery wasn't yet protected. When I put those files into s2member-files and change the links to "?s2member_file_download=path/image.jpg" I get the same error as above.

Except now it's behaving differently. I'm still getting the download warning prompt but when i click OK, rather than downloading the item it proceeds to try and display it in thickbox as I wanted. But instead of the image I get this:
error.tiff


What is going on??

Re: Inline image gallery links not working

PostPosted: June 17th, 2011, 4:44 pm
by Cristián Lávaque
Well, it could be related to the bug fix that Jason just released today. http://wordpress.org/extend/plugins/s2member/changelog/

If updating the plugin doesn't fix the problem, then try adding &s2member_file_inline=yes at the end of the URL to the file.

Re: Inline image gallery links not working

PostPosted: June 17th, 2011, 7:26 pm
by StenCade
I had hoped the update would help because that bug fix sounded like my problem, but no dice. I added "&s2member_file_inline=yes" to the fullsize links but that didn't change anything either.

It seems that I can't apply any javascript image effect to any protected images anymore. With most effects it just gives me the download warning prompt and then it displays the image link alone in a new page (or else as with thickbox I get the effect displaying garbage).

And with no javascript effects at all applied, shouldn't it NOT be giving me a download warning prompt every time I try to view an image fullsize?

Re: Inline image gallery links not working

PostPosted: June 20th, 2011, 3:55 am
by Jason Caldwell
Is it possible that your gallery system is not recognizing the image link, because it does NOT end with a normal image file extension ( i.e. .png. .gif, etc ), do you think that might have something to do with it? If so, try adding the inline directive to the beginning of the link, instead of at the end.
Code: Select all
http://example.com/?s2member_file_inline=yes&s2member_file_download=file.png

Re: Inline image gallery links not working

PostPosted: June 21st, 2011, 2:55 pm
by StenCade
Nope, that didn't help. :(

Re: Inline image gallery links not working

PostPosted: June 22nd, 2011, 2:34 am
by Jason Caldwell
So sorry. Can you send me a link to the page where this is happening? And/or a Dashboard login so I can see for myself? If so, please submit those details using this private contact form: http://www.s2member.com/contact/

Re: Inline image gallery links not working

PostPosted: June 24th, 2011, 12:11 am
by Jason Caldwell
Info received, investigating now.

Re: Inline image gallery links not working

PostPosted: June 24th, 2011, 12:20 am
by Jason Caldwell
Investigation completed.
StenCade wrote:I suppose the image links are *technically* displaying inline since it's taking me to a new page with the image in the browser rather than giving me a "save as" prompt, but i'm still getting the download limit warning and obviously the javascript effects aren't working.

You can get rid of the Download Prompts by adding this additional variable to your image URLs.
Code: Select all
&s2member_skip_confirmation

As for your gallery functionality itself, I'm sorry but I really can't comment on this. I did ensure that s2Member is doing its job of displaying your images "Inline". s2Member is handling this properly. The reason for NextGen failing to deliver your Slideshow though, will need to be addressed with NextGen support instead I'm afraid. If they can offer you any suggestions, please feel free to post them here and we'll try to assist wherever possible to resolve this issue for you.

Re: Inline image gallery links not working

PostPosted: June 24th, 2011, 6:47 pm
by StenCade
Oh man, I should have checked this before. Turns out the two default javascript effects that come with NextGEN (thickbox and shutter reloaded) have not been updated to be compatible with the latest version of Wordpress! I used Lightbox 3 instead and it works fine!

You helped me get rid of the download prompt, though, thank you! :) And thanks for your time!

Re: Inline image gallery links not working

PostPosted: July 20th, 2011, 10:28 pm
by gemini87
I am stuck! I am trying to create an inline file extension for a pdf file and it's only allowing me to download the link. Do you know what I am doing wrong? PLEASE HELP!!

Thank you!

Re: Inline image gallery links not working

PostPosted: July 21st, 2011, 12:13 am
by Cristián Lávaque
If you try to access the PDF file without the s2Member protection, does the browser open it or offer you to download it?