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)
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:
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