 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
March 14th, 2004, 07:29 AM
|
#1 (permalink)
| | 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 |
| |
March 14th, 2004, 10:35 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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.
|
| |
March 14th, 2004, 04:38 PM
|
#3 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Thanks for the advice, I will try that out ASAP |
| |
March 14th, 2004, 04:43 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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
|
| |
March 15th, 2004, 04:18 AM
|
#5 (permalink)
| | 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. |
| |
March 15th, 2004, 04:31 AM
|
#6 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
ps. Thank you so much for your help |
| |
March 15th, 2004, 09:38 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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?
|
| |
March 15th, 2004, 09:38 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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?
|
| |
March 15th, 2004, 10:17 AM
|
#9 (permalink)
| | 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. |
| |
July 10th, 2004, 03:16 PM
|
#10 (permalink)
| | Senior Member Verified Customer
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.
|
| |
July 10th, 2004, 05:58 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Daily upload limit? | adigicam | How Do I? - vBulletin 3.5.X | 2 | October 29th, 2005 02:33 PM | | limit upload | Snitz | How Do I? - vBulletin 3.0.X | 2 | May 26th, 2005 03:43 AM | | Omegatrons Website | paratek | Photopost Pro How Do I...? | 1 | March 11th, 2005 09:18 AM | All times are GMT -5. The time now is 02:16 AM. | |