News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SVG

Started by shenafu, February 18, 2010, 07:04:37 PM

Previous topic - Next topic

shenafu

Link to Mod

SVG
mod for SMF forums
by Xay Voong
v1.0.0

PURPOSE: Allows BBC tags that create <object> elements around SVG URLs so that they can be interacted with.

INSTRUCTIONS:
[svg]http://URL/to/image.svg[/svg]

Changelog
v1.0.0
2010-01-17
$sourcesdir/Subs.php: modified to contain SVG tags

shenafu

Quote from: webmasterAs a note, in checking out the SVG wiki, they actually recommend using the <embed> tag within the <object> tag for optimum compatibility... just something to think about.

Well, it's a very slim chance that people are still using a browser that doesn't understand object and requires embed. On the other hand, embed is not compatible with XHTML, which SMF is using, so I guess the issue of compatibility is a wash.

What I could and should do is put the URL as the content so that incompatible browsers will still display the URL. But how can one test this? Maybe one could use a text browser like links? Which mobile browsers do not understand object? (Unfortunately, I don't have a mobile device anyway.)

Advertisement: