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)

Big Kahuna 06-23-2004 07:10 PM

I gave up on the yellow and did a different graphic.

Big Kahuna 06-23-2004 07:28 PM

This is crazy how I can only make it work with some graphics and not with others.

I also tried this as a sig on a phpBB board and it work display there -- will this only work on vBulleting forums?

PET 06-24-2004 04:09 AM

http://hattrick.computergames.ro/forum/signature.php

However, it looks teribile. Where are the colors ? :(

DWard 06-24-2004 04:22 AM

if you look back there is a thing about creating a jpeg and a trurtype function, which was taken off in the new version because that was causing a few troubles.

Big Kahuna 06-24-2004 03:17 PM

Quote:

Originally Posted by DWard
if you look back there is a thing about creating a jpeg and a trurtype function, which was taken off in the new version because that was causing a few troubles.

1. I can only make this work with certain colors -- 90% of the graphics I've made convert down to a 16-color "Safe Mode" look. Below is how I have the font code section of the version I loaded from the first post yesterday.

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
//
// LINE1
imagestring($img$fontsize$left, (($i $zeilenabstand) - $zeilenabstand $top), $output$text_color); 

//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
?> 

</FONT>

My understanding was that I commented to where it takes the default -- but I suck as a programmer and that may be where I'm screwing up. The Line 2 & 22 or 1 & 12 confuse me as to exactly which lines are which. Is that 1, 2, 12, & 22 from the ########### down?


2. I see your sig is a JPG -- are you having a CRON job generate a new image every so often -- and it so, please roll me a bone and tell me how to do that. I visit a lot of phpBB and YaBB boards that I have no control over -- and they do not allow for php images.

This is a very cool hack and if I had more control over which graphics will work and the ability to generate frequent images (I know it isn't real time -- but every 10 minutes would be close enough for Government work) for my members -- it would be too Kool.

Thanx
BK

Big Kahuna 06-24-2004 03:23 PM

BTW -- Happy Birthday Dan. You're just a young shaver at 17. ;)

TJFweb 06-25-2004 01:56 AM

Hi,

I'm using imagecreate() because imagecreatetruecolor() gives me a red x.

However the color comes up looking terrible! It's not even grayscale, it's just some washed out blue all over.

I've attached a pic. I know the stats text is out of alignment but I'm not going to bother aligning it until I know I can get it working in full color :P

TJFweb 06-25-2004 01:58 AM

Does the input jpeg have to be compressed with a specific value or with indexed color or something?

Natch 06-25-2004 02:08 AM

No - it means that you have an old version of GD - it also means that your server can only produce low-quality images (hence the lack of truecolor support)

TJFweb 06-25-2004 02:24 AM

What a p.o.s. server. Good thing I'm switching servers next month.


All times are GMT. The time now is 02:37 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.01421 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)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