Rom56
06/07/2006, 20h09
Ajouter quatres pages persos sur votre site, parfaitement intégré avec votre template. Ces pages sont les suivantes : météo, sudoku, cinéma, horoscope et enfin programme TV
Les aperçus :
Météo : ici (http://neticlik.com/meteo.php)
sudoku : ici (http://neticlik.com/sudoku.php)
cinéma : ici (http://neticlik.com/cinema.php)
Programme TV : ici (http://neticlik.com/tv.php)
Horoscope : ici (http://neticlik.com/horoscope.php)
Merci à Allan pour son tutoriaux "Crée une page perso vBulletin" (http://www.vbulletin-ressources.com/forum/showthread.php?t=5)
Tout d'abord il vous faut uploader les 4 pages ( ou seulement celles qui vous intéresse ) sur votre ftp à la racine, donc dans : forum/
Les pages se trouve dans l'archive en pièce jointe dans ce post. Ne modifiez rien du code de ces pages.
Ensuite il vous faut creer les 4 templates suivants :
Creer un template "meteo" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" bordercolor="#FFFFFF" class="tborder">
<tr>
<td colspan="2" class="tcat">Meteo</td>
</tr>
<tr>
<td class="alt2"> <div align="center"><strong>Prévisions pour les prochaines 24 h </strong></div></td>
<td class="alt2"><div align="center"><strong>Prévisions pour les prochaines 48 h </strong></div></td>
</tr>
<tr>
<td class="alt2 Style1">
<div align="center">
<div align="center"><img src="http://www.meteoconsult.fr/image/meteodirect/md_france24h.gif"><br>
</div></td>
<td class="alt2"><div align="center"><img src="http://www.meteoconsult.fr/image/meteodirect/md_france48h.gif" /></div></td>
</tr>
<tr>
<td class="alt2"><div align="center"><strong>Météo par ville </strong></div></td>
<td class="alt2"><div align="center"><strong>Météo des plages & maritime </strong></div></td>
</tr>
<tr>
<td class="alt2"><div align="center"><table border=0 cellpadding=1 cellspacing=0 bgcolor=#000080>
<form method=get action=http://meteodirect.meteoconsult.fr/detail/selection.php>
<tr>
<td>
<table border=0 cellpadding=6 cellspacing=0 bgcolor=#FFFFFF>
<tr align=center>
<td colspan=2><a href=http://www.meteoconsult.com target=_blank><img alt="Toutes les météos" src="http://www.meteoconsult.fr/image/logo/meteoconsult/mc_haut_135x54.gif" border=0></a></td>
</tr>
<tr>
<td colspan=2 align=center style=font-size=11px;color:#000080>
<input type=hidden name=langue value="fr">
<input type=hidden name=type_meteo value="france">
<br>
Tape une ville française<br>
ou un code postal ! <br>
<input name=saisie type=text style=width:100%;font-size:11px;color:#000080 value="">
<br>
<input type=submit value='et Hop ;)'> </td>
</tr>
</table> </td>
</tr>
</form>
</table></div></td>
<td class="alt2"><div align="center"><table border=0 cellpadding=1 cellspacing=0 bgcolor=#000080>
<form method=get action=http://meteodirect.meteoconsult.fr/detail/selection.php>
<tr>
<td>
<table border=0 cellpadding=6 cellspacing=0 bgcolor=#FFFFFF>
<tr align=center>
<td colspan=2><a href=http://www.meteoconsult.com target=_blank><img alt="Toutes les météos" src="http://www.meteoconsult.fr/image/logo/meteoconsult/mc_haut_135x54.gif" border=0></a></td>
</tr>
<tr>
<td colspan=2 align=center style=font-size=11px;color:#000080>
<input type=hidden name=langue value="fr">
<input type=hidden name=type_meteo value="plage">
<br>
Tape un nom de plage ! <br>
<input type=text name=saisie style=width:100%;font-size:11px;color:#000080>
<br>
<input type=submit value='et Hop ;)'> </td>
</tr>
</table> </td>
</tr>
</form>
</table>
</div></td>
</tr>
</table>
<p> </p>
$footer
</body>
</html>
Creer un template "[B]cine" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" bordercolor="#FFFFFF" class="tborder">
<tr>
<td colspan="2" class="tcat">Sorties ciné & DVD</td>
</tr>
<tr>
<td class="alt2"> <div align="center"><strong>Box office cinéma </strong></div></td>
<td class="alt2"><div align="center"><strong>Sorties DVD.. </strong></div></td>
</tr>
<tr>
<td class="alt2">
<div align="center">
<!--code a inserer a l'emplacement voulu !-->
<script language="javascript" src="http://www.commeaucinema.com/jscript/inc.php?type=box"></script><noscript><a href=http://www.commeaucinema.com>Comme au Cinema</a></noscript>
<!-- Fin du code -->
</div></td>
<td class="alt2"><div align="center">
<!--code a inserer a l'emplacement voulu !-->
<script language="javascript" src="http://www.commeaucinema.com/jscript/inc.php?type=dvd"></script><noscript><a href=http://www.commeaucinema.com>Comme au Cinema</a></noscript>
<!-- Fin du code --></div></td>
</tr>
<tr>
<td colspan="2" class="alt2"><div align="center"><!--code a inserer a l'emplacement voulu !-->
<iframe width="100%" height=600 border=0 src="http://www.commeaucinema.com/jscript/inc.php?type=framecine"> </iframe><noscript><a href=http://www.commeaucinema.com>Comme au Cinema</a></noscript>
<!-- Fin du code --></div></td>
</tr>
</table>
<p> </p>
$footer
</body>
</html>
Puis un template "[B]programmetv" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Le programme TV</td>
</tr>
<tr>
</table>
<div align="center"><iframe height="550" width="750" border="0" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes" src="http://www.programme-tv.net/programme-tv-tnt-de-ce-soir-cat.html" ></iframe><noscript><a href="http://www.programme-tv.net" title="Le programme TV de ce soir">programme TV</a></noscript><br>
<iframe height="550" width="750" border="0" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes" src="http://www.programme-tv.net/programme-tv-cable-de-ce-soir-cat.html" ></iframe><noscript><a href="http://www.programme-tv.net" title="Le programme TV de ce soir">programme TV</a></noscript></div>
$footer
</body>
</html>
Puis une dernier, le template "[B]sudoku" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Sudoku !</td>
</tr>
<tr>
<td class="alt2">Résumé de la règle
Il faut remplir la grille en utilisant les chiffres de 1 à 9. Obligatoirement une seule fois dans chaque ligne, colonne et carré de 3 x 3.
Pour reprendre le vocabulaire du guide
Il faut remplir la grille en utilisant les 9 symboles donnés (généralement les chiffres de 1 à 9, ou des lettres indiquées au bas de la grille). Obligatoirement une seule fois (mais pas plus) sur chaque ligne, colonne et région (ou carré de 3 par 3).</td>
</tr>
</table>
<div align="center"<iframe src="http://www.free-sudokus.com/cgi/sudoku.cgi?size=9&affiliate=1" width="900" height="461" name="Sudoku"></iframe></div>
$footer
</body>
</html>Template "horoscope" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<div align="center"><table width="500" border="0" cellspacing="3" cellpadding="0" bgcolor="#6600FF">
<tr>
<td align="center" bgcolor="#FFFFFF"><div align="center">
<!--DEBUT CODE ASTROO-->
<script language="javascript">
// La variable signe permet d'afficher un seul ou l'ensemble des 12 signes du zodiaque
// pour afficher tous les signes definir signe=0, sinon definir signe=1 (belier), signe=2 (taureau) etc. jusqu'a signe=12 (poissons)
var signe=0;
</script>
<script language="javascript" src="http://www.astroo.net/_horoscope_astrologie.js"></script>
<noscript><a href="http://www.astroo.com/horoscope-astrologie.htm">horoscope astrologie</a></noscript>
<!--FIN CODE ASTROO--></div>
</td>
</tr>
</table></div>
<p>
<br />
</p>
</body>
</html> Il faut maitenant creer des modules pour que les pages ne soit pas inconnus dans "qui est en ligne" c'est très simple à faire quand c'est déjà fait :)
1 -Aller dans votre ACP "AdminCP"
2 -"Système de modules" => "ajouter un nouveau module"
3 -Remplissez avec ceci:
[B]--------------------------- Page météo ------------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: Meteo 1
Code PHP du module:
if ($filename == 'meteo.php')
{
$userinfo['activity'] = 'meteo';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: météo 2
Code PHP du module:
if ($userinfo['activity'] == 'meteo')
{
$userinfo['action'] = 'Regarde la météo ^^<br><a href="meteo.php"><b>météo</b></a>'; // Vous pouvez utiliser le système d'expression également $vbphrase ici...
$handled = true;
}
Le module est actif: Oui[B]---------------------------------- Sudoku ----------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: sudoku 1
Code PHP du module:
if ($filename == 'sudoku.php')
{
$userinfo['activity'] = 'sudoku';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: sudoku 2
Code PHP du module:
if ($userinfo['activity'] == 'sudoku')
{
$userinfo['action'] = 'Remplis une grille de sudoku<br><a href="sudoku.php"><b>sudoku</b></a>';
$handled = true;
}
Le module est actif: Oui--------------------------------------- Cinéma ------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: cine 1
Code PHP du module:
if ($filename == 'cinema.php')
{
$userinfo['activity'] = 'cine';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: ciné 2
Code PHP du module:
if ($userinfo['activity'] == 'cine')
{
$userinfo['action'] = 'Regarde les sorties cinéma & DVD<br><a href="cinema.php><b>Cinéma & DVD</b></a>'; // Vous pouvez utiliser le système d'expression également $vbphrase ici...
$handled = true;
}
Le module est actif: Oui---------------------------- Programme TV ------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: tv 1
Code PHP du module:
if ($filename == 'tv.php')
{
$userinfo['activity'] = 'tv';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: tv 2
Code PHP du module:
if ($userinfo['activity'] == 'tv')
{
$userinfo['action'] = 'Regarde le programme TV<br><a href="tv.php"><b>Programme TV</b></a>';
$handled = true;
}
Le module est actif: Oui------------------------------------------------------------------
---------------------------- horoscope ------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: horoscope 1
Code PHP du module:
if ($filename == 'horoscope.php')
{
$userinfo['activity'] = 'horoscope';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: horoscope 2
Code PHP du module:
if ($userinfo['activity'] == 'horoscope')
{
$userinfo['action'] = 'Regarde son horoscope<br><a href="horoscope.php"><b>horoscope</b></a>';
$handled = true;
}
Le module est actif: Oui------------------------------------------------------------------
iL ne vous reste plus qu'a placer un lien vers les pages dans le template "FORUMHOME" ou autres :) les liens étant bien sur :
http://www.urldevotreforum.com/tv.php
http://www.urldevotreforum.com/meteo.php
http://www.urldevotreforum.com/sudoku.php
http://www.urldevotreforum.com/cine.php
http://www.urldevotreforum.com/horoscope.php (http://www.urldevotreforum.com/cine.php)
Les aperçus :
Météo : ici (http://neticlik.com/meteo.php)
sudoku : ici (http://neticlik.com/sudoku.php)
cinéma : ici (http://neticlik.com/cinema.php)
Programme TV : ici (http://neticlik.com/tv.php)
Horoscope : ici (http://neticlik.com/horoscope.php)
Merci à Allan pour son tutoriaux "Crée une page perso vBulletin" (http://www.vbulletin-ressources.com/forum/showthread.php?t=5)
Tout d'abord il vous faut uploader les 4 pages ( ou seulement celles qui vous intéresse ) sur votre ftp à la racine, donc dans : forum/
Les pages se trouve dans l'archive en pièce jointe dans ce post. Ne modifiez rien du code de ces pages.
Ensuite il vous faut creer les 4 templates suivants :
Creer un template "meteo" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" bordercolor="#FFFFFF" class="tborder">
<tr>
<td colspan="2" class="tcat">Meteo</td>
</tr>
<tr>
<td class="alt2"> <div align="center"><strong>Prévisions pour les prochaines 24 h </strong></div></td>
<td class="alt2"><div align="center"><strong>Prévisions pour les prochaines 48 h </strong></div></td>
</tr>
<tr>
<td class="alt2 Style1">
<div align="center">
<div align="center"><img src="http://www.meteoconsult.fr/image/meteodirect/md_france24h.gif"><br>
</div></td>
<td class="alt2"><div align="center"><img src="http://www.meteoconsult.fr/image/meteodirect/md_france48h.gif" /></div></td>
</tr>
<tr>
<td class="alt2"><div align="center"><strong>Météo par ville </strong></div></td>
<td class="alt2"><div align="center"><strong>Météo des plages & maritime </strong></div></td>
</tr>
<tr>
<td class="alt2"><div align="center"><table border=0 cellpadding=1 cellspacing=0 bgcolor=#000080>
<form method=get action=http://meteodirect.meteoconsult.fr/detail/selection.php>
<tr>
<td>
<table border=0 cellpadding=6 cellspacing=0 bgcolor=#FFFFFF>
<tr align=center>
<td colspan=2><a href=http://www.meteoconsult.com target=_blank><img alt="Toutes les météos" src="http://www.meteoconsult.fr/image/logo/meteoconsult/mc_haut_135x54.gif" border=0></a></td>
</tr>
<tr>
<td colspan=2 align=center style=font-size=11px;color:#000080>
<input type=hidden name=langue value="fr">
<input type=hidden name=type_meteo value="france">
<br>
Tape une ville française<br>
ou un code postal ! <br>
<input name=saisie type=text style=width:100%;font-size:11px;color:#000080 value="">
<br>
<input type=submit value='et Hop ;)'> </td>
</tr>
</table> </td>
</tr>
</form>
</table></div></td>
<td class="alt2"><div align="center"><table border=0 cellpadding=1 cellspacing=0 bgcolor=#000080>
<form method=get action=http://meteodirect.meteoconsult.fr/detail/selection.php>
<tr>
<td>
<table border=0 cellpadding=6 cellspacing=0 bgcolor=#FFFFFF>
<tr align=center>
<td colspan=2><a href=http://www.meteoconsult.com target=_blank><img alt="Toutes les météos" src="http://www.meteoconsult.fr/image/logo/meteoconsult/mc_haut_135x54.gif" border=0></a></td>
</tr>
<tr>
<td colspan=2 align=center style=font-size=11px;color:#000080>
<input type=hidden name=langue value="fr">
<input type=hidden name=type_meteo value="plage">
<br>
Tape un nom de plage ! <br>
<input type=text name=saisie style=width:100%;font-size:11px;color:#000080>
<br>
<input type=submit value='et Hop ;)'> </td>
</tr>
</table> </td>
</tr>
</form>
</table>
</div></td>
</tr>
</table>
<p> </p>
$footer
</body>
</html>
Creer un template "[B]cine" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" bordercolor="#FFFFFF" class="tborder">
<tr>
<td colspan="2" class="tcat">Sorties ciné & DVD</td>
</tr>
<tr>
<td class="alt2"> <div align="center"><strong>Box office cinéma </strong></div></td>
<td class="alt2"><div align="center"><strong>Sorties DVD.. </strong></div></td>
</tr>
<tr>
<td class="alt2">
<div align="center">
<!--code a inserer a l'emplacement voulu !-->
<script language="javascript" src="http://www.commeaucinema.com/jscript/inc.php?type=box"></script><noscript><a href=http://www.commeaucinema.com>Comme au Cinema</a></noscript>
<!-- Fin du code -->
</div></td>
<td class="alt2"><div align="center">
<!--code a inserer a l'emplacement voulu !-->
<script language="javascript" src="http://www.commeaucinema.com/jscript/inc.php?type=dvd"></script><noscript><a href=http://www.commeaucinema.com>Comme au Cinema</a></noscript>
<!-- Fin du code --></div></td>
</tr>
<tr>
<td colspan="2" class="alt2"><div align="center"><!--code a inserer a l'emplacement voulu !-->
<iframe width="100%" height=600 border=0 src="http://www.commeaucinema.com/jscript/inc.php?type=framecine"> </iframe><noscript><a href=http://www.commeaucinema.com>Comme au Cinema</a></noscript>
<!-- Fin du code --></div></td>
</tr>
</table>
<p> </p>
$footer
</body>
</html>
Puis un template "[B]programmetv" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Le programme TV</td>
</tr>
<tr>
</table>
<div align="center"><iframe height="550" width="750" border="0" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes" src="http://www.programme-tv.net/programme-tv-tnt-de-ce-soir-cat.html" ></iframe><noscript><a href="http://www.programme-tv.net" title="Le programme TV de ce soir">programme TV</a></noscript><br>
<iframe height="550" width="750" border="0" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes" src="http://www.programme-tv.net/programme-tv-cable-de-ce-soir-cat.html" ></iframe><noscript><a href="http://www.programme-tv.net" title="Le programme TV de ce soir">programme TV</a></noscript></div>
$footer
</body>
</html>
Puis une dernier, le template "[B]sudoku" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Sudoku !</td>
</tr>
<tr>
<td class="alt2">Résumé de la règle
Il faut remplir la grille en utilisant les chiffres de 1 à 9. Obligatoirement une seule fois dans chaque ligne, colonne et carré de 3 x 3.
Pour reprendre le vocabulaire du guide
Il faut remplir la grille en utilisant les 9 symboles donnés (généralement les chiffres de 1 à 9, ou des lettres indiquées au bas de la grille). Obligatoirement une seule fois (mais pas plus) sur chaque ligne, colonne et région (ou carré de 3 par 3).</td>
</tr>
</table>
<div align="center"<iframe src="http://www.free-sudokus.com/cgi/sudoku.cgi?size=9&affiliate=1" width="900" height="461" name="Sudoku"></iframe></div>
$footer
</body>
</html>Template "horoscope" :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
<!-- Code a inserer entre les balises <head> et </head> -->
<link rel="stylesheet" href="http://www.commeaucinema.com/jscript/inc.inc" type="text/css">
<!-- Fin du code -->
$headinclude
<title>$vboptions</title>
</head>
<body>
$header
$navbar
<div align="center"><table width="500" border="0" cellspacing="3" cellpadding="0" bgcolor="#6600FF">
<tr>
<td align="center" bgcolor="#FFFFFF"><div align="center">
<!--DEBUT CODE ASTROO-->
<script language="javascript">
// La variable signe permet d'afficher un seul ou l'ensemble des 12 signes du zodiaque
// pour afficher tous les signes definir signe=0, sinon definir signe=1 (belier), signe=2 (taureau) etc. jusqu'a signe=12 (poissons)
var signe=0;
</script>
<script language="javascript" src="http://www.astroo.net/_horoscope_astrologie.js"></script>
<noscript><a href="http://www.astroo.com/horoscope-astrologie.htm">horoscope astrologie</a></noscript>
<!--FIN CODE ASTROO--></div>
</td>
</tr>
</table></div>
<p>
<br />
</p>
</body>
</html> Il faut maitenant creer des modules pour que les pages ne soit pas inconnus dans "qui est en ligne" c'est très simple à faire quand c'est déjà fait :)
1 -Aller dans votre ACP "AdminCP"
2 -"Système de modules" => "ajouter un nouveau module"
3 -Remplissez avec ceci:
[B]--------------------------- Page météo ------------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: Meteo 1
Code PHP du module:
if ($filename == 'meteo.php')
{
$userinfo['activity'] = 'meteo';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: météo 2
Code PHP du module:
if ($userinfo['activity'] == 'meteo')
{
$userinfo['action'] = 'Regarde la météo ^^<br><a href="meteo.php"><b>météo</b></a>'; // Vous pouvez utiliser le système d'expression également $vbphrase ici...
$handled = true;
}
Le module est actif: Oui[B]---------------------------------- Sudoku ----------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: sudoku 1
Code PHP du module:
if ($filename == 'sudoku.php')
{
$userinfo['activity'] = 'sudoku';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: sudoku 2
Code PHP du module:
if ($userinfo['activity'] == 'sudoku')
{
$userinfo['action'] = 'Remplis une grille de sudoku<br><a href="sudoku.php"><b>sudoku</b></a>';
$handled = true;
}
Le module est actif: Oui--------------------------------------- Cinéma ------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: cine 1
Code PHP du module:
if ($filename == 'cinema.php')
{
$userinfo['activity'] = 'cine';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: ciné 2
Code PHP du module:
if ($userinfo['activity'] == 'cine')
{
$userinfo['action'] = 'Regarde les sorties cinéma & DVD<br><a href="cinema.php><b>Cinéma & DVD</b></a>'; // Vous pouvez utiliser le système d'expression également $vbphrase ici...
$handled = true;
}
Le module est actif: Oui---------------------------- Programme TV ------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: tv 1
Code PHP du module:
if ($filename == 'tv.php')
{
$userinfo['activity'] = 'tv';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: tv 2
Code PHP du module:
if ($userinfo['activity'] == 'tv')
{
$userinfo['action'] = 'Regarde le programme TV<br><a href="tv.php"><b>Programme TV</b></a>';
$handled = true;
}
Le module est actif: Oui------------------------------------------------------------------
---------------------------- horoscope ------------------------
Produit: vBulletin
Emplacement du crochet: online_location_process
Intitulé: horoscope 1
Code PHP du module:
if ($filename == 'horoscope.php')
{
$userinfo['activity'] = 'horoscope';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
Produit: vBulletin
Emplacement du crochet: online_location_unknown
Intitulé: horoscope 2
Code PHP du module:
if ($userinfo['activity'] == 'horoscope')
{
$userinfo['action'] = 'Regarde son horoscope<br><a href="horoscope.php"><b>horoscope</b></a>';
$handled = true;
}
Le module est actif: Oui------------------------------------------------------------------
iL ne vous reste plus qu'a placer un lien vers les pages dans le template "FORUMHOME" ou autres :) les liens étant bien sur :
http://www.urldevotreforum.com/tv.php
http://www.urldevotreforum.com/meteo.php
http://www.urldevotreforum.com/sudoku.php
http://www.urldevotreforum.com/cine.php
http://www.urldevotreforum.com/horoscope.php (http://www.urldevotreforum.com/cine.php)