Fantome
jeudi 30 décembre 2004 à 20:56
Bloc Meteo pour IPB PortalPermet d'afficher une carte de la france avec la meteo.

Ce bloc a était addapté depuis un bloc pour MyIbPortal propossé par David.
Etape 1 : Ouvrir lang/**/lang_portal.php (Répéter l'opération pour chaque répertoire de fichier langue)
ChercherCODE
);
?>
Ajouter au-dessusCODE
'meteo_title' => "Meteo",
Enregistrer et Fermer lang/**/lang_portal.phpEtape 2 : Ouvrir sources/ipbportal.phpChercherCODE
$this->site_bits['affiliates'] = $this->_show_affiliates();
Ajouter en-dessousCODE
$this->site_bits['meteo'] = $this->_show_meteo();
ChercherCODE
}
?>
Ajouter au-dessusCODE
/*-------------------------------------------------------------------------*/
// Bloc Meteo
/*-------------------------------------------------------------------------*/
function _show_meteo()
{
global $ibforums, $DB, $std, $print;
if ( ! $ibforums->vars['csite_meteo_show'] )
{
return;
}
return $this->html->tmpl_meteo();
}
Enregistrer et Fermer sources/ipbportal.phpEtape 3 : Aller dans l'ACP de votre forumEtape 3.1 : Dans
System Settings > View All General Setting > Import an XML settings filePuis importer les settings contenue dans le fichier ipb_settings_bloc_meteo.xml (dans le zip)
Etape 3.2 :Dans
Skins & Templates > Skin Manager > IPB Default Skin > Edit Root Skin Template HTMLPuis
IPB Portal > csite_skeleton_templateAjouter
CODE
<!--CS.TEMPLATE.METEO-->
Entre <!--Main Content--> et <!--End Main Content-->
Valider en cliquant sur
Save Template Bit(s)Etape 3.3 :Puis toujours dans
IPB Portal cliquer sur
Add Template BitQUOTE
New Template Bit Name : tmpl_meteo
Add New Template Bit :
CODE
<br />
<div class="borderwrap">
<div class="maintitle"><{CAT_IMG}> {ipb.lang['meteo_title']}</div>
<div class="tablepad">
<a href='http://www.meteoconsult.fr' target='_new'><img src='http://www.meteoconsult.fr/image/meteodirect/md_france24h.gif' width='' height='' border='0' alt='meteoconsult'></a>
</div>
</div>
Valider en cliquant sur
Save Template Bit(s)FIN