vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Member Album 2.0 (https://vborg.vbsupport.ru/showthread.php?t=63733)

Weasel 08-25-2004 01:00 AM

Quote:

Originally Posted by Zelda-King
That hasn't fixed it. Should "$thumbnail =" appear twice like that?

That's because there is a second fetch function call in albumcp.php you will have to fix. There are also some various bugs relating to TABLE_PREFIX in both album.php and albumcp.php that will cause MySQL errors.

I have modified this hack to work with 3.0.3 and have confirmed it working on a clean installation. See attached.

And BTW, that syntax is pefectly legal in the same way that $foo = $foo + 3; is legal.

Zelda-King 08-25-2004 01:06 AM

Excellent! Especially from someone who hadn't even installed the hack initially. Are there easy steps to upgrade or are we best off going through the whole installation?

Ted S 08-25-2004 01:18 AM

Weasel,
using your files alone plus your change from your previous post, I still get broken thumbnails, is there anything we need to change in the other portions of the hack (i.e. in the normal vb files)?

Thanks

Weasel 08-25-2004 01:33 AM

Quote:

Originally Posted by Ted S
Weasel,
using your files alone plus your change from your previous post, I still get broken thumbnails, is there anything we need to change in the other portions of the hack (i.e. in the normal vb files)?

Thanks

did you make sure to rebuild thumbnails in the verify section after you made the two $thumbnail = fetch... changes? There should by instances in both inlclude_upload.php and albumcp.php

Otherwise those should be the only two changes you have to make (except in the case where you use a table_prefix in your database). Also try pressing ctrl-R to do a hard-refresh of your album.php page.

If you go into your database using phpmyadmin and go to customprofilepic and browse, you should be able to see the raw thumbnail data. If you see "Array" that means you have not yet rebuilt the thumbnails using the two thumbnail code changes.

Zelda-King 08-25-2004 01:38 AM

I get broken thumbnails too and I redid the whole hack (not the database tables though). Then again the Rebuild Profile Pic Thumbnails function always worked strange for me even before the upgrade.

Having said that, it's insanely late here. I'll reserve final judgement until I give this another go tomorrow morning.

Weasel 08-25-2004 01:40 AM

Quote:

Originally Posted by Zelda-King
I get broken thumbnails too and I redid the whole hack (not the database tables though. Then again the Rebuild Profile Pic Thumbnails function always worked strange for me even before the upgrade.

Can you go into your database and see what you have in your customprofilepic table under profilepicdata?

Velocd 08-25-2004 01:56 AM

From the readings, this hack runs utterly buggy on 3.0.3, most likely due to function changes or my code is just vB deprecated. I still hope to have a bug fix release by the end of this month (it has yet to be worked on), but my schedule is crammed so I'm not entirely sure it's possible.

Weasel 08-25-2004 02:04 AM

I have made a couple of other changes in my upload in post #281. It fixed thumbnails not displaying in the admincp because of the &s=y at the end of the img src url (not sure what that's for?)

Anyway, zelda-king you can try re-uploading the two php files and rebuilding..see if that works, because I have it running fine on 3.0.3 and those are the files im using.

Ted S 08-25-2004 02:17 AM

Wierd... the hack worked (I am using the files you attached) but the admin script was still calling &type=pthumb which does not work. I have changed the admincp and the output template and will test a bit more but so far so good. Thanks again!

Ted S 08-25-2004 02:20 AM

Odd... I seem to be showing a few avatars instead of profile pictures now, any idea why?

Weasel 08-25-2004 02:38 AM

http://www.almostsmart.com/forums/al...date&order=asc :)

MissKalunji 08-25-2004 06:07 AM

Quote:

Originally Posted by Weasel


What did you do to fix it caz i still have the same problem

its calling the : pthumbn

Still not working......did everything.... :ermm:

if i go in my phpadmin and custom profile ... it shows a bunch of chararacters no array........
I saved and rebuild from the option in vb album and also the attachemeht

i redid all the steps and it still shows the none available and the album.php also.....


Still nuthing :surprised:

Zelda-King 08-25-2004 10:39 AM

Quote:

Originally Posted by Weasel
Can you go into your database and see what you have in your customprofilepic table under profilepicdata?

Well this is from one username:
Code:

????\0JFIF\0\0\0\0\0\0??\0>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality\n??\0C\0                \n \r \Z\Z $.\' \",#(7),01444\'9=82<.342??\0C                        \r\r2!!22222222222222222222222222222222222222222222222222??\0\0d\0X\"\0??\0\0\0\0\0\0\0\0\0\0\0        \n ??\0?\0\0\0}\0!1AQa\"q2???#B??R??$3br?        \n\Z%&\'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz???????????????????????????????????????????????????????????????????????????\0\0\0\0\0\0\0\0        \n ??\0?\0\0w\0!1AQaq\"2?B????        #3R?br?\n$4?%?\Z&\'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??????????????????????????????????????????????????????????????????????????\0 \0\0?\0??[fʁB?\0???h?HzRQH.T???Ӵ뛹\0?\'? ???O??\'?}-?????¶????m H?h$?|??=)<s5?kkf??????PO\\?Q\\5?\Z??<Zj????%??)#?l?????\'?9?˵???J??????!??5%xe???K??W?.?p.?;????OP?8潃M??0?u?o?a???{??g?Tg?-5??E4{??Z)( ???\0)JZ?յ?+D?[R???w?Wo??\0?O?@%??G?uY??U?BD??C`)?⸩?????fۆd\0?琣?ι?j???Mv???\"?fPIU uf<?OºO\nE.?{?H?K<?Y?p? sϰ???5??q~?=???\0??\Zţ?jf?\0]????9????C??ky??%U?? ????\\????c?(~????Nޥr??t?OR????d?l?$+?{??8???t??$FI??1??Fk???<???aD?#?????b?剤(?G??F??C??\Z???Q?Ee??m%??K!???`NG??kR?N?aESC_9?@???V?$vi/,?p??I(?e?6??=???Ҽ???|{??????p??ғ?????J??h?m?$Kg???????:\\?,Ϲ?}?{/`?*???4???c??fe??I??IU>????qVGi/?4?lc?Vنd\n}?1|k Vm\n??%??3??W<x|?U?C6?\r????|?£?n????-3_T????ݱ$ă+,I?{u??<u??_ǩ뗉$ے.+?)\0?ױ??????L^d+?HU?`O?Q??j[MG??-?(? ???gv?{g\'?+8N??s??;?S???ɍԍ??????l \n??--cv%?F?$??8??A??V???9XQE?!?_??[?\0?E???bv?^2?uX??)?+ڼO??????? <p????x_Ԋ?? N??????Jc#??\r ????|THh?i.N???wD?$Ȋ??8<֓*.Y?P?B?=?1??BC}?\0g??#???c??N[E??;\"\03???Z??????`KiJʟ?Lp;??}??ok:??\"?BH??cGV        ?d??ܟ|wƹ?^?N\Z?????\\????????N????&????&?῵??+???\r??Q?^?Wr?<m\Z?7?a???ZLv?jr?%??T????|?d?6q^?r֓?U&N??U??????\n?#?x:7i<R?Q??????}??c??&?κ??+ ??\\?w?g??+QEYEP????>?wyr8???H?;        m?h?\0妛??Mq??q?ǜ?)#?@:?Y?ڕ???з?P?>?H????\0????????6??b???m??g?ƧdQ?!bK?????jw!ey ;??F?o? ???V??k????F?v\0?8?@?+?ғN?V)??k?Al:??:c֜?Z-^?????q3?Ol?ͤ?<???\0?y5c?zp7?t+&??Ipc?(??a?^x??k??Y&Ҽ?ʯ??J?}&???k????x?f???n9ϯ?[OB?m??e????K A??-?r[?9?% ?k??sk~?V??K??g%??L????+???c?8???<Q=?+????],??? a+?\0?GO????x/?V?k?+??\r?ֈ|?Q7F?Nx?ws?tA驔??F?Ə???=mo3mp???_??kO?i?ʯ-?!???{Vbj>???F?O??Pщ??a?sT????[??Y?|~???Q?q????V?$?U?(`A??+7E????^\\G6?\nFW\0 w&?`x??1?c}둗???u# (???<׵?????T\n?\0??FO?My^?????`v[?$???\'??^$?}??:????$ \">?x_Ԋ?:\r??5(????un???R2?!?\'???՘???F?6?P?IU???SŠ4???cǧ??kF,\"?\nɽKH??֛?hn\0YQ??\r?=??#??h\'x?        ? ??{?o?59[pX?)$?+??+??5??9-??.Ll0~????Zz?vّ??PD??*c??!??n?xc???>?ּ???\0 >??????8%??g!X??=???zW??????a???5?gq?t#??#???Eu?}B\'KY$????r?????}T[{?s?#?[R?\r?Z?q<Pn??????t?l?g$\Z????0?+ ,??QXn$??#o?Y?9?-??iu?h6???w2\0?O???~?^?/ß???׋u5?,?Ѯ?\0?s???5t?n록?;Z(??\0??\0?x???????????????4?HA?Kp7?\\@??\0?Ve????P:?????z?֯??????ݴ???QY\"?>??Q??*???$?????שh C?(N????Z(?P??t6?Xq?ה?b?b?t??Ty??,nF\0?2?E4?!L?<??_I???.w??\\x%?w??ׯn=??ln$?U???e ?}?(??zMX_e??QEnf??
Quote:

Anyway, zelda-king you can try re-uploading the two php files and rebuilding..see if that works, because I have it running fine on 3.0.3 and those are the files im using.
Yes I even turned off my firewall, cleaned my cache, hard-refreshed and redownloaded then uploaded album.php and albumcp.php again, redoing the functions_upload.php edits. There appears to be nothing wrong with functions_upload because when I rebuilt attachments and uploaded a test one, that worked. I uploaded a profile pic of me and that's actually showing in my profile now. But it doesn't show in the album or in the albumcp. Either nothing appears or there's a HUGE broken image. The case is different from user to user.

Edit: I've fixed the broken image problem by temporarily using an old albumcp file, processing the thumbnails then using the new file again, so that's ok. It still doesn't show the images though.

On another note, I did some fiddling around and noticed when someone uploads a profile pic it shows in their profile (this is with 'picture moderation' settings enabled) but when you approve it the image no longer shows in their profile. I'd mentioned disappearing profile pics before but I've only just realised the condition under which that happens.

Edit 2: After some more fiddling in the admincp I got the odd huge broken image again, though this time it only shows on the profile page, not the cp. After more messing around and uploading it was gone again, so that looks temperamental.

Weasel 08-25-2004 05:23 PM

out of my 140 profile pictures I got about 10 where the thumbnail was corrupted. This seems to be some sort of problem with vbulletin's thumbnail generation function or just errors with the image itself. After I re-saved the image in photoshop then it generated correctly.

If you have the "random" characters in your database then the thumbnail should be visible by going to /forums/image.php?u=userid&type=pthumb

Zelda-King 08-25-2004 05:26 PM

There's nothing wrong with my thumbnails. They work in attachments just fine. The difference between me and you is: on your board you can see the thumbnails in the Album hack. I don't. Just the members are listed.

I'm using your code:

http://www.gamercrossfire.net/bb/album.php

Now, though I have quite a few hacks installed, as far as I recall, none of them modify functions_upload.php.

Edit: For the record - I've even tried redoing the hack on virgin vBulletin PHP files. There was no difference.

MissKalunji 08-25-2004 08:42 PM

n e one?? do i have to change n e thing in the php files besides the functions_upload????

and the sql???

What am i doing wrong :surprised:

Zelda-King 08-25-2004 08:54 PM

Quote:

If you have the "random" characters in your database then the thumbnail should be visible by going to /forums/image.php?u=userid&type=pthumb
I have 'random' characters in the database but if I go to the URL I just get the message: "The image ?http://www.domain.com/forum/image.ph...d&type=pthumb? cannot be displayed, because it contains errors.".

Here's what I have in the thumbnaildata table for the image I got that error message for:
Code:

????\0JFIF\0\0\0\0\0\0??\0>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality\n??\0C\0                \n \r \Z\Z $.\' \",#(7),01444\'9=82<.342??\0C                        \r\r2!!22222222222222222222222222222222222222222222222222??\0\0d\0d\"\0??\0\0\0\0\0\0\0\0\0\0\0        \n ??\0?\0\0\0}\0!1AQa\"q2???#B??R??$3br?        \n\Z%&\'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz???????????????????????????????????????????????????????????????????????????\0\0\0\0\0\0\0\0        \n ??\0?\0\0w\0!1AQaq\"2?B????        #3R?br?\n$4?%?\Z&\'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??????????????????????????????????????????????????????????????????????????\0 \0\0?\0??L!???{T??@Q? pE8K9B??j??r        ??e??4?зG_nh??;K9f??ƈY??\0 } +{P??4?%??b? +??+???\"?_°[??\\?ᱸ?{W??\0?x?[????1?\"=\0?>?????ql???{?#??W\\*J?̝8?Z???}D?t\n?}?\'??k??׌4?\08???`?\'!?\0?5??i??4DUdH?;?8???[?\n?;-J?]b&.??ɷ?B2??\0?\"??OSf????v?`n*???f)e\\v\r[RRQib#P???2`rj        b\07???]?r31??L?????? ??w+\\M0#?J ?{?q[??&*??X?&L???+X,ĨXp3??V^???\'?\'??[?7W-so??e?X}EEq?[??*g?>l?4??y_??=???8?n?K??#x`RAu?s׵|?q ??I@Vb@?i?*:?rԫ\'?w????v??????EG?m???<s???E?i??%?\r Kqm??2p7^?Z??r\n?z???k???h??????/#??S?V?Nm?3cš\rֳ??Kf?;dT?0ÿ??+?e???&?O:?b?u?qՇc??*????4?ɯ?0???k{\Z_?:??u?N`+?\nB?\0??ɪ獛??FIYj?z.??O?M? ??,?????ҵ?3??O???I?|??v7? s??^???P?????L<????f=????\0ë?J??W????n?zo???Ս?G莯??+?o??1?>+???H`I ?!w*????Q??3?a+???o?7?,ۃ?kq??????+??X?-? n?N~??o?g????ćm?j?!?????»+?]j??m\'?? ?D?? ??)?Z[??x9????\0Æ]?ZM???\\d~u??~+f?? ??G?S+?֕H7 Ca\nG?H?{?EI?\"a?e?B?+-M??+?:?#?Z??,????\\d?ӥ|??{???K&?u?????\r???4???j?dn\"#r???Һ??r??Éi4s?V?u?jqX???\\H~D??޽?F?u??|%????9???+????{??n?C?-mf?b}?Z8p?????ۊ???Lگ?<?p?c (l???L????t-??l`?jzk????6?UY ????]\'?M?????B?p?? 3Տ??q3j2?4??[???n ??\ZKF\r?aպs?R??ғ?????Jz??k??[[??Ti???l???w??u:.??A ^k??7?Ԅ?N6 ?@??^u????y?f?`v?o??9_Kk?I ??ѱ??p??4?М=?vo L?[??C_\\K?g?^??s2?(Q?? qY)tt?b?m?2?H??????F}^??D?C%????N?$? u;?=~?k?~?׵???ь?03?V?R}?[P????Fʰ?V?z~#??????t?GW}???(?\\`???#?z?]??\rV?Z?~aа#????Zu֊?MͬsY?F\'???◁ǀ?hn?Kٖ?蝱?;?a?9?=*??u9??iM}???,q?=???Q_\"Y|I?E?????^??\'???#???^???D???w^c??+??~????ۇ?aK?o+v?<?fӬb??#??W$A?? ?ʶ???lag|?\\??]h7?b?3???n?B????S????Å`:?k[??|vZ???{+???D!???=3Q?y/0??;f?Ĭ?v\0w8#?\0?j\\??K?d?a??Q??0        8?Xb?i?\'v?ܾ??        ??bq~#?m#S??c?D?+*?H?\"?D~]????B7?r*I??P?K?ݝ??I5???졏=??YMr?S??/g.hl˯?5ě??N?@S#p?ƛ-?I?H?\0?t??? ???V4???Q?9c??-?>??NJ*??nM?u?f??)?h??[??̇\0a???>??| b?}???w?#??]۲??\0Ux??\0?浚+T-mJ ?H?@???5?OV?6~|?%l??Is?????=)?Y?L??n?????4{g{m29u{???~?,????y??>#??Ķ&?P?`??f ?@s?x!??V?????d\\Y.?v_???5??Y??t????A?h??4T??<;\"???Mgy$!K??+??ۜ?ŧcҾ)j??k??+~??Cwr ?}???5ļp?7=}z?ƽ_[?r5hn??O.?s?8;??s?ז?.Ki?s??6?_q\\??#?^?????VqF??+Đ??j????\"C!?I?#?x?W1+?2????\Z?;?Է?i??f#К?>1X+_<???ղ????????@??}?*???Ƣ?~d܂c9??\0??<?YN2?Z???m?????\0+oK??/0|?1-???x??)?.??Oui???&~?        ??ZZ????_+?Q?a?ݽ??M\'S???Z?c??y7oq???M??Y?\' ???\Z?l\"???>??s?HNk\n??,`???C*mu?d0?qU[ʺ?R?I???ܧ?z???Z?K??[;k}Q?. d?iOD?w^??|=????ܴ\Zj8?$????d|=??È?Z?Lo????{e??\r?J??5?T?%;%??V?ZpM9?G[{????!Z??ɢ??z?sE/m?r{I???m?漣?~??ēj6?f??K?(????V?m?Xd?Y?XĒyɮ?.?m\n?RG??e???ҩ??k+????j?<(??߷?A?|?0????????}-V\ni????Mv1;W??ٮS?x?䳶O?H???k?@I??]?????Y???k?(?4???0*H=i5???Ǧko??q+?a?-r>??M]?5?^y ??j*???ҋQ????xԉ?gr+?<6??P_???5??9Y?9??z׆.?t??z?kF{???&???Zˁ?\rf???W-?Ԓg1t??Nz+gݒ??sɢ???t@?ִ?}F??0`?T??p,?,9??E??s\0?#G-?f?8?{~ ?r???Ee?\rWe/?\'????3???+t??)??0O֩Ep????7Z????$C7|\"???@[?ξ?Д}??$QEyxω?? ?+I?:?E?y?????
.
It has the same kind of thing in the profilepicdata table too but that won't paste here properly.

trackpads 08-26-2004 09:23 AM

Well not sure what the heck is wrong. Some will show up and some wont. I made all the changes above and even removed the extra 'y' stuff at the end. Mine is one of the ones that will not show up so I even deleted and uploaded a new one. No luck.

-Jason

http://www.trackpads.com/forum/album.php (go to the 'G's to see working ones.

MissKalunji 08-27-2004 10:36 PM

What did ya'll do to fix it???

trackpads 08-28-2004 03:43 AM

Quote:

Originally Posted by MissKalunji
What did ya'll do to fix it???

I want to know too!! This hack is awesome if I can get it to work!!

Slynderdale 08-28-2004 10:58 AM

In vBulletin 3.0.3 the thumbnail code changed a bit so invalid thumbnails were made.

If you already installed this hack and Weasel's update:
( Weasles update can be found here: https://vborg.vbsupport.ru/showpost....&postcount=281 )
In the file path/to/forums/includes/functions_upload.php, find
PHP Code:

      if ($thumbnail)
       {        
         
$image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail)."'";
           
$image['insert'] = "'".$DB_site->escape_string($thumbnail)."',"

Replace that with:
PHP Code:

      if ($thumbnail)
       {        
           
$image['update'] = ", thumbnaildata = '$thumbnail'";
           
$image['insert'] = "'$thumbnail',"

and then in admincp/albumcp.php find:
PHP Code:

         $DB_site->query("
             UPDATE " 
TABLE_PREFIX "customprofilepic
             SET thumbnaildata = '" 
$DB_site->escape_string($thumbnail) . "' 
             WHERE picture_id = 
$image[picture_id]
         "
); 

and replace it with:
PHP Code:

         $DB_site->query("
             UPDATE " 
TABLE_PREFIX "customprofilepic
             SET thumbnaildata = '
$thumbnail
             WHERE picture_id = 
$image[picture_id]
         "
); 


indiamike 08-28-2004 12:53 PM

THANK YOU Slynderdale!!

Fixes applied and it works.

Thank you, thank you, thank you. :) :) :)

http://www.indiamike.com/india/album.php

For those applying these changes make sure that you empty your browsers cache or you may not see the results immediately.

Thank you again it works dammit....it works :)

Mike

Onkel_Tom 08-28-2004 02:02 PM

Many thanks to Slynderdale !
your fix has done it ;)

Ted S 08-28-2004 05:07 PM

Awesome! Out of 1100 photos atleast 85% built properly with this new code which is a lot better than 0%!!! Hopefully the hack creator can include this all in an update along with some system to have multiple pages in the acp for verrifying photos. Thanks!

Zelda-King 08-29-2004 11:12 AM

Just a note to say the posts I'd made about not seeing other's profile pics' are void now I've discovered what was going on and it had nothing to do with this hack.

Slynderdale 08-29-2004 01:10 PM

Working out a couple bugs if you have it so attachments are saved to the file system and writing some code that lets you rebuild the album thumbnails.

Make my above fixes, that will fix images from being escapes twice. The image gets escaped already if you have it so your attachments are saved in the MySQL data base. This would cause errors with the thumbnails. The thumbnail doesn't get escaped when you save the files to the file system so this code fixes that and also fixes a small bug if theres an error with the thumbnail.


After you installed this hack and weasles fix,
find in path/to/forums/includes/functions_upload.php:
PHP Code:

      if ($type == 'profilepic')
      {
          require_once(
'./includes/functions_image.php');
          
          
$image['name'] = $upload_name;
          
$image['tmp_name'] = $filename;
          
          
$thumbnail fetch_thumbnail_from_image($image);
          
$thumbnail $thumbnail['filedata'];
  
         
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
         
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
          {
             eval(
'$error = "' fetch_phrase($imageerrorPHRASETYPEID_ERROR) . '";');
              
$errors[] = array(
                 
'filename' => $attachment_name,
                  
'error' => $error
              
);
          }
      } 

