• [Mod] User upload limits 5 0 5 1
Currently:  

Author Topic: [Mod] User upload limits  (Read 238939 times)

0 Members and 1 Guest are viewing this topic.

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] User upload limits
« Reply #75 on: June 17, 2003, 11:34:07 AM »
Quote from: Lord Nite
Notice the ' around the $user_limit string.  It wasn't there before, and that would cause the errors.

hmm... this db field is smallint(3), so why you need to quote it? moreover, neither i do not get any error messages at my site, nore anybody else reported such bug

Offline Lord Nite

  • Newbie
  • *
  • Posts: 43
    • View Profile
[Mod] User upload limits
« Reply #76 on: June 17, 2003, 01:01:00 PM »
Well, I know that this is what caused my board to error when adding a user from the admin panel.

It might not have actually fixed it, but it did provide a decent workaround.

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] User upload limits
« Reply #77 on: June 17, 2003, 04:33:35 PM »
Quote from: Lord Nite
error when adding a user from the admin panel

ah.. that one was fixed long time ago.  and it was caused by wrong icq field

Offline Lord Nite

  • Newbie
  • *
  • Posts: 43
    • View Profile
[Mod] User upload limits
« Reply #78 on: June 17, 2003, 08:23:03 PM »
Please explain.

Offline migraul

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.frankenfoto.info
[Mod] User upload limits
« Reply #79 on: June 20, 2003, 12:45:19 PM »
I would like to indicate the limit in the Memberprofil the user.  What
there do I have to make?
Begeisterter 4image User der viel Spaß damit hat und auch Freunde dadurch gefunden hat in unserer COMMUNITY

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] User upload limits
« Reply #80 on: June 20, 2003, 04:17:33 PM »
you can see in lang\main.php >
Code: [Select]
$lang['already_loaded'] = "<span class=\"smalltext\"><b>For your information:</b> you have uploaded <b>{images_per_user}</b> images out of <b>{upload_limit}</b> allowed for you.</span>";

so, use {images_per_user} and {upload_limit} in your member profile template

Offline migraul

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.frankenfoto.info
[Mod] User upload limits
« Reply #81 on: June 20, 2003, 04:29:51 PM »
sorry, does not function.  it is indicated nothing!
Begeisterter 4image User der viel Spaß damit hat und auch Freunde dadurch gefunden hat in unserer COMMUNITY

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] User upload limits
« Reply #82 on: June 20, 2003, 05:51:43 PM »
:?  this vars registred with over_limits.html template only... sorry, i can't tell you for the moment how to use it in profile

Offline tikle

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] User upload limits
« Reply #83 on: March 24, 2005, 09:16:28 PM »
hallo

was soll ich machen damit es auch mit phpBB funktioniert?

danke im Vorraus


Offline tikle

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] User upload limits
« Reply #84 on: April 11, 2005, 01:04:59 AM »
kann mir Jemand helfen?
ein kleiner Tip were genügend ;)
danke


Offline Towerade

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Mod] User upload limits
« Reply #85 on: June 13, 2005, 03:16:58 PM »
Is this MOD compatible with the integration phpBB & 4images?????? (the users table is the phpBB´s table)
http://www.4homepages.de/forum/index.php?topic=1658.300

Thx

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod] User upload limits
« Reply #86 on: June 23, 2005, 04:07:53 PM »
I don't know if anyone else noticed this, but I have set limit, so that members can upload 1 image on 48 hours. But you can cheat here!

When you upload image, you click BACK button and you will be able to upload as many image you would like.

Saidly I didn't solved that problem, but would be very glad if only else does it ;)

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: [Mod] User upload limits
« Reply #87 on: June 24, 2005, 01:13:33 AM »
try to insert below:
Code: [Select]
if ($action == "uploadimage") {
  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }
This block:
Code: [Select]
  if (!check_picture_limit($user_info['user_id'])){
  // if (!check_daily_picture_limit($user_info['user_id'])) {
 
  //
  // Depending on your requirements, you can either check against global or daily limit. For global check leave it as it is now.
  // For daily limit comment first line and uncomment second one.
  //
 
  $site_template->print_template($site_template->parse_template("over_limit"));
  include(ROOT_PATH.'includes/page_footer.php');
  exit;
  }

If u get an error message "call underfined function" then move function check_picture_limit($user_id){...} and function check_daily_picture_limit($user_id) {...} into includes/functions.php
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod] User upload limits
« Reply #88 on: June 24, 2005, 12:33:12 PM »
Actualy I get this msg:

Parse error: parse error, unexpected ')' in /home/.../member.php on line 504

Line 504:   
Code: [Select]
if (!check_daily_picture_limit($user_info['user_id']))) {

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: [Mod] User upload limits
« Reply #89 on: June 24, 2005, 02:23:19 PM »
sorry, remove one ")" from that line. (I've updated my post)
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)