2005-10-17, 09:48 PM
2005-10-17, 10:11 PM
It's a forum setting (Admin CP --> Manage Forums --> Edit your forum --> Allow [ img ] code)
![[Image: avatar.php]](https://camo.mybb.com/65c482a034027c9abff4f504028cc81d70ae9415/687474703a2f2f7777772e64656e6e697374742e6e65742f66696d67732f6176617461722e706870)
Make sure you include the whole url including http:// (eg. http://www.dennistt.net/fimgs/avatar.php, and not just fimgs/avatar.php)
[ img ]http://www.dennistt.net/fimgs/avatar.php[/ img ] (spaces in the bbcode to make it show the code and not the image)
I believe it works here: Make sure you include the whole url including http:// (eg. http://www.dennistt.net/fimgs/avatar.php, and not just fimgs/avatar.php)
2005-10-17, 11:12 PM
That's pretty cool, converting .gif's to .php.
2005-10-18, 01:02 AM
testing:
![[Image: sig.php]](https://camo.mybb.com/44dad6173bf3d15ce8214edf4fa4f9eef30fa163/687474703a2f2f7777772e6163652d6d616769632e636f6d2f696d616765732f7369672f7369672e706870)
doesn't work
is there something special i have to do to the php to make it work?
the image/php: http://www.ace-magic.com/images/sig/sig.php
the php source
help?
edit: and yes i do have the img code enabled
doesn't work

is there something special i have to do to the php to make it work?
the image/php: http://www.ace-magic.com/images/sig/sig.php
the php source
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
?>
<img src="ie.jpg" border="0">
<?php
} else {
?>
<img src="ff.png" border="0">
<?php
}
?>
help?
edit: and yes i do have the img code enabled
2005-10-18, 06:18 AM
supersonicdarky Wrote:testing:
doesn't work
is there something special i have to do to the php to make it work?
the image/php: http://www.ace-magic.com/images/sig/sig.php
the php source
<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) { ?> <img src="ie.jpg" border="0"> <?php } else { ?> <img src="ff.png" border="0"> <?php } ?>
help?
edit: and yes i do have the img code enabled
You can't use that code because it outputs HTML, and when you use [img] you must link to an image file, or a script that outputs an image, not HTML.
2005-10-18, 11:52 AM
i'm new to php, so could someone code it for me? :/
2005-10-18, 05:07 PM
You can try this, but I'm not sure if it will work 100%
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
$file = "ie.jpg";
$mime = "image/jpg";
}
else {
$file = "ff.png";
$mime = "image/png";
}
$fp = fopen($file, "r");
$content = fread($fp, filesize($file));
header("Content-type: $mime");
echo $content;
2005-10-18, 07:19 PM
sweet! it works 
thnx

thnx

2005-10-18, 09:29 PM
You're welcome. A +rep would be appreciated 