and replace it with:
PHP Code:

    if ($type == 'profilepic')
      {
          require_once(
'./includes/functions_image.php');
  
          
$image['name'] = $upload_name;
          
$image['tmp_name'] = $filename;
  
          
$thumbnail fetch_thumbnail_from_image($image);
          
$imageerror $thumbnail['imageerror'];
      
$thumbnail $thumbnail['filedata'];
  
      if (
$vboptions['attachfile'])
      {
        
$thumbnail $DB_site->escape_string($thumbnail);
      }
  
         
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
         
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
          {
             eval(
'$error = "' fetch_phrase($imageerrorPHRASETYPEID_ERROR) . '";');
              
$errors[] = array(
                 
'filename' => $attachment_name,
                  
'error' => $error
              
);
          }
      } 

The rebuilding of the album thumbnails code is almost done.

MissKalunji 08-29-2004 01:32 PM

Quote:

Originally Posted by Slynderdale
Working out a couple bugs if you have it so attachments are saved to the file system and writing some code that lets you rebuild the album thumbnails.

Make my above fixes, that will fix images from being escapes twice. The image gets escaped already if you have it so your attachments are saved in the MySQL data base. This would cause errors with the thumbnails. The thumbnail doesn't get escaped when you save the files to the file system so this code fixes that and also fixes a small bug if theres an error with the thumbnail.

After you installed this hack and weasles fix, find:
PHP Code:

     if ($type == 'profilepic')
     {
         require_once(
'./includes/functions_image.php');
         
         
$image['name'] = $upload_name;
         
$image['tmp_name'] = $filename;
         
         
$thumbnail fetch_thumbnail_from_image($image);
         
$thumbnail $thumbnail['filedata'];
 
         
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
         
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
         {
             eval(
'$error = "' fetch_phrase($imageerrorPHRASETYPEID_ERROR) . '";');
             
$errors[] = array(
                 
'filename' => $attachment_name,
                 
'error' => $error
             
);
         }
     } 

and replace it with:
PHP Code:

   if ($type == 'profilepic')
     {
         require_once(
'./includes/functions_image.php');
 
         
$image['name'] = $upload_name;
         
$image['tmp_name'] = $filename;
 
         
$thumbnail fetch_thumbnail_from_image($image);
         
$imageerror $thumbnail['imageerror'];
     
$thumbnail $thumbnail['filedata'];
 
     if (
$vboptions['attachfile'])
     {
       
$thumbnail $DB_site->escape_string($thumbnail);
     }
 
         
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
         
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
         {
             eval(
'$error = "' fetch_phrase($imageerrorPHRASETYPEID_ERROR) . '";');
             
$errors[] = array(
                 
'filename' => $attachment_name,
                 
'error' => $error
             
);
         }
     } 

The rebuilding of the album thumbnails code is almost done.


IN wich file should i replace?

Onkel_Tom 08-29-2004 01:44 PM

It's in file /includes/functions_upload.php

Slynderdale 08-29-2004 01:45 PM

Quote:

Originally Posted by MissKalunji
IN wich file should i replace?

Oops, I'll update my above fix, its:
path/to/forums/includes/functions_upload.php

Zelda-King 08-29-2004 05:46 PM

I tested the fixes. Just to confirm they seem to be running ok on 3.0.3.

58sniper 08-30-2004 02:25 AM

Ok, I still can't get this to work. I originally had the problem with a clean install on 3.03 of it showing the avatars.

I've uploaded the two updated files, and applied the changes from posts 301, 306, and 310. Now, I get broken images, with the URLs being something like
http://www.mydomain.com/forum/image.php?u=1&type=pthumb

What am I missing here?

Slynderdale 08-30-2004 02:07 PM

Another small bug fix. This is a small fix for those who are storing attachments in the file system. This will cause thumbnails to be rebuilt inccorrectly from albumcp.php.

Note: Install Weasles fixed files and my updates above first.

In admincp/albumcp.php find:

PHP Code:

$thumbnail fetch_thumbnail_from_image($fileinfo);
$thumbnail $thumbnail['filedata']; 

and add under it:

PHP Code:

if ($vboptions['attachfile']) 

$thumbnail $DB_site->escape_string($thumbnail); 



Slynderdale 08-30-2004 02:14 PM

Quote:

Originally Posted by 58sniper
Ok, I still can't get this to work. I originally had the problem with a clean install on 3.03 of it showing the avatars.

I've uploaded the two updated files, and applied the changes from posts 301, 306, and 310. Now, I get broken images, with the URLs being something like
http://www.mydomain.com/forum/image.php?u=1&type=pthumb

What am I missing here?

Try rebuilding the picture thmbnails using admincp/albumcp.php and see if that fixes your problem, if not, PM me the link to your album.

Pseudomizer 08-30-2004 03:33 PM

Hi Slynderdale,

could you please create one file where you enter all your and Weasles changes? This is getting weird now and too many people describe too many different situations.

Could this be done please?

And the best option would be:

Option 1: For DB users

Option 2: For Filesystem users

Thanks in advance.

Cheers,

MissKalunji 08-30-2004 06:04 PM

Quote:

Originally Posted by Slynderdale
Try rebuilding the picture thmbnails using admincp/albumcp.php and see if that fixes your problem, if not, PM me the link to your album.



IT works!!!!!!!!! thank you

[high]* MissKalunji click install[/high]

MissKalunji 08-30-2004 06:38 PM

Where do i go to change the size of the pictures???

PitchouneN64ngc 08-30-2004 08:43 PM

Quote:

Originally Posted by MissKalunji
Where do i go to change the size of the pictures???

You can change the limit size of profile pictures in each usergroup.

58sniper 08-31-2004 12:16 AM

Quote:

Originally Posted by Slynderdale
Try rebuilding the picture thmbnails using admincp/albumcp.php and see if that fixes your problem, if not, PM me the link to your album.

Okay, looks like this was some rogue caching issue. Once I got sorted out, it wsa working fine. Very nice hack!

MissKalunji 08-31-2004 04:44 PM

Quote:

Originally Posted by PitchouneN64ngc
You can change the limit size of profile pictures in each usergroup.


Thank you :nervous:

Slynderdale 08-31-2004 06:04 PM

Quote:

Originally Posted by Pseudomizer
Hi Slynderdale,

could you please create one file where you enter all your and Weasles changes? This is getting weird now and too many people describe too many different situations.

Could this be done please?

And the best option would be:

Option 1: For DB users

Option 2: For Filesystem users

Thanks in advance.

Cheers,

The fixes I've been posting work in both DB and Filesystem users. A couple fixes were added mainly for filesystem users and DB users shouldn't worry about them unless they plan to use the Filesystem in the future. Wanted to make the fixes compatible for both users. Also I'll uploaded a zip file of all my fixes and edits.


All times are GMT. The time now is 01:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01940 seconds
  • Memory Usage 1,952KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (10)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete