FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


web stats in a web banner, how do u make it appear in sig





DJHicks
hi

how do u get a banner with stats to appear in your signature?

i have created a php script... and put it into a folder and called it index.php

do i use the img tag within the signature section and link to the folder?

plese help thanks you all!

DJHicks
wumingsden
DJHicks wrote:
hi

how do u get a banner with stats to appear in your signature?

i have created a php script... and put it into a folder and called it index.php

do i use the img tag within the signature section and link to the folder?

plese help thanks you all!

DJHicks


Is the image in .png format. I also use a dynamic signature and I beliegve it had to be in .png format.
What information will it show, some dynamic signitures are banned at FriHost.
Could you also post the php script, there is probably an error in it (note that you have to point it to the image)
simplyw00x
You have to use header() to tell the browser that it's an image, the gd library to make and image and then possibly save it as something.png and fiddle apache to make it execute .pngs as php files. It's not as simple as echo or print. Find a tutorial.
Seregwethrin
You don't have to use png format
You can write anything over jpg and gif images because GD is installed on FriHost

Just try to search "how to write on jpg with php"

Code:

<?php
$im = imagecreatefromjpeg("your jpg,gif or png file path"); //or imagecreatefromgif imagecreatefrompng

$white = imagecolorallocate($im,250,95,50); //colors

imagettftext($im,17, 0,50,25,$white,"WESTM.TTF", "your text");
imagettftext($im,12, 0,15,45,$white,"BLACKCHA.TTF", "your text");

header("content-type: image/jpeg"); //change if you r using gif or png image/gif - image/png
imagejpeg($im); /or imagegif($im) - imagepng($im)
?>


Also look these
http://tr2.php.net/manual/en/function.header.php
http://tr2.php.net/manual/en/function.imagettftext.php
http://tr2.php.net/manual/en/function.imagecolorallocate.php
http://tr2.php.net/manual/en/function.imagecreatefromjpeg.php
n0obie4life
How many topics are needed to fix a problem?

One.

-close-
Related topics
Selling Sigs
SMU: Kestrel's Curio - TO CLOSE -
Paying for a little work!!!
banner busters
php script help!
stats banner in forum signature problem....challenging!
please help i just need people to visit a page
DDS:: Your Portal to Excellence in Graphic and Webdesign
phpBB forum point system
your ADs on my Website for a LOw Low price!!!
web stats not working
What do u miss?
Put A Banner For 1 Month In My Sig for 100 Frih$
code breaking competition banner for sig...?
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.