font89
Novato
Mensajes: 2
Enviado: 6.mar 2008 - 14:55
Hola a todos!
El caso es que he creado un theme para mi sitio postnuke, el problema viene cuando intento cargarlo, que recibo el siguiente error "Ha fallado la recarga de las Plantillas desde el sistema de ficheros" y como consecuencia de ello no me carga las plantillas para bloques.
El theme es un theme Xanthia 2.0, sin la columna derecha y con 4 areas especiales.
Creo que el problema esta en el xaninit.php pero si es asi no soy capaz de encontrarlo, a ver si alguien me puede echar un cable, porque me estoy volviendo loco con este tema, este es mi archivo xaninit.php:
Código <?php
function xanthia_skins_install( $args )
{
/////////////////////////////////////// Do Not Edit/////////////////////////////////////////
// Check if the user has permission to perform this action
if ( !pnSecAuthAction( 0 , 'Xanthia' , '::' , ACCESS_EDIT) ) {
return false ;
}
// extract all arguments passed to this function
// set the skin name from the id passed this function
$skinName = $id ;
} else {
return false ;
}
///////////////////////////////////// End Do Not Edit///////////////////////////////////////
// create theme
$skinID = CreateTheme( $skinName ) ;
// Create theme palettes
// Create one entry per palette available for this theme
// CreatePalette($skinName, $skinID, <default = 1 otherwise 0>, <palette name>,<background>,
// <color1>,<color2>,<color3>,<color4>,<color5>,<color6>, <color7>,
// <color8>, <sepcolor>, <text1>, <text2>, , <vlink>, <hover>);
CreatePalette( $skinName , $skinID , 1 , $skinName ,
'#000000' , '#000000' , '#CC0033' , '#CC0033 ' ,
'#CC0033' , '#CC0033' , '#CC0033' , '#CC0033' ,
'#CC0033' , '#F5F5F5' , '#FFFFFF' , '#FFFFFF' ,
'#CC0033' , '#CC0033' , '#FFFFFF' ) ;
// Create theme configuration variables
// CreateThemeVar($skinID, <variablename>, <language define>, <value>, '');
CreateThemeVar( $skinID , 'pagewidth' ,_TM_PAGEWIDTH,'100%' ,'' ) ;
CreateThemeVar( $skinID ,'lcolwidth' ,_TM_LCOLWIDTH,'191' ,'' ) ;
CreateThemeVar( $skinID ,'indexcol' ,_TM_INDEXCOL,'1' ,'' ) ;
// Create theme templates
// CreateThemeTemplate($skinID, <template label>, <template filename>, <template type>);
CreateThemeTemplate( $skinID , 'master' , 'master.htm' , 'theme' ) ;
CreateThemeTemplate( $skinID , 'lsblock' , 'lsblock.htm' , 'block' ) ;
CreateThemeTemplate( $skinID , 'ccblock' , 'ccblock.htm' , 'block' ) ;
CreateThemeTemplate( $skinID , 'table1' , 'table1.htm' , 'theme' ) ;
CreateThemeTemplate( $skinID , 'table2' , 'table2.htm' , 'theme' ) ;
CreateThemeTemplate( $skinID , 'News-index' , 'News-index.htm' , 'theme' ) ;
CreateThemeTemplate( $skinID , 'News-article' , 'News-article.htm' ,'theme' ) ;
CreateThemeTemplate( $skinID , '*home' , 'home.htm' , 'module' ) ;
// usually area1 - area9
CreateThemeTemplate( $skinID , 'zarea1sblock' , 'area1.htm' , 'block' ) ;
CreateThemeTemplate( $skinID , 'zarea2sblock' , 'area2.htm' , 'block' ) ;
CreateThemeTemplate( $skinID , 'zarea3sblock' , 'area3.htm' , 'block' ) ;
CreateThemeTemplate( $skinID , 'zarea4sblock' , 'area4.htm' , 'block' ) ;
// Add zones for theme
pnModSetVar( 'Xanthia' , $skinName .'newzone' ,'|1:Area 1 Blocks:ZAREA1|2:Area 2 Blocks:ZAREA2|3:Area 3 Blocks:ZAREA3|4:Area 4 Blocks:ZAREA4' ) ;
// Create theme zones
// CreateThemeZone($skinID, <definition - language define>, <label>, <type>, <active>, <skin type>);
CreateThemeZone( $skinID , _TM_MASTER, 'master' , 0 , 1 , 'theme' ) ;
CreateThemeZone( $skinID , _TM_LEFTSIDEB, 'lsblock' , 0 , 1 , 'block' ) ;
CreateThemeZone( $skinID , _TM_CENTERB, 'ccblock' , 1 , 1 , 'block' ) ;
CreateThemeZone( $skinID , _TM_OPENTABLE1, 'table1' , 0 , 1 , 'theme' ) ;
CreateThemeZone( $skinID , _TM_OPENTABLE2, 'table2' , 0 , 1 , 'theme' ) ;
CreateThemeZone( $skinID , _TM_NEWSINDEX, 'News-index' , 0 , 1 , 'theme' ) ;
CreateThemeZone( $skinID , _TM_NEWSART, 'News-article' , 0 , 1 , 'theme' ) ;
CreateThemeZone( $skinID , _TM_HOMEPAGE, '*home' , 1 , 1 , 'module' ) ;
// usually area1 - area6
CreateThemeZone( $skinID , _AREA1, 'zarea1sblock' , 1 , 1 , 'block' ) ;
CreateThemeZone( $skinID , _AREA2, 'zarea2sblock' , 1 , 1 , 'block' ) ;
CreateThemeZone( $skinID , _AREA3, 'zarea3sblock' , 1 , 1 , 'block' ) ;
CreateThemeZone( $skinID , _AREA4, 'zarea4sblock' , 1 , 1 , 'block' ) ;
// Report success
return true ;
}
?>
Un saludo a todos, y muchas gracias por vuestra atencion.