Page 1 of 1

How to get GD generated images to work with bb code?

Posted: Wed Jul 12, 2006 12:09 am
by HomerTheDragoon
Hello i was wondering how i can make it so i can display the image generated by the php gd code in forum sigs, using bb code... I understand how to do it in html, but when i do it in bb code it just writes the link... :/ Is it possible? Thanks.

heres what i mean by bbcode if for some reason you didnt know what i ment :/
Image

also is there a way to change the font size?

Posted: Wed Jul 12, 2006 8:55 am
by onion2k
Some forums won't let you link to a dynamic image .. so your PHP script needs to end with .jpg .. Putting..

Code: Select all

AddType application/x-httpd-php .php .jpg
..in a .htaccess file will let you create a .jpg file that's treated like a .php file on your server (assuming it uses Apache).

Posted: Wed Jul 12, 2006 2:23 pm
by R4000
You can fool some BBCode parsers just by adding:

Code: Select all

?type=.png
to the end of the image url.

Or sometimes, you can do this on some servers:

Code: Select all

http://****/gd/createimage.php/image.png
heh :)

Posted: Wed Jul 12, 2006 3:00 pm
by HomerTheDragoon
Didnt work here :/ let me try somewhere else.