- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 51 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How to add flash banner as logo? [ ]
Author
Message
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Sun Feb 16, 2003 11:20 pm
i made a flash banner at flashbannernow.com and it gave me a java script code for the flash banner.
i dont know where to put this code to make this my site logo.
i tried to add the javascript in the theme.php in my theme folder, and it didnt work.
tried to add that code in myheader.php and it didnt work.
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Mon Feb 17, 2003 12:10 am
i managed to download the flash banner swf file
now i want to know how to get this thing to run in my website
i haven't use flash before, so this thing is kind of new to me
thx
mikem
Theme Guru
Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
Posted:
Mon Feb 17, 2003 6:56 am
All you need is the swf flash file and you will have to manually edit your theme.php file and replace the <img src= tag for the logo.gif line that is in there now to somehting like this.
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="25">
<param name=movie value="images/logo2.swf">
<param name=quality value=high>
<embed src="images/logo2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="25">
</embed>
</object>
Now, the above code I gave you WILL NOT work as-is. It will have to be modified some for the flash image to work in the theme.php file.
Please post a link to your theme.php file, OR past the code here so I can try to do it for you.
mikem
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Mon Feb 17, 2003 12:23 pm
here's my themeheader() function code:
function themeheader() {
echo "<body bgcolor=\"ffffff\" text=\"000000\" link=\"0000ff\" vlink=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
}
echo "<br>"
."<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"ffffff\">"
."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"ffffff\"><tr><td>"
."<a href=\"index.php\"><img src=\"themes/ExtraLite/images/logo2.jpg\" alt=\"Welcome to $sitename\" title=\"Welcome to $sitename\" border=\"0\"></a>"
."</td><td align=\"right\">"
."<form action=\"modules.php?name=Search method=\"post\">"
."<font class=\"content\">Search"
."<input type=\"text\" name=\"query\">"
."</font></form>"
."</td></tr></table></td></tr><tr><td valign=\"top\" width=\"100%\" bgcolor=\"ffffff\">";
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"ffffff\">";
blocks(left);
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&&</td><td width=\"100%\" valign=\"top\">";
}
thx
mikem
Theme Guru
Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
Posted:
Mon Feb 17, 2003 5:20 pm
You can TRY this. I do not know if it will work. I was unable to test it on my testsite.
Backup your original theme.php file first.
Code:
function themeheader() {
echo "<body bgcolor=\"ffffff\" text=\"000000\" link=\"0000ff\" vlink=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
}
echo "<br>"
."<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"ffffff\">"
."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"ffffff\"><tr><td>"
."<a href=\"index.php\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"150\" height=\"25\">"
."<param name=movie value=\"images/logo2.swf\">"
."<param name=quality value=high>"
."<embed src=\"images/logo2.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"150\" height=\"25\">"
."</embed>"
."</object>"
."</td><td align=\"right\">"
."<form action=\"modules.php?name=Search method=\"post\">"
."<font class=\"content\">Search"
."<input type=\"text\" name=\"query\">"
."</font></form>"
."</td></tr></table></td></tr><tr><td valign=\"top\" width=\"100%\" bgcolor=\"ffffff\">";
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"ffffff\">";
blocks(left);
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&&</td><td width=\"100%\" valign=\"top\">";
}
replace logo2.swf with your .swf filename. Also change the 2 widths and 2 heights to your flash logo width and height.
mikem
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Mon Feb 17, 2003 6:53 pm
my theme uses a header.html file
so i added the following code in it, there's a place for the banner showing white, instead of the flash banner.
i'm not sure what's wrong.
here's the code:
Code:
<!-- flash banner -->
<a href="index.php"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="468" height="60">
<param name=movie value="/theme/Starlight/images/PurpleBanner.swf">
<param name=quality value=high>
<embed src="/theme/Starlight/images/PurpleBanner.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="468" height="60">
</embed></object></a></td>
mikem
Theme Guru
Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
Posted:
Mon Feb 17, 2003 7:24 pm
but the above code you posted for your function themeheader indicates you're using ExtraLite theme?
if your theme does in fact use a header.html file, then yes the code you are posting should work, but remove the <a href tags(that should be embedded in the swf file).
And it should go inbetween your <td tags for the left <td tags in that <table. hehe...
like this
Code:
<table><td width="60%"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="480">
<param name=movie value="/theme/Starlight/images/PurpleBanner.swf">
<param name=quality value=high>
<embed src="/theme/Starlight/images/PurpleBanner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="480">
</embed>
</object></td><td width="40%"></td></table>
mikem
like the way I left my name in the code...that took skill...
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Mon Feb 17, 2003 7:29 pm
i switched to a theme with black background, cuz my flash banner is in black.
i will try to remove that <a href part
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Mon Feb 17, 2003 7:31 pm
still not working, let me post the whole header.html here so u can have the whole picture.
Code:
<body bgcolor="#000000" text="#CCCCFF" link="#9999FF" vlink="#9999CC" alink="#9966CC">
<br>
<p>
<br>
$banner
<br>
<table cellpadding="0" cellspacing="0" width="99%" border="0" align="center" bgcolor="#000000">
<tr>
<td bgcolor="#000000">
&
<!-- flash banner -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="468" height="60">
<param name=movie value="PurpleBanner.swf">
<param name=quality value=high>
<embed src="PurpleBanner.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="468" height="60">
</embed></object></td>
<!-- original code -->
<!--<a href="index.php"><img src="themes/Starlight/images/logo.gif" align="left" alt=""._WELCOMETO." $sitename" border="0" hspace="10"></a></td>
-->
<td bgcolor="#000000"><IMG src="themes/Starlight/images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td>
<td bgcolor="#000000" align="center">
<center><form action="modules.php?name=Search" method="post"><font class="content" color="#000000"><b>Search </b>
<input type="text" name="query" size="14"></font></form></center></td>
<td bgcolor="#000000" align="center">
<center><form action="modules.php?name=News&new_topic" method="post"><font class="content"><b>Topics </b>
$topics_list
</select></font></form></center></td>
</tr></table>
<table cellpadding="0" cellspacing="0" width="99%" border="0" align="center" bgcolor="#fefefe">
<tr>
<td bgcolor="#000000" colspan="4"><IMG src="themes/Starlight/images/pixel.gif" width="1" height=1 alt="" border="0" hspace="0"></td>
</tr>
<tr valign="middle" bgcolor="#dedebb">
<td width="15%" nowrap bgcolor="#000000"><font class="content" color="#363636">
<b>$theuser</b></font></td>
<td align="center" height="20" width="70%" bgcolor="#000000"><font class="content"><B>
<a href="index.php">Home</a>
&&&
<A href="topics.html">Topics</a>
&&& <a href="modules.php?name=Downloads">Downloads</a>
&&&
<A href="modules.php?name=Your_Account">Your Account</a>
&&&
<A href="submit.html">Submit News</a>
&&&
<A href="top.html">Top 10</a>
</B></font>
</td>
<td align="right" width="15%" bgcolor="#000000"><font class="content"><b>
<script type="text/javascript">
<!-- // Array ofmonth Names
var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
// -->
</script></b></font></td>
<td bgcolor="#000000">&</td>
</tr>
<tr>
<td bgcolor="#000000" colspan="4"><IMG src="themes/Starlight/images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td>
</tr>
</table>
<!-- FIN DEL TITULO -->
<table width="99%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" align="center"><tr valign="top">
<td bgcolor="#000000">$public_msg<img src="themes/Starlight/images/pixel.gif" width="1" height="20" border="0" alt=""></td></tr></table>
<table width="99%" cellpadding="0" cellspacing="0" border="0" bgcolor="#000000" align="center"><tr valign="top">
<td bgcolor="#000000"><img src="themes/Starlight/images/pixel.gif" width="10" height="1" border="0" alt=""></td>
<td bgcolor="#000000" width="150" valign="top">
peaceV
Corporal
Joined: Feb 15, 2003
Posts: 50
Location: USA
Posted:
Mon Feb 17, 2003 11:22 pm
after i switched to the javascript code that's supplied with the free banner, i got the flash banner to show in my website finally.
but IE 6.0 seems to need a few refresh for me to load my pages.
anyone know what's the problem?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum