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 > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old September 8th, 2008, 04:02 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2006
Location: Bonn - Germany
Posts: 94
Change upload limit from 24 hours to "real" days

Hi

my users complain about the fact that the upload limit is based on 24hrs rather than on real daycounts. I have searched the support forum and found a thread ( hack) where a change in uploadphoto.php from


if ( $User['uploadlimit'] > 0 ) {
$upload = ppmysql_query("SELECT COUNT(*) FROM {$Globals['pp_db_prefix']}photos WHERE userid={$User['userid']} AND date > UNIX_TIMESTAMP( DATE_SUB(NOW(), INTERVAL 24 HOUR) )", $link);


to

if ( $User['uploadlimit'] > 0 ) {
$upload = ppmysql_query("SELECT COUNT(*) FROM
{$Globals['pp_db_prefix']}photos WHERE userid={$User['userid']} AND
FROM_UNIXTIME(date, '%Y-%m-%d') = CURDATE()", $link);


should solve the issue.

But somehow it doesn't work.

Now I am not expert enough to see what is wrong about the statement, but I would really love to change things so users are happy again

Any help is greatly appreciated!
CeBra is offline   Reply With Quote
Old November 10th, 2008, 11:56 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Sep 2006
Location: Bonn - Germany
Posts: 94
Hi

no reply so far. Has this issue by any chance been changed in 6.2?
CeBra is offline   Reply With Quote
Old November 10th, 2008, 12:00 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
This is not a bug by nature. The 24 hour limit is from the time the user uploads. So if he is uploading at 12 noon today it will check back to 12 noon yesterday.
__________________
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
Old November 10th, 2008, 12:06 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Sep 2006
Location: Bonn - Germany
Posts: 94
True. Not a "bug" - but still I am desperately trying to change that behaviour somehow so members can upload at 11 p.m. and again at 01 a.m. the other day if they feel to.

Could you Chuck provide me with the right code to modify the file? I think there are others around that would also appreciate that information.
CeBra is offline   Reply With Quote
Old November 10th, 2008, 03:03 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Feel free to post in the modifications forum for someone to assist.
__________________
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about "Daily Upload Limit (# of files)" Johnny Doomo Photopost Pro Installation & Upgrades 1 October 14th, 2005 03:15 PM
Moving images from "real" members categories Tom M How Do I? - vBulletin 3.0.X 1 February 9th, 2005 05:56 PM


All times are GMT -5. The time now is 02:45 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0