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

Author Topic: [MOD] Download limit v1.0.1  (Read 194928 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: [MOD] Download limit v1
« Reply #45 on: November 13, 2005, 10:18:45 PM »
edit language file (main.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 binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [MOD] Download limit v1
« Reply #46 on: November 14, 2005, 04:08:26 AM »
HAi V@no,
 Can you design a mode that allows a specific number of downloads with user groups.

For example:= I set up a usergroup in 4images that allows 10 downloads from any category. Another usergroup allows 20 downloads from any category.

As soon as the downloads are used up the mebership expires.

This would be a great useful MOD.

CAn u help,

Regards
Binu
www.sourcestravel.com
See your travel destnations ahead.

Offline Pop_Black

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Download limit v1
« Reply #47 on: November 17, 2005, 01:51:09 AM »
Hi V@no,
I want to change default download = 5 (Not 50)
Please help Me :wink:

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] Download limit v1
« Reply #48 on: November 17, 2005, 03:49:10 AM »
Please help Me :wink:
with what? :?
Did u look in the settings? ;)
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 kj_4fire

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Download limit v1
« Reply #49 on: December 03, 2005, 03:13:37 AM »
how can't i change the global setting? I can't change the # 50 dl limits :roll: Please help, thanks  :P

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] Download limit v1
« Reply #50 on: December 03, 2005, 04:02:11 AM »
then obviously you did something wrong. Now, put yourself on our possition and read your "description" of the problem again - would you able to help someone with as much information as you've provided? - doubtfull.
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 kj_4fire

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Download limit v1
« Reply #51 on: December 03, 2005, 05:58:25 AM »
Well, i have rechecked the problem many times and everything has worked fine except not being able to change the global setting. I went to Admin CP-->setting-->limit dowload setting-->changing #50 to other number-->save changes. Unfortunately, after i submit, #50 is still there. That is exactly what my problem is. Thanks for your help.   :wink:




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] Download limit v1
« Reply #52 on: December 03, 2005, 09:39:33 AM »
hmmm...are you absolutly sure that the database was updated? try run the installer again...

P.S. just in case, clear your browser cache and cookies ;)
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 fult5000

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Download limit v1
« Reply #53 on: December 12, 2005, 05:05:48 PM »
hallihallo,

ich habe eine kleine fotodatenbank. http://www.fult.de.
jetzt habe ich den mod installiert und wie im forum die php dateien geändert. leider ging alles voll daneben.

so sieht meine änderung aus. was habe ich falsch gemacht?

//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------
$image_allow_comments = (check_permission("auth_readcomment", $cat_id)) ? $image_row['image_allow_comments'] : 0;
$image_name = htmlspecialchars($image_row['image_name']);
show_image($image_row, $mode, 0, 1);
/*
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
*/
$in_mode = 0;

Offline fult5000

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Download limit v1
« Reply #54 on: December 12, 2005, 06:08:21 PM »
so, jetzt bekomme ich die fehlermeldung :


Parse error: parse error, expecting `')'' in /home/imorde.com/htdocs/images/4images/includes/page_header.php on line 90

ich wüsste nicht was ich bei der änderung falsch gemacht haben soll?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Download limit v1
« Reply #55 on: December 12, 2005, 06:12:38 PM »
@ fult5000

... na vergleiche doch nochmals in page_header.php in der Zeile 90 deinen Code mit dem Original des MODs ... `')''

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline fult5000

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Download limit v1
« Reply #56 on: December 12, 2005, 07:53:55 PM »
super, ich hatte den fehler gemacht es drunter ein zu fühgen statt wie beschrieben drüber  :mrgreen:

jetzt hätte ich noch ne frage. z.z wird mir angezeit das ich 1 von 5 bilder heruntergelanden haben. dann 2 von 5 u.s.w. . besteht die möglichkeit das mir die differenz angezeigt wird. sie können noch "x" bilder herunter laden?

mfg,

markus!

Offline kj_4fire

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Download limit v1
« Reply #57 on: December 23, 2005, 02:55:46 AM »
hmmm...are you absolutly sure that the database was updated? try run the installer again...

P.S. just in case, clear your browser cache and cookies ;)

Thanks V@no, i figure it out now  :wink:

Offline fult5000

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Download limit v1
« Reply #58 on: December 31, 2005, 01:18:57 AM »
try run the installer again...

   1. Error: Duplicate column name 'user_dl_limit'

   2. ALTER TABLE `imorde_com_users` ADD `user_dl_limit` mediumint(5) NOT NULLError: Duplicate column name 'user_dl_time'

   3. ALTER TABLE `imorde_com_users` ADD `user_dl_time` int(11) NOT NULL default '0'Error: Duplicate column name 'user_dl_count'

   4. ALTER TABLE `imorde_com_users` ADD `user_dl_count` mediumint(5) NOT NULLError: Duplicate entry 'user_dl_limit' for key 1

   5. INSERT INTO `imorde_com_settings` ( `setting_name` , `setting_value` ) VALUES ('user_dl_limit', '50')Error: Duplicate entry 'user_dl_time' for key 1

      INSERT INTO `imorde_com_settings` ( `setting_name` , `setting_value` ) VALUES ('user_dl_time', '24')

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Download limit v1
« Reply #59 on: December 31, 2005, 01:26:06 AM »
Delete the ´user_dl_limit´ manuell in your database and then run the installer again ;)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-