TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,019
  • Total Topics: 21,332
  • Online today: 1,232
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 698
  • Total: 698

Dynamic Sigs

Started by HaxXxoR, July 02, 2006, 09:05:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HaxXxoR

Does anyone know how to make these kinda sigs if i have an image already made?

nend

What type of dynamic sig.  I made one a while back that shows the users ip address, browser, and operating system.

Just saying dynamic sig isn't clear enough, because it could mean many different things, server stats sig, game stats, music playing on your computer, etc.  I seen allot of different types on the net.

HaxXxoR

Sorry i mean like last registered user, number of hits, number of posts. stuff like that

nend

ok, here is some simple code, I ripped out of something else I made.  I'm pretty sure you can alter it to your advantage.  You will need a gdf font though for this script.  You can either make one yourself or search the web.


<?php
$textline1 
= '';
$textline2 = '';
$textline3 = '';

$width = 600;
$height = 60;
$image = imagecreate($width, $height);
$bgColor = imagecolorallocate ($image, 225, 225, 225);
$textColor = imagecolorallocate ($image, 0, 0, 0);

$font = imageloadfont("fonts.gdf");
$transCol = imagecolorallocate($bgcolor, 225, 225, 225);

imagestring($image, $font, 3, 0, $textline1, $textColor);
imagestring($image, $font, 3, 20, $textline2, $textColor);
imagestring($image, $font, 3, 40, $textline3, $textColor);

header("Expires: Mon, 23 Jul 1993 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: image/png');
imagecolortransparent($image, $transCol);
imagepng($image);
imagedestroy($image);
?>


HaxXxoR

I honesly dont know what to do with that lol. I have a simple image that i would like to have the stats displayed on but i dont know the first thing about how to do it.

HaxXxoR

can anyone help me on this?

This website is proudly hosted on Crocweb Cloud Website Hosting.