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 Suggestions

PhotoPost Pro Suggestions Have an idea to improve PhotoPost?

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
Old June 22nd, 2004, 01:59 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2001
Posts: 94
Limit number of uploads

Hello,

I haven't seen this requested anywhere else, so I'll ask. Would it be possible to limit the number of photos uploaded by users on a daily and/or weekly basis? I get people (inadvertently) spamming the "Recent Photos" block so all you see is their photos. If I could limit users to one photo per day or something, that would be nice.
taveren is offline   Reply With Quote
Old June 22nd, 2004, 02:08 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
I posted this on PhotopostDev along time ago

http://www.photopostdev.com/showthread.php?t=572

I have done many variations on this. This mod is free for all to do.

I have done variations that alters and adds this as a usergroup permission where you can change the daily upload limit per usergroup versus one setting but the mod above will get you going
__________________
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 June 22nd, 2004, 03:51 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2001
Posts: 94
Ahh, very nice. Just what I wanted.
taveren is offline   Reply With Quote
Old July 11th, 2004, 09:40 PM   #4 (permalink)
Senior Member
Verified Customer
 
iloco's Avatar
 
Join Date: May 2003
Location: Va
Posts: 519
Would make for a nice addon in the admin cpanel maybe in user groups if possible..
__________________
iloco
iloco is offline   Reply With Quote
Old July 21st, 2004, 11:05 AM   #5 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
FYI, some code changes (the usergroup var) whether you are using standalone, IPB or vB integration.
rbl is offline   Reply With Quote
Old July 21st, 2004, 11:24 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
Upload Limit per day based on usergroups posted here

http://www.photopostdev.com/showthre...=3475#post3475
__________________
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 March 22nd, 2006, 02:11 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Location: Germany
Posts: 128
Quote:
Originally Posted by Chuck S
I posted this on PhotopostDev along time ago

http://www.photopostdev.com/showthread.php?t=572

I have done many variations on this. This mod is free for all to do.

I have done variations that alters and adds this as a usergroup permission where you can change the daily upload limit per usergroup versus one setting but the mod above will get you going
Hi Chuck,

this document does not exist on photopostdev.com any more... is your mod for upload variations any where else available? if not, can you post it here?

thanks...
__________________
Peter

using: vBCMS -- vBulletin 3.7 -- PhotoPost 6.02
max_view is offline   Reply With Quote
Old March 22nd, 2006, 09:17 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
The upload limit per day hack has been a part of Photopost Pro code for sometime now. This thread your posting to is almost 2 years old
__________________
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 March 22nd, 2006, 10:28 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Location: Germany
Posts: 128
Quote:
Originally Posted by Chuck S
The upload limit per day hack has been a part of Photopost Pro code for sometime now. This thread your posting to is almost 2 years old
oops, sorry Chuck... mistake by myside... sometimes my english is badly.

I searched for a limit per week hack, and was happy for founding this.

Question: do you have any tipp for me or exist any tips here in the forum for a limit per week?

thanks
__________________
Peter

using: vBCMS -- vBulletin 3.7 -- PhotoPost 6.02
max_view is offline   Reply With Quote
Old March 22nd, 2006, 10:47 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
In uploadphoto.php change the UNIXTIMESTAMP range from 24 HOUR to 1 WEEK
__________________
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 March 22nd, 2006, 11:21 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Location: Germany
Posts: 128
thanks, some things seem to be so easy, you only have to know how to do it.
__________________
Peter

using: vBCMS -- vBulletin 3.7 -- PhotoPost 6.02
max_view is offline   Reply With Quote
Old March 23rd, 2006, 03:32 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Location: Germany
Posts: 128
Quote:
Originally Posted by Chuck S
In uploadphoto.php change the UNIXTIMESTAMP range from 24 HOUR to 1 WEEK
sorry, Chuck, changes doesn´t work... if i change it to 1 WEEK it seems that no limit is working, user can upload so much as he want.

I try this, instead of 24 HOUR --> 168 HOUR and it works.

btw: i have one large ask for you, how can i change the starting timestamp from upload time to fixed time at midnight...
http://www.photopost.com/forum/showthread.php?t=123597
i thank you very much...
__________________
Peter

using: vBCMS -- vBulletin 3.7 -- PhotoPost 6.02
max_view is offline   Reply With Quote
Old March 23rd, 2006, 05:47 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
I do try and steer clear of the mod section
__________________
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 April 17th, 2006, 08:48 AM   #14 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,064
Hi

there is obviously a big demand for a weekly and daily upload limit based on calendar days as you can see in this thread and in some other threads over the years. Just to show some sample threads about this over the years (yes we are asking since almost 2 years for it) to underline that there is really a demand

weekly upload limita and daily by date

http://www.photopost.com/forum/showt...r+upload+limit

limit number of uploads per week/day

http://www.photopost.com/forum/showt...r+upload+limit

So it might make sense to include this finally in the next release

The solution above is not helping at all.

If it counts the timeframe from present time minus 168 hours (for the week) or minus 24 hours, this results in a "no upload access" results for a minimum time of either 24 hours or a week (depending on what you put into the code).

In other words: If a user uploads on monday 4pm and tries it again next monday at 3pm, he will be rejected. The week is not over yet for the system. This results in confusion and we have to answer many mails of complaining users

As far as I underatood, this is getting even worse, if the user uploads several images over the week. Look at this scenario:

Upload limit per week: 7 images

User uploads every day 1 image, starting on a Monday. He uploads therefore his last image in the first week on a Sunday. Now he wants to upload on monday again images. This time he has no time for the rest of the week, so he wants to upload all 7 images on the same day. Since this is a new week, this makes sense for him.

But he will get rejected after the first upload, since the time left for the second upload is less than a week (last upload was last week on tuesday).

This shows, how important it is to finally get this feature in the official release with midnight as a turning point for 24 hour limits and Sunday as the "break even" for weekly upload measurements.

Since 5.3 is just recently announced, and we are asking for this already for such a long time, a hack as an interims solution would be greatly appreciated with the consensus to include this hack really in the next release.
snoopy5 is offline   Reply With Quote
Old April 17th, 2006, 11:27 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
Snoopy

Thanks for your comments. Per Day Upload Limit was added back in Photopost 4.85 to the base code after users posted they wanted it based on a hack I wrote for it a year and a half ago.

The feature works fine as it is suppose to work. Of all your open threads your pointing to there is one variation that a user is trying to do that does not work or can not work as the hack is written. If you want a weekly upload limit it works fine as max_view posted use 168 HOUR in the upload query instead of 24 HOUR

The only open discussion in the hack section is someone wants the supported code to work by 24hour 12am to 12 pm just for the given day. This is just not how it works or is designed to work. The code as it is written now is a 24 hour LIMIT meaning that you come to upload here we count back 24 hours from right now when your trying to upload.

We shall consider any suggestions on code changes when we open a beta on the product. For hacks you would need to discuss these in the hack side of the site. Photopost Support Staff does not necessary participate in the non support side of the site.
__________________
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 April 17th, 2006, 11:45 AM   #16 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,064
Hi Chuck,

thanks for the reply. I know that the old implementation was only intended for the 24 hours. But if you look through all the old threads, the costumers always said, they would prefer much more to have a DAILY or WEEKLY upload limit. Nothing on the basis of hours.

I understand that your hack from the past got implemented. But still photopost users are asking for a long time to have it on day-basis and/or weekly basis, not on an hour-basis

So I understand what the purpose and limitations of the current 24hour option is, but Photopost has also to understand that many users ask for a long time now for something different. If we call something daily upload limit, we mean also daily. We do not mean 24 hours. This is clear if you look at the titles of all the threads I mentioned

So I would be really happy, if that would get "real" soon. I will copy a link in the mod section. But mods do not help, if they are not supported in the next release as you know. It will be only an interims solution (which helps already), but not really a longterm satisfying problem-solver, since next release makes it incompatible again...
snoopy5 is offline   Reply With Quote
Old May 27th, 2006, 10:28 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Location: Germany
Posts: 128
this is the solution on my galerie for changing the upload period to the true daytime limit... my users love it.

in uploadphoto.php find:

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);


and change the bold string:

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);
__________________
Peter

using: vBCMS -- vBulletin 3.7 -- PhotoPost 6.02
max_view is offline   Reply With Quote
Old May 27th, 2006, 10:39 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 45,173
Yes I posted a hack like this a few months back
__________________
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 June 13th, 2006, 02:47 PM   #19 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,064
is this hack also working for PP 5.31?
snoopy5 is offline   Reply With Quote
Old July 13th, 2006, 12:59 PM   #20 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,064
Quote:
Originally Posted by snoopy5
is this hack also working for PP 5.31?
any comments?
snoopy5 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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Number of Classifieds by One User ldk Classifieds Suggestions 21 July 23rd, 2007 04:08 PM
Limit number of page links shown tuwebfacil How Do I? - vBulletin 3.0.X 0 June 16th, 2005 01:05 PM
limit number of uploads per week/day snoopy5 PhotoPost Pro Suggestions 7 April 8th, 2005 11:58 AM
Limit number of images views per usergroup ? koros PhotoPost Pro Suggestions 9 July 31st, 2004 03:25 PM


All times are GMT -5. The time now is 04:29 AM.

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