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)
-   -   Signature Stats v3.04 (https://vborg.vbsupport.ru/showthread.php?t=65361)

SaN-DeeP 05-24-2004 07:21 PM

Quote:

Originally Posted by DWard
Try the latest version to see if that works. Go pack to the first page, just updated to version 2.02.

Also the online user count is fixed.

alrite i updated info
now i am gettin this error

Fatal error: Call to undefined function: imagettftext() in /home/sandeep/public_html/forums/signature.php on line 247

sorry for bugging you

Sandy...

ranger2kxlt 05-24-2004 07:22 PM

imagettftext() i get this error any help?

DWard 05-24-2004 07:29 PM

Uncomment LINE1 and comment LINE2

DWard 05-24-2004 07:31 PM

I think the reasons for the latest errors seems to be that only the latest versions of PHP will support the imagettftext() function. I have version 4.3.4.

What versions do you have?

ranger2kxlt 05-24-2004 07:33 PM

Code:

// ######################### CHANGE FONT BELOW ############################
// Uncomment LINE1+LINE12 and comment LINE2+LINE22 to use default font.
// Replace "verdana.ttf" with the URL to your .ttf font
//
//imagestring($img, $fontsize, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output, $text_color);  //LINE1
imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output); //LINE2
$i++;
}

header("Content-Type: image/png");
imagepng($img);
imagejpeg($img, "$ausgabedatei",$komprimierung); //Write jpg to folder and set compression
imagedestroy($img); // get the image out of memory
?>

my code looks all messed up is this right? can you give me the last part correctly...

Thanks

DWard 05-24-2004 07:33 PM

BTW:: Have you uploaded a font and specified the location as described in the instructions??

DWard 05-24-2004 07:35 PM

Quote:

Originally Posted by ranger2kxlt
Code:

// ######################### CHANGE FONT BELOW ############################
  // Uncomment LINE1+LINE12 and comment LINE2+LINE22 to use default font.
  // Replace "verdana.ttf" with the URL to your .ttf font
  //
//imagestring($img, $fontsize, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output, $text_color);  //LINE1
 imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output); //LINE2
  $i++;
  }
 
  header("Content-Type: image/png");
  imagepng($img);
  imagejpeg($img, "$ausgabedatei",$komprimierung); //Write jpg to folder and set compression
  imagedestroy($img); // get the image out of memory
  ?>

my code looks all messed up is this right? can you give me the last part correctly...

Thanks

That's fine, thats how mine is...

Try changing that part to this:
Code:

// ######################### CHANGE FONT BELOW ############################
  // Uncomment LINE1+LINE12 and comment LINE2+LINE22 to use default font.
  // Replace "verdana.ttf" with the URL to your .ttf font
  //
  imagestring($img, $fontsize, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output, $text_color);  //LINE1
 //imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output); //LINE2
  $i++;
  }
 
  header("Content-Type: image/png");
  imagepng($img);
  imagejpeg($img, "$ausgabedatei",$komprimierung); //Write jpg to folder and set compression
  imagedestroy($img); // get the image out of memory
  ?>


ranger2kxlt 05-24-2004 07:36 PM

PHP Version 4.3.3

No i thought it use a default font...can you upload the vernada.ttf file?

DWard 05-24-2004 07:37 PM

YER OK THE NEW CODE i GAVE YOU WAS FOR DEFAULT FONT OPTION.

Just change it back to what you gave me to start with and upload the font I am about to attach to the same directory as the file.

ranger2kxlt 05-24-2004 07:38 PM

I tried your code, same error message....Can you send me the code without line 1 and 2 commented, want to make sure i'm coding it right


All times are GMT. The time now is 11:26 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.01249 seconds
  • Memory Usage 1,741KB
  • 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_code_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