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)

Odoin 05-25-2004 09:59 PM

This might have been posted before but i did not look through all the posts....

If you do not care about the extra load on your server you can make a .htaccess file with this code:

IndexIgnore *

<Limit GET POST >
order allow,deny
allow from all
</Limit>

RewriteEngine on
RewriteRule signature.jpg /forum/signature.php [T=application/x-httpd-cgi]

Then you would link to signature.jpg from your root folder of your domain ane apache would run the PHP file to get the updated signature.

Cheers :)

DWard 05-26-2004 06:59 AM

Thats quite cool actually.

DWard 05-26-2004 04:01 PM

New version out (fixed online users code [was resetting 'most users ever online'])

blakkboy 05-26-2004 10:11 PM

Warning: imagecreatefromjpeg(/public_html/images/sig.jpg): failed to open stream: No such file or directory in /home/rkqxhnvj/public_html/forums/signature.php on line 208

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/rkqxhnvj/public_html/forums/signature.php on line 225

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

Warning: Cannot modify header information - headers already sent by (output started at /home/rkqxhnvj/public_html/forums/signature.php:208) in /home/rkqxhnvj/public_html/forums/signature.php on line 242
‰PNG IHDRÔw€#ÛPLTEÿÿÿ$¡›¼tRNS@æØfIDATxœí Á  ÷Om7 €'äSP£QIEND®B`‚
Warning: imagejpeg(): Unable to open '/public_html/images/signature.jpg' for writing in /home/rkqxhnvj/public_html/forums/signature.php on line 244

I get those errors....Can someone help????

DWard 05-27-2004 05:15 AM

Quote:

Originally Posted by blakkboy
Warning: imagecreatefromjpeg(/public_html/images/sig.jpg): failed to open stream: No such file or directory in /home/rkqxhnvj/public_html/forums/signature.php on line 208

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/rkqxhnvj/public_html/forums/signature.php on line 225

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

Warning: Cannot modify header information - headers already sent by (output started at /home/rkqxhnvj/public_html/forums/signature.php:208) in /home/rkqxhnvj/public_html/forums/signature.php on line 242
?PNG IHDR?w?#?PLTE???$????tRNS@??fIDATx??? ? ?Om7 ?'?SP?QIEND?B`?
Warning: imagejpeg(): Unable to open '/public_html/images/signature.jpg' for writing in /home/rkqxhnvj/public_html/forums/signature.php on line 244


I get those errors....Can someone help????

Have you uploaded both pictures and entered the server path correctly? And are both images CHMOD to 777?

Also, do you have GD installed? I think you may need GD2.

Natch 05-27-2004 02:10 PM

Just FYI :) You can solve your vertical issues by investigating the following code, then looking @ this sig :)

PHP Code:

$output[] = "Threads: $totalthreads";
$output[] = "  Posts: $totalposts"

and
PHP Code:

imagettftext($img$fontsize0$left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color"verdana.ttf"$output[$i]); // LINE2 

https://vborg.vbsupport.ru/external/2004/05/1.jpg

aka: put your $output in an array - then each line by default is placed on the next line down (the second edit just causes the current line to be output, rather than the whole array) ... then just fiddle with your images size and alignment values ($left and $top) to get it how you want it!

:D great work again on the TTF font integrating!

DWard 05-27-2004 07:41 PM

Quote:

Originally Posted by Natch
Just FYI :) You can solve your vertical issues by investigating the following code, then looking @ this sig :)

PHP Code:

$output[] = "Threads: $totalthreads";
$output[] = "  Posts: $totalposts"

and
PHP Code:

imagettftext($img$fontsize0$left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color"verdana.ttf"$output[$i]); // LINE2 

http://www.mobileforces.org/sig.jpg

aka: put your $output in an array - then each line by default is placed on the next line down (the second edit just causes the current line to be output, rather than the whole array) ... then just fiddle with your images size and alignment values ($left and $top) to get it how you want it!

:D great work again on the TTF font integrating!

Wicked, that will be in the next version, have you encountered any problems at all?

Just concerned about wether or not there had been a mistake in the code on my behalf or if it's just what people have installed on their server.

Natch 05-28-2004 11:33 AM

No mate - it's just that the code you have has a
PHP Code:

while($i<count($output)){ ... 

bit which indicated that it probably was originally coded to work with an array, where each array entry is one line in your multi-line output.

Anyd it should be relatively trivial to have a switch to go from left to right aligned - I did something similar for a automatic label-making website... {look at the
PHP Code:

(($i $zeilenabstand) - $zeilenabstand $top

bit (which calculates the top position of each line in the array for the text), and apply similar math to the $left value ...}

Acido 05-29-2004 03:05 AM

I dont understan why the quality of the image created in my server is so poor :(
Check the attachments please.

I use compress output with a value of 95, and i'm using GD 2+


Can you give some tip?

Natch 05-29-2004 03:41 AM

Yeah - there is a line that says imagecreate() - this should be imagecreatetruecolor() :)


All times are GMT. The time now is 04:55 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.01227 seconds
  • Memory Usage 1,759KB
  • 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
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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