PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Inline image gallery links not working

s2Member Plugin. A Membership plugin for WordPress®.

Inline image gallery links not working

Postby StenCade » June 15th, 2011, 6:41 pm

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...
User avatar
StenCade
Registered User
Registered User
 
Posts: 12
Joined: May 31, 2011

Re: Inline image gallery links not working

Postby StenCade » June 16th, 2011, 4:56 pm

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??
User avatar
StenCade
Registered User
Registered User
 
Posts: 12
Joined: May 31, 2011

Re: Inline image gallery links not working

Postby Cristián Lávaque » June 17th, 2011, 4:44 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Inline image gallery links not working

Postby StenCade » June 17th, 2011, 7:26 pm

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?
User avatar
StenCade
Registered User
Registered User
 
Posts: 12
Joined: May 31, 2011

Re: Inline image gallery links not working

Postby Jason Caldwell » June 20th, 2011, 3:55 am

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
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Inline image gallery links not working

Postby StenCade » June 21st, 2011, 2:55 pm

Nope, that didn't help. :(
User avatar
StenCade
Registered User
Registered User
 
Posts: 12
Joined: May 31, 2011

Re: Inline image gallery links not working

Postby Jason Caldwell » June 22nd, 2011, 2:34 am

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/
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Inline image gallery links not working

Postby Jason Caldwell » June 24th, 2011, 12:11 am

Info received, investigating now.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Inline image gallery links not working

Postby Jason Caldwell » June 24th, 2011, 12:20 am

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Inline image gallery links not working

Postby StenCade » June 24th, 2011, 6:47 pm

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!
User avatar
StenCade
Registered User
Registered User
 
Posts: 12
Joined: May 31, 2011

Re: Inline image gallery links not working

Postby gemini87 » July 20th, 2011, 10:28 pm

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!
User avatar
gemini87
Registered User
Registered User
 
Posts: 1
Joined: July 20, 2011

Re: Inline image gallery links not working

Postby Cristián Lávaque » July 21st, 2011, 12:13 am

If you try to access the PDF file without the s2Member protection, does the browser open it or offer you to download it?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest

cron