Merci à Allan pour son tutoriaux "Crée une page perso vBulletin"- 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" :
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</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 "cine" :
Code:
$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[bbtitle]</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 "programmetv" :
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</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 "sudoku" :
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</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" :
Code:
$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[bbtitle]</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:
--------------------------- Page météo ------------------------------
- Emplacement du crochet: online_location_process
Code PHP:
if ($filename == 'meteo.php')
{
$userinfo['activity'] = 'meteo';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
- Emplacement du crochet: online_location_unknown
Code PHP:
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;
}
---------------------------------- Sudoku ----------------------------
- Emplacement du crochet: online_location_process
Code PHP:
if ($filename == 'sudoku.php')
{
$userinfo['activity'] = 'sudoku';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
- Emplacement du crochet: online_location_unknown
Code PHP:
if ($userinfo['activity'] == 'sudoku')
{
$userinfo['action'] = 'Remplis une grille de sudoku<br><a href="sudoku.php"><b>sudoku</b></a>';
$handled = true;
}
--------------------------------------- Cinéma ------------------------
- Emplacement du crochet: online_location_process
Code PHP:
if ($filename == 'cinema.php')
{
$userinfo['activity'] = 'cine';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
- Emplacement du crochet: online_location_unknown
Code PHP:
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;
}
---------------------------- Programme TV ------------------------
- Emplacement du crochet: online_location_process
Code PHP:
if ($filename == 'tv.php')
{
$userinfo['activity'] = 'tv';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
- Emplacement du crochet: online_location_unknown
Code PHP:
if ($userinfo['activity'] == 'tv')
{
$userinfo['action'] = 'Regarde le programme TV<br><a href="tv.php"><b>Programme TV</b></a>';
$handled = true;
}
------------------------------------------------------------------
---------------------------- horoscope ------------------------
- Emplacement du crochet: online_location_process
Code PHP:
if ($filename == 'horoscope.php')
{
$userinfo['activity'] = 'horoscope';
}
4 -Sauvegarder
5 -prochaine étape, jout d'un deuxième module:
- Emplacement du crochet: online_location_unknown
Code PHP:
if ($userinfo['activity'] == 'horoscope')
{
$userinfo['action'] = 'Regarde son horoscope<br><a href="horoscope.php"><b>horoscope</b></a>';
$handled = true;
}
------------------------------------------------------------------
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
Liens sociaux