SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    New Zealand
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Date sensitive delivery

    I've got a self-improvement programme I want to deliver to the members of my organisation. What I need to know is this: Because the people won't be joining all on the same date, I want to be able to deliver to them on the website each weekly step. I.e. when a member logs in they can only access certain pages, after 7 days from joining they have available another page which includes that week's step.

    Is it possible to write a php script for this, I'd prefer php as I want to keep my site php exclusive?

    Thanks

    Essenz

  2. #2
    SitePoint Enthusiast jpp's Avatar
    Join Date
    Nov 2003
    Location
    Arnhem, The Netherlands
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could store the date of the day that people login for the first time into your db. Every time they login in you could calculate the number of days between the current date and the stored date, devide this by 7 and you will have your weeknumber (after doing ceil($weeknr) ). Now just include or redirect to the right page.

    JPP

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    New Zealand
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the tip JPP

    We will experiment with it.

    Essenz


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •