Active News (histoire courte)
{title} – Titre de l article
{avatar} – Montrer l avatar (si il y en a un)
{short-story} – Histoire courte
{full-story} – Histoire longue (la deuxieme partie)
{author} – Auteur de l article avec le lien de son email(si il existe)
{author-name} – Le nom de l auteur sans l email
[mail] and [/mail] – Genere un lien avec l email de l auteur (si il existe)[mail]Email[/mail]
{date} – Date de l histoire
[link] and [/link] – Genere un lien vers la deuxieme partie de l histoire
[full-link] and [/full-link] – un lien vers la 2eme partie seulement si il existe une 2eme partie
[com-link] and [/com-link] – Genere un lien vers les commentaires
{comments-num} – Montre le nombre de commentaire
{category} – Montre le nom de la categorie ou est posté la news
{category-icon} – Montre l icone de la categorie (si l icone existe)
Exemple de template a personnaliser
<table class="post" border="0" width="100%">
<tbody>
<tr>
<td width="100%">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<p class="titlepost" style="text-align: center"><a href="{title} {date}">{title} {date}</a></p>
</td>
</tr>
</tbody></table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="100%" height="10">
<div style="margin-right: 15px; margin-bottom: 10px; width: auto; height: auto; float: left;"></div>
{short-story}
<p style="text-align: right">[full-link]suite [/full-link]</p>
<a href="/tutocsshtm.php?subaction=showcomments&id=1175355607&archive=&start_from=&ucat=7&"><span class="title5">Commentaires</span> : 1 </a>
<span class="title5">Under</span> : css,html,script</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
Full Story (histoire 2eme partie)
{title} – Titre de l article
{avatar} – Montrer l avatar (si il y en a un)
{full-story} – Histoire longue (la deuxieme partie)
{short-story} – Histoire courte
{author} – Auteur de l article avec le lien de son email(si il existe)
{author-name} – Le nom de l auteur sans l email
[mail] and [/mail] – Genere un lien avec l email de l auteur (si existe)[mail]Email[/mail]
{date} – Date de l histoire
{comments-num} – Montre le nombre de commentaire
{category} – Montre le nom de la categorie ou est posté la news (si la categorie existe)
{category-icon} – Montre l icone de la categorie (si l icone existe)
Exemple de template a personnaliser
<table width="100%" class="post">
<tr>
<td width="100%">
<table width="100%" class="headerpost" cellpadding="0" cellspacing="0">
<tr>
<td>
<p class="titlepost">.:: {title} ::. {date}</p>
</td>
<td align="right">
<p>[com-link] {comments-num} [/com-link]</p>
</td>
</tr>
</table>
<table class="contentpost" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="10">
<div style="margin-right:15px; margin-bottom:10px; width:auto; height:auto; float:left;">
{avatar}<br />
</div>
{short-story}
<br />
{full-story}
<br />
<p>Catégorie : {category}</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
{author} Nom de celui qui a posté le commentaire
{mail} Email du commentateur
{date} Date de quand a ete poste le commentaire
{comment} le commentaire
{comment-iteration} Montrer le numero ID du commentaire
Exemple de template a personnaliser
<table class="contentpost" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="10">
<p class="title3">{author} le {date}</p>
<p>{comment}</p>
</td>
</tr>
</table>
Autre exemple de template très simple
<p>{author} le {date}</p>
<p>{comment}</p>
Le formulaire de commentaire
Attention fragile !!!
il peut être personnalisé mais si jamais ça bug reprendre le formulaire de la template par défaut et recommencer !!!
<table border="0" width="268" cellspacing="0" cellpadding="0" style="background-color:white; border-width:1; border-color:rgb(51,51,51); border-style:solid;" align="center">
<tr>
<td width="83" height="22"><p align="center">nom: </p></td>
<td width="183" height="22"><p align="left"><input type="text" name="name" tabindex="1"></p>
</td>
</tr>
<tr>
<td width="83" height="23"><p align="center">mail ou site: </p></td>
<td width="183" height="23"><p align="left"><input type="text" name="mail" tabindex="2"> (optionel)</p>
</td>
</tr>
</center>
<tr>
<td width="83" height="15"><p align="center">smile:</p></td>
<center>
<td width="183" height="15"><p align="left"> smilies </p></td>
</tr>
<tr>
<td width="266" height="154" colspan="2">
<p align="center"><textarea cols="55" rows="7" name="comments" tabindex="3" style="font-family:’Century Gothic’; font-size:10px; color:rgb(78,180,217); scrollbar-face-color:white; scrollbar-shadow-color:rgb(255,153,204); scrollbar-highlight-color:white; scrollbar-3dlight-color:rgb(255,153,204); scrollbar-darkshadow-color:white; scrollbar-base-color:white; scrollbar-arrow-color:rgb(255,153,204); scrollbar-track-color:white;"></textarea></p>
<p align="center">
<input type="submit" name="submit" value="Ajouter le commentaire" accesskey="s" style="background-color:white; border-width:1; border-color:rgb(51,51,51); border-style:solid;">
</p>
<p align="center">
<input type=checkbox name=CNremember id=CNremember value=1 style="border-width:1px; border-color:rgb(51,51,51); border-style:dashed;"> <label for=CNremember>Se souvenir de Moi</label> | <a href="javascript:CNforget();">M’oublier</a><font size="1" face="Century Gothic" color="#62C3E7"> </font><font color="#62C3E7"></font>
</p>
</td>
</tr>
</table>
la Pagination
[prev-link] and [/prev-link] – Genere un lien vers les pages precedentes (si il y a)
[next-link] and [/next-link] – Genere un lien vers les pages suivantes (si il y a)
{pages} – montre le lien et le nombre de page; example: 1 2 3 4
Exemple avec des fleches en image (< – 1 2 3 – >)
<p align="center">
[prev-link]<img src="images/flecheg.gif" alt="gauche" width="11" height="9" border="0">[/prev-link]
{pages}
[next-link]<img src="images/fleched.gif" alt="droite" width="11" height="9" border="0">[/next-link]
</p>
la Pagination des commentaires
[prev-link] and [/prev-link] – Genere un lien vers les pages precedentes (si il y a)
[next-link] and [/next-link] – Genere un lien vers les pages suivantes (si il y a)
{pages} – montre le lien et le nombre de page; example: 1 2 3 4
Exemple avec du texte
<p align="center">
[prev-link]précédant[/prev-link]
{pages}
[next-link]suivant[/next-link]
</p>
Other posts by Sev
|