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)

buro9 07-14-2004 09:05 AM

* sigh *

OK, These changes remove the word Array and put in the thumbnail data.

In functions_upload.php find the following (created by this hack):
PHP Code:

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

Replace it with:
PHP Code:

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

In albumcp.php, which is the one in the admincp folder, find the following:
PHP Code:

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

Replace that with:
PHP Code:

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

Finally, you might also want to do find this in that file:
PHP Code:

if ($_REQUEST['do'] == 'rebuildthumbs')


And follow it with this, adjusting the number of seconds to suit your needs:
PHP Code:

  set_time_limit(120); 

That last bit simply allows the rebuild thumbnails thing to run for 120 seconds = 2 minutes... because there's no pagination stuff in that script and it will probably time out if you have a load of users to rebuild thumbs for.

Other things you might want to do whilst your here... take a look at this thread: https://vborg.vbsupport.ru/showthread.php?t=66765
And then execute this piece of SQL if you haven't already:
[sql]
ALTER TABLE `customprofilepic` ADD INDEX ( `userid` )
[/sql]

Obviously prepending any TABLE_PREFIX that you use, if indeed you use one.

Any more bugs with this? Probably, so let's resolve them eh? Just report them and there's nothing stopping you lot looking around and trying to figure it out too ;)

Steve123 07-14-2004 09:28 AM

i was in the process of triyng to find out why it was doing the array..

then i got a reply to this thread :)..

it works thanks :)

Malfunktion 07-14-2004 02:46 PM

mine still displays the array :(

buro9 07-14-2004 03:15 PM

Quote:

Originally Posted by Malfunktion
mine still displays the array :(

And you have rebuilt the thumbnails, yes?

Malfunktion 07-14-2004 03:28 PM

correct

kjell 07-15-2004 06:10 AM

It works again :)
Thanks for having a look at this buro9

Alien 07-15-2004 06:13 AM

Fresh install. This definatly needs work. ;)

In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>

buro9 07-15-2004 06:29 AM

Quote:

Originally Posted by Alien
Fresh install, same problem as Malfunktion. This definatly needs work.

In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>

Update Counters?

The Rebuild Thumbnails function for the Album can be found in http://www.example.com/forums/admincp/albumcp.php

If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.

The one in Update Counters do posts and attachments... not profile pics :)

Can you confirm this is what you are running :)

Alien 07-15-2004 06:39 AM

Quote:

Originally Posted by buro9
Update Counters?

The Rebuild Thumbnails function for the Album can be found in http://www.example.com/forums/admincp/albumcp.php

If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.

The one in Update Counters do posts and attachments... not profile pics :)

Can you confirm this is what you are running :)

Sorry for the lack of clarity, it's very late... lol

Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...

buro9 07-15-2004 06:50 AM

Quote:

Originally Posted by Alien
Sorry for the lack of clarity, it's very late... lol

Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...

Cool :)

One more silly request then, could you CTRL + F5 that page to ensure that it's not a browser cache thing... even Firefox still cached the bad results when I finally fixed mine.

If not... then I shall see what else this could be, which might involve you looking for things in your code :)


All times are GMT. The time now is 10:51 PM.

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.01278 seconds
  • Memory Usage 1,758KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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