Author Topic: [MOD]-BETA Whole/part category download  (Read 77448 times)

0 Members and 1 Guest are viewing this topic.

Offline jaimecb

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #15 on: September 15, 2005, 02:25:32 PM »
Ok.. i speak english very bad... so i´ll try..

jeje

in download.php

mmm if i put this code...
Code: [Select]
       ORDER BY ".$config['image_order']." ".$config['image_sort']."
        LIMIT ".$_GET['offset'].", $perpage";

all works fine...


BUT if i put this other...
Code: [Select]
ORDER BY ".$config['image_order']." ".$config['image_sort'].";
I have this error
Code: [Select]
Parse error: parse error, unexpected '\"' in /data/members/paid/m/i/misimagenes.net/htdocs/www/download.php on line 280
and the line 280 .... 
Code: [Select]
$page_download = "";

what can i do?? i want download ALL the images of the category... not the images of this page...
please help.. it´s so smarty

Offline jaimecb

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #16 on: September 15, 2005, 03:03:25 PM »
  I try dowload 176 images and....


Quote
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 35265 bytes) in /data/members/paid/m/i/misimagenes.net/htdocs/www/includes/zip.php on line 81

line 81 said

Code: [Select]
    $new_offset = strlen(implode('', $this->datasec));
 :?: :?: :?: :?


TheOracle

  • Guest
Re: [MOD]-BETA Whole/part category download
« Reply #17 on: September 15, 2005, 05:23:06 PM »
This will of course return a parsing error message. ;)

To correct this,

replace :

Quote

ORDER BY ".$config['image_order']." ".$config['image_sort'].";


simply with :

Code: [Select]

ORDER BY ".$config['image_order']." ".$config['image_sort'];


As for :

Quote

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 35265 bytes) in /data/members/paid/m/i/misimagenes.net/htdocs/www/includes/zip.php on line 81


That is a memory buffer issue from the server end. You must report this error to your web hosting party.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #18 on: January 16, 2006, 09:25:21 PM »
Hi V@no

Strange but i cant find the code in categories.php to do step 1.1
Code: [Select]
$site_template->register_vars(array(
 "mode" => ((!empty($mode)) ? "&mode=".$mode : ""),  "clickstream" => $clickstream,

I am using version 1.7.1 and may be due to some other mod i have chnaged this line. But now in order to get this mod to work. What exactly i should chnage ??

 I am attaching my categories.php fiile. Please  help me out.
I m not a  Programmer.
          But
I m a Good Learner.

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]-BETA Whole/part category download
« Reply #19 on: January 17, 2006, 12:43:36 AM »
I've updated the original post. the searching lines should be:
Code: [Select]
$site_template->register_vars(array(
  "msg" => $msg,
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 Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #20 on: January 17, 2006, 03:20:48 AM »
Thanks for quick looking.  :)

It works absolutely fine. Thanks V@no
I m not a  Programmer.
          But
I m a Good Learner.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD]-BETA Whole/part category download
« Reply #21 on: January 22, 2006, 08:07:49 PM »
Hi there,

i become this one when i will download the complete cat or a single picture

i click on the download button and i can´t download the pic but it load a site with this...

Quote
PKp˜¹à‹õß}èxl–Ëé…~ʼ;{åöÿ8lýrãñ„Ÿ?š³hñgK–®úÊuµ›û¦Í^´o¶lÝá»s—ßî=þAÁ!¡aß:q"2*údLì™Ä¤dî�gS~ùõ·óÒÒ/^»ž•}Cx3'7/ÿ^AaQqIiUuMm�ä¯ú†=n|òôYSóËöŽÎW]ݪž7oßõéôýƒCc&óûñ Ìb�œŠkeÆ´ÿûøÿŒËÄ5ýƒf|0k*®iÓ¹Spø`æë?\ð]à¬c§]6ü4{áöÌ»þùhåƃ£NÇÚæ,úrÓ›UcS¡ý7²ÿ�ýüÙÿØÿWå“Ó@òf8PÛßürL€�aF\Zg´Êc™o¬%Åj š‡w¶�~>Ch‘³2EÆÀꌉÕvÊ‹A;ÅSÃiÈ^>pž‡œ=‰Wñ.Û§MRUÍëxŠgóº,ç¼hVr)½¶ítáON3óVÌ«»"æ²·xÕþðH��b|9í’$¾ê'¶8¦ð,Ä(i‚ñƒß‘‘Ö7E^93ÚN‰Nò>^„×~þ-¶b(�7¾¸Ü_t-=õõæ<YK‹5„7«Ký ‰:W�¦žx‡Ýö¢¿ÊÏ]?MÌP`'¡Ì¤±áW+b§\*Îhl�¾d Þůþð=6eîórÛæmmŸ£Û)¸4¦Rª³Â¯ƒû’þgx/ÁƒÃøÿwHôšº+",ž%c²ŸÕt}ÕúFPÓxÿÆY ÛÐëàíïß›—Aݬw)+‰· t\[lÁ<’í/ ŠÜ…‡ÃÈi¾÷èÇ7b‚‰!�áŠÄÉv”êêŒvJTîCÚØ*êBß-thB{å²xÔSºKy¼S»�w <<-]‰R8liXªï› Êì”Åç5%’~õÁBP#ÐÜ£ù­¾Äeª¼q«'n§:ö$úb‹ìíl/#éÎÅ�ˆI¯uv ڮ涘Bl;¯ªÌô¡“ÊuÏN9[¾t‰=úlVþHÊ«AÞDjLí×ñrs»ü°`äøžÅ¶Y‘ÞýLl¹Ø«/ F3‚f¹ŽAN>m×®Ø)š?•Íƒ@e~ª6Ðoœ‰ÄS«®Êx§Áä­Ê…»�’ß¾%º~*þ?5zÛørtý˜³. ïÉ.Î*X2Ÿjà=OˆGç|¡&�kY^¯Bñcþ‡� ׇ}d2F Y€<��o8¡…=÷¾ý|ß¡k¥�ÓIíÜû0—è¦ÄCºS²îm]X6[Ô“çKRoÔ¬1ä †|‘P›^ñ|ï\ v*à‹Ÿ¨% ú<_•™ölÜ}å>ÄóYzµÅãêÑöôöÏ?˜ÈV‘¨ÆAd¢5$“ÿˆ ë9·µiìú0ô®ãLBja[z|O$bÛœ¬>xºÐÛêk¥¢!Ú¼x<tЫÍ>VßÁ ÿ²‹Ò¢“ #$eÄŸ°Öñ�„�däU‘Ô–½ž8ü$0ã_Ö&Å…W¯NÊ#ÃG�§�ü‚(Hj;òê†r9ÂTP¹>á»-涀Æ]>£³h[Ž�t¾å—UƒÊËr;î“| îUñV-sŒ—�]²OŠèºí”Ó§ o]ŽMxVW<Ðbî:’wj9³EÒüU¹õ{Ç艕jq~>·Y¬e¾Î Äøï–ÇïèÞ¤~Vq‡c!©¸�˜kdô&Vœúî=Ñ*ÔWÔbÓ œU^Dóq½ñÙ`VýÛó‘5 Y¶œu»¾ý@ Kj5誷Èmáäþª6wÉɆÕ÷ �ƒÁÁ¡øÕÚ$ãa•&Œ‹3Œa šÊûÝþ éÙÐ1ÙªžÖAÌ#'gé2;åŸðͺf’‘JÌcy¿U²®¹+÷hѲXUÑDA&=�S¹Y©$‘s»¸�ËV“œúà �‰‡ Ð2vËÄå³ùWoü;öðë5铺.<*@-Œà�7«YÕ�ºMUÀ;/‰rÂi6ĸÊ7Â-˜ºþ8ûO�äáÊj4Ä�ôBH4ÓØA»ª ÓÄý´\\ÂQï;(t㢽€8ºò4A*_�M|ÉmM×È°„Ó|' ±yNÑvð6 „- t»øÍj5žÝN´çÄê/ätȘ 㓶‘›¯Y�ýUt@¹$ˆ?F9(Œ'-zB7زžB0 �—¿iATÀÐ{ÿ”Áò—]£fhŠˆ"£G‡?ãdûÍ7ì 'ÛÙèsìKµ‹5‡k§<°9%/‘ 8bÝ@åßìì®4º³¥ Sþ<9-ÊÊH"4h™ }ØBÙŠ–&t±‹+4q$òHu}·4Æ·–ДŽ¨˜Ó«Á†<·HZ-Ü[ž¿üG³Ã’„gQ¥";å5Ô[#¹³7>$6§ÝàfªÀç «¤ÔN™ªò&k>Æ|eu£Û)Í5vŠ°G|fÛ)6Ó,4Ø)>Œh,7ã $Šê‰nı¼Æ„ ®V$ŠZFú'÷Ô}q²Ê ÕzWb"}xöÝö¥33¦~h�/Sl°á±R…œ%B‹HF ·DY/ŒÆ7¦×üOc¥7óWÚç@ JÓú£ 3_—Ó–Üa»df[éôüR }|&᪠ÂÝyž8’-Ð×À=)9Tƒ{T߃�®—¬¿—V\‚Ř]•Äc5ö²ì^ó%â)«|Æs?•éÕæ•ÆÛÛ�æ "Ç3´ç†Cõ¥®ÒU‘(Ho°(¾ƒ$‰²ôBÌ`X¢³¶ƒ¹Õy#7Ýl8,�[EtjÂVµ~_w¡_eæ@b4´çÈF*;¬z—¦B%äÒžóÊã|`èö¼Ä®NžÎ w¸ jhÐÎ4îNµé@z5�„vEãTëmÚÁöæ½sk¢01t‘XÜœ¤~0ô¨7ÏëUÀà!ìúÆ‘Þòª|üå§î ×%%¼krÝN9qƒ0ùávXõ Ì%-÷¹9,\M×¥dê-
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #22 on: January 23, 2006, 10:39:47 AM »
Hi

So far this is working just fine.
Just one thing that downloading images using this do not count towards total no of downloads. Neither it add to the picture download itself.

Is this normal or i am missing something ? 
I m not a  Programmer.
          But
I m a Good Learner.

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]-BETA Whole/part category download
« Reply #23 on: January 23, 2006, 02:10:34 PM »
Thats why its "beta" ;)
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 Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #24 on: January 23, 2006, 04:02:21 PM »
Thats why its "beta" ;)

