PDA

View Full Version : Banner Code


killzone
10-20-2006, 04:26 AM
what files do you modify to edit the top banner of most skins for subdreamer.
so if you what to modify the the code to embed a flash logo. I know how to embed flash any where else but I don't know how to modify the skin to replace the banner at the top. What files or folders do I need to edit. could somebody please post the code and files names...

SSSlippy
10-20-2006, 03:51 PM
Well what skin are using first of all?
If you look in the skin file for

<?php echo $logo ?>

That is the area where the header usually is(not always).

killzone
10-20-2006, 10:09 PM
yes that code is in the skin files now what....how do you direst it to the flash banner

SSSlippy
10-20-2006, 10:16 PM
What you need to do is replace all the image files with the flash file. If you told me what skin you were using I could tell you what lines to change.

killzone
10-21-2006, 05:48 PM
Im testing it on the dawn skin


http://www.subdreamer.com/plugins/p13_download_manager/images/128.jpg

I thought of a easy way if you could tell me how to remove the top banner and just move everything up I can just make a plugin and put it in the top postion

killzone
10-22-2006, 03:17 AM
SSSlippy

don't leave me now....

72dpi
10-22-2006, 04:17 AM
Now, when u say banner, do U mean the banner graphic", or do you mean the Logo, as SSSlippy stated?

if it is the logo, simply:
Open up: dawn > dawn_1.php
find:
<?php echo $logo; ?>
Then replace that with your own flash code.

if you mean the banner top graphic,

Open up: dawn > dawn_1.php
Find: <table width="100%" border="0" cellpadding="0" cellspacing="0" class="banner">
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%" valign="top" class="background_12"></td>
</tr>
</table>This refers to the style in "styles.css" called banner:
.banner
{ background-image:url(images/dw_banner.jpg); background-repeat:no-repeat; background-position: top left; height: 139px; }Now, this image has a graphic element in the top left (and the border), which ties in with the overall theme. You will need to deep etch this & add it to your flash file if you want to add to the overall quality of the template. not essential, but I recommend to keep the overall aesthetics.

Now, we need to add your flash movie...
To keep the movie the same dimensions for the layout, create it as:

454px wide by 134px high

if you need a nice preloader, gimme post back and I will set u up with one.

now, I recommend using the following changes to make this work:
]
Change your css above to:
.banner
{ height: 139px; }Change the table above to:

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="banner">
<tr>
<td width="100%">
<script language="JavaScript1.1" type="text/javascript">
<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="453" height="134" id="index" align="middle">');
document.write(' <param name="allowScriptAccess" value="sameDomain" />');
document.write(' <param name="movie" value="path/to/your/movie.swf" />');
document.write(' <param name="menu" value="false" />');
document.write(' <param name="quality" value="high" />');
document.write(' <param name="scale" value="noscale" />');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="bgcolor" value="#ffffff" />');
document.write(' <embed src="path/to/your/movie.swf" menu="false" quality="high" scale="noscale" wmode="transparent" bgcolor="#ffffff" width="454" height="134" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write(' </embed>');
document.write(' </object>');
} else{
document.write('<img src="path/to/your/noflash_image.jpg" alt="My Website" width="454" height="134" border="0" />');
}
//-->
</script><noscript><img src="path/to/your/noflash_image.jpg" alt="My Website" name="noflash_image" width="454" height="134" border="0" id="noflash_image" /></noscript>
</td>
</tr>
<tr>
<td width="100%" valign="top" class="background_12"></td>
</tr>
</table>This give you a javascript flash embed, with alternate image & javascript noflash content. Please note you need to change tha paths to the flash and the alternate images above.
ie: (path/to/your/noflash_image.jpg)

Hope this helps..

SSSlippy
10-22-2006, 04:29 AM
haha 72dpi u did what I was going to eventually.

killzone
10-22-2006, 09:15 PM
Thank you both for your efforts I will let you know how my attempt went

killzone
10-23-2006, 09:00 PM
I can't get the above to work so is there a way to remove the banner top image completely? that way the plugin will take its place at the top of the page.

72dpi
10-24-2006, 01:54 AM
Without seeing what you are doing, it is kinda like flying blind.

My code mod should work, after all, I am replacing the existing tables structure with a bit of flash, I can't see how it won't work, unless I missed something (which is more than likely heh heh).

Do you have a link?

killzone
10-24-2006, 02:18 AM
Actually I don't want the flash banner, I just want to remove the current image banner and replace it with a plugin..no link testing it locallyy