Author Topic: upload limit by time  (Read 21995 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: upload limit by time
« Reply #15 on: February 26, 2006, 11:02:04 PM »
[qcode]            WHERE user_id = ".$user_info['user_id']." AND image_date > ".(time()-60*60*24*7);
    if ($result = $site_db->query_firstrow($sql))
    {
      if ($result['num'] > 10)[/qcode]
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: upload limit by time
« Reply #16 on: July 20, 2010, 02:39:05 PM »
Vano, May i show to user, in the error message, how many time remain for cancel his limit?

Offline sartravut

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: upload limit by time
« Reply #17 on: August 05, 2010, 01:51:44 PM »
thanks for your quick answer

Offline joergW

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: upload limit by time
« Reply #18 on: October 19, 2010, 07:35:53 PM »
Hello,

I picked up this old Thread because I searched for a solution limiting one upload per Day for example.

I copied the passages in my member.php of my homepage www.c124.de but after login and clicking the upload-button the following error occured.

Parse error: syntax error, unexpected $end in /var/www/web299/html/4images/member.php on line 1361

I checed the memmber.php but it only has 1355 lines.

What happend, what can I do ?

Greetings from germany

joergW


Rembrandt

  • Guest
Re: upload limit by time
« Reply #19 on: October 19, 2010, 07:44:48 PM »
... but after login and clicking the upload-button the following error occured.....
irgend welche klammern oder semicolon beim kopieren vergessen?
kontrollier halt alles nochmal nach.

mfg Andi

Offline joergW

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: upload limit by time
« Reply #20 on: October 19, 2010, 10:05:25 PM »
puuuh ... geschafft.

Wahrscheinlich hatte ich das Leerzeichen vor dem ersten Buchstaben nicht mitkopiert.

jetzt geht´s so wie ich mir vorstellte.

Danke / Thanks

joergW

Offline joergW

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: upload limit by time
« Reply #21 on: November 17, 2010, 02:19:56 PM »
Moin,

nachdem das geänderte Script funktionierte, stellte ich fest, dass User trotzdem mehrfach uploaden können.
Bei mir ist das Limit im Firefox da, im InternetExplorer nicht.

Hat jemand eine Ahnung woran das liegen könnte ?

###
t works only with Firefox, but not with InternetExplorer on my normal User-Account und test-Accounts
Anybody any idea why it is so ?
###

bis denn

joergW

« Last Edit: November 18, 2010, 10:58:03 PM by joergW »

Offline digital24

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: upload limit by time
« Reply #22 on: February 25, 2011, 08:08:01 PM »
eingebaut und getestet unter 1.7.9 :

läuft einwandfrei unter IE-8 und Firefox..

 :D Danke !!

Wolfgang