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)

insanctus 06-09-2003 05:18 AM

I moved my page recently now I get this when try to upload a picture.

Any Ideas?

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

Vivi Ornitier 06-12-2003 01:16 AM

I keep gettin a error.

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

when people are tryin to upload their pics. It gets into the photo album but with just a big X.

I'm using 1.3 and line 5 in that file would be

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

I have gdresize and everytghing. This hack worked perfectly on my old server but i recently moved to a newer one but with the same php 4.3.1 and i just get that error. Can someone help me out herrE?

JamieK18T 06-12-2003 05:28 PM

does someone want to post the code needed to allow users to add multiple pictures? :)

bandersen 06-18-2003 09:28 AM

Thank you for a nice hack. I have installed with no problems.

Looking forward to the multiple uploads! Let me know if you need a tester...

irn-bru 06-26-2003 09:37 PM

I installed this on a other server no problem.

I am trying to install on another server that dont support jpg it works ok with png buth I would rather jpg cause the file size is small and its a more common format.

Any Help Please..on changeing some files to make it work?

GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled

DR?@M W?@V?R 06-27-2003 01:43 PM

*bumporoonie*

Rebel38 07-02-2003 12:28 PM

Quote:

03-23-03 at 11:35 PM Steve123 said this in Post #79
Add Photo To Profile..

I dident add the approval system because i know i will never use it, but its easy to encode if someone needs it..

This is the first time ive modded a hack before, so dont scream at me if im doin it wrong :)

member.php

Just Before
PHP Code:

  
  
eval("dooutput(\"".gettemplate("getinfo")."\");");
  
}
    
// ############################### start aim message ############################### 

Add
PHP Code:

$checkphoto $DB_site->query_first("SELECT comments,visible FROM memberphoto WHERE userid='$userinfo[userid]'");
 
 if(
$checkphoto){
            
$profilephoto "<img src=\"memberpics/photo$userinfo[userid]_$userinfo[photonum].$userinfo[phototype]\">";
  
        } else {
            
$profilephoto "$userinfo[username] hasen't uploaded a photo yet.";
    }

    if(
$checkphoto['comments'] != ""){
        
$photomessage $checkphoto['comments'];     
    } 

Then in your getinfo Template put
Code:

$profilephoto<br> $photomessage
Where you want the photo to appear..


Thanks Steve123, I have been waiting for a long time for someone to come up with some code to do that,.
Is there a way of only having the thumbnail pic in the profile instead of the full pic?

Thanks again
Rebel38

mackers8923 07-02-2003 02:16 PM

I have just checked with my host and they have said that GD is installed on my server but that it is an earlier version.

They also said that I can't have it upgraded because the earlier version allowed for more file types.

Looks like I'll have to wait around until they decide to upgrade the system.

Tenpit 07-04-2003 12:57 PM

Quote:

07-02-03 at 04:16 PM mackers8923 said this in Post #158
I have just checked with my host and they have said that GD is installed on my server but that it is an earlier version.

They also said that I can't have it upgraded because the earlier version allowed for more file types.

Looks like I'll have to wait around until they decide to upgrade the system.

I have an earlier version of GD also. I changed a couple of bits in gdresize.php and fingers crossed, so far it seems to work.

I offer no guarantee's, but if it helps someone my gdresize.php is attached.

mackers8923 07-04-2003 10:41 PM

Thank's a lot. I'm just going to upload it now and give it a go!!!!

Fingers crossed<><><><><><>


All times are GMT. The time now is 07: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.01367 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)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