Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Want to find way to build site with time limited access to certain page.
Old 10-12-2007, 08:19 PM Want to find way to build site with time limited access to certain page.
Novice Talker

Posts: 7
Name: Soren
Trades: 0
Hi all,

I have a client who want the following - and I don't know where to look for such a system/technique.

Here's the situation:
-----------------------------------
She has a galleri with pictures and want members to only access this after they subscribe.

She wants to have clients buy access for either 1 month, 3 months, 6 months, 12 months. The price will fluctuate depending which timeperiod they purchase.
She wants the customer AND herself to receive an email notification when they have purchased access - and in the email to the customer, it says what they have purchased and contains an URL to the gallery WITH a timelimited username/password.
-----------------------------------

Does anyone have any sort of knowledge where this can be found - or at least just enlighten me a little bit. I'm lost and afraid I can't solve the problem for the my customer...
THANK YOU all for any sort of help you can give :-)
Soreng
SorenG is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-12-2007, 08:49 PM Re: Want to find way to build site with time limited access to certain page.
Defies a Status

Posts: 1,606
Trades: 0
I will throw this out and see if you get better answers. The images need to be in a protected directory and you need a scripted (php or other) solution that controls the usernames and passwords for that directory.

There are several options that might be tweaked to do what you want. One that works exactlty as you posted , I am not aware of.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 10-12-2007, 09:21 PM Re: Want to find way to build site with time limited access to certain page.
Novice Talker

Posts: 7
Name: Soren
Trades: 0
Hi Colbyt,

Thanks very much for your quick answer. Would you happen to know of which applications would come somewhat close?

Soreng
SorenG is offline
Reply With Quote
View Public Profile
 
Old 10-12-2007, 10:00 PM Re: Want to find way to build site with time limited access to certain page.
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Why not use boolean (I think that is how it is spelled), and have it ask in the php script if certain questions are true or false also I would try to make a column in the user table in phpmyadmin which says the date in this format mmddyyyy so 100589 is October 5, 1989 and compare and run a function that checks the year in the table with the expiration time in the database table and then have your script do a calculation using math.

Quote:
Originally Posted by SorenG View Post
Hi all,

I have a client who want the following - and I don't know where to look for such a system/technique.

Here's the situation:
-----------------------------------
She has a galleri with pictures and want members to only access this after they subscribe.

She wants to have clients buy access for either 1 month, 3 months, 6 months, 12 months. The price will fluctuate depending which timeperiod they purchase.
She wants the customer AND herself to receive an email notification when they have purchased access - and in the email to the customer, it says what they have purchased and contains an URL to the gallery WITH a timelimited username/password.
-----------------------------------

Does anyone have any sort of knowledge where this can be found - or at least just enlighten me a little bit. I'm lost and afraid I can't solve the problem for the my customer...
THANK YOU all for any sort of help you can give :-)
Soreng
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 10-13-2007, 06:46 AM Re: Want to find way to build site with time limited access to certain page.
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Ok i have no clue what he is on about but its much eaiser to use unix time when saving time date('U')

i would have the order form and on successfull payment have it go to a page which adds a record to a database with user name and password and plan or time period and a expire date which you generate with date('U') + 60*60*24*30 (which works out to 30 days)

You then have a CRON job (a script which you set up to run automatically every X amount of time which goes thro and deletes all entries whcih have expired.

However you may prefer having a field which has status and it simply updates expired with a status of expired so users can easily pay again and continue using the same details

it should be a fairly simple system.

i might even be able to make it for you if i have more details.

if you are interested PM me.
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 10-14-2007, 04:21 AM Re: Want to find way to build site with time limited access to certain page.
Novice Talker

Posts: 7
Name: Soren
Trades: 0
Hi Dan,

I could actually be interested in having you just do this. That is, ofcourse, if you are still interested? Do you want me to email you more via your D-Blog site?

Thanks,
Soren
SorenG is offline
Reply With Quote
View Public Profile
 
Old 10-14-2007, 06:19 PM Re: Want to find way to build site with time limited access to certain page.
247SiteAlert's Avatar
Average Talker

Posts: 28
Trades: 0
The structure you are looking for is the ability to have the server force a page refresh. I have never done this but I know it can be done. In your script, you need it to be able to determine how long the page has been 'in view' and then you can act accordingly.

The easiest way to do this is with a global variable for that specific web page - set it when the page first displays and get a time() hack from the server. When the page loads again (from the forced refresh) check the time() again - when enough time has passed, close the page or what ever it is you want to do.
__________________
Free Website Uptime Monitoring

Please login or register to view this content. Registration is FREE
247SiteAlert is offline
Reply With Quote
View Public Profile
 
Old 10-16-2007, 06:06 PM Re: Want to find way to build site with time limited access to certain page.
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
no.


header(5, url="urll.com");

Simple.
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 10-16-2007, 06:18 PM Re: Want to find way to build site with time limited access to certain page.
Novice Talker

Posts: 7
Name: Soren
Trades: 0
Sorry, Dan. I'm not following you??
SorenG is offline
Reply With Quote
View Public Profile
 
Old 10-17-2007, 05:13 AM Re: Want to find way to build site with time limited access to certain page.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I think 247SiteAlert is answering a different question to the one posed in the original post.

Bit of a convoluted answer from goheadtry but essentially the best way.

When a user signs up and pays their fee a expiry date is added to their profile in the database, then each time they login, this date is checked against the current date on the server.
If it has not expired they are allowed to login, otherwise it gets rejected with a "Membership Expired" message and options to extend their membership. You can of course show each member their time left and the "extend" options whenever they login as well.

You also need to use cookies and/or sessions to verify the user is logged in when they access protected pages.
It's not a complicated process by any means and Dan has the right idea (although a CRON job might be a little OTT as you can simply check expiry on each login).
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-20-2007, 09:22 AM Re: Want to find way to build site with time limited access to certain page.
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
yea i didnt think of that, but then again a cron job would keep the DB organised and clear for the users who do it and never login or just leave.
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Want to find way to build site with time limited access to certain page.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36242 seconds with 12 queries