Inserimento file .swf nell'header
-
Ciao a tutti voi.

Grazie al forum GT ho scoperto Joomla e subito è stata passione.
Magari in altro post potrò raccontare come andarono le cose, fatto sta che ora non posso più veramente farne a meno.
Bando alle ciance, vengo al mio problema.
Io avrei terminato il mio sito, l'unica cosa che ancora non ho capito come si fa è la sostituzione nel template del file .png con un file .swf.
Riepilogo: template utilizzato dj-0013 che presenta il seguente codice nel file index.php:<?php /*-------------------------------------------------------------- # December 2008 (for Joomla 1.5) # Copyright (C) design-joomla.eu All Rights Reserved. # License: Copyrighted Commercial Software # Website: # Support: ---------------------------------------------------------------*/ defined( '_JEXEC' ) or die( 'Restricted access' ); $url = clone(JURI::getInstance()); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " "> <html xmlns=" "> xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" /> <?php require( "templates/".$this->template . "/menu.php"); require( "templates/".$this->template . "/cssloader.php");?> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/editor.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_<?php echo $font_color;?>.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/favicon.ico"/> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/general_<?php echo $font_color;?>.css" type="text/css" /> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/horizontal_<?php echo $font_color;?>.css" rel="stylesheet" type="text/css"/> <script language="javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/animation.js" type="text/javascript"></script> <script language="javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/cssmenus.js" type="text/javascript"></script> <!--[if lte IE 6]> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" /> <![endif]--> <?php if($this->countModules('left and right') == 0) $contentwidth = "100"; if($this->countModules('left or right') == 1) $contentwidth = "80"; if($this->countModules('left and right') == 1) $contentwidth = "60"; ?> <!--<?php if($this->get('template_width') == 0) { ?> <style type="text/css"> #wrap {width:960px;} </style> <?php } ?> <?php if($this->get('template_width') == 1) { ?> <style type="text/css"> #wrap {width:960px;} </style> <?php } ?> <?php if($this->get('template_width') == 2) { ?> <style type="text/css"> #wrap {min-width:760px;max-width:960px;width: auto !important;width:960px;} </style> <?php } ?>--> </head> <body class="<?php echo $font_s; ?>"> <div id="all" align="center"> <div id="wrap<?php echo "_".$width; ?>"> <div id="logo_search" class="clearfix"> <div id="logo"><a href="index.php"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.jpg" alt="home" border="0"/></a></div> <div id="search"> <jdoc:include type="modules" name="user4"/> </div> </div> <div id="topmenu_icons" class="clearfix"> <div id="icons"> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?width=narrow" title="Narrow width"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/images/narrow.gif" alt="n" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?width=wide" title="Wide width"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/wide.gif" alt="w" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_color=green" title="Wide width"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/green.gif" alt="w" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_color=default" title="Wide width"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/blue.gif" alt="w" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_color=orange" title="Wide width"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/orange.gif" alt="w" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_color=red" title="Wide width"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/red.gif" alt="w" border="0"/></a> </div> <div align="right"> <div id="topmenu"><?php mosShowListMenu('topmenu');?></div> </div> </div> <div id="baner"> <?php if($this->countModules('advert1')) { ?> <jdoc:include type="module" name="advert1" style="xhtml" /> <?php } else{ ?> <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/baner.jpg" alt="baner" border="0"/> <?php }?> <?php if($this->countModules('advert2')) : ?> <div id="baner_module"> <jdoc:include type="modules" name="advert2" /> </div> <?php endif; ?> </div> <div id="path_fonts" class="clearfix"> <div id="path">You are here: <jdoc:include type="module" name="breadcrumbs" /> </div> <div id="fonts"> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_s=large" title="Font size"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $font_color;?>/big_font.gif" alt="large" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_s=smaller" title="Font size"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $font_color;?>/small_font.gif" alt="small" border="0"/></a> <a href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/csschanger.php?font_s=default" title="Font size"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $font_color;?>/default_font.gif" alt="default" border="0"/></a> </div> </div> <div id="contener" class="clearfix"> <?php if($this->countModules('left')) : ?> <div id="sidebar"> <jdoc:include type="modules" name="left" style="xhtml" /> </div> <?php endif; ?> <div id="content<?php echo $contentwidth; ?>"> <div class="inside"> <jdoc:include type="message" /> <jdoc:include type="component" style="xhtml" /> </div> </div> <?php if($this->countModules('right')) : ?> <div id="sidebar-2"> <jdoc:include type="modules" name="right" style="xhtml" /> </div> <?php endif; ?> </div> <div id="footer" class="clearfix"> <div id="xhtml_css"> Powered by <b>Joomla!</b>. <a href="" ">" target="_blank" title="Joomla templates">Joomla Templates - Design-Joomla.eu</a> Valid <a href="" "></a> and <a href="" "> echo $url->toString();?>">CSS</a> </div> <div id="rss"><jdoc:include type="modules" name="syndicate" /></div> </div> </div> <!--end of wrap--> </div> </body> </html>La domanda che pongo è: e poi? cosa devo fare per sostituire l'immagine nell'header denominata baner.png?
Grazie anticipato a tutti.
-
Ciao
prova inserendo questa parte di codice<object type="application/x-shockwave-flash" data="nomedeltuofile.swf" width="..." height="..."> <param name="movie" value="nomedeltuofile.swf"/> </object>al posto di
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/baner.jpg" alt="baner" border="0"/>Però non conoscendo bene joomla non so la parte di codice in php a cosa serva comunque con quel pezzo di codice non perdi nemmeno la validazione xhtml
Aspetta che qualcuno più esperto intervenga,anzi se gentilmente potesse spiegarmi a cosa serva visto che mi interessa

Ciao -
-
-
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi
