Back to top

Autore Topic: [risolto]cambiare una foto al template  (Letto 1888 volte)

Offline coolrunning

  • Esploratore
  • **
  • Post: 91
    • Mostra profilo
[risolto]cambiare una foto al template
« il: 04 Gen 2012, 18:07:26 »
salve a tutti , sto facendo un sito per un'amica con joomla
ho preso un template da questo sito
il template si chiama : siteground-j16-21
e il sito che le sto facendo lo trovate su sabrinamugnos.altervista.org

l'immagine di sfondo si chiama : pagebg.PNG

e nel file index io lo trovo solo nel body cosi :
<body id="page_bg">

ed io dovrei mettere un file sfw , quindi cambiare la scritta , con questo codice :

<embed src="Senzanome2.swf" height=500 width=1000>

o cmq qualcosa per far funzionare il file in swf , come devo fare ?
da dove lo devo modificare ? dove trovo i file id ?

grazie mille , anticipatamente
« Ultima modifica: 05 Gen 2012, 19:46:22 da coolrunning »

adottauncane

  • Visitatore
Re:cambiare una foto al template
« Risposta #1 il: 04 Gen 2012, 18:13:17 »
Ciao coolrunning,
questo articolo è per la versione 1.5 ma credo vada bene anche per la 1.7
http://www.joomla.it/articoli-della-community/785-inserire-una-animazione-flash-in-joomla-15.html

Offline coolrunning

  • Esploratore
  • **
  • Post: 91
    • Mostra profilo
Re:cambiare una foto al template
« Risposta #2 il: 04 Gen 2012, 20:06:57 »
mi sono letto la guida ma non ci ho capito moltissimo

praticamente io ho nell'index:

<div class="bgwrap">

che va a leggere in sistem.css questo codice :

.bgwrap {
background:url("../images/pagebg.png") top center no-repeat;
}

io ho provato a sostituire il comando nell'index con quello che dice la guida :

Citazione
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
   width="978" height="80">
<param name="width" value="978" />
<param name="height" value="80" />
<param name="src" value="templates/nometemplate/images/logo.swf" />
<param name="quality" value="high" />
<embed type="application/x-shockwave-flash" width="978" height="80"
 src="/templates/nometemplate/images/logo.swf" quality="high">
</embed>
</object>


ovviamente con i miei indirizzi , e praticamente ,al centro , della grandezza dell'immagine , l'immagine non si vede più
e in alto con uno sfondo bianco , appare la mia immagine,

come devo fare ?



Offline coolrunning

  • Esploratore
  • **
  • Post: 91
    • Mostra profilo
Re:cambiare una foto al template
« Risposta #3 il: 05 Gen 2012, 14:10:40 »
il mio file index è questo :

Citazione
<?php
/**
 * @version        $Id: index.php $
 * @package        Joomla.Site
 * @copyright    Copyright (C) 2009 - 2011 SiteGround.com - All Rights Reserved.
 * @license        GNU General Public License version 3 or later; see LICENSE.txt
   
 *    This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.

 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// No direct access.
defined('_JEXEC') or die;

JHTML::_('behavior.framework', true);

/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
$tplparams    = $app->getTemplate(true)->params;
?>
<!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; ?>" dir="<?php echo $this->direction; ?>">
<head>
    <jdoc:include type="head" />
    <!-- The following line loads the template CSS file located in the template folder. -->
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>
<body id="page_bg">
<div class="bgwrap">




<div class="top-menu">
    <div id="sgmenu">
            <jdoc:include type="modules" name="menuload" />
        </div>
    </div>
    <div id="header">
                           
    </div>
    <div id="wrapper">
       
            <?php if ($this->countModules( 'position-7 and position-4' )) : ?>
            <div class="maincol">                 
            <?php elseif( $this->countModules( 'position-7' ) ) : ?>
            <div class="maincol_w_left">
            <?php elseif( $this->countModules( 'position-4' ) ) : ?>
            <div class="maincol_w_right">
            <?php else: ?>
            <div class="maincol_full">
            <?php endif; ?>
           
                <?php if( $this->countModules('position-7') ) : ?>
                    <div class="leftcol">
                        <jdoc:include type="modules" name="position-7" style="rounded"/>
                    </div>
                    <?php endif; ?>
                   
                        <div class="cont">
                            <jdoc:include type="component" />
                        </div>
                   
                <?php if( $this->countModules('position-4') ) : ?>
                <div class="rightcol">
                    <div id="search">
                        <jdoc:include type="modules" name="position-0" />
                    </div>
                    <jdoc:include type="modules" name="position-4" style="rounded"/>
                </div>
                <?php endif; ?>
                <div class="clr"></div>
            </div>
           
        </div>
       
    </div>
   
   
    <div id="footer"></div>

   
</div>   
</body>
</html>


qualcuno mi sa suggerire , come fare , per cambiare il :

Citazione
<div class="bgwrap">


che va a leggere :
Citazione
.bgwrap { background:url("../images/introduzione.gif") top center no-repeat; }


nel file css ?

adottauncane

  • Visitatore
Re:cambiare una foto al template
« Risposta #4 il: 05 Gen 2012, 15:42:58 »
Hai provato ad inserire il codice sotto
<div class="bgwrap">e prima di
<div class="top-menu">

Il css invece commentalo e vedi che succede. Magari metti un link al sito.

Offline coolrunning

  • Esploratore
  • **
  • Post: 91
    • Mostra profilo
Re:cambiare una foto al template
« Risposta #5 il: 05 Gen 2012, 16:22:37 »
ho provato ma nn va , lo inserisce prima dell'immagine di sfondo

però ho risolto , ho inserito

    <embed src="Senzanome2.swf" height=345 width=1050 align="center">

in mezzo all'header

  <div id="header">
           <embed src="Senzanome2.swf" height=345 width=1050 align="center">         
    </div>
    <div id="wrapper">

e praticamente me l'ha messo sopra all'immagine , e quindi la copro e va bene lo stesso xD !!!!!

adottauncane

  • Visitatore
Re:cambiare una foto al template
« Risposta #6 il: 05 Gen 2012, 18:24:55 »
Ma l'immmagine puoi levarla semplicemente togliendola dal css che la richiama.

Offline coolrunning

  • Esploratore
  • **
  • Post: 91
    • Mostra profilo
Re:cambiare una foto al template
« Risposta #7 il: 05 Gen 2012, 19:46:07 »
ottimo , buono a sapersi ... dopo provo

 



Web Design Bolzano Kreatif