Back to top

Autore Topic: [RISOLTO] modifica template pjo frontena  (Letto 3272 volte)

Offline doppioconfronto

  • Nuovo arrivato
  • *
  • Post: 25
    • Mostra profilo
[RISOLTO] modifica template pjo frontena
« il: 12 Feb 2012, 17:39:16 »
Buon pomeriggio a tutti. Volevo sapere se era possible lasciare lo slideshow del template in oggetto soltanto nell'home page. Dalle opzioni del template non è possibile configurare questa opzione. Il template lo trovate caricato qui http://www.svilupposito1000.altervista.org di seguito posto anche il codice della index del template
Codice: [Seleziona]
<?php
defined
('_JEXEC') or die;
include_once (
dirname(__FILE__).DS.'/at_tools.php');
#$this->at_color_themes = array('default','color1','color2','color3');
$tempTools = new at_Tools($this);
$ATconfig $tempTools->getUserSetting();
$at_left $this->countModules('left');
$at_right $this->countModules('right');
if ( 
$at_left && $at_right 
{
$divid '';

elseif ( 
$at_left 
{
$divid '-fr';
}
elseif ( 
$at_right 
{
$divid '-fl';
}
else 
{
$divid '-f';
}
?>

<!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>
<!--[if lte IE 6]><P>
<style type="text/css">
#logo, h3, #at-wrapfooter, #at-search { behavior: url("<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/scripts/iepngfix.htc"); }
.clearfix {height: 1%;}
div.module h3, div.module_menu h3, div.module-blank h3, div.module_text h3 { behavior: url("<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/scripts/iepngfix.htc"); }
#at-pathway { behavior: url("<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/scripts/iepngfix.htc"); }
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
<jdoc:include type="head" />
<?php $tempTools->genMenuHead(); ?>
<link href="<?php echo $this->baseurl ?>/templates/system/css/system.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl ?>/templates/system/css/general.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/css/colors/<?php echo $ATconfig->at_color?>.css" type="text/css" />


<script type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/scripts/at.script.js"></script>


</head>
<body class="<?php echo $ATconfig->at_width." zupa".$ATconfig->at_font_size;?>" id="bd">
<a name="up" id="up">[/url]
<div id="at-wrapper">
<div id="at-wrapheader" class="clearfix">
<a href="<?php echo $this->baseurl ?>"><span id="logo"></span>[/url]
<?php if($this->countModules('user3')) : ?>
<div id="at-user3">
<jdoc:include type="modules" name="user3" style="notitle" />
<>
<?php endif; ?>
<div id="at-wrapmainnavigation" class="clearfix">
<div id="at-mainnavigation">
<?php
switch ($ATconfig->at_menutype) {
case 
2:
case 
4:
include(
dirname(__FILE__).DS."/at_menu.php");
$atmenu->genMenu (0);
break;
}
?>

<>
<>
<div id="at-usertools">
<?php  if($ATconfig->at_tool 2$tempTools->genToolMenu(2); ?>
<>
<div id="at-usercolors" class="clearfix">
<?php if($ATconfig->at_tool 4$tempTools->genToolMenu(4); ?>
<>
<?php if($this->countModules('position-0')) : ?>
<div id="at-search">
<jdoc:include type="modules" name="position-0" style="notitle" />
<>
<?php endif; ?>
<>
<div id="at-containerwrap<?php echo $divid?>">
<div id="at-container">
<div id="at-mainbody<?php echo $divid?>">
<div id="javascript-flash-header">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="712" height="283">
<param name="movie" value="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.swf?xml_path=<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.xml" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed wmode="transparent" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.swf?xml_path=<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.xml" width="712" height="283" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
<>


<div id="at-contentwrap">
<jdoc:include type="message" />
<div id="at-content">
<jdoc:include type="component" /><>
<>
<?php if ( $at_right ) { ?>
<div id="at-col2">
<div class="at-innerpad">
<jdoc:include type="modules" name="right" style="rounded" />
<>
<>[br /]
<?php ?>
<>
<?php if ( $at_left ) { ?>
<div id="at-col1">
<div class="at-innerpad">
<jdoc:include type="modules" name="left" style="rounded" />
<>
<>
<?php ?>
<div id="at-bottomwrap">
<div id="at-bottom">
<table cellspacing="10" border="0" cellpadding="0">
<tr valign="top">
<?php if( $this->countModules('user7') ) {?>
<td>
<jdoc:include type="modules" name="user7" style="rounded" />
</td>
<?php ?>
<?php if( $this->countModules('user8') ) {?>
<td>
<jdoc:include type="modules" name="user8" style="rounded" />
</td>
<?php ?>
<?php if( $this->countModules('user9') ) {?>
<td>
<jdoc:include type="modules" name="user9" style="rounded" />
</td>
<?php ?>
</table>
<>
<>
<>
<>
<div id="at-footerwrap">
<div id="at-footer">
<?php
defined
'_JEXEC' ) or die( 'Restricted access' );
global 
$_VERSION;
require_once(
'libraries/joomla/utilities/date.php');
$date  = new JDate();
$config = new JConfig();
?>

Copyright &copy; <?php echo $date->toFormat'%Y' ) . ' ' $config->sitename;?>. P. iva <a href="http://www.ellero.biz/" title="Visit ellero.biz!" target="blank">IT00283710309[/url]
<div id= "goup-image">
<a href="#up" title="Go up" style="text-decoration: none;"><img src="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/images/go-up.gif" title="Go up" alt="Go up" />[/url]
<>
<>
<>
<>
</body>
</html>
Ringrazio tutti quelli che potranno darmi qualche dritta.
« Ultima modifica: 13 Feb 2012, 20:06:50 da doppioconfronto »

Offline 56francesco

  • Fuori controllo
  • *
  • Post: 29585
  • Sesso: Maschio
    • Mostra profilo
Re:modifica template pjo frontena
« Risposta #1 il: 12 Feb 2012, 20:46:33 »
cosa ci facciamo con quel file?

inserisci questo nel posto giusto
Codice: [Seleziona]
<?php if(JRequest::getVar('view') == "frontpage" ) : ?>
------slide--------
<?php endif; ?>
(uso XP perchè win98 non si installa) 
PS: non sono un dipendente dello sbonzor quindi è necessario un "per favore" alla richiesta e un "grazie" alla risposta, sempre! PPS: non scrivo mai per primo in MP, in caso contrario chiedimi una conferma, Grazie.

Offline doppioconfronto

  • Nuovo arrivato
  • *
  • Post: 25
    • Mostra profilo
Re:modifica template pjo frontena
« Risposta #2 il: 12 Feb 2012, 22:03:50 »
Ringrazio per il codice segnalatomi, ma esattamente, dove sarebbe il "posto giusto"?

adottauncane

  • Visitatore
Re:modifica template pjo frontena
« Risposta #3 il: 12 Feb 2012, 22:23:47 »
Ciao doppioconfronto,
il posto giusto è prima e dopo il codice php della slide. ma per la 1.7/2.5 il codice è questo:

 
Codice: [Seleziona]
<?php if(JRequest::getVar('view') == "featured" ) : ?>
               codice slide
      <?php endif; ?>
La home deve essere di tipo articoli in evidenza.

Però mi sa che non è nell'index.php ma probabilmente in una latro file .php del template.

Offline doppioconfronto

  • Nuovo arrivato
  • *
  • Post: 25
    • Mostra profilo
Re:modifica template pjo frontena
« Risposta #4 il: 13 Feb 2012, 15:42:30 »
Grazie per la risposta, ho verificato i vari file .php ma non ho trovato dei riferimenti (almeno per quello che ci capisco io). Un qualche riferimento alle varie slide l'ho trovato solo in un file .xml  :-X

adottauncane

  • Visitatore
Re:modifica template pjo frontena
« Risposta #5 il: 13 Feb 2012, 18:26:50 »
È nell'index. Il codice da racchiudere è questo:
Codice: [Seleziona]
<?php if(JRequest::getVar('view') == "featured" ) : ?>
<div id="javascript-flash-header">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="712" height="283">
<param name="movie" value="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.swf?xml_path=<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.xml" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed wmode="transparent" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.swf?xml_path=<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/header/header.xml" width="712" height="283" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
</div>
<?php endif; ?>

Offline doppioconfronto

  • Nuovo arrivato
  • *
  • Post: 25
    • Mostra profilo
[RISOLTO] Re:modifica template pjo frontena
« Risposta #6 il: 13 Feb 2012, 20:06:18 »
Grazie mille  ;D  funziona!!!

 



Web Design Bolzano Kreatif