Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : mobileadv 17 Sep 2009, 22:58:50
-
Ammetto che sto diventando matto, ma Joomla mi ha preso assai ;D anche se sono un neofita...
Vorrei caricare un file .swf sul template dj-003 sostituendo l'immagine baner.jpg presente ma non riesco a capire il procedimento ::)
Ho provato a fare ricerche ma tutte le spiegazioni riportano sostituzioni da fare nell'header del file index.php, ma qui mi sembra che sia un punto diverso.
Chi mi aiuta?
-
Per semplificare metto il codice del file index.php del template:
<?php
/*--------------------------------------------------------------
# December 2008 (for Joomla 1.5)
# Copyright (C) design-joomla.eu All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.design-joomla.eu
# Support: joomla-monster@design-joomla.eu
---------------------------------------------------------------*/
defined( '_JEXEC' ) or die( 'Restricted access' );
$url = clone(JURI::getInstance());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 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"/>[/url]</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"/>[/url]
<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"/>[/url]
<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"/>[/url]
<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"/>[/url]
<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"/>[/url]
<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"/>[/url]
</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"/>[/url]
<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"/>[/url]
<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"/>[/url]
</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 Joomla!. <a href="http://www.joomla-monster.com" target="_blank" title="Joomla templates">Joomla Templates - Design-Joomla.eu[/url] Valid XHTML
(http://validator.w3.org/check?uri=referer) and
<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo $url->toString();?>">CSS[/url] </div>
<div id="rss"><jdoc:include type="modules" name="syndicate" /></div>
</div>
</div>
<!--end of wrap-->
</div>
</body>
</html>
-
Perchè diverso?
Io credo proprio che tu debba sostituire l'immagine jpg :)
Vedi se ti può aiutare questo articolo:
http://www.joomla.it/articoli-della-community/785-inserire-una-animazione-flash-in-joomla-15.html
-
sarà anche utile l'articolo, ma non riesco prorpio a crearlo ???
non riesco a capire il "blocco" dei codici da sostituire. C'ho provato ma l'unico risultato ottenuto, dopo aver salvato è pagina sconosciuta ::)
-
può anche darsi che sbaglio procedimento.
Dunque io apro index.php con ConText e incollo il codice al posto di:
<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" />
apportando ovviamente gli opportuni aggiustamenti di dimensione e percorso del file nella root
-
Mi sorge un dubbio....
Non è che devo modificare pure il css? ::)
-
Up. ;D
Almeno spero di poter risolvere.
-
l'argomento è stato già trattato provate a cercare nel forum
ciao