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)
-   -   vBGarage v3.1.1 (now with GD-Lib support!) (https://vborg.vbsupport.ru/showthread.php?t=63681)

magnus 04-14-2004 11:51 AM

Increase Thumbnail Image Quality (v3.1.1 and older)


Quote:

Originally Posted by Envy-UK
Have you found anything relating to the quality of the thumbnails?

Actually, yes.

In vbgarage.php:

FIND:
PHP Code:

    imagecopyresized($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file'])); 

REPLACE with:
PHP Code:

    imagecopyresampled($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file'])); 

That should increase thumbnail quality quite a bit. :)

DaveLogic 04-14-2004 01:37 PM

It would be nice,if possible to have the garages listed in alphabetical order instead of submitted order on the main page..

Envy-UK 04-14-2004 01:41 PM

Quote:

Originally Posted by DaveLogic
It would be nice,if possible to have the garages listed in alphabetical order instead of submitted order on the main page..

Indeed. Would it also be possible to remove the '#' column?

Edit: Nevermind, I figured out.

magnus 04-14-2004 01:49 PM

Quote:

Originally Posted by DaveLogic
It would be nice,if possible to have the garages listed in alphabetical order instead of submitted order on the main page..

Hrm. Being as only the userid is stored in the vbgarage_users database, it wouldn't be very simple, unfortunately.

spence2 04-14-2004 02:19 PM

For an alphabetical listing...how about adding a table to the members list with a conditional link to their garage (if one exists)?

magnus 04-14-2004 02:43 PM

Quote:

Originally Posted by spence2
For an alphabetical listing...how about adding a table to the members list with a conditional link to their garage (if one exists)?

You could do that, too. Or, you could add a 'username' field to the vbgarage_users table and just stuff the username in there as well. That way, it's all inclusive into a single table.

magnus 04-14-2004 02:54 PM

Alphabetize Garage List


Actually, I take that back. Yes, you CAN alphabatize your listing very easily using LEFT JOIN. :D

In vbgarage.php:

FIND:
PHP Code:

        SELECT FROM " . TABLE_PREFIX . "vbgarage_users ORDER BY userid ASC LIMIT $pos,$perpage 

REPLACE with:
PHP Code:

        SELECT vbgarage_users.*,user.username FROM vbgarage_users LEFT JOIN user ON vbgarage_users.userid user.userid ORDER BY username ASC LIMIT $pos,$perpage 

Done! :)

White Knight 04-14-2004 03:21 PM

nice upgrade.. im going to hold off untill the next one i think :) or when i get bored at work (damn busy day) nice job magnus

gibgib 04-15-2004 10:55 AM

My host is using "GD Lib 1.6.2 or higher" & as a result, all new image additions are not working (X) on the latest vb garage releases.

What would I need to do to take out all thumbnailing but keep the latest features you have added?

How hard would it be to add support to earlier versions of GD-Lib?

I am doubting the host will upgrade, & the current version is thumbnailling posting image attachments ok.

SVTOA 04-15-2004 11:03 AM

Quote:

Originally Posted by magnus
Increase Thumbnail Image Quality (v3.1.1 and older)




Actually, yes.

In vbgarage.php:

FIND:
PHP Code:

    imagecopyresized($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file'])); 

REPLACE with:
PHP Code:

    imagecopyresampled($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file'])); 

That should increase thumbnail quality quite a bit. :)

Yet another nice fix. :D Makes quite a difference!


All times are GMT. The time now is 11:47 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.03602 seconds
  • Memory Usage 1,769KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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