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


My sig is not working





devroom
my sig is not working Confused


it does works this way: http://devroom.frih.net/sigs/sig.png
can some1 tell why?
i use rewrite

http://www.daniel15.be/sig/sig-FriHost.php
and http://www.daniel15.be/sig/sig-FriHost.png does work Confused

edit: my sig is working now, but please give your codes so i can do more things with my sig
Animal
Your sig has to be an image, and has to comply with the rules on sig sizing. The sig you've linked to is not simply an image, and since it is bigger than the allowed size, you would not be allowed to use it anyway.
Daniel15
@Devroom: I've set up a .htaccess mod_rewrite rule for my signature. It looks something like:
Code:

Options -Indexes

RewriteEngine on
RewriteRule ^sig.png$ sig-v3.php
RewriteRule ^sig-FriHost.png$ sig-v3.php
#RewriteRule ^sig-FriHost.png$ sig-FriHost.php


So, that means that requests to sig.png are redirected to sig-v3.php. You could use a similar .htaccess file to achieve this effect.

EDIT: I just noticed, is http://devroom.frih.net/sigs/frihost.gif the signature? In that case, it looks like it's working fine!
How did you manage to get the server load in your signature? That's cool, I should do that Very Happy
devroom
i look on the internet to find the problem and i found it. you need to let your php file 'be' an image. i thought first: make it rewrite sig.gif to sig.php. anyway, now it works.
could u please give your code for your sig?

mine is: (just changed it from some template)
Code:
<?php
header("Content-type: image/gif");
header("Pragma: no-cache");

$currentLA = explode(" ",`cat /proc/loadavg`);
$maxLA = 5;
$laPercent = ($currentLA[0] / $maxLA) * 100;

$string2 = 'Frih.net server load:' .$laPercent. '%';
 
$im = imagecreatefromgif("http://images.ucomics.com/comics/ga/2006/ga060309.gif");
$color = imagecolorallocate($im, 255, 255, 255);

$px=10;
$py=145;

imagestring($im, 3, $px, $py, $string, $color);
imagestring($im, 3, $px, $py+12, $string2, $color);
 
imagegif($im);
imagedestroy($im);
?>
n0obie4life
Solved.

And Daniel15, I can't believe you don't know how to get server load!

-close-
Related topics
Hey guys, want a free sig?
Bluetooth-ultrawideband compatibility on the way?
Avatars and Signatures for sale!
My Subdomain still not working :(
Selling Sigs
My newest sig.
Sig Wanted
Signature and Banners for All
Looking for Sig/Avatar
how do i use a pic in my sig?
Need sig please
Sig space for sale
Sig Preview in profile page
Using Image Shack for my Sig file
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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