Trying to add a Flash Banner

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

Trying to add a Flash Banner

Postby Rifkin » Mon Dec 11, 2006 11:23 am

I have been trying to add a flash movie to the roters banner.
Ihave modified the roster_header.tpl like so which seems to show in Firefox but doesn't show up in IE
Code: Select all
<?php
/******************************
 * WoWRoster.net  Roster
 * Copyright 2002-2006
 * Licensed under the Creative Commons
 * "Attribution-NonCommercial-ShareAlike 2.5" license
 *
 * Short summary
 *  http://creativecommons.org/licenses/by-nc-sa/2.5/
 *
 * Full license information
 *  http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode
 * -----------------------------
 *
 * $Id: roster_header.tpl 244 2006-10-10 00:17:58Z zanix $
 *
 ******************************/

define('HEADER_INC',true);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>[<?php echo $roster_conf['guild_name']; ?> Roster] <?php echo (isset($header_title) ? $header_title : ''); ?></title>
  <link rel="stylesheet" type="text/css" href="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['stylesheet'] ?>">
<?php echo (isset($more_css) ? $more_css : ''); ?>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['roster_js']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['tabcontent']; ?>">
    /***********************************************
    * Tab Content script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
  </script>
<object width"955" height="216">
<param name="movie" value="done.swf">
<embed src="http://c5nt.net/roster/img/done.swf" width="955" height="216">
</embed>
</object>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['overlib']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['overlib_hide']; ?>"></script>
<?php echo (isset($html_head) ? $html_head : ''); ?>
</head>
<body style="background-image:url(<?php echo $roster_conf['roster_bg']; ?>);" <?php echo (isset($body_action) ? $body_action : ''); ?>>
<div align="center">

<?php
if( !isset($roster_conf['char_header_logo']) || $roster_conf['char_header_logo'] )
{
   echo '<div style="text-align:center;margin:10px;"><a href="'.$roster_conf['website_address'].'">
  <img src="'.$roster_conf['logo'].'" alt="" style="border:0;margin:10px;" /></a>
</div>';

}
?>

<!-- End Roster Header -->

Any help you guys could give would rock.
Thanks :)
Rifkin
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sun Dec 10, 2006 4:30 am

Trying to add a Flash Banner

Postby Nitearrow » Sat Jan 06, 2007 4:36 pm

I figured out how to put flash in to my site just change the info for your site

Code: Select all
<?php
/******************************
 * WoWRoster.net  Roster
 * Copyright 2002-2006
 * Licensed under the Creative Commons
 * "Attribution-NonCommercial-ShareAlike 2.5" license
 *
 * Short summary
 *  http://creativecommons.org/licenses/by-nc-sa/2.5/
 *
 * Full license information
 *  http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode
 * -----------------------------
 *
 * $Id: roster_header.tpl 398 2006-12-29 11:15:41Z zanix $
 *
 ******************************/

define('HEADER_INC',true);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>[<?php echo $roster_conf['guild_name']; ?> Roster] <?php echo (isset($header_title) ? $header_title : ''); ?></title>
  <link rel="stylesheet" type="text/css" href="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['stylesheet'] ?>">
<?php echo (isset($more_css) ? $more_css : ''); ?>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['roster_js']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['tabcontent']; ?>">
    /***********************************************
    * Tab Content script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
  </script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['overlib']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['overlib_hide']; ?>"></script>
<?php echo (isset($html_head) ? $html_head : ''); ?>
</head>
<div align="center"><td width="201" nowrap="nowrap"><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="1266" height="112">
   <param name="movie" value="/images/EDlogo.swf">
   <param name="quality" value="High">
   <embed src="/images/EDlogo.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="1266" height="112"></object>
<br /></td>
<body style="background-image:url(<?php echo $roster_conf['roster_bg']; ?>);" <?php echo (isset($body_action) ? $body_action : ''); ?>>
<div align="center">

<?php
if( !isset($roster_conf['char_header_logo']) || $roster_conf['char_header_logo'] )
{
}
?>

<!-- End Roster Header -->


i hope this helps
Nitearrow
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Jul 06, 2006 9:30 am

Trying to add a Flash Banner

Postby Averen » Sat Jan 06, 2007 5:03 pm

You'd want the object code after the <body> tag.
User avatar
Averen
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron