Advertisement:

Author Topic: signature info stats [no more updates and support]  (Read 171415 times)

Offline spottedhog

  • Sr. Member
  • ****
  • Posts: 782
  • Gender: Male
Re: signature info stats
« Reply #20 on: July 29, 2006, 08:27:32 AM »
Surf---  try an image file that has more height and less width.  As you can see from my sig, I resized everything to make it fit.  And yes, I removed some items to make it space out ok. 
« Last Edit: July 29, 2006, 08:30:23 AM by spottedhog »

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #21 on: August 07, 2006, 07:03:37 PM »
For Chucky and spottedhog (older post about  forum who do not accept .php link as signature)

open your .htaccess ADD this line AddType application/x-httpd-php .png

then rename your .php file to .png file... For example signinfo.php to signinfo.png...

Finally set your signature -->
Code: [Select]
[img]http://mydomain/signinfo.png[/img]

« Last Edit: August 07, 2006, 07:50:10 PM by sebastian »

Offline spottedhog

  • Sr. Member
  • ****
  • Posts: 782
  • Gender: Male
Re: signature info stats
« Reply #22 on: August 07, 2006, 07:46:42 PM »
Thanks!!!   I had long forgotten about it.....  I will try it!

thanks again!

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: signature info stats
« Reply #23 on: August 10, 2006, 12:27:07 PM »
Latest member wasnt working for me, so i changed
$latest_member = $context['common_stats']['latest_member'];

to

$latest_member = $context['common_stats']['latest_member']['name'];

Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #24 on: August 18, 2006, 06:45:08 AM »
I tried to add the font the same way the topic starter did but it still looked the same...

Code: [Select]
<?php
$img_number 
imagecreate(150,25);
$backcolor imagecolorallocate($img_number,0,0,0);
$textcolor imagecolorallocate($img_number,255,255,255);
$font "fonts/cour.ttf"// change your font path and name here
imagefill($img_number,0,0,$backcolor);
$number "$_SERVER[REMOTE_ADDR]";
Imagestring($img_number,10,5,5,$number,$textcolor);

header("Content-type: image/gif");
imagegif($img_number);
?>
My font is Courier New, in http://rctxtremegamez.aonservers.com/forum/fonts/cour.ttf
With an underscore. Because the one without an underscore's taken.

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #25 on: August 20, 2006, 05:43:44 PM »
It's not the same.
Check your script syndax again.

Quote
imagestring ( resource image, int font, int x, int y, string s, int col )
http://php.net/imagestring
 

Try to use 1,2,3,4 or 5 no 10


Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #26 on: August 21, 2006, 03:01:34 AM »
10? How would that be Courier New? PHP is so confusing....
With an underscore. Because the one without an underscore's taken.

Offline spottedhog

  • Sr. Member
  • ****
  • Posts: 782
  • Gender: Male
Re: signature info stats
« Reply #27 on: August 21, 2006, 07:11:42 AM »
Did you try putting in the absolute path to your font file?

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #28 on: August 21, 2006, 08:28:46 AM »
Try this ...

Quote
<?php

$im = imagecreatetruecolor(130,30);
$white = ImageColorAllocate ($im, 255, 255, 255);
$font = "fonts/cour.ttf"; // change your font path and name here
$number = "$_SERVER[REMOTE_ADDR]";

imagettftext($im, 12, 0, 20, 20, $white, $font, $number);

header("Content-Type: image/png");
Imagepng($im,'',9);
ImageDestroy ($im);

?>

Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #29 on: August 22, 2006, 02:47:59 AM »
Doesn't work, just gives me an image 4 pixels wide. Go to my forum http://www.rctxtremegamez.aonservers.com/forum/ and look at the section 'Your user IP has been logged'.
With an underscore. Because the one without an underscore's taken.

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #30 on: August 22, 2006, 06:39:14 AM »
If you have PHP version 4.0+ then Imagepng($im,'',90); otherwise if your php version is 5.0 + then  Imagepng($im,'',9);

It work fine. http://www.rctxtremegamez.aonservers.com/forum/userip.php

.... does not exist any problem.

Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #31 on: August 22, 2006, 08:10:32 PM »
Fatal error: Call to undefined function: imagettftext() in /home/rctxtrem/public_html/forum/userip.php on line 8
With an underscore. Because the one without an underscore's taken.

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #32 on: August 23, 2006, 11:48:26 AM »
rctxtreme this is impossible
yesterday your little script it was well.

Check all elements of imagettftext() again.
or copy-past this script here.

Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #33 on: August 24, 2006, 03:13:53 AM »
No, yesterday I used the old script that I started with
With an underscore. Because the one without an underscore's taken.

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #34 on: August 24, 2006, 08:43:17 AM »
http://php.net/manual/en/function.imagettftext.php#61227
http://www.tomrafteryit.net/authimage-error-call-to-undefined-function-imagettftext/

Αccording to these sites:
Those errors indicate that your PHP installation does not have True Type Font support compiled.

Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #35 on: August 26, 2006, 07:17:46 AM »
The guy that owns my webhost is like 'use <font>'... omfgwtf...
With an underscore. Because the one without an underscore's taken.

Offline sebastian

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: signature info stats
« Reply #36 on: August 26, 2006, 11:38:15 AM »
Forget true type fonts ... Get GDfonts...
like this Your IP

Download Courier GDfont

Code: [Select]
<?php
header
("Content-type: image/png");
$im imagecreatetruecolor(29018);
$black imagecolorallocate($im000);
$white imagecolorallocate($im255255255);
imagefilledrectangle($im004919$black);
$font imageloadfont("Courier.gdf");
$number "$_SERVER[REMOTE_ADDR]";
imagestring($im$font100"Your IP adress is:$number"$white);
imagepng($im);
?>
« Last Edit: February 15, 2007, 04:29:11 AM by sebastian »

Offline a2h_

  • Jr. Member
  • **
  • Posts: 209
  • Gender: Male
    • Geniuose At Work
Re: signature info stats
« Reply #37 on: August 28, 2006, 06:17:11 AM »
It works, thanks, now I just need to wait for TP 0.9.5
With an underscore. Because the one without an underscore's taken.

Offline efootball

  • Newbie
  • *
  • Posts: 9
Re: signature info stats
« Reply #38 on: October 30, 2006, 10:55:07 AM »
Thanks just what i was looking for
hxxp:smfff.co.uk [nonactive]

hxxp:www.englishfootball.me.uk/football [nonactive]hxxp:smfff.co.uk [nonactive]

hxxp:www.englishfootball.me.uk/football [nonactive]

hxxp:www.gamemilitary.com/ [nonactive]

hxxp:gamemilitary.com/forum/index.php?board=2.0 [nonactive]

Offline Inque187

  • Semi-Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Sic Vis Pacem, Para Bellum!
    • FBI-TEAM.ORG
Re: signature info stats
« Reply #39 on: November 22, 2006, 11:29:18 PM »
Worked like a charm for me! Thanks! I even added some database calls for numbers which update daily. Check out my signature.
« Last Edit: November 22, 2006, 11:35:13 PM by Inque187 »