Page 1 of 1

Wp-filebase integration issue

PostPosted: January 10th, 2012, 2:12 pm
by Vahka
On my site, s2m is integrated with wp-filebase to make possible to download files for members.
Both are great plugins (especcialy s2m ;) ). All works almost fine, but...

There is just last frustrating problem: s2m block file download counter included with wp-filebase.
Wp-filebase counting file based hits, but not anymore if ?s2member_file_download= added to file path.

10.01.jpg
Filebase download url base
10.01.jpg (37.65 KiB) Viewed 801 times


Have any suggestion to get it work? I have no more ideas...

Re: Wp-filebase integration issue

PostPosted: January 12th, 2012, 6:09 am
by Cristián Lávaque
Thanks for the kudos! :)

You could try the Advanced Mod-Rewrite Linkage. WP Admin -> s2Member -> Download Options -> Advanced Mod-Rewrite Linkage

Re: Wp-filebase integration issue

PostPosted: January 12th, 2012, 6:45 am
by Vahka
I have tried various codes for path. If I remove "?" query then WP-Filebase will count hits, but s2m restriction not work. If I add "?s2member_file_download=" then conversely: s2m works, but wp-filebase not.

Re: Wp-filebase integration issue

PostPosted: January 16th, 2012, 5:44 am
by Vahka
I got this message if I changed the download path:

403 Permission Denied
You do not have permission for this request /wp-content/plugins/s2member-files/?s2member_file_download=/black_metal/Black%20Metal%20Flat.zip

Re: Wp-filebase integration issue

PostPosted: January 17th, 2012, 1:42 pm
by Eduan
Hi, regarding the 403 error, you might wanna take a look into this thread and see if that solves your problem:
viewtopic.php?f=36&t=14787

Hope this helps. :)

Re: Wp-filebase integration issue

PostPosted: January 22nd, 2012, 11:16 am
by Vahka
Cristián Lávaque wrote:Thanks for the kudos! :)

You could try the Advanced Mod-Rewrite Linkage. WP Admin -> s2Member -> Download Options -> Advanced Mod-Rewrite Linkage


This new flexibility may come in handy for site owners serving files through media playback devices that have issues with query string variables. For instance, it is now possible to link to an s2Member-protected file directly, like this: ... /wp-content/plugins/s2member-files/example-file.zip instead of ... /?s2member_file_download=example-file.zip. Either way works, but the direct link might be easier for some.

Yes, on this way downloads works, but it eliminates s2m download restrictions?

I hope we will find solution...
Vahka

Re: Wp-filebase integration issue

PostPosted: January 22nd, 2012, 6:01 pm
by Cristián Lávaque
Vahka wrote:Yes, on this way downloads works, but it eliminates s2m download restrictions?


No, the download protection should keep working.

If you have a protected file and while logged out you try to download it with the s2Member link, the one without the query string, does the download happen?

Re: Wp-filebase integration issue

PostPosted: January 23rd, 2012, 3:21 am
by Vahka
So, the download prodection dont keep working for guest as well for logged in users.

1.Restriction work, but WP-Filebase counter is out from game.
mydomain.com/?s2member_file_download=/category/file.zip

2. Restriction do not work at all. WP-Filebase count downloads.
mydomain.com/s2member-files/category/file.zip

There must be a simple solutions, but I can`t find it :(