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 07-22-2004 02:24 AM

Can you paste out line 230-260 of your signature.php?

royals 07-22-2004 02:26 AM

here is 223-245. I think I know what it is (line1&2) just not sure what I need to change. but I'm probably wrong!

PHP Code:

// ######################### DO NOT EDIT BELOW ############################

imagecopy ($img$vorlage0000$width$height); // copy empty banner

imagecolortransparent($img$bg_color);  // set dummybg transparent

// the distance is in pixels and the font # is 1 through 5
$i 0;
while(
$i count($output)){

// ######################### 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,  $left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color,  $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 


Natch 07-22-2004 02:35 AM

Code:

imagettftext($img, $fontsize,  $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color,  $output); // LINE2
This line here is missing the vital bit of code ...
Code:

imagettftext($img, $fontsize,  $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output); // LINE2
You need to pick a TTF font file, upload it to the same folder as your signature.php file and specify the filename of that font here ... see?

royals 07-22-2004 02:48 AM

Ok.... I've uploaded verdana.ttf and the changes to php.

PHP Code:

WarningWrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:238in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?C ??? PLTE??????$??L?0tRNS@??f/IDATx??˱ 0??#?J????voܖ???,?{r?ɲ,˲,˲<5??Cm>YT?BIEND?B`?
Warningimagejpeg(): Unable to open '/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 

:( :(

Natch 07-22-2004 02:54 AM

Your file has gotten quite screwed, but that line should read
Code:

imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output[$i]); // LINE2
- you were also missing the parameter 0 between fontsize and left...

The last error is due to you having not yet CHMOD'ed your output directory to where you will save the image...

royals 07-22-2004 03:04 AM

Ok - that error is gone but I get this:

http://www.therabblerousers.com/forums/signature.php

links for images:

http://www.therabblerousers.com/foru.../signature.jpg
http://www.therabblerousers.com/forums/sig/sig.jpg

I dont know if I did the images correct



Editd - had wrong links

royals 07-22-2004 03:46 AM

ok - I figured out my original sig.jpg was wrong...... I think I'm getting it. thank you so much for your time helping me ;)

It's almost there - just not exactly sure now.

http://www.therabblerousers.com/forums/signature.php

Natch 07-22-2004 04:10 AM

There is no way that this code should require login access - you have made too many changes I think ...

Work from the default file and see how you go ...

royals 07-22-2004 01:27 PM

Ok, I will do that this weekend. It is a closed board so I think thats the problem. Thanks for your help.

DWard 07-22-2004 03:09 PM

Hey guys, WHAT HAS HAPPENED TO THE DESIGN?? I visited the site hoping to see the usual nice design, but I see this little innocent design!


All times are GMT. The time now is 12:09 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.01366 seconds
  • Memory Usage 1,756KB
  • 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_php_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