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)

mholtum 09-07-2004 04:33 PM

I can see this:
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
?> 

But what would I change?

DWard 09-07-2004 04:48 PM

Look above that somewhere is the colour part, its set out in RGB, like 255,255,255

mholtum 09-07-2004 05:08 PM

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); 


mholtum 09-07-2004 05:15 PM

Great thanks
found it

DWard 09-07-2004 06:19 PM

Sorry all, just checked the signature.php and using it myself. There were a few problems but they have now been sorted :)

The new files is attached in the first post.

oldfan 09-07-2004 11:15 PM

whats new in the new version?

DWard 09-08-2004 04:19 PM

Its basically alot easier for people with either GD1 or GD2, and means people dont have to uncomment lines etc

Martin64 09-09-2004 10:47 AM

Great stuff, thanks a lot! :)

Here's what ours look like:

http://www.emutalk.net/signature.php

DWard 09-09-2004 05:12 PM

You may also want to use these:

Show newest user in Signature Stats
https://vborg.vbsupport.ru/showpost....&postcount=245

Amount of games in v3Arcade in signature
https://vborg.vbsupport.ru/showpost....&postcount=225

TTG 09-10-2004 10:17 AM

What am I doing wrong here .. must be something I've screwed up in the signature.php path to images .. both images are chmod 777

//full path to empty signature image (input image)
$vorlagedatei = "/usr/home/thetechg/public_html/
/retreat/sig/sig.jpg";

//full path to signare image with forum data (output image)
$ausgabedatei = "/usr/home/thetechg/public_html/retreat/sig/signature.jpg";


All times are GMT. The time now is 01:17 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.01461 seconds
  • Memory Usage 1,743KB
  • 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)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