Les archives de FluxBB.fr
Vous n'êtes pas identifié(e).
Oui ça marche mille fois merci 
Hors ligne
Tiens nous au courant si ça marche ou pas... 
Kit Graphique gratuit : http://www.tcheval.net
URL Rewriting de FluxBB/PunBB en moins de 1 minutes : http://www.tcheval.net/forum/s1871-page … inute.html
Hors ligne
Oui ça marche mille fois merci

Avant de poser une question, avez-vous consulté la FAQ ou fait une recherche ?
Pas de support si pas d'adresse de forum !
Hors ligne
bonjour ,
voila j'ai cree les 3 fichier est j'y est mit les code , je les up dans upload, mais comment je le mais en marche sur le forum ??
Hors ligne
Bonjour
J'ai utilisé votre générateur de présentation pour mon forum, mais il ne marche plus du tout, alors que je ne l'avais pas fini.
Pouvez vous m'indiquez ou est l'erreur de code que j'ai faite pour que je puisse le modifier ?
Voici l'adresse du script :
http://yovel.free.fr/Presentation/
Voici le code du "générator" :
<?php
function form_meta($tcheval){
echo'
<div align="center">
<br /><br />
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<form id="form1" name="form1" method="post" action="'.$tcheval.'">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top" align="right">Votre pseudo : </td>
<td valign="top"><input name="prenom" type="text" id="prenom" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre pays : <br /></td>
<td valign="top"><input name="region" type="text" id="region" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre âge : </td>
<td valign="top"><input name="age" type="text" id="age" size="2" maxlength="2"> ans</td>
</tr>
<tr>
<td valign="top" align="right">Votre sexe : <br /></td>
<td valign="top"><select name="metier">
<option value="">Choisir</option>
<option value="un homme">Masculin</option>
<option value="une femme">Féminin</option>
</select></td>
</tr>
<tr>
<td valign="top" align="right">Vos loisirs : <br /></td>
<td valign="top"><textarea name="loisir" cols="50" rows="2" id="loisir"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Connaissance en Warez : <br /></td>
<td valign="top"><textarea name="informatique" cols="50" rows="4" id="informatique"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Situation : </td>
<td valign="top"><input name="arrive" type="text" id="arrive" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Comment avez-vous connu Tassadar ?</td>
<td valign="top"><select name="connu"><option value="">Choisir</option>
<option value="C'est un ami qui m'a fait connaître TASSADAR">Un ami</option>
<option value="J'ai trouvé cette board en recherchant sur Google">Google</option>
<option value="J'ai découvert cette board sur [url=http://www.top-warez.fr/in.php?id=TASSADAR]Top-WareZ[/url]">Top-warez</option>
<option value="J'ai découvert cette board grâce à Weborama">Weborama</option>
<option value="J'ai trouvé cette board sur internet">Sur un autre site</option></select>
<option value="">Autre</option></td>
</tr>
<td colspan="2" valign="top"><br /><br /><div align="center">
<input type="submit" name="Submit" value="Générer la présentation" />
</div></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table></div>
function generation(){
$prenom = $_POST['prenom'];
$age = $_POST['age'];
$region = $_POST['region'];
$metier = $_POST['metier'];
$loisir = $_POST['loisir'];
$informatique = $_POST['informatique'];
$arrive = $_POST['arrive'];
$connu = $_POST['connu'];
if(empty($prenom))
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
';
}
else
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
[b]Prénom :[/b] '.stripslashes($prenom).'
';
}
if(empty($age))
{}
else
{
echo '[b]Mon age :[/b] '.stripslashes($age).' ans
';
}
if(empty($region))
{}
else
{
echo'[b]Ma région :[/b] '.stripslashes($region).'
';
}
if(empty($metier))
{}
else
{
echo'[b]Mon métier :[/b] '.stripslashes($metier).'
';
}
if(empty($loisir))
{
echo '
[color=blue][b][u]Autres Informations :[/u][/b][/color]
';
}
else
{
echo'
[color=blue][b][u]Autres Informations :[/u][/b][/color]
[b]Mes loisirs :[/b] '.stripslashes($loisir).'
';
}
if(empty($informatique))
{}
else
{
echo'[b]Ce que j\'aime en informatique :[/b] '.stripslashes($informatique).'
';
}
if(empty($arrive))
{}
else
{
echo'[b]Comment suis-je arrivé sur [i]Tcheval.net[/i] :[/b] '.stripslashes($arrive).'
';
}
echo'
</textarea>
<br /></p>
<br /><br />
</div>
<br />
</body>
</html>
';
}
?>Merci beaucoup !
Dernière modification par Angelgoku (28-06-2007 13:15:40)
Hors ligne
tu n'as pas fermé le 1er echo
Hors ligne
Quelqu'un aurait t'il une réponse ?
Hors ligne
oui juste au dessus
Hors ligne
Merci beaucoup
j'essaye tout de suite 
Hors ligne
ça me fait la même erreur 
"Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /mnt/109/sdc/5/d/yovel/Presentation/presentation_generator.php on line 47"
voila comment j'ai modifié :
<?php
function form_meta($tcheval){
echo'
<div align="center">
<br /><br />
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<form id="form1" name="form1" method="post" action="'.$tcheval.'">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top" align="right">Votre pseudo : </td>
<td valign="top"><input name="prenom" type="text" id="prenom" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre pays : <br /></td>
<td valign="top"><input name="region" type="text" id="region" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre âge : </td>
<td valign="top"><input name="age" type="text" id="age" size="2" maxlength="2"> ans</td>
</tr>
<tr>
<td valign="top" align="right">Votre sexe : <br /></td>
<td valign="top"><select name="metier">
<option value="">Choisir</option>
<option value="un homme">Masculin</option>
<option value="une femme">Féminin</option>
</select></td>
</tr>
<tr>
<td valign="top" align="right">Vos loisirs : <br /></td>
<td valign="top"><textarea name="loisir" cols="50" rows="2" id="loisir"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Connaissance en Warez : <br /></td>
<td valign="top"><textarea name="informatique" cols="50" rows="4" id="informatique"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Situation : </td>
<td valign="top"><input name="arrive" type="text" id="arrive" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Comment avez-vous connu Tassadar ?</td>
<td valign="top"><select name="connu"><option value="">Choisir</option>
<option value="C'est un ami qui m'a fait connaître TASSADAR">Un ami</option>
<option value="J'ai trouvé cette board en recherchant sur Google">Google</option>
<option value="J'ai découvert cette board sur [url=http://www.top-warez.fr/in.php?id=TASSADAR]Top-WareZ[/url]">Top-warez</option>
<option value="J'ai découvert cette board grâce à Weborama">Weborama</option>
<option value="J'ai trouvé cette board sur internet">Sur un autre site</option></select>
<option value="">Autre</option></td>
</tr>
<td colspan="2" valign="top"><br /><br /><div align="center">
<input type="submit" name="Submit" value="Générer la présentation" />
</div></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table></div>
';
}
function generation(){
$prenom = $_POST['prenom'];
$age = $_POST['age'];
$region = $_POST['region'];
$metier = $_POST['metier'];
$loisir = $_POST['loisir'];
$informatique = $_POST['informatique'];
$arrive = $_POST['arrive'];
$connu = $_POST['connu'];
if(empty($prenom))
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
';
}
else
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
[b]Prénom :[/b] '.stripslashes($prenom).'
';
}
if(empty($age))
{}
else
{
echo '[b]Mon age :[/b] '.stripslashes($age).' ans
';
}
if(empty($region))
{}
else
{
echo'[b]Ma région :[/b] '.stripslashes($region).'
';
}
if(empty($metier))
{}
else
{
echo'[b]Mon métier :[/b] '.stripslashes($metier).'
';
}
if(empty($loisir))
{
echo '
[color=blue][b][u]Autres Informations :[/u][/b][/color]
';
}
else
{
echo'
[color=blue][b][u]Autres Informations :[/u][/b][/color]
[b]Mes loisirs :[/b] '.stripslashes($loisir).'
';
}
if(empty($informatique))
{}
else
{
echo'[b]Ce que j\'aime en informatique :[/b] '.stripslashes($informatique).'
';
}
if(empty($arrive))
{}
else
{
echo'[b]Comment suis-je arrivé sur [i]Tcheval.net[/i] :[/b] '.stripslashes($arrive).'
';
}
echo'
</textarea>
<br /></p>
<br /><br />
</div>
<br />
</body>
</html>
';
}
?>Hors ligne
Dans la première fonction (form_meta), tu commences un "echo ' ...."
A partir de là, et jusqu'à la fin du echo ( "';" ), tu n'as plus le droit d'utiliser le caractère ' sans l'escaper (sauf pour l'affichage de $tcheval, là c'est bon).
Donc, remplacer tous les "C'est..." par "C\'est", tous les "J'ai..." par "J\'ai...", etc..
Hors ligne
Ok d'accord
merci beaucoup, je vais essayer.
Hors ligne
Ok j'ai tout changé
exemple, à la ligne 47 :
<option value="C/'est un ami qui m/'a fait connaître TASSADAR">Un ami</option>Mais ça me dit toujours qu'il y a une erreur a la ligne 47... je commance à desepérer 
Hors ligne
tu as mis / au lieu de \ 
Hors ligne
Mouarf je suis vraiment trop con xD
je change 
Hors ligne
Et nan toujours pas
lol je suis maudit.
Il me dit toujours qu'il y a une erreur a la ligne 47 
voila ce qu'il y a à cette ligne
<option value="C\'est un ami qui m\'a fait connaitre TASSADAR">Un ami</option>Hors ligne
essaies en remplacant \' par le code html de l'apostrophe & # 3 9 ; sans aucun espace, je ne peux pas le mettre ici, il est converti automatiquement
Hors ligne
Oki
j'essaye 
Hors ligne
Youhou 
Y'a toujours une erreur
mais elle a changé de place, c'est déja ça 
La il me dit qu'il y a une erreur à la dernière ligne
donc j'ai du oublié de fermé quelque chose 
<?php
function form_meta($tcheval){
echo'
<div align="center">
<br /><br />
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<form id="form1" name="form1" method="post" action="'.$tcheval.'">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top" align="right">Votre pseudo : </td>
<td valign="top"><input name="prenom" type="text" id="prenom" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre pays : <br /></td>
<td valign="top"><input name="region" type="text" id="region" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre âge : </td>
<td valign="top"><input name="age" type="text" id="age" size="2" maxlength="2"> ans</td>
</tr>
<tr>
<td valign="top" align="right">Votre sexe : <br /></td>
<td valign="top"><select name="metier">
<option value="">Choisir</option>
<option value="un homme">Masculin</option>
<option value="une femme">Féminin</option>
</select></td>
</tr>
<tr>
<td valign="top" align="right">Vos loisirs : <br /></td>
<td valign="top"><textarea name="loisir" cols="50" rows="2" id="loisir"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Connaissance en Warez : <br /></td>
<td valign="top"><textarea name="informatique" cols="50" rows="4" id="informatique"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Situation : </td>
<td valign="top"><input name="arrive" type="text" id="arrive" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Comment avez-vous connu Tassadar ?</td>
<td valign="top"><select name="connu"><option value="">Choisir</option>
<option value="C'est un ami qui m'a fait connaitre TASSADAR">Un ami</option>
<option value="J'ai trouvé cette board en recherchant sur Google">Google</option>
<option value="J'ai découvert cette board sur [url=http://www.top-warez.fr/in.php?id=TASSADAR]Top-WareZ[/url]">Top-warez</option>
<option value="J'ai découvert cette board grâce à Weborama">Weborama</option>
<option value="J'ai trouvé cette board sur internet">Sur un autre site</option></select>
<option value="">Autre</option></td>
</tr>
<td colspan="2" valign="top"><br /><br /><div align="center">
<input type="submit" name="Submit" value="Générer la présentation" />
</div></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table></div>
'
}
function generation(){
$prenom = $_POST['prenom'];
$age = $_POST['age'];
$region = $_POST['region'];
$metier = $_POST['metier'];
$loisir = $_POST['loisir'];
$informatique = $_POST['informatique'];
$arrive = $_POST['arrive'];
$connu = $_POST['connu'];
if(empty($prenom))
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
'
}
else
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
[b]Prénom :[/b] '.stripslashes($vraiprenom).'
';
}
if(empty($age))
{}
else
{
echo '[b]Mon age :[/b] '.stripslashes($age).' ans
';
}
if(empty($region))
{}
else
{
echo'[b]Ma région :[/b] '.stripslashes($region).'
';
}
if(empty($metier))
{}
else
{
echo'[b]Mon métier :[/b] '.stripslashes($metier).'
';
}
if(empty($loisir))
{
echo '
[color=blue][b][u]Autres Informations :[/u][/b][/color]
';
}
else
{
echo'
[color=blue][b][u]Autres Informations :[/u][/b][/color]
[b]Mes loisirs :[/b] '.stripslashes($loisir).'
';
}
if(empty($informatique))
{}
else
{
echo'[b]Ce que j\'aime en informatique :[/b] '.stripslashes($informatique).'
';
}
if(empty($arrive))
{}
else
{
echo'[b]Comment suis-je arrivé sur [i]Tcheval.net[/i] :[/b] '.stripslashes($arrive).'
';
}
echo'
[i]Faites comme moi, présentez vous à l\'aide du générateur de présentation disponible [url=http://www.tcheval.net/presentation.php]ici[/url].[/i]
</textarea>
<br /></p>
<br /><br />
</div>
<br />
;
}
?>
}
?>
}Hors ligne
Le ";" final manque (il y était avant..).
Hors ligne
oui il faut mettre unpoint virgule apres 39, ce n'est pas tres clair dans mon message
Hors ligne
Je le trouve bien ce petit générateur de présentations, merci Tcheval 
Hors ligne
xD
J'ai changé tous les & # 3 9 ; , mais ça me met toujours une erreur 
Parse error: syntax error, unexpected '}' in /mnt/109/sdc/5/d/yovel/Presentation2/presentation_generator.php on line 161
Dans le code :
<?php
function form_meta($tcheval){
echo'
<div align="center">
<br /><br />
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<form id="form1" name="form1" method="post" action="'.$tcheval.'">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top" align="right">Votre pseudo : </td>
<td valign="top"><input name="prenom" type="text" id="prenom" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre pays : <br /></td>
<td valign="top"><input name="region" type="text" id="region" /></td>
</tr>
<tr>
<td valign="top" align="right">Votre âge : </td>
<td valign="top"><input name="age" type="text" id="age" size="2" maxlength="2"> ans</td>
</tr>
<tr>
<td valign="top" align="right">Votre sexe : <br /></td>
<td valign="top"><select name="metier">
<option value="">Choisir</option>
<option value="un homme">Masculin</option>
<option value="une femme">Féminin</option>
</select></td>
</tr>
<tr>
<td valign="top" align="right">Vos loisirs : <br /></td>
<td valign="top"><textarea name="loisir" cols="50" rows="2" id="loisir"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Connaissance en Warez : <br /></td>
<td valign="top"><textarea name="informatique" cols="50" rows="4" id="informatique"></textarea></td>
</tr>
<tr>
<td valign="top" align="right">Situation : </td>
<td valign="top"><input name="arrive" type="text" id="arrive" size="25" maxlength="255" /></td>
</tr>
<tr>
<td valign="top" align="right">Comment avez-vous connu Tassadar ?</td>
<td valign="top"><select name="connu"><option value="">Choisir</option>
<option value="C'est un ami qui m'a fait connaitre TASSADAR">Un ami</option>
<option value="J'ai trouvé cette board en recherchant sur Google">Google</option>
<option value="J'ai découvert cette board sur [url=http://www.top-warez.fr/in.php?id=TASSADAR]Top-WareZ[/url]">Top-warez</option>
<option value="J'ai découvert cette board grâce à Weborama">Weborama</option>
<option value="J'ai trouvé cette board sur internet">Sur un autre site</option></select>
<option value="">Autre</option></td>
</tr>
<td colspan="2" valign="top"><br /><br /><div align="center">
<input type="submit" name="Submit" value="Générer la présentation" />
</div></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table></div>
';
}
function generation(){
$prenom = $_POST['prenom'];
$age = $_POST['age'];
$region = $_POST['region'];
$metier = $_POST['metier'];
$loisir = $_POST['loisir'];
$informatique = $_POST['informatique'];
$arrive = $_POST['arrive'];
$connu = $_POST['connu'];
if(empty($prenom))
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
';
}
else
{
echo '
<div align="center">
<p class="cont">Voici le code à insérer dans la section présentation du forum</p>
<p>
<textarea cols="70" rows="25">[color=green][b][u]Informations personnelles :[/u][/b][/color]
[b]Prénom :[/b] '.stripslashes($vraiprenom).'
';
}
if(empty($age))
{}
else
{
echo '[b]Mon age :[/b] '.stripslashes($age).' ans
';
}
if(empty($region))
{}
else
{
echo'[b]Ma région :[/b] '.stripslashes($region).'
';
}
if(empty($metier))
{}
else
{
echo'[b]Mon métier :[/b] '.stripslashes($metier).'
';
}
if(empty($loisir))
{
echo '
[color=blue][b][u]Autres Informations :[/u][/b][/color]
';
}
else
{
echo'
[color=blue][b][u]Autres Informations :[/u][/b][/color]
[b]Mes loisirs :[/b] '.stripslashes($loisir).'
';
}
if(empty($informatique))
{}
else
{
echo'[b]Ce que j\'aime en informatique :[/b] '.stripslashes($informatique).'
';
}
if(empty($arrive))
{}
else
{
echo'[b]Comment suis-je arrivé sur [i]Tcheval.net[/i] :[/b] '.stripslashes($arrive).'
';
}
echo'
</textarea>
<br /></p>
<br /><br />
</div>
<br />
</body>
</html>
';
}
?>
?>Encore désolé de vous déranger :s
Hors ligne
tu as 2 fois ?> a la fin et tu n'as pas tout changé :
ligne 141 :
Ce que j\'aime en info:
Hors ligne
J'ai vu un forum sur lequel le generateur de présentation envoyez directement le code dans un post , tout etait pret , il ne suffisait que de remplir les champs et la présentation etait ok.
Voir sur ce forum ( Ps : Vous devez vous inscrire afin de pouvoir voir ce fameux script ) : http://lp.ounz.be/index.php
Si quelqu'un connait l'astuce , je suis prenneur 
Bonne journée 
Dernière modification par siNe (20-08-2007 05:08:52)
Hors ligne