Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2011, 05:00 PM
blueskyler's Avatar
blueskyler blueskyler is offline
Member
 
Join Date: Dec 2011
Location: California, US
Posts: 12
Gender: Male
Credits: 3,007
blueskyler is on a distinguished road
Default User Integration

I made a little vending machine script, and I was wondering if there is some way to make it so that users can only visit once per day. Right now it uses cookies, but people can just delete them, and I don't want ip logging because people on the same computer wouldn't be able to visit it. Is there any way to do this?
Reply With Quote
  #2  
Old 12-18-2011, 02:04 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,364
PokePets
Default

Make a new field, put yes in when the page loads.
With a cronjob you empty everyday the field :)
Reply With Quote
  #3  
Old 12-18-2011, 02:08 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,891
Hall of Famer is on a distinguished road
Default

umm you can create a table in your database that behaves somewhat similar to the prefix_voters. Whenever a user visits this page, a row is automatically inserted into this table recording his/her userid, username and date of visit. Then write your script to check if the current date is the same as the date stored in your table. If so, the user has apparently visited the page for more than once in a day. All you can do next is to generate an error message for the specific user should this happen.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 12-19-2011, 02:26 PM
blueskyler's Avatar
blueskyler blueskyler is offline
Member
 
Join Date: Dec 2011
Location: California, US
Posts: 12
Gender: Male
Credits: 3,007
blueskyler is on a distinguished road
Default

Quote:
Then write your script to check if the current date is the same as the date stored in your table.
How would I do this?
Reply With Quote
Reply


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Integration coolgem923 Questions and Supports 2 10-07-2014 02:23 PM
Forum integration? Aasixx Questions and Supports 6 05-06-2012 03:01 PM
phpbb integration Chibi_Chicken Tutorials and Tips 8 10-24-2011 08:01 PM
phpbb integration Flexxall Questions and Supports 2 08-09-2009 06:03 PM


All times are GMT -5. The time now is 04:27 PM.

Currently Active Users: 9795 (0 members and 9795 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636