Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Redeem Digital Download Code?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44135
    realph
    Participant

    I want to create a redeem code area on a website I’m working on, that when a user punches in their unique download code (I’ll be emailing this across to the users) it generates a unique URL that allows them to download a file for a 24-48 hour period.

    Any idea of how I approach this?

    Thanks in advance, any help is appreciated.

    #131857
    Blackhawkso
    Member

    One way you could go about it is store the unique code with a unix time stamp that it should expire on in a database then have a page that gets the code out of the address bar using $_GET then query the database for the code and see if the current time is within the time allowed using the unix time stamp.

    #131905
    realph
    Participant

    @blackhawkso Could you point me in the direction of how to do something like this? Sorry, I’m new to this.

    #132451
    Blackhawkso
    Member

    I’ve made a blog post that should give you what you need [http://bhsowebdesign.com/post/2013/04/19/download-code-redemption-system.html](http://bhsowebdesign.com/post/2013/04/19/download-code-redemption-system.html)

    Hope it helps you.

    #138004
    realph
    Participant

    @blackhawkso OMG! So sorry I didn’t see this notification until now. Thanks soooooo much for doing this.

    I’m actually just trying to get through it now. Do you mind uploading the files you used as I’m having a little difficulty tying it all together.

    #138072
    Blackhawkso
    Member

    I’ve added a download link for you so you can get a version of the code.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Back End’ is closed to new topics and replies.