Advertisement:

How to add a swf file as logo instead of jpg?

Aloittaja ArkServer, huhtikuu 27, 2006, 12:32:03 IP

« edellinen - seuraava »

ArkServer

Hello, when i go to "current theme" and want to use a swf file as a banner/logo the swf file doesn't show up. Any idea how i can fix this?

1.1 rc2

Oldiesmann

Generally you can't use flash files with the img tag. You will have to modify the code in index.template.php to display it as a flash movie. This code should work in most browsers:

<object type="application/x-macromedia-flash" height="height" width="width" data="url_to_file.swf"><param name="pluginspage" data="http://www.macromedia.com/go/getflashplayer/" /></object>

Replace height with the actual height of the object, width with the actual width of the object and url_to_file.swf with the actual URL to the file...
Michael Eshom
Christian Metal Fans

ArkServer

Do you know how to make it so that it replaces the jpg? I can't figure it out.


jerm

you remove this code and replace it with what was suggested
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

Napaster

   
People how to insert the flash logo to SMF 1.1.2? help ... is urgently ..

greyknight17

Napaster, you will need to try replacing the code for the header logo with the sample flash code mentioned above. If you still need help with this, please open up a new topic. I also recommend that you update to SMF 1.1.8.

Topic locked since it's abandoned by the original poster.

Advertisement: