Need to Control Member's Access to a Product From Join Date

Discussion in 'Setting-up protection' started by gswaim, Jun 3, 2013.

  1. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    I have answered my fair share of questions on the forum, but today I have one. I just can't think of a simple work flow for this, so I am seeking the wisdom of the crowd.

    I am building a WordPress-powered site that is integrated with aMember for a client. The site offers stock trading advice complete with morning and afternoon "Market Reports" along with other regular content. All this content is placed on various WordPress pages/posts and made available to anyone with a subscription to "Member".

    Here is the twist. The current stock information goes back for over a year and my client wants new members to only have access to the trading information from the day they join and going forward. So, how can I control each new membership to the single product "Member" to only have access to pages/posts from the day they join?

    Thanks in advance for any ideas on this. Hopefully I have overlooked a simple solution.
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Grant not knowing how you have your pages organised or what is possible but have you thought along the lines of including a conditional statement at start of each page?

    Thinking of say on each page include a date page was constructed and then each member would have a join date so conditional statement, which would be standardised apart from a date variable, along lines of:

    IF $page _date > $join_date then $access=TRUE


    Just an idea to start ball (or thought process if no other suggestions!) rolling.
  3. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    thehpmc,

    This is a new site and I am starting with a blank canvas, so I have a lot of flexibility. I'll ponder on this approach.

    Thanks
  4. jackgordon

    jackgordon aMember Pro Customer

    Joined:
    Mar 23, 2009
    Messages:
    269
    This feels very doable. I am not a programmer, but I have one on staff and ran it by him and he suggested the same approach.
  5. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  6. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    David,

    This should work. Thanks for the info. I'll contact aMember support.

Share This Page