• Welcome to Simple Machines Community Forum. Please login or sign up.
October 16, 2021, 10:02:27 AM

News:

Wondering if this will always be free?  See why free is better.


[SOLVED] Are Flash Banners Possible in 2.0b4?

Started by tmaximus95, December 07, 2008, 02:21:47 PM

Previous topic - Next topic

tmaximus95

December 07, 2008, 02:21:47 PM Last Edit: December 07, 2008, 07:26:30 PM by Amacythe
I would like to install a flash banner (480 x 60) on the header of my forum. Does anyone know if it is possible, or if there's a mod that helps with doing that?

Thanks.

TMax.
"Injustice anywhere is a threat to jutice everywhere."

Kermit

Sure it's possible

which theme are you using now ?
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

tmaximus95

"Injustice anywhere is a threat to jutice everywhere."

Kermit

in index.template.php

Code (find) Select

// The main sub template above the content.
function template_html_above()
{


Code (add before) Select

echo'
<div align="center">
<iframe src="your banner url comes here" widht="480" height=60"></iframe>
</div><br /><br />';
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

tmaximus95

"Injustice anywhere is a threat to jutice everywhere."

Bugpac ™

I have a related question, how can i post my url banner in the center of the header block?

Kermit

Quote from: Bugpac ™ on December 07, 2008, 07:02:55 PM
I have a related question, how can i post my url banner in the center of the header block?

can you show me it with a picture,exactly where you want to locate your banner
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Bugpac ™


Kermit

Quote from: Bugpac ™ on December 08, 2008, 10:20:18 PM
www.dtsfab.com

I just want to put my logo in the center...

please attach your index.template.php
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein


Kermit

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

pr.nizar

What if I don't want to use an iframe? Is it possible anyway? Coz dealing with the background of the flash banner specially with transparancy  is difficult this way..
I tried to edit directly the index.template.php by deleting
<a href="'.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>
and puting my flash banner:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="banner" width="400" height="100">
<param name="movie" value="banner.swf">
<param name="bgcolor" value="#FFFFFF">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
<param name="title" value="My logo rocks!">
<param name="standby" value="Loading.. maybe.. I'm not sure..">
<param name="allowscriptaccess" value="never">
<param name="allownetworking" value="none">
<embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="banner" width="400" height="100" src="banner.swf" bgcolor="#FFFFFF" quality="high" menu="false" wmode="transparent" title="My logo rocks!" standby="Loading.. maybe.. I'm not quite sure.." swliveconnect="true" allowscriptaccess="never" allownetworking="none">
<noembed>
Get yourself a decent flash player from <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Adobe</a>
</noembed>
</embed>
</object>

or some simple:
<embed src="banner.swf"></embed>
or even:
<embed src="http://mysiteaddress/path/banner.swf"></embed>
Flash movie didn't even load!  >:(
I use SMF 2.0 RC1.2, SimplePortal 2.2.2 and Airy_Midnight Theme by Crip.. No special mods added..
Do you think that this have anything to do with SMF since you used an iframe to reply to this problem? ;) I tried every possible mean please help! :'(

P.S: Sorry for my poor english, english is only my third spoken language.. O:)

Arantor

The reason it failed is because you had a ' in the line: <param name="standby" value="Loading.. maybe.. I'm not sure..">

If you replace the ' with \' it should work.

Failing that, please open a new topic and attach your index.template.php (this topic is marked solved, it may not get the proper attention from the support people)
No good deed goes unpunished
All helpful urges should be circumvented

pr.nizar

I'm sorry that wasn't the problem!! :P
My real content was:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="banner" width="702" height="90">
<param name="movie" value="http://fms.o-n.fr/banner.swf">
<param name="bgcolor" value="#FFFFFF">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
<param name="title" value="FMS: Forum NON-OFFICIEL">
<param name="standby" value="Chargement en cours..">
<param name="allowscriptaccess" value="never">
<param name="allownetworking" value="none">
<embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="banner" width="702" height="90" src="http://fms.o-n.fr/banner.swf" bgcolor="#FFFFFF" quality="high" menu="false" wmode="transparent" title="FMS: Forum NON-OFFICIEL" standby="Chargement en cours.." swliveconnect="true" allowscriptaccess="never" allownetworking="none"></embed>
</object>

Instead of:
<a href="'.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>
in index.template.php of my Airy_Midnight Theme.

It was my host that blocked flash content I don't know why!!! >:(

I changed my host and every thing is going smooth! ;) A free one too! :D Can't afford to have a credit card where I am (Tunisia don't tell it to anyone)! ;D
Thank you anyway! O:)

GOD BLESS SMF AND THE WORLD WIDE WEB! 8)

Advertisement: