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)

AnhTuanCool 09-05-2004 12:14 AM

I can't see it(something about that function in phpinfo()) but how can I solve it? I don't have GD either :ermm:

DWard 09-05-2004 06:29 AM

Ah... You NEED GD.

mholtum 09-05-2004 12:45 PM

:devious: I can not get this to work at all. I know my image paths are correct as I have checked with my host. I am thinking "hmmmm" wtf is wrong? All I get when testing is a red "X".

mholtum 09-05-2004 03:07 PM

https://vborg.vbsupport.ru/ Hmm works, but I have some issues.

DWard 09-05-2004 03:31 PM

Quote:

Originally Posted by mholtum
https://vborg.vbsupport.ru/ Hmm works, but I have some issues.

OK, open your signature.php file and do the following:

Find:
Code:

imagecreate(
Replace with:
Code:

imagecreatetruecolor(

mholtum 09-05-2004 03:49 PM

Sweet! Thank you! Now I just have to create a couple images and I am all set! I appreciate the help.

DWard 09-05-2004 03:59 PM

SIGNATURE STATS 3.01 RELEASED

Switching between imagecreate and imagecreatetruecolor much easier, just change a variable.

Set the font you want to use at the top of the signature.php file away from all that rotten code!

Easy selection of Standard or TrueType fonts in output.

mholtum 09-05-2004 04:08 PM

I was looking to change the font but this was the only code I could find..
PHP Code:

// ########################## TEXT FORMATTING ############################

// A PNG uses ImageColorAllocate instead of ImageColorClosest like jpeg uses

//background white
$bg_color imagecolorallocate ($img255255255);

//black text
$text_color imagecolorallocate ($img1936161);

imagefilledrectangle ($img00$width$height$bg_color);

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


DWard 09-05-2004 04:29 PM

search from the top down for $ttff

mholtum 09-05-2004 04:45 PM

PHP 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 

will I need to upload a font to my server or just change the name of the font.


All times are GMT. The time now is 04:47 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.01648 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (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