Back to top

Autore Topic: Inserimento file .swf  (Letto 2249 volte)

Offline mobileadv

  • Esploratore
  • **
  • Post: 92
  • Sesso: Maschio
    • Mostra profilo
Inserimento file .swf
« il: 17 Set 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?

Offline mobileadv

  • Esploratore
  • **
  • Post: 92
  • Sesso: Maschio
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #1 il: 17 Set 2009, 23:30:16 »
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]&nbsp;&nbsp;&nbsp;
      <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:&nbsp;&nbsp;
      <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
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>

Offline tonicopi

  • Global Moderator
  • Instancabile
  • ********
  • Post: 12790
  • Sesso: Maschio
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #2 il: 17 Set 2009, 23:37:30 »
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
joomlacsszengarden.com = il giardino dei css di Joomla!
L'attesa del piacere è essa stessa... piacere!

Offline mobileadv

  • Esploratore
  • **
  • Post: 92
  • Sesso: Maschio
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #3 il: 18 Set 2009, 20:16:54 »
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  ::)

Offline mobileadv

  • Esploratore
  • **
  • Post: 92
  • Sesso: Maschio
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #4 il: 18 Set 2009, 20:20:43 »
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

Offline mobileadv

  • Esploratore
  • **
  • Post: 92
  • Sesso: Maschio
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #5 il: 19 Set 2009, 08:48:34 »
Mi sorge un dubbio....
Non è che devo modificare pure il css?  ::)

Offline mobileadv

  • Esploratore
  • **
  • Post: 92
  • Sesso: Maschio
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #6 il: 23 Set 2009, 10:26:31 »
Up.  ;D
Almeno spero di poter risolvere.

Offline FRA92

  • Esploratore
  • **
  • Post: 88
  • Sesso: Maschio
  • Io sono il frutto di quello che mi è stato fatto
    • Mostra profilo
Re:Inserimento file .swf
« Risposta #7 il: 27 Set 2009, 14:24:26 »
l'argomento è stato già trattato provate a cercare nel forum
ciao

 



Web Design Bolzano Kreatif