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)

Natch 08-03-2004 03:22 PM

take the quotes and the extra spaces out from the line - make it like so...
PHP Code:

// imagestring($img, $fontsize,0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output, $text_color); // LINE1
imagettftext($img$fontsize0,$left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color,"/home/qtss/bbs.metallifukinca.com/html/verdana.ttf"$output); // LINE2 


oldfan 08-03-2004 03:29 PM

like this?

// ######################### 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,0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output,

$text_color);LINE1
imagettftext($img, $fontsize, 0,$left, (($i * $zeilenabstand) - $zeilenabstand + $top),

$text_color,/home/qtss/bbs.metallifukinca.com/html/Verdana.ttf, $output);LINE2
$i++;
}

because I'm still getting
Parse error: parse error in /home/qtss/bbs.metallifukinca.com/html/signature.php on line 238

sorry for being a newbie

Natch 08-03-2004 03:32 PM

You see the lines I ahve given you - replace your whole
PHP Code:

imagestring($img$fontsize,0$left, (($i $zeilenabstand) - $zeilenabstand $top), $output,

$text_color);LINE1
imagettftext
($img$fontsize0,$left, (($i $zeilenabstand) - $zeilenabstand $top),

$text_color,/home/qtss/bbs.metallifukinca.com/html/Verdana.ttf$output);LINE2 

with what I posted in my last post...

oldfan 08-03-2004 03:40 PM

i'm a n00b :(

ok this my code now

// ######################### 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,0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output,

$text_color); // LINE1
imagettftext($img, $fontsize, 0,$left, (($i * $zeilenabstand) - $zeilenabstand + $top),

$text_color,"/home/qtss/bbs.metallifukinca.com/html/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
?>

and im getting this error :(


Warning: imagettftext(): Could not read font in /home/qtss/bbs.metallifukinca.com/html/signature.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/qtss/bbs.metallifukinca.com/html/signature.php:238) in /home/qtss/bbs.metallifukinca.com/html/signature.php on line 242

GamerzWorld 08-03-2004 03:48 PM

Warning: imagettftext(): Could not find/open font in /home/merlin/public_html/mirzone/forum/signature.php on line 238

Is the error im getting. The script is at www.mirzone.net/forum/signature.php . I followed the instructions and havnt changed that line

oldfan 08-03-2004 03:50 PM

We got the same errors :(

Quote:

Originally Posted by GamerzWorld
Warning: imagettftext(): Could not find/open font in /home/merlin/public_html/mirzone/forum/signature.php on line 238

Is the error im getting. The script is at www.mirzone.net/forum/signature.php . I followed the instructions and havnt changed that line


Natch 08-03-2004 04:11 PM

OK - have you uploaded the font verdana.ttf to your server root? It will probably be case-sensitive so make sure the filename is "verdana.ttf" in the location on your server "/home/qtss/bbs.metallifukinca.com/html/" as specifed in that script ...

You really should read the instructions more carefully ...

oldfan 08-03-2004 04:24 PM

I've done everything its said/you

Warning: imagettftext(): Could not read font in /home/qtss/bbs.metallifukinca.com/html/signature.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/qtss/bbs.metallifukinca.com/html/signature.php:238) in /home/qtss/bbs.metallifukinca.com/html/signature.php on line 242

Natch 08-03-2004 04:28 PM

Check: verdana.ttf has a lower-case V
Change: the full path to just the font file name, no slashes, etc

oldfan 08-03-2004 04:31 PM

thanks dude, I had the verdana.ttf in the vB3 dir.
I put it in the root dir and everythign works great thanks

/me clicks install


All times are GMT. The time now is 09:57 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.02408 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
  • (2)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
  • (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