PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
Thread Tools Rate Thread Display Modes
Old March 14th, 2004, 07:29 AM   #1
Rids
Member
 
Join Date: Aug 2002
Location: TeXaS
Posts: 293
Omegatrons upload limit hack

The forum in which the hack is posted is closed for new posts and I can't see any mention of the hack on the dev site so I will throw it in here.

I've been using the hack ever since it came out and it works well, though some members are confused as to whether it is limited by date or a running 24 hour period. I'm no PHP programmer myself so am unable to give them a definitive answer.

What I would like to do is to modify the hack so that it limits the uploads to one every three hours, to avoid the problem of members dumping multiple images at once but still allowing them to upload several images per day.

I would be very grateful for any advice
Rids is offline   Reply With Quote
Old March 14th, 2004, 10:35 AM   #2
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,208
Rids,

That forum is closed and all hacking questions belong on photopostdev.com

I should just move that there.

Why do you not just tweak the mysql UNIXTIMESTAMP variable as we did before. Change it to

-3 HOUR and then place the upload limit to 1

That should allow only 1 upload every three hours from the current time they are on.
Chuck S is offline   Reply With Quote
Old March 14th, 2004, 04:38 PM   #3
Rids
Member
 
Join Date: Aug 2002
Location: TeXaS
Posts: 293
Thanks for the advice, I will try that out ASAP
Rids is offline   Reply With Quote
Old March 14th, 2004, 04:43 PM   #4
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,208
I beleive you were using the NOW variable if I am not mistaken so -3 HOUR from NOW would keep it so there was only whatever upload limit you set from the admin section
Chuck S is offline   Reply With Quote
Old March 15th, 2004, 04:18 AM   #5
Rids
Member
 
Join Date: Aug 2002
Location: TeXaS
Posts: 293
I've been using it as originally posted:

AND date > UNIX_TIMESTAMP( DATE_SUB(CURDATE(), INTERVAL 1 DAY) )";

I've had the limit set to 5 per day and for me it has been working but one of my members (at least one) have been having trouble posting 5. Several times she has only been able to post 4 and I have checked the database timestamps and it turned out to be 4 in both a calendar day and a 24 hour period so I still have no idea whats going on there. She lives in California (so does the server) and I have the gallery offset at 8 hours to bring it back to GMT so maybe it it something to do with this?

The senior members at the site have vetoed the idea of 1 every 3 hours and I can see their point (most only visit once or twice per day). What I would really like to do at this point is get it working so that each member can post 5 images in any running 24 hour period, irrespective of date or timezone.
Rids is offline   Reply With Quote
Old March 15th, 2004, 04:31 AM   #6
Rids
Member
 
Join Date: Aug 2002
Location: TeXaS
Posts: 293
ps. Thank you so much for your help
Rids is offline   Reply With Quote
Old March 15th, 2004, 09:38 AM   #7
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,208
Rids,

Photos are written to the database at server time so time offsets have nothing to do with this. I can not reproduce what you are doing. The query is rather simple. What happened to the change we made using the NOW statement since your server did not like the standard DATE_SUB arguement?
Chuck S is offline   Reply With Quote
Old March 15th, 2004, 09:38 AM   #8
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,208
Rids,

Photos are written to the database at server time so time offsets have nothing to do with this. I can not reproduce what you are doing. The query is rather simple. What happened to the change we made using the NOW statement since your server did not like the standard DATE_SUB arguement?
Chuck S is offline   Reply With Quote
Old March 15th, 2004, 10:17 AM   #9
Rids
Member
 
Join Date: Aug 2002
Location: TeXaS
Posts: 293
I think you are mixing me up with someone else, I never used anything except the version you posted in the hacks forum.
Rids is offline   Reply With Quote
Old July 10th, 2004, 03:16 PM   #10
iloco
Senior Member
Verified Customer
 
iloco's Avatar
 
Join Date: May 2003
Location: Va
Posts: 528
omegatron, would it be possible in future upgrade to add an option so that we can set uploads on a daily(24hr) in cpanel.
I would like to set my gallery to one image per day or 24 hrs per member.
iloco is offline   Reply With Quote
Old July 10th, 2004, 05:58 PM   #11
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,208
Well the hack you are talking about is posted on Photopostdev.com

Set daily limit in cpanel??

If you use the version posted over at Photopostdev.com you should be able to set one upload per day.

For the next version I think I will add the option to specify the time range.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -5. The time now is 01:41 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.