I was just confirming. No problem to me if it doesn’t.

Still worth to have it.  :)

I hope it will be soon out of BETA stage and who knows we will have few more exciting options with it  :wink:
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #25 on: March 18, 2006, 07:59:39 PM »
First of all  V@no this is such a nice mode that it should be out of Beta soon. (It’s been a long time its still in beta)

Now here is my problem.

I have used "[MOD] Download limit v1" . I used it only to restrict Guest to download 5 images in 24 hours.
Register members can download any no. of pictures. I made changes as u suggested in that thread.

The problem is, when a member uses this mod "Category/Page Download" He get only 5 images in his zip. No matter how many are listed in the page. V@no could u please help me here. This is a "Must Have" mod for me.
I m not a  Programmer.
          But
I m a Good Learner.

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]-BETA Whole/part category download
« Reply #26 on: March 18, 2006, 08:49:04 PM »
1) I dont see the point of having download limit mod and allow them download as many images as they wish by this mod...
2) if you still want to remove restrictions from this mod, then try to reinstall it (this mod only)
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 Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #27 on: March 18, 2006, 09:29:45 PM »
1) I dont see the point of having download limit mod and allow them download as many images as they wish by this mod...
2) if you still want to remove restrictions from this mod, then try to reinstall it (this mod only)

1) I use "download limit" mode to restrict Guests, not members. So it’s like "Be member and get more"

Edited//

I think Re-Instalation of this mod will work fine.

Sorry for Creating Trouble.
« Last Edit: March 18, 2006, 10:32:10 PM by Fastian »
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #28 on: March 25, 2006, 03:43:54 PM »
Hi V@no

Do you plane to make this Mod out of beta?

It’s such a nice mod & need few more improvements.
Like group permission, count towards “image downloads” & “total downloads” etc
Also its working with “Keep track what each user download”.

Do u plane to do it??

Its on my “wish list”  :)
I m not a  Programmer.
          But
I m a Good Learner.

Offline MetallicAchu

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD]-BETA Whole/part category download
« Reply #29 on: May 11, 2006, 12:04:21 AM »
Hey.
V@no, another one well done ;)

I have no idea why, but the MOD decided not to work for some reason, so I tried to change the following code
Code: [Select]
   if ($file_added) {
     @set_time_limit(120);
     $file['file_name'] = time().".zip";
     $file['file_data'] = $zipfile->file();
     $file['file_size'] = strlen($file['file_data']);

to this one:
Code: [Select]
   if ($file_added) {
      @set_time_limit(120);
      $file['file_data'] = $zipfile->send(time().".zip");
      exit;

I suggest that if anyone encounters an error, to try this (be sure to backup download.php, just in case).