latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

David Hunt


My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 34 total)
Author Replies
Author Replies
Posted: Monday Dec 31st, 2012 at 2:00 pm #35861
David Hunt
Username: okso

Hi,
A last bit of feedback before the close of 2012!

I can access the download if I’m a paid up member here http://presspresse.com/activity/
( http://presspresse.com/members/oksoadmini/activity/favorites/ )

However, if I try and access the download via Forum post @ http://rockstarraw.com/forums/topic/welcome/
( http://rockstarraw.com/?s2member_file_download=restore/restore.pdf&s2member_file_download_key=allowphp%20function=1 )

I get 503 ( Invalid Key ): Sorry, your access to this file has expired. Please contact Support for assistance.

So, as far as a multisite setup is concerned, with activity streams and RSS, the protection is not making sense to me.

Thanks for all your help in 2012!

Posted: Sunday Dec 30th, 2012 at 9:55 am #35796
David Hunt
Username: okso

Hi Bruce,
This BBPress permalink issue appears to be acknowledged but unresolved at this point. I think the best work around for now is using a uri restriction in all the topic titles eg. http://domain.com/forums/topic/restore-2013-welcome/

using restore-2013 as the S2 uri restriction

Also, did you see my note about the S2 download key not being executed in BBPress reply? This might be out of the scope of S2 support but I’d be interested to know, as you do promote the use of BBPress, if you’ve come up against this issue and whether you can recommend a work around.

Posted: Saturday Dec 29th, 2012 at 8:05 am #35712
David Hunt
Username: okso

There appears to be a flaw in the BBPress permalink structure when trying to protect a Forum with uri based restriction.

If I set up url based restriction to ‘forum-name’
domain.com/forums/forum-name/

as soon as a user is aware of a thread eg. domain.com/forums/topic/thread-name
the url restriction set in ‘forum-name’ is bypassed.

There’s no way to use url restriction to set a top level protection and have all threads protected within the forum-name structure.

It’s also conflicting with the logic of the breadcrumb path which shows the correct structure.
Home › Forums › Forum Name › Topic
which would allow the uri restriction to be effective.

Am I missing something?

Thank you.

Posted: Friday Dec 28th, 2012 at 4:06 pm #35658
David Hunt
Username: okso

Hi all,
I’d also like to provide a secure Pdf download for subscribers to an S2 Buy Now BBPress Forum.

http://rockstarraw.com/forums/topic/welcome/

From what I can see I can’t execute php from within the reply.

The forum is being protected via S2’s restrict url/buy now options.

How would yopu recommend providing subscribers with a secure Pdf download in this scenario?

Thank you.

Posted: Wednesday Dec 19th, 2012 at 7:02 am #35012
David Hunt
Username: okso

The only thing I’m still a little unsure of how to utilise the restriction in this scenario. How does the buy now option play with the restriction control? If a purchaser gets the link eg http://tinyurl.com/dynamiclink are they then also impinged by the download restriction for level 0 user? eg.

File Downloads ( Level #0 Or Higher ): 1 every 30 day(s).
Only this many unique downloads will be permitted every X day(s), at Level #0 or higher.
* To allow UNLIMITED downloads, use: 999999999 ( i.e. 999999999 = unlimited ). ETC.

Is their key allowing 1 X level 0 access + (

s2member_file_download_key("example-file.zip") = a site-specific hash of: date("Y-m-d").$_SERVER["REMOTE_ADDR"].$_SERVER["HTTP_USER_AGENT"].$file

), so as soon as they download 1 pdf they’re restricted from any further downloads?

The main thing is that I would like to understand is how I’d use this simultaneously with a member level branch that might allow a specified number of downloadable treats based on the subscription model.

  • This reply was modified 4 years ago by  David Hunt.
  • This reply was modified 4 years ago by  David Hunt.
Posted: Wednesday Dec 19th, 2012 at 6:20 am #35010
David Hunt
Username: okso

ah, that is so obvious to me now, apologies! Thanks for your help Cristian and Bruce.
ps. after looking at many other solutions, I think this is a really great way to serve up buy now – secure download pdf’s. Great job! d

Posted: Tuesday Dec 18th, 2012 at 8:22 am #34910
David Hunt
Username: okso

Code Snippets
Edit Snippet ID: 1
Shortcode: [php function=1]
all snippets automatically start with

<?php
echo s2member_file_download_key("merry_ebook.pdf"); ?>

yields: http://deliciously-raw.co.uk/merry-ebook/
http://deliciously-raw.co.uk/?s2member_file_download=merryandbright/merry_ebook.pdf&s2member_file_download_key=ea0d11a41fad1318a09cd636c401755d

BUT, if I refresh page should I get the same key? eg. s2member_file_download=merryandbright/merry_ebook.pdf&s2member_file_download_key=ea0d11a41fad1318a09cd636c401755d

user details:
cristian cristian+testing@xxxxxxxx.com Administrator

can I mail password if you haven’t received the invite?

  • This reply was modified 4 years ago by  David Hunt.
  • This reply was modified 4 years ago by  David Hunt.
Posted: Monday Dec 17th, 2012 at 6:14 am #34823
David Hunt
Username: okso

Hi Cristian,
Yes I have basic restrictions set. If I set up a user with cap ‘merryandbright’ (name of directory) they get access to downlaod with popup limit warning, so I’m sure all is well.

Yes, I’m generating the key in page using php.

echo s2member_file_download_key("merry_ebook.pdf"); ?>

When I mouse over the download I see a dynamic url is produced.

Please let me know what I should check next.
Thank you. David

*I’ve sent you access just in case it helps.

  • This reply was modified 4 years ago by  David Hunt.
Posted: Friday Sep 7th, 2012 at 2:41 pm #24556
David Hunt
Username: okso

great, I look forward to the kb.

To create some consistency and not dupe pages, I’ve decided to go with two top level pages, using pro forms, which works beautifully for logged in and logged out/non members;

s1>s2 http://domain.com/pro-registration/
s2>s3 http://domain.com/proplus-registration/

I’ve nested that under the Pricing tab, so hopefully user will be familiar with the member levels and respective privileges. Nearly there.

Posted: Friday Sep 7th, 2012 at 12:30 pm #24538
David Hunt
Username: okso

Hi Bruce, thanks so much for these directions. To clarify, the ultimate desire would be to inform users why they’ve been directed away from the /create/ page to an upgrade form, so they know what’s going on. I’ll go and dig into your suggestions, please keep me updated if you have further insights.

Posted: Thursday Sep 6th, 2012 at 8:09 am #24303
David Hunt
Username: okso

Hey Bruce, thanks for the heads up.

So, I get we can use the S2 variables in an edited version of the redirect in our current hack. Can you take a moment to advise how I can edit options page, or other bespoke redirect page to facilitate the desired ‘land on specific’ S2 pro upgrade form.

Does it simplify the issue if I use the hack to land on new bespoke pages, just with one necessary pro form for desired upgrade, rather than use the /opions/ page?

Posted: Wednesday Sep 5th, 2012 at 8:55 pm #24234
David Hunt
Username: okso

Hi Bruce,

Fantastic, it works!

While this is fresh in your mind, how easy is it to use/edit that snippet and grab the members existing S2 level, and then redirect to specific url or anchor, based on the pro form thats relevant for their requirements. I don’t see an immediate way for front end status to let a user know they are S2 Level 1 etc and they need XXX. I think this would create a better user experience if this can be done, eg. http://screencast.com/t/6MjJgZQM4U

Posted: Wednesday Sep 5th, 2012 at 6:48 pm #24211
David Hunt
Username: okso

Hi Bruce,
I’ve tested the feature and I still get 404. I have a test user who has joined 7 blogs. If I set S2 Level 1 to 8 I get /create/, if I set it back to 7, I get 404.

Id tried to bite into the code using a redirect @line31 in create.php but didn’t have any success with wp_redirect( ‘/microsites/create’, 302 ); exit;

OK, next step?

Posted: Wednesday Sep 5th, 2012 at 3:29 am #24124
David Hunt
Username: okso

Hi Bruce, thanks for looking into this.

Here’s my create php http://paste.pagelines.com/6co
It comes from the standard Buddypress template http://wordpress.org/extend/plugins/bp-template-pack/

Let me know if you need more. Full access was provided with the original pro support contact on this thread.

Posted: Monday Sep 3rd, 2012 at 4:19 am #23911
David Hunt
Username: okso

ok, can I have some help here then. Is there a way to get S2 to throw up anything that I can catch or use to redirect members either to the S2 options page or a custom pro form to upgrade their S2 membership? It seems a bit crude that S2 promotes the support of ‘Maximum Blogs Allowed’, but user gets a 404 when the allocation is exceeded. How have other customers responded to this? Any leads appreciated.

*I know I’ve mentioned this before, I’m getting this from debug:
NOTICE: wp-content/plugins/s2member/includes/classes/cache.inc.php:97 – Undefined variable: cache_needs_updating

  • This reply was modified 4 years, 4 months ago by  David Hunt.
Posted: Sunday Sep 2nd, 2012 at 5:12 am #23839
David Hunt
Username: okso

Hi Bruce, I’ve done as you’ve said, changed options page and saved, then set back o options and re saved. Still no change, I get /create/ if user hasn’t exceeded their allowance and 404 if they have.

Posted: Friday Aug 31st, 2012 at 5:53 am #23663
David Hunt
Username: okso

Hi Jason & Cristian, can you task me with a lead on making some progress on this. Kind regards, David

Posted: Tuesday Aug 28th, 2012 at 7:43 am #23261
David Hunt
Username: okso

Hi Jason,
Thanks for taking the time to pick this up. I had a look and from what I can see I still have the same issue. A few notes first though.

re: 2. With URI restriction /microsite/create/ – RESULT = S2 tries to redirect them with this url but fails to complete redirection.

This was happening because the url length with /membership-options/ was exceeding Apache url length limit. I found that when I renamed this to /options/ I could get away with this BUT Cristian advised me to use the hack in mu http://paste.pagelines.com/3n4

That fixed left me with this final 404 issue, which is importent for me to resolve, to make sure users get sufficient feedback when they reach their membership blog allowance to upgrade their membership.

404’s:
for an S2 Level 1 member (when the membership level 1 blog allowance is set to 0), I get 404, not a redirect to options.

for an S2 Level 1 member (who has used their membership level blog allowance, if blog allowance set to 1) I get 404, not a redirect to options.

Please let me know what you’d like me to do. I’m still not absolutely clear from your notes what the software should do in these use cases.

Kind regards, David

Posted: Monday Aug 27th, 2012 at 8:50 am #23168
David Hunt
Username: okso

Hi Cristian,
Just to let you know I’ve now tested the config on two separate sites, the same issue remains…

for an S2 Level 1 member (when the membership level 1 blog allowance is set to 0) I get 404, not a redirect to options.

for an S2 member (who has exceeded their membership level blog allowance) I get 404, not a redirect to options.

I think the thing to do now is get a clear instruction as to what the software should do in these two scenarios.

Thanks. David

Posted: Friday Aug 24th, 2012 at 10:58 am #22981
David Hunt
Username: okso

Thanks Cristian. Let’s hope Jason can shed light! I won’t do anymore fiddling now until I hear from you.

Posted: Friday Aug 24th, 2012 at 9:00 am #22963
David Hunt
Username: okso

Hi Cristian,
I’ve cracked one issue after testing hypothetical S2 Level 2 scenario, and found the system was working as expected for L2 users. This led me into looking at wp capabilities and flushing everything clean.

re: ‘Especially if you have two URI strings match at different levels: /microsites/create/ will match /microsites/create/ but also /microsites/.’

This is not the case, I can have a logged out user get redirect for /microsites/
and have a L0 have access to /microsites/ but not /microsites/create/
and have a L1 have access to /microsites/create/

ie. It appears that as far as S2 buddy restrictions are concerned /microsites/ & /microsites/create/ are two distinct entities, which is great!

My original error was coming from a faulty WP capability records. As soon as I reset it to WP subscriber defaults, with relevant S2 level appends, everything worked as I’d hope it would… except the blog number allocation doesn’t appear to have any intelligence.

I can have a logged out user get redirect for /microsites/
and have a L0 have access to /microsites/ but not /microsites/create/
and have a L1 (who hasn’t created their own blog) have access to /microsites/create/

BUT

for an S2 member (who has exceeded their membership level blog allowance) I get 404, not a redirect to options.

Please will you ask Jason explicitly whether there’s any inbuilt functionality to say what ‘should’ happen when a S2member exceeds their membership level blog allowance and tries to access /microsites/create/. Thank you.

  • This reply was modified 4 years, 4 months ago by  David Hunt.
Posted: Thursday Aug 23rd, 2012 at 1:40 pm #22888
David Hunt
Username: okso

Please can I get help on this. As I’ve been waiting for a response I’ve gone through the whole scenario with wp-signup.php open http://screencast.com/t/i9DekqwWF

As before…

If I create a page and make it child of microsite its url becomes /microsites/create/
If I’m a logged in S2 level 1 I get /microsites/create/ OK with Buddypress embedded create blog fields.

If I then take that user back to subscriber and try to reload the same page I get /microsites/create/ OK but as a blank page ie NO Buddypress create blog fields and no ‘redirection’ to expected S2 options.

This issue has to be incompatibility between the S2 restriction option level 1 = ‘/microsites/create/ or just /create/’
and the Buddypress plug allowing a non S2 level 1 user to get ‘redirected’ back to S2 options.

***with wp-signup.php open in S2 Buddypress still overrides wp-singup.php and redirects to /register/

***have now disabled the physical /create/ page as it doesn’t serve any purpose now.

  • This reply was modified 4 years, 4 months ago by  David Hunt.
Posted: Thursday Aug 23rd, 2012 at 8:50 am #22851
David Hunt
Username: okso

Hi, the 404 is a red herring!
If I create a page and make it child of microsite its url becomes /microsites/create/
If I’m a logged in S2 level 1 I get /microsites/create/ OK with Buddypress embedded create blog fields.

If I then take that user back to subscriber and try to reload the same page I get /microsites/create/ OK but as a blank page ie NO Buddypres create blog fields and no ‘redirection’ to expected S2 options.

This issue has to be incompatibility between the S2 restriction option level 1 = ‘/microsites/create/ or just /create/’
and the Buddypress plug allowing a non S2 level 1 user to get ‘redirected’ back to S2 options.

  • This reply was modified 4 years, 4 months ago by  David Hunt.
Posted: Thursday Aug 23rd, 2012 at 7:24 am #22836
David Hunt
Username: okso

Hi Cristian,
Buddypress inbuilt functionality dictates /wp-sign.php is overridden by /register as set in Buddypress admin http://screencast.com/t/vHLdmtRr

This is standard Buddypress setup. http://screencast.com/t/625qkeePjkK

I do not believe I should solve this functionality as S2meber should support Buddypress standard instal, unless there is something in S2member that should override Buddypress and give back /wp-sign.php to S2member.

*there is no documentation to say that this should be unlocked for Buddypress http://screencast.com/t/f70PwEy3tQ5

  • This reply was modified 4 years, 4 months ago by  David Hunt.
Posted: Wednesday Aug 22nd, 2012 at 4:53 pm #22777
David Hunt
Username: okso

Sorry Cristian, you caught me messing with ht access.

*this notice applies for ‘not logged in user’

re: Multisite Networking makes a new Registration Form available ( driven by your theme #which is Buddypress ); which we refer to as: /wp-signup.php ( #which is Buddypress /register ). If, and only if, you’re planning to offer Blogs, you MUST use /wp-signup.php, instead of using the Standard Login/Registration Form. In a Multisite installation, we refer to the Standard Login/Registration Form, as: /wp-login.php?action=register.

So no, I’m not using /wp-login.php?action=register

To register a new user I am using Buddypress domain.com/register http://screencast.com/t/p8h04GxiR

Buddypress can only use its own create blog screen here:
To create a new blog I’m using Buddypress domain.com/microsites/create http://screencast.com/t/teeAlsKhR

Viewing 25 replies - 1 through 25 (of 34 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.