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™

Problem with html page protection!

s2Member Plugin. A Membership plugin for WordPress®.

Problem with html page protection!

Postby sb5101 » January 16th, 2012, 11:27 am

I need some help. I want to protect an HTML page. I placed the complete page inside (the page also contains a swf file that runs the page, if that’s makes any difference) in the s2member-files folder. When I try to access the page the screen completely goes blank.
I believe the page is trying to access other files in the folder to make the page load but the access is denied. I have tried everything to make it work. Help please.

Thank You
User avatar
sb5101
Registered User
Registered User
 
Posts: 5
Joined: January 15, 2012

Re: Problem with html page protection!

Postby squizeers » January 16th, 2012, 12:31 pm

i am trying to do exactly same. And I have the same problem.

I have folder "A" with all the files (xml,swf,html) in the s2member-files folder. Html file embeds the swf video.
I have a post in the site that links to html file in folder"A". When I click on the link, it gives me a white blank page.
I have also used Default Inline File Extensions - html in the configuration but no luck. any help will be much appreciated.
thank you.
User avatar
squizeers
Registered User
Registered User
 
Posts: 7
Joined: November 23, 2011

Re: Problem with html page protection!

Postby Jason Caldwell » January 19th, 2012, 2:39 pm

Thanks for bringing this thread to my attention.
~ I'm reviewing now. One moment please.
~ 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: Problem with html page protection!

Postby Jason Caldwell » January 19th, 2012, 2:51 pm

Thanks for your patience.

A similar question was asked in the past, and I addressed it here.
viewtopic.php?f=4&t=14643&p=32789&hilit=base+href#p32717

However, since that time, s2Member has made it possible to link directly to protected files with a built-in facility to handle Advanced Mod-Rewrite Linkage, which I believe resolves this completely, so long as you link to your protected files (i.e. your HTML file that has the embedded SWF) using Advanced Mod-Rewrite Linkage. For further details, please check your Dashboard under: s2Member -> Download Options -> Advanced Mod-Rewrite Linkage.

So for example... I might serve this file to a Member who is logged-in.
Code: Select all
http://www.example.com/wp-content/plugins/s2member-files/s2member-file-inline/page.html
Which might contain an <embed src="movie.swf" /> (relative path)
~ 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: Problem with html page protection!

Postby sb5101 » January 19th, 2012, 4:20 pm

Thanks Jason, I have tried all the possibilities in Adv. Mod-Rewrite Linkage with no luck. Any other thoughts?

Thanks
LG
User avatar
sb5101
Registered User
Registered User
 
Posts: 5
Joined: January 15, 2012

Re: Problem with html page protection!

Postby Jason Caldwell » January 19th, 2012, 8:05 pm

Thanks for the follow-up.
sb5101 wrote:Thanks Jason, I have tried all the possibilities in Adv. Mod-Rewrite Linkage with no luck. Any other thoughts?

Thanks
LG
No, so sorry. Please submit a Dashboard login through this private contact form along with instructions on how to reproduce this. We'll be happy to review this as it exists on your installation.
~ 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: Problem with html page protection!

Postby Jason Caldwell » January 20th, 2012, 11:11 am

Thank you. Details and video received, thanks for that. I'm 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: Problem with html page protection!

Postby Jason Caldwell » January 20th, 2012, 11:36 am

Investigation completed. I found that your server is running W3 Total Cache with GZIP enabled, and this was affecting s2Member's functionality, as described in this recent bug discovery. See this link for temporary workarounds until the next maintenance release of s2Member, which will resolve this.

See: viewtopic.php?f=4&t=16510&p=60958#p59497

I've corrected this on your installation by adding this section to your .htaccess file.
Code: Select all
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{THE_REQUEST} (?:(?:^|\?|&)s2member_file_download\=.+|(?:^|/)s2member-files/.+)
   RewriteRule ^(.*)$ - [E=no-gzip]
</IfModule>
I'm sending you an email with some additional details which are site-specific. So look for that to come shortly. Thanks again for the video walk-through of the problem.

For the benefit of other readers, a video walk-through is VERY helpful in debugging things like this. If you're on a schedule, this can help us help you quicker! See: http://www.techsmith.com/download/jing/default.asp
~ 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: Problem with html page protection!

Postby sb5101 » January 20th, 2012, 12:48 pm

Working now, I would have never figured that out!

Tanks so much
LG
User avatar
sb5101
Registered User
Registered User
 
Posts: 5
Joined: January 15, 2012


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron