• [MOD] Download limit v1.0.1 4 0 5 1
Currently:  

Author Topic: [MOD] Download limit v1.0.1  (Read 162875 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 :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[MOD] Download limit v1.0.1
« on: April 30, 2005, 07:03:23 PM »
Before the hack we had "Download limit" mod, I belive it was made by rproctor :?: At that time I didnt need such mod, so I didnt install it, and now its lost after the hack...

Here is my version of that mod. With this mod admin can set download limit per XX hours. The XX time begin count after first image download.

Tested on 4images v1.7 - v1.7.6


----------- [ Changed files ] -------------

details.php
download.php
admin/settings.php
includes/db_field_definitions.php
includes/page_header.php
includes/sessions.php
lang/<your language>/admin.php
lang/<your language>/main.php
templates/<your template>/details.html
(or any other template)


------------- [ Installation ] --------------

NOTE: if you see a 4images version number next to a step, it means, that particular step meant for that 4images version only and if you have different version, you should skip this step and see if next step is for your version.

Step 1
Open details.php
Find:
Code: [Select]
show_image($image_row, $mode, 0, 1);Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
if ($msg_error = $site_sess->get_session_var("msg_error"))
{
  $msg .= ((empty($msg)) ? "" : "<br />").stripslashes($msg_error);
  $site_sess->drop_session_var("msg_error");
}
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2
Open download.php
Find:
Code: [Select]
$user_access = get_permission();Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
$dl = 0;
function check_dl_limit($dl)
{
  global $user_info, $config;
  if ($user_info['user_level'] != ADMIN && $user_info['user_dl_limit'] != -1 && $user_info['user_dl_limit'] && time() - $user_info['user_dl_time'] <= 60*60*$config['user_dl_time'] && $user_info['user_dl_count'] + $dl >= $user_info['user_dl_limit'])
  {
    return false;
  }
  elseif ($user_info['user_level'] != ADMIN && $user_info['user_dl_limit'] != -1 && $user_info['user_dl_limit'] && time() - $user_info['user_dl_time'] > 60*60*$config['user_dl_time'] && $dl >= $user_info['user_dl_limit'])
  {
    return false;
  }
  return true;
}
function update_dl_limit($dl)
{
  global $user_info, $site_db, $site_sess, $config;
  if ($user_info['user_level'] == ADMIN) return;
  $time = time();
  if (!$user_info['user_dl_time'] || $time - $user_info['user_dl_time'] > 60*60*$config['user_dl_time'])
  {
    $time_sql = ", user_dl_time = ".$time;
    $user_info['user_dl_count'] = $dl;
    $user_info['user_dl_time'] = $time;
  }
  else
  {
    $time_sql = "";
    $user_info['user_dl_count'] += $dl;
  }
  if ($user_info['user_level'] > GUEST)
  {
    $sql = "UPDATE ".USERS_TABLE."
            SET user_dl_count = ".$user_info['user_dl_count'].$time_sql."
            WHERE user_id = ".$user_info['user_id'];
    $site_db->query($sql);
  }
  $site_sess->set_cookie_data('data', base64_encode($user_info['user_dl_count']." ".$user_info['user_dl_time']), 1, 60*60*$config['user_dl_time']);
}
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2.1
Find:
Code: [Select]
    while ($image_row = $site_db->fetch_array($result)) {Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
      if (!check_dl_limit($dl)) break;
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2.2
Find:
Code: [Select]
        $file_added = 1;Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
        $dl++;
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2.3 (v1.7/v1.7.1)
Find:
Code: [Select]
      $file['file_size'] = strlen($file['file_data']);
    }
    else {
      header("Location: ".$site_sess->url($url, "&"));
Replace it with:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  END ORIGINAL CODE BLOCK
*/

/*
  MOD DOWNLOAD LIMIT
  BEGIN REPLACE
*/
      $file['file_size'] = strlen($file['file_data']);
    }
    else {
      if (!check_dl_limit(0))
      {
        $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
      }
      header("Location: ".$site_sess->url($url, "&"));
/*
  MOD DOWNLOAD LIMIT
  END REPLACE
*/


Step 2.3 (v1.7.2)
Find:
Code: [Select]
      $file['file_data'] = $zipfile->send(time().".zip");
      exit;
    }
    else {
      redirect($url);
Replace with:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN REPLACE
*/
      $file['file_data'] = $zipfile->send(time().".zip");
      exit;
    }
    else {
      if (!check_dl_limit(0))
      {
        $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
      }
      redirect($url);
/*
  MOD DOWNLOAD LIMIT
  END REPLACE
*/


Step 2.3 (v1.7.6)
Find:
Code: [Select]
      redirect("lightbox.php?empty=1");Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT ABOVE
*/
      if (!check_dl_limit(0))
      {
        $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
      }
/*
  MOD DOWNLOAD LIMIT
  END INSERT ABOVE
*/


Step 2.4 (v1.7/v1.7.1)
Find:
Code: [Select]
  $remote_url = 0;Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
  if (!check_dl_limit(0))
  {
    $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
    header("Location: ".$site_sess->url($url, "&"));
    exit;
  }
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/


Step 2.4 (v1.7.2 - v1.7.x)
Find:
Code: [Select]
  $remote_url = 0;Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
  if (!check_dl_limit(0))
  {
    $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
    redirect($url);
    exit;
  }
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/


Step 2.5 (v1.7/v1.7.1)
Find:
Code: [Select]
  if (!empty($file['file_path'])) {Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
  $dl++;
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2.5 (v1.7.2 - v1.7.x)
Find:
Code: [Select]
  if (!empty($file['file_path'])) {Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
  $dl++;
  update_dl_limit($dl);
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2.6 (v1.7/v1.7.1)
Find:
Code: [Select]
    if ($remote_url) {Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  START INSERT
*/
      update_dl_limit($dl);
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/


Step 2.7 (v1.7/v1.7.1)
Find:
Code: [Select]
if (!empty($file['file_data'])) {Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  START INSERT
*/
   update_dl_limit($dl);
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/


Step 2.8
Find:
Code: [Select]
    if ($file_added) {Insert below::
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
      update_dl_limit($dl);
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/



Step 3
Open admin/settings.php
Find:
Code: [Select]
  show_form_footer($lang['save_changes'], "", 2);Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
  show_table_separator($setting_group[XX], 2, "#setting_group_XX");
  show_setting_row("user_dl_limit");
  show_setting_row("user_dl_time");
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/
Replace XX with 8 if u havent install any mods that changed this file, othwise look up the number in the the last section that starts with   show_table_separator($setting_group[ and add one to that number.
Write down that number, you will needed it in another step!



Step 4
Open includes/db_field_definitions.php
At the end, ↑ABOVE↑ closing ?> insert:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
$additional_user_fields['user_dl_limit'] = array(&$lang['user_dl_limit'], "text", 0);
$additional_user_fields['user_dl_time'] = array($lang['user_dl_time'], "text", 0);
$additional_user_fields['user_dl_count'] = array($lang['user_dl_count'], "text", 0);
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/



Step 5
Open includes/page_header.php
Find first entry of:
Code: [Select]
$site_template->register_vars(array(Insert ↑ABOVE↑:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
$left = "";
if ($user_info['user_level'] == ADMIN || $user_info['user_dl_limit'] == -1)
{
  $dl_limit = $lang['user_dl_limit_unlimited'];
}
else
{
  $t = ($config['user_dl_time']*60*60) - (time() - $user_info['user_dl_time']);
  if ($t > 0)
  {
    $years = floor($t/31536000);
    $days = floor(($t %= 31536000)/86400);
    $hours = floor(($t %= 86400)/3600);
    $minutes = floor(($t %= 3600)/60);
    $seconds = $t %= 60;
    $t = array($years, $days, $hours, $minutes, $seconds);
    $s = 0;
    for ($i = 0; $i < 5; $i++) {
      if ($t[$i]) {
        $left .= $t[$i]." ".$lang['dates_short'][($t[$i] != 1)][$i];
        $s++;
        $c = 0;
        for ($j = $i + 1; $j < 5; $j++) {
          if ($t[$j]) $c++;
        }
        $left .= " ";
      }
    }
    $left = trim ($left, " ");
  }
  if ($user_info['user_dl_limit'] > $user_info['user_dl_count'] || !$left)
  {
    $dl_limit = preg_replace("/".$site_template->start."dlcount".$site_template->end."/siU", $user_info['user_dl_count'], preg_replace("/".$site_template->start."dltottal".$site_template->end."/siU", $user_info['user_dl_limit'], preg_replace("/".$site_template->start."dltime".$site_template->end."/siU", $left, $lang['user_dl_limit_status'])));
  }
  else
  {
    $dl_limit = preg_replace("/".$site_template->start."dltime".$site_template->end."/siU", $left, $lang['user_dl_limit_reached']);
  }
}
$site_template->register_vars(array(
  "user_dl_count" => ($user_info['user_dl_limit'] == -1) ? 0 : $user_info['user_dl_count'],
  "user_dl_time" => $left,
  "user_dl_limit" => $dl_limit
));
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/



Step 6
Open includes/sessions.php
Find:
Code: [Select]
        $this->delete_old_sessions();
      }
    }
Insert ↓BELOW↓:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
    global $config;
    if ($this->user_info['user_level'] > GUEST)
    {
      if (!$this->user_info['user_dl_limit'] && $this->user_info['user_dl_limit'] != -1)
      {
        $this->user_info['user_dl_limit'] = $config['user_dl_limit'];
      }
      if (!$this->user_info['user_dl_time'])
      {
        $this->user_info['user_dl_time'] = 0;
      }
    }
 
    if ($dl = $this->read_cookie_data('data'))
    {
      $dl = explode(" ", base64_decode($dl));
      if (isset($dl[1]) && $dl[1] && $config['user_dl_time']*60*60 > (time() - $dl[1]))
      {
        $this->user_info['user_dl_time'] = $dl[1];
        $this->user_info['user_dl_count'] = (isset($dl[0]) && $dl[0]) ? $dl[0] : 0;
      }
      else
      {
        $this->user_info['user_dl_time'] = 0;
        $this->user_info['user_dl_count'] = 0;
      }
    }
    elseif ($this->user_info['user_level'] == GUEST)
    {
      $this->user_info['user_dl_count'] = 0;
      $this->user_info['user_dl_time'] = 0;
    }
    if ($this->user_info['user_level'] == GUEST)
    {
      $this->user_info['user_dl_limit'] = $config['user_dl_limit'];
    }
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/
Make sure you inserted the code below two closing brackets and one last (third) bracket must be at the end of the inserted code!



Step 7
Open lang/<your language>/admin.php
At the end, ↑ABOVE↑ closing ?> insert:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
/*-- Setting-Group XX --*/
$setting_group[XX]="User download limit";
$setting['user_dl_limit'] = "Download limit<span class=\"smalltext\"><br />set to <font color=red><b>0</b></font> for unlimited</span>";
$setting['user_dl_time'] = "Reset time<span class=\"smalltext\"><br />(in hours)</span>";
$lang['user_dl_limit'] = "Download limit<span class=\"smalltext\"><br />set to <font color=red><b>0</b></font> to use global settings<br>or <font color=red><b>-1</b></font> for unlimited</span>";
$lang['user_dl_time'] = "Start time";
$lang['user_dl_count'] = "Download count";
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/
Replace XX with the number from Step 3



Step 8
Open lang/<your language>/main.php
At the end, ↑ABOVE↑ closing ?> insert:
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
$lang['user_dl_limit'] = "Download limit";
$lang['user_dl_time'] = "Start time";
$lang['user_dl_count'] = "Downloads count";
$lang['user_dl_limit_reached'] = "Your download quota per ".$config['user_dl_time']." hours has been reached. You won't be able download for next {dltime}";
$lang['user_dl_limit_unlimited'] = "Your download quota is unlimited";
$lang['user_dl_limit_status'] = "You have downloaded {dlcount} of {dltottal} files, allowed per ".$config['user_dl_time']." hours";
$lang['dl_limit_reached'] = "Sorry, you've reached the download limit per ".$config['user_dl_time']." hours";
$lang['dates_short'] = array(
  array("yr", "day", "hr", "min", "sec"),
  array("yrs", "days", "hrs", "min", "sec")
);
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/



Step 9
Open templates/<your template>/details.html (or any other template, i.e. user_loginform.html/user_logininfo.html)
Insert {user_dl_limit} tag in the place you want to display to the visitors the information about their download limit status. (design is your job :P)



Step 10
Download this installer.
Unpack it and upload dl_limit_install.php file into your 4images root dir.
Execute the installer by typing in your browser's address bar: http://yoursiteaddress/path/to/4images/dl_limit_install.php (make sure you've logged in as admin, otherwise it will not work)

NOTE: during the database installation u might see some "warning" messages on top of the page, that is normal and they should go away after the database updated.
« Last Edit: January 22, 2009, 01:22:17 AM by V@no »
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Download limit
« Reply #1 on: April 30, 2005, 07:17:05 PM »
Nice MOD!!! So if we install this MOD it will work for the MOD of Files list ?

Offline renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [MOD] Download limit
« Reply #2 on: April 30, 2005, 08:28:51 PM »
What can I say but V@no you really are a Hero Member.  Again and again you come through.  This  is a feature I truly need.  Thanks for recovering this lost MOD? I do have one question you may know the answer too.

Is it easy to switch the download limit by hours to limit by days? Or would it be easier to just calculate hours per day X the days I need.  In my case one month. 


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #3 on: April 30, 2005, 08:44:37 PM »
So if we install this MOD it will work for the MOD of Files list ?
sorry, "the MOD of Files list"? what do u mean?
This mod is an addon to 4images, not an addon to a mod ;)


Is it easy to switch the download limit by hours to limit by days? Or would it be easier to just calculate hours per day X the days I need. In my case one month.
it's easier to calculate it yourself ;)
but if u reall, REALLY want it to, u can replace 60*60 with 60*60*24 in includes/page_header.php and download.php files (obviosly I'm only talking about the new code added from this mod)
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Download limit v1
« Reply #4 on: April 30, 2005, 09:10:30 PM »
Quote
templates/<your template>/details.html  (or any other template)

That's why i said that  :?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #5 on: April 30, 2005, 09:57:52 PM »
it will only show on your files page, this mod is not ment to be used for files mod.
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Download limit v1
« Reply #6 on: April 30, 2005, 10:32:14 PM »
Hi,

i have insert the Mod and i think it works.

But i have 2 Problems found...

1. I have insert the tag {user_dl_limit} in details.html and in user_logininfo.html but i see nothing!

2. When i have the limit of download i come to the index site. Is there a way to say "You must wait 24 hours to Download more images" ???

*EDIT*

Found anyone:

When i work with the Internet Explorer and i have reached the limit they say me "Sorry, your limit is.....", OK. But they don´t say me "You have downloaded 12 of 20 files, allowed per 24 hours";
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #7 on: May 01, 2005, 12:10:34 AM »
1. I have insert the tag {user_dl_limit} in details.html and in user_logininfo.html but i see nothing!
some how the tag was altered when I was publishing the mod.
In Step 5 replaced
Code: [Select]
  "dl_limit" => $dl_limit with
Code: [Select]
  "user_dl_limit" => $dl_limit
2. When i have the limit of download i come to the index site. Is there a way to say "You must wait 24 hours to Download more images" ???

*EDIT*

Found anyone:

When i work with the Internet Explorer and i have reached the limit they say me "Sorry, your limit is.....", OK. But they donґt say me "You have downloaded 12 of 20 files, allowed per 24 hours";
just edit language file (main.php) and insert whatever u want it to display.
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Download limit v1
« Reply #8 on: May 01, 2005, 01:01:40 AM »
It works. Thanks for this....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline stoneFireX

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Download limit v1
« Reply #9 on: May 05, 2005, 04:37:52 PM »
could anyone help me with this?
I got this message error, and it also said "Your download quota per 24 hours has been reached. You won't be able download for next 23 hrs 44 min 29 sec" when user hasn't download any image yet.

Fatal error: Call to undefined function: set_cookie_data() in /home/vietori/public_html/forums/4images/download.php on line 75



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #10 on: May 05, 2005, 08:19:05 PM »
if u are using any sort of integrations (phpbb, vbulletin, etc) u are on your own there.
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 Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Download limit v1
« Reply #11 on: May 17, 2005, 04:06:44 PM »
Hi V@no

Thank you so much for this mod (the only 1 that went without a hitch  :) - so far)

I do have a question though - is there a way to set various download limits per usergroup? Because this MOD only applies to ALL registered users (guests do have the limit but once they clear their cookies, their limit is back again - but this is not a problem :))

I really hope you could help me with this one.

TYVM in advance.

Xandra

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #12 on: May 18, 2005, 12:39:25 AM »
sorry, usergroups are not supported, only per-user.
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 Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Download limit v1
« Reply #13 on: May 18, 2005, 12:40:51 PM »
sorry, usergroups are not supported, only per-user.

thanks for replying. Do you mean it is possible to set different download limits PER USER though? All I could see is the same limit for ALL users.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #14 on: May 18, 2005, 02:43:11 PM »
if u installed the mod properly and go to edit a user in ACP, then u should be able see new fields for download limit.
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)

 

Post your comments here