vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Member Photo (https://vborg.vbsupport.ru/showthread.php?t=49565)

mbaskett 03-06-2003 06:22 PM

Quote:

Originally posted by klunderj
Just installed this hack.. took a while. Then I realized my system is hosted on a windows box and is not capable of running GD. Well, I modified some of the scripts and got the members photo album to work, just couldnt use the thumbnails. Modified gdresize and member.php

Gonna go click on install now

Windows can run GD... just install the distributable version of PHP 4.3.1 is avaiable now, edit the php.ini to remove the comment line from

extension=php_gd2.dll

Download the PHP zip for windows (not the installer package), and extract php_gd2.dll into your PHP directory... It'll work like a charm.

Mike11212 03-08-2003 02:00 AM

be cool if u could add a bio with this

dv6cougar 03-08-2003 01:52 PM

awesome job!

i like it so far, having a few problems biggest one woudl be

PHP Code:

Fatal errorCall to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9 

but I asked my host to install the GD 2.0 now, to make sure we have it, so i bet that's it


very nicely done

installs.... :)

i'm gonna see if i can rendar this one to use a full gallery

dv6cougar 03-08-2003 09:04 PM

ok still no luck!

some body help me out please :(

thanks alot! the program is installed and i did the mod 3 times making sure i had done teh steps and all was done :(

here's the script for thsoe whoe have not seen it...

PHP Code:

<?php



function createthumb($name,$filename,$new_w,$new_h,$quality){

    
$system=explode(".",$name);

    if (
preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);}// LINE 9

    
if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);}

    
$old_x=imageSX($src_img);

    
$old_y=imageSY($src_img);

    if (
$old_x $old_y) {

        
$thumb_w=$new_w;

        
$thumb_h=$old_y*($new_h/$old_x);

    }

    if (
$old_x $old_y) {

        
$thumb_w=$old_x*($new_w/$old_y);

        
$thumb_h=$new_h;

    }

    if (
$old_x == $old_y) {

        
$thumb_w=$new_w;

        
$thumb_h=$new_h;

    }



        
$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);

        
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);



    if (
preg_match("/png/",$system[1])){

        @
header ("Content-type: image/png");

        @
imagepng($dst_img,$filename);

    } else {

        @
header ("Content-type: image/jpeg");

        @
imagejpeg($dst_img,$filename,$quality);

    }

    
imagedestroy($dst_img);

    
imagedestroy($src_img);

}



?>

line 9 is throwing this error

PHP Code:


Fatal error
Call to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9 


Velocd 03-09-2003 03:08 PM

imagecreatefromjpeg() is a GD2.0 predefined function, and if this is coming up as undefined, then you have an error in your GD installation, or maybe JPG support is not enabled for GD.

Do as I have instructed to a user in this previous post:
https://vborg.vbsupport.ru/showthrea...911#post360911

Then make sure JPG/PNG is enabled, and that PHP on the server is being started with GD support.

colby 03-10-2003 03:49 AM

:cry: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/**/public_html/forum/gdresize.php on line 5

Velocd 03-10-2003 04:19 AM

Colby, according to the link you sent to me of your Phpinfo info page, there is no reference whatsoever of GD installed. I would inform your host about this to insure that they have absolutely installed it. you are running PHP 4.2.3, also, so it does not come pre-installed with it.

colby 03-10-2003 04:25 AM

I am good friends with my host, and I was wondering if you could tell me where i could tell him to get this GD thing for his servers, please?

Velocd 03-11-2003 01:29 AM

You can download GD from http://www.boutell.com/gd/
(just search "GD library" in google)

Xyphen 03-11-2003 11:23 PM

Possible to display the member photo in their profile?


All times are GMT. The time now is 09:15 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.01481 seconds
  • Memory Usage 1,760KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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