<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Thu, 30 Apr 2026 04:02:04 +0200 -->
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Wiki]]></title>
		<atom:link href="https://www.phpboost.com/syndication/rss/wiki/34" rel="self" type="application/rss+xml"/>
		<link>https://www.phpboost.com</link>
		<description><![CDATA[Derniers articles de la catégorie BBCode]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
            <item>
                <title><![CDATA[Principales balises BBCode]]></title>
                <link>https://www.phpboost.com/wiki/principales-balises-bbcode</link>
                <guid>https://www.phpboost.com/wiki/principales-balises-bbcode</guid>
                <description><![CDATA[PHPBoost gère la mise en forme des messages du forum, articles, commentaires, etc... avec un "langage" simplifié. En effet, qui n'a jamais entendu parler du BBCode ? C'est un langage inventé, qui permet de faciliter la mise en forme d'un message et qui permet entre autres de mettre du texte en gras, de le souligner, de faire un lien ou bien d'autres choses encore. Il permet à des utilisateurs ne connaissant pas du tout le html de formater leurs messages.<br />
Niveau fonctionnement, pour ceux qui sont intéressés, des expressions régulières reconnaissent les balises BBCode et remplacent ce langage à balises à crochets [] par les balises XHTML et CSS correspondantes.<br />
Nous allons voir par l'intermédiaire de cet article comment mettre en forme un message, valable sur toutes les pages de PHPBoost contenant l'éditeur de texte.<br />
<span class="message-helper bgc warning">Veillez à bien respecter un ordre d'ouverture et de fermeture des balises lorsque vous les imbriquez l'une dans l'autre :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[b][i]Texte[/b][/i]
est à proscrire et à remplacer par :
[b][i]Texte[/i][/b]</code></pre></div></div><br />
Effectivement vous allez me dire : "mais ça marche aussi!".<br />
Certes, mais cela n'est absolument pas bon pour les navigateurs et la page ne sera plus compatible au standard du W3C.<br />
Veillez aussi à ne pas intercaler d'espaces à l'intérieur des crochets [] qui correspondent à la balise, cela empêcherait tout simplement le fonctionnement de la mise en forme.</span><br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-smileys">Smileys</h2><br />

Pour égayer vos messages, rien de mieux que d'y insérer quelques smileys histoire d'illustrer des réactions récurrentes.<br />
Pour cela vous devez placer le curseur à l'endroit où vous voulez insérer le smiley, à l'intérieur de la zone de texte. Ensuite vous cliquez sur le bouton <i class="fa fa-smile-o" aria-hidden="true"></i> dans la barre BBCode pour afficher la collection de smileys disponibles (une vingtaine d'origine plus ceux éventuellement rajoutés) et cliquez sur le smiley qui vous intéresse.<br />
Un code va donc s'afficher à l'endroit où vous aviez placé le curseur.<br />
Et oui, vous l'aurez compris, le smiley ne s'insère pas directement mais cela ajoute un "code smiley" qui est propre à chaque motif choisi, qui sera remplacé par le smiley à l'affichage du message.<br />
Vous pourrez donc au bout d'un certain temps et avec de l'habitude ne plus avoir à cliquer sur le bouton smiley car vous aurez retenu les codes correspondants. D'ailleurs pourquoi des caractères si bizarres ?<br />
Effectivement les caractères correspondant aux smileys peuvent être compliqués mais pour cela on a une explication évidente. Par exemple pour le smiley sourire si le code était sourire, dès que le mot sourire apparaîtrait dans le message il serait remplacé par le smiley correspondant.<br />
Et puis pour allez encore plus loin vous allez remarquer quelque chose si ce n'est pas déjà fait.<br />
Par exemple justement le smiley sourire <img src="https://www.phpboost.com/images/smileys/smile.png" alt=":)" class="smiley" /><br />
Son code est :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">:)</code></pre></div></div><br />
Et bien faites faire un quart de tour dans le sens horaire et vous verrez vite qu'il forme un visage souriant (avec les deux points : les yeux, et la parenthèse : la bouche).<br />
Vous pouvez faire ça avec beaucoup de smileys classiques comme le clin d'&#339;il par exemple.<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-mise-en-forme-du-texte">Mise en forme du texte</h2><br />

Vous vous demandez comment j'ai mis en page cet article ? Simplement, grâce au BBCode ! En effet le BBCode dérive du HTML par sa syntaxe.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-mises-en-forme-de-base-gras-italique-souligne-et-barre">Mises en forme de base : gras, italique, souligné et barré</h3><br />

Pour mettre un texte en gras vous n'aurez qu'à l'encadrer par la balise <em>b</em> comme le montre cet exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[b]Texte à mettre en gras[/b]</code></pre></div></div><br />
Cet exemple affichera:<br />
<strong>Texte en gras</strong><br />
Pour l'insérer plus facilement vous pouvez sélectionner le texte que vous voulez mettre en gras et vous cliquez sur <i class="fa fa-bold" aria-hidden="true"></i>, il s'entourera automatiquement des bonnes balises.<br />
Vous pouvez faire de même avec les balises i, u, s qui correspondent à :<br />
<ul class="formatter-ul"><li class="formatter-li">i : italique (<i class="fa fa-italic" aria-hidden="true"></i>)
</li><li class="formatter-li">u : souligné (<i class="fa fa-underline" aria-hidden="true"></i>)
</li><li class="formatter-li">s : barré (<i class="fa fa-strikethrough" aria-hidden="true"></i>)</li></ul><br />
Mais pourquoi des lettres b, i et u ?<br />
A cause de l'anglais tout simplement !<br />
b est l'initiale de "bold" qui signifie "gras", i pour "italic", et u pour "underline" ou "souligné" en français.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-taille-du-texte">Taille du texte</h3><br />

Pour modifier ces propriétés, le principe est le même. On va encadrer le texte désiré par d'autres balises. L'icône de la balise est : <i class="fa fa-text-height" aria-hidden="true"></i><br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[size=25]Texte[/size]</code></pre></div></div><br />
Cet exemple affichera :<br />
<span style="font-size: 25;">Texte</span><br />
La balise <em>size</em>, admet en argument un chiffre entre 0 et 49<br />
Quelques exemples :<br />
<span style="font-size: 5;">Taille 5</span><br />
<span style="font-size: 9;">Taille 9</span><br />
<span style="font-size: 25;">Taille 25</span><br />
<span style="font-size: 35;">Taille 35</span><br />
<span style="font-size: 49;">Taille 49</span><br />
[size=50]Taille 50[/size] Celle la ne marche pas comme prévu.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-couleur">Couleur</h3><br />

L'icône de la balise est : <i class="fa fa-tint" aria-hidden="true"></i><br />
Dans <em>color</em> vous mettrez la couleur du texte (en anglais pour les principales couleurs, ou alors en hexadécimal pour les connaisseurs). Liste des couleurs disponibles: red, green, blue, yellow, purple, olive, black, white, grey etc.<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[size=25][color=red]Texte[/color][/size]
[size=25][color=#FF6600]Texte[/color][/size]</code></pre></div></div><br />
Cet exemple affichera :<br />
<span style="font-size: 25;"><span style="color:red;">Texte</span></span><br />
<span style="font-size: 25;"><span style="color:#FF6600;">Texte</span></span><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-alignement">Alignement</h3><br />

Pour l'alignement d'un texte le principe est encore une fois le même. En utilisant les boutons gauche, centré, droite et justifié, vous pourrez aligner le texte qui sera entouré des balises où vous voudrez dans la page.<br />
Les icônes de la balise sont :<br />
<ul class="formatter-ul"><li class="formatter-li">gauche : <i class="fa fa-align-left" aria-hidden="true"></i>
</li><li class="formatter-li">centré : <i class="fa fa-align-center" aria-hidden="true"></i>
</li><li class="formatter-li">droite : <i class="fa fa-align-right" aria-hidden="true"></i>
</li><li class="formatter-li">justifié: <i class="fa fa-align-justify" aria-hidden="true"></i></li></ul><br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[align=right]Exemple de texte aligné à droite[/align]</code></pre></div></div><br />
Cet exemple affichera :<br />
<p style="text-align: right;">Exemple de texte aligné à droite</p><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-element-flottant">Élément flottant</h3><br />

Nous avons déjà vu la balise <em>align</em>, elle permet de positionner des éléments.<br />
L'avantage de la balise <em>float</em> c'est qu'elle permet de mettre plusieurs éléments à la même hauteur, par exemple si on veut insérer une image sur la droite, si on lui demande de se positionner à droite par la balise <em>float</em> le texte ne viendra pas se mettre sur l'image mais il l'entourera.<br />
A noter qu'il est possible de faire flotter à droite ou à gauche mais pas au centre.<br />
Les icônes de la balise sont :<br />
<ul class="formatter-ul"><li class="formatter-li">gauche : <i class="fa fa-step-backward" aria-hidden="true"></i>
</li><li class="formatter-li">droite : <i class="fa fa-step-forward" aria-hidden="true"></i></li></ul><br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[float=right]Élément flottant à droite[/float]</code></pre></div></div><br />
Cet exemple affichera :<br />
<p class="float-right">Élément flottant à droite</p><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-les-titres">Les titres</h3><br />

L'icône de la balise est : <i class="fa fa-list-alt" aria-hidden="true"></i><br />
La balise <em>title</em> sert à créer des titres.  Sélectionnez votre texte à mettre en titre, cliquez sur l'icône et choisissez le niveau de titre.<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[title=1]titre 1[/title]
[title=2]titre 2[/title]
[title=3]titre 3[/title]
[title=4]titre 4[/title]</code></pre></div></div><br />
Cet exemple affichera :<br />
<h2 class="formatter-title">titre 1</h2><br />
<h3 class="formatter-title">titre 2</h3><br />
<h4 class="formatter-title">titre 3</h4><br />
<h5 class="formatter-title">titre 4</h5><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-les-conteneurs">Les conteneurs</h3><br />

<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />L'icône de la balise est : <i class="fa fa-square-o" aria-hidden="true"></i><br />
et on y trouve les outils suivants:<br />
<div class="formatter-container formatter-block"><img src="https://resources.phpboost.com/documentation/5.1/modules/bbcode_conteneur.png" alt="bbcode_conteneur" /></div><br />
<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />La balise <em>Paragraphe</em> permet de mieux mettre en forme un contenu. Votre texte encadré par cette balise sera suivi d'un saut de ligne.<br />
<div class="formatter-container formatter-code code-TEXT"><span class="formatter-title">Code TEXT : </span><div class="formatter-content"><pre style="display:inline;"><pre class="text" style="font-family:monospace;">[p]Paragraphe[/p]Mise en forme du contenu</pre></pre></div></div><br />
Cela affichera :<br />
<p>Paragraphe</p>Mise en forme du contenu<br />
<br />
Les balises <em>block</em> et <em>fieldset</em> servent à créer un cadre autour d'un texte.  Sélectionnez votre texte à encadrer, cliquez sur l'icône et choisissez le type de cadre.<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[block]ce texte est encadré[/block]
[fieldset]ce texte est aussi un texte encadré[/fieldset]</code></pre></div></div><br />
Cet exemple affichera :<br />
<div class="formatter-container formatter-block">ce texte est encadré</div><br />
<fieldset class="formatter-container formatter-fieldset" style=""><legend></legend><div class="formatter-content">Ce texte est aussi un texte encadré.</div></fieldset><br />
A noter que la balise <em>fieldset</em> peut aussi s'utiliser avec l'attribut "legend" pour mettre un titre:<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[fieldset legend="titre"]ce texte est encadré avec un titre[/fieldset]</code></pre></div></div><br />
Cet exemple affichera :<br />
<fieldset class="formatter-container formatter-fieldset" style=""><legend>titre</legend><div class="formatter-content">Ce texte est encadré avec un titre.</div></fieldset><br />
<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />La balise <em>Abréviation</em> permettra d'utiliser des abréviations comme cet exemple: <div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[abbr</span>=<span style="color:#7B00FF;">Programme</span><span style="color:#0000FF;">]</span>prog.<span style="color:#0000FF;">[/abbr]</span></pre></div></div><br />
qui affichera ceci:<strong> <abbr title="Programme" class="formatter-abbr">prog.</abbr></strong><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-les-styles">Les styles</h3><br />

L'icône de la balise est : <i class="fa fa-warning" aria-hidden="true"></i><br />
Les styles de texte permettent de bien mettre en évidence une zone de texte sous forme de question, remarque, attention et erreur. La balise utilisée est <em>style</em>.<br />
Voici comme exemple les 4 styles disponibles :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[style=question]question[/style]
[style=notice]remarque[/style]
[style=warning]attention[/style]
[style=error]erreur[/style]
</code></pre></div></div><br />
Cet exemple affichera :<br />
<span class="message-helper bgc question">question</span><br />
<span class="message-helper bgc notice">remarque</span><br />
<span class="message-helper bgc warning">attention</span><br />
<span class="message-helper bgc error">erreur</span><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-les-balises-fa-font-awesome">Les balises fa (Font Awesome)</h3><br />

<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />Dans la documentation, il faut souvent désigner un outil en faisant référence à sa représentation en tant qu'icone.<br />
Les icones les plus utilisés ont été regroupés dans un tableau :<br />
<div class="formatter-container formatter-block"><img src="https://resources.phpboost.com/documentation/5.1/modules/bbcode_balises_fa.png" alt="bbcode_balises_fa" /></div><br />
Un simple clic sur un symbole le placera dans votre texte.<br />
Pour en savoir plus sur les icones Font Awesome, veuillez consulter <a class="offload" href="https://www.phpboost.com/wiki/la-bibliotheque-font-awesome">La bibliothèque Font Awesome</a>.<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-autres-balises-utiles">Autres balises utiles</h2><br />

<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-liens">Liens</h3><br />

L'icône de la balise est : <i class="fa fa-globe" aria-hidden="true"></i><br />
Pour faire un lien vers une page web quelconque, vous devez suivre la démarche suivante. Vous devez d'abord insérer la balise lien qui est <em>url</em>. Vous mettez le <em>texte ou l'image</em> qui serviront de support pour le lien. Ensuite vous revenez à l'ouverture de la balise url et vous remplacez url par url=votre page.<br />
Voici un exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[url=https://www.phpboost.com]PHPBoost[/url]
[url=https://www.phpboost.com]https://www.phpboost.com[/url]</code></pre></div></div><br />
Cet exemple affichera :<br />
<a class="offload" href="/">PHPBoost</a><br />
<a class="offload" href="/">https://www.phpboost.com</a><br />
Lors du clic sur l'icône de la balise, l'adresse du lien vous est demandée et le curseur est positionné automatiquement pour ajouter le texte du lien.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-inserer-un-lien-vers-un-article">Insérer un lien vers un article</h3><br />

Cette balise est une spécificité des modules pages et wiki. Le lien vous redirigera vers l'article concerné.<br />
<ul class="formatter-ul">
    <li class="formatter-li">Pour le module Pages, consultez cet <a class="offload" href="https://www.phpboost.com/wiki/utilisation-du-module-pages#paragraph-lien-vers-une-page">article</a>.
    </li><li class="formatter-li">Pour le module Wiki, un raccourci dans la barre BBCode permet d'insérer un lien de la même manière : <img src="https://resources.phpboost.com/documentation/utilisation/modules/BBCode/wiki_lien_vers_article.png" alt="wiki_lien_vers_article" /><br />
</li></ul><br />
Si vous souhaitez faire pointer votre lien vers un paragraphe d'une page, mettez dans votre balise : <div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[link=titre-de-votre-page#paragraph-titre-de-votre-paragraphe[/link]</pre></div></div> ou copiez l'adresse dans la barre de navigation puis collez-la dans votre balise.<br />
Exemple :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[link=utilisation-du-module-pages#paragraph-lien-vers-une-page]article[/link]</pre></div></div><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-images">Images</h3><br />

L'icône de la balise est : <i class="fa fa-picture-o" aria-hidden="true"></i><br />
L'ajout d'image permet d'expliquer un problème, montrer des créations graphiques, images drôles/intéressantes, etc...<br />
Pour cela vous pouvez insérer une image en spécifiant son adresse internet dans les balises <em>img</em>.<br />
Voici un exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[img]https://resources.phpboost.com/documentation/logos/logo.png[/img]</code></pre></div></div><br />
Cet exemple affichera :<br />
<img src="https://resources.phpboost.com/documentation/logos/logo.png" alt="logo" /><br />
Combinons avec ce que nous avons appris avant, nous allons centrer l'image :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[align=center][img]https://resources.phpboost.com/documentation/logos/logo.png[/img][/align]</code></pre></div></div><br />
Cet exemple affichera :<br />
<p style="text-align: center;"><img src="https://resources.phpboost.com/documentation/logos/logo.png" alt="logo" /></p><br />
Il est également possible de fixer les propriétés de style de l'image (la largeur ou la hauteur par exemple) directement dans la balise. Exemple avec une largeur à 30% :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[img style="width:30%;"]https://resources.phpboost.com/documentation/logos/logo.png[/img]</code></pre></div></div><br />
Vous savez donc maintenant ajouter des images à vos messages.<br />
Pour écrire sur une image, il vous suffit de faire cela :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[block</span> style="background-image:url(LIEN DE L'IMAGE); width:760px; height:650px;"<span style="color:#0000FF">]</span>Texte par dessus<span style="color:#0000FF">[/block]</span></pre></div></div><br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>background-image:url(LIEN DE L'IMAGE)</pre></div></div> est l'élément où vous devriez mettre le lien de l'image<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>width:760px</pre></div></div> et la largeur.<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>height:650px;</pre></div></div> la hauteur.<br />
<div class="formatter-container formatter-code code-TEXT"><span class="formatter-title">Code TEXT : </span><div class="formatter-content"><pre style="display:inline;"><pre class="text" style="font-family:monospace;">Texte par dessus</pre></pre></div></div> est le texte qui sera par dessus l'image.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-lightbox">Lightbox</h3><br />

L'icône de la balise est : <i class="fa fa-camera" aria-hidden="true"></i><br />
Cette balise permet d'ajouter un effet sur une image. Elle permet d'afficher la miniature d'une image dans un texte et de l'afficher en taille réelle lorsqu'on clique dessus.<br />
Voici un exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[lightbox=https://resources.phpboost.com/documentation/logos/logo.png][img style="width: 50px;"]https://resources.phpboost.com/documentation/logos/logo.png[/img][/lightbox]</code></pre></div></div><br />
Cet exemple affichera :<br />
<a href="https://resources.phpboost.com/documentation/logos/logo.png" data-lightbox="formatter" class="formatter-lightbox"><img src="https://resources.phpboost.com/documentation/logos/logo.png" alt="logo" style="width: 50px;" /></a><br />
Lors du clic sur l'icône de la balise, l'adresse de l'image en taille réelle vous est demandée et le curseur est positionné automatiquement pour ajouter l'image miniature (avec la balise <em>img</em> décrite au paragraphe précédent) ou le texte à afficher.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-texte-cache">Texte caché</h3><br />

L'icône de la balise est : <i class="fa fa-eye-slash" aria-hidden="true"></i><br />
La balise <em>hide</em> permet d'afficher une zone de texte caché. Il suffit de cliquer dessus pour afficher le contenu. Elle peut être utilisée pour un article de questionnaire donnant ainsi la réponse à la question.<br />
Exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[hide]zone de texte à cacher/afficher.[/hide]</code></pre></div></div><br />
Cet exemple affichera :<br />
<div class="formatter-container formatter-hide no-js"><span class="formatter-title">Caché :</span><div class="formatter-content">zone de texte à cacher/afficher.</div></div><br />
<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" /> La balise peut être refermée en cliquant sur : <i class="fa fa-close" aria-hidden="true"></i> <em>Cliquer ici pour cacher le message.</em><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-balises-member-et-moderator">Balises member et moderator</h3><br />

<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />Pour utiliser ces balises, cliquez sur l'icône hide <i class="fa fa-eye-slash" aria-hidden="true"></i> de la barre d'outils du BBCode, une liste déroulante affichera alors les balises Membre et Modérateur.<br />
Ces balises permettent de cacher du contenu et de réserver son accès soit aux membres soit aux modérateurs.<br />
Exemple avec la balise <em>member</em>:<br />
[<em>member</em>]Contenu de la balise membre[/<em>member</em>]<br />
Cela affichera :<br />
<span class="message-helper bgc warning">Message destiné aux membres</span><br />
Seuls les membres, les modérateurs et les administrateurs auront accès à "Contenu de la balise membre".<br />
Exemple avec la balise <em>moderator</em>:<br />
[<em>moderator</em>]Contenu de la balise modérateur[/<em>moderator</em>]<br />
Cela affichera :<br />
<span class="message-helper bgc warning">Message destiné aux modérateurs</span><br />
Seuls les modérateurs et les administrateurs auront accès à "Contenu de la balise modérateur".<br />
Retrouvez dans cet <a class="offload" href="https://www.phpboost.com/wiki/balise-member-moderator-modification-du-message-de-restriction-d-acces">article</a> la façon de personnaliser ces messages.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-citation">Citation</h3><br />

L'icône de la balise est : <i class="fa fa-quote-left" aria-hidden="true"></i><br />
La balise <em>quote</em> (citation en anglais) est souvent utilisée pour citer le message d'un autre membre, mais peut avoir d'autres utilisations très pratiques.<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-version-5-2">Version 5.2</h4><br />

<br />
<img src="https://resources.phpboost.com/documentation/5.2/tag_52.png" alt="tag_52" /> Quand vous insérez une citation, une petite fenêtre apparaît pour vous permettre d'indiquer le nom de l'auteur d'une citation :<br />
<div class="formatter-container formatter-block"><img src="https://resources.phpboost.com/documentation/5.2/bbcode_quote_author.png" alt="bbcode_quote_author" /></div><br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-autres-versions">Autres versions</h4><br />

<br />
Elle peut être utilisée simplement pour citer un texte :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[quote=Citation]Texte sans auteur particulier à citer[/quote]</code></pre></div></div><br />
Cet exemple affichera :<br />
<blockquote class="formatter-container formatter-blockquote"><span class="formatter-title title-perso">Citation :</span><div class="formatter-content">Texte sans auteur particulier à citer</div></blockquote><br />
Maintenant, vous pouvez citer l'auteur du message (ça ne doit pas forcément être le pseudo d'un membre, ça peut être le nom d'un site ou d'un auteur...)<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[quote=CrowkaiT]Message dont l'auteur est CrowkaiT[/quote]</code></pre></div></div><br />
Cet exemple affichera :<br />
<blockquote class="formatter-container formatter-blockquote"><span class="formatter-title title-perso">CrowkaiT :</span><div class="formatter-content">Message dont l'auteur est CrowkaiT</div></blockquote><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-tableaux">Tableaux</h3><br />

Veuillez consulter le lien suivant pour plus de détails :<br />
<a class="offload" href="https://www.phpboost.com/wiki/faire-un-tableau-en-bbcode">Insérer des tableaux</a><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-listes">Listes</h3><br />

Veuillez consulter le lien suivant pour plus de détails :<br />
<a class="offload" href="https://www.phpboost.com/wiki/inserer-une-liste-en-bbcode">Insérer des listes</a><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-inserer-du-code">Insérer du code</h3><br />

Pour afficher du BBCode sans qu'il soit interprété comme par exemple plus haut dans cet article (tous les autres langages y compris le HTML sont bloqués par mesure de sécurité), il faut utiliser la balise BBCode nommée code. Le code ne sera pas interprété, et il sera coloré si le langage est supporté et reconnu par le colorateur syntaxique.<br />
L'icône de la balise est : <i class="fa fa-code" aria-hidden="true"></i><br />
Voici un exemple:<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000"><span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #DD0000">'Bonjour cher membre'</span><span style="color: #007700">; </span><span style="color: #0000BB">?></span></code></pre></div></div><br />
<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />L'option " Copier vers le presse-papier" permet d'éviter de sélectionner tout le code pour le copier. Cet outil n'est disponible que si vous avez inséré au moins une balise dans le contenu de votre document.<br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-preciser-le-type-de-code-insere">Préciser le type de code inséré</h4><br />

En précisant le type de code que l'on veut colorer, on met toutes les chances de notre côté pour que l'interpréteur syntaxique gère au mieux la couleur.<br />
Dans le menu déroulant de la balise, choisissez le type de code que vous souhaitez afficher.<br />
Exemple :<br />
Si c'est du code php, l'on peut mettre directement :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[code</span>=<span style="color:#7B00FF;">php</span><span style="color:#0000FF;">]</span><?php echo 'Bonjour cher membre'; ?><span style="color:#0000FF;">[/code]</span></pre></div></div><br />
Cet exemple affichera :<br />
<div class="formatter-container formatter-code code-PHP"><span class="formatter-title">Code PHP : </span><div class="formatter-content"><pre style="display:inline;"><pre class="php" style="font-family:monospace;"><span style="color: #FF0000; font-weight: normal;"><?php</span> <span style="color: #0000FF; font-weight: bold;">echo</span> <span style="color: #808080;">'Bonjour cher membre'</span><span style="color: #8000FF;">;</span> <span style="color: #FF0000; font-weight: normal;">?></span></pre></pre></div></div><br />
<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />Vous avez la possibilité de personnaliser l'affichage de la balise en reprenant le nom du fichier d'où provient le code inséré.<br />
Si votre code est issu du fichier design.css, renseignez la balise comme ceci:<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[code=design.css]ce bout de code est issu du fichier design.css[/code]</code></pre></div></div><br />
Le résultat :<br />
<div class="formatter-container formatter-code code-CSS"><span class="formatter-title">design.css : </span><div class="formatter-content"><pre style="display:inline;"><pre class="css" style="font-family:monospace;">ce bout de code est issu du fichier design.css</pre></pre></div></div><br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-afficher-les-lignes">Afficher les lignes</h4><br />

Pour insérer les numéros de ligne à côté du code, il va falloir insérer un argument supplémentaire dans la balise BBCode.<br />
Procéder comme suit :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[code</span>=<span style="color:#7B00FF;">php,1</span><span style="color:#0000FF;">]</span><?php echo 'Bonjour cher membre';
?><span style="color:#0000FF;">[/code]</span></pre></div></div><br />
Cet exemple affichera :<br />
<div class="formatter-container formatter-code code-PHP"><span class="formatter-title">Code PHP : </span><div class="formatter-content"><pre style="display:inline;"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #FF0000; font-weight: normal;"><?php</span> <span style="color: #0000FF; font-weight: bold;">echo</span> <span style="color: #808080;">'Bonjour cher membre'</span><span style="color: #8000FF;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #FF0000; font-weight: normal;">?></span></div></li></ol></pre></pre></div></div><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-multimedia">Multimédia</h3><br />

<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-videos">Vidéos</h4><br />

L'icône de la balise est : <i class="fa fa-film" aria-hidden="true"></i><br />
<img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />La balise <em>movie</em> est maintenant compatible avec le lecteur HTML5 en vue de remplacer le lecteur Flash player dont l'arrêt est annoncé. Cette balise lit les formats MP4, WebM, et Ogg. La balise <em>swf</em> reste en place pour assurer la compatibilité avec les vidéos existantes.<br />
La balise <em>movie</em> fonctionne de la même manière que la balise flash <em>swf</em> mais vous ne pouvez intégrer que des fichiers physiques.<br />
Exemple :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[movie</span>=<span style="color:#7B00FF;">200,200</span><span style="color:#0000FF;">]</span>/upload/exemple.mp4<span style="color:#0000FF;">[/movie]</span></pre></div></div><br />
Vous pouvez aussi ajouter un "poster" à votre vidéo. L'image sera affichée avant la lecture.<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[movie</span>=<span style="color:#7B00FF;">400,300,/upload/image.jpg</span><span style="color:#0000FF;">]</span>/upload/exemple.mp4<span style="color:#0000FF;">[/movie]</span></pre></div></div><br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-youtube">Youtube</h4><br />

L'icône de la balise est : <i class="fa fa-youtube" aria-hidden="true"></i><br />
Vous pouvez insérer très facilement des vidéos youtube à l'aide de cette balise.<br />
Lorsque vous avez choisi votre vidéo sur le site youtube, copiez l'adresse de cette dernière de votre navigateur internet.<br />
Il suffit maintenant de l'insérer entre la balise <em>youtube</em>.<br />
Exemple :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[youtube]https://www.youtube.com/watch?v=DFEtnhfQcqI[/youtube]</pre></div></div><br />
Vous pouvez modifier la taille de votre vidéo en rajoutant la largeur et la hauteur souhaitées : <em>[youtube=largeur,hauteur]</em>.<br />
Exemple :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[youtube</span>=<span style="color:#7B00FF;">200,100</span><span style="color:#0000FF;">]</span>https://www.youtube.com/watch?v=DFEtnhfQcqI<span style="color:#0000FF;">[/youtube]</span></pre></div></div><br />
Résultat centré:<br />
<p style="text-align: center;"><div class="media-content" style="width: 200px; height: 100px;"><video class="video-player" controls></video></div></p><br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-flash">Flash</h4><br />

L'icône de la balise est : <i class="fa fa-play-circle-o" aria-hidden="true"></i><br />
La balise flash <em>swf</em> permet d'intégrer des animations flash directement dans PHPBoost, celle-ci peut prendre deux arguments : largeur et hauteur.<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[swf=largeur,hauteur]url de l'animation[/swf]</code></pre></div></div><br />
Exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[swf=155,250]http://www.phpboost.com/phpboost/pub.swf[/swf]</code></pre></div></div><br />
Pour savoir comment utiliser la balise <em>flash</em> pour insérer des vidéos, merci de lire <a class="offload" href="https://www.phpboost.com/wiki/inserer-des-videos-sur-phpboost">l'article approprié</a>.<br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-son">Son</h4><br />

L'icône de la balise est : <i class="fa fa-music" aria-hidden="true"></i><br />
Vous pouvez bien sur insérer du son sur phpboost. La balise utilisée est <em>sound</em>.<br />
Il faut cependant noter que le lecteur lit <strong>uniquement</strong> les fichiers <strong>.mp3</strong>. De plus la lecture optimale se fait pour <em>les fichiers encodés à 44,100kH</em>z. Dans les autres cas, la lecture ne se fera pas normalement.<br />
Exemple :<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[sound]https://art.macp3.info/VRAC/mp3/tagadatsointsoin.mp3[/sound]</code></pre></div></div><br />
Cet exemple affichera :<br />
<audio class="audio-player" controls><source src="https://art.macp3.info/VRAC/mp3/tagadatsointsoin.mp3" /></audio><br />
<span style="font-size: 10;"><span style="text-decoration: underline;">Source:</span> Musique composée par <em>Kak Miortvi Pengvin</em>. Fichier distribué sous licence <a class="offload" href="http://creativecommons.org/licenses/by-nc-nd/2.0/fr/">Creative Commons BY-NC-ND 2.0</a>.<br />
</span><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-inserer-des-expressions-mathematiques">Insérer des expressions mathématiques</h3><br />

L'icône de la balise est : <i class="fa fa-maxcdn" aria-hidden="true"></i><br />
La balise math permet d'insérer des expressions mathématiques. Vous trouverez tous les détails sur <a class="offload" href="https://www.phpboost.com/wiki/utiliser-latex-en-bbcode">l'article approprié</a> (explication et démonstration).<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-ancres">Ancres</h3><br />

<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-qu-est-ce-qu-une-ancree">Qu'est-ce qu'une ancre?</h4><br />

Une ancre permet de définir des lieux dans la page. Elle permet de faire en sorte de se rendre directement sur l'endroit recherché dans la page (voir par exemple les liens du sommaire de cette page, ils mènent directement au paragraphe concerné).<br />
L'icône de la balise est : <i class="fa fa-anchor" aria-hidden="true"></i><br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-creer-une-ancre">Créer une ancre</h4><br />

Pour définir une ancre, il faut définir la syntaxe suivante à l'endroit du texte vers lequel vous souhaitez pointer directement:<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[anchor=nom-ancre]Titre[/anchor]</code></pre></div></div><br />
<span class="message-helper bgc notice"><img src="https://resources.phpboost.com/documentation/5.1/modules/tag_51.svg" alt="tag_51" />Le nom de votre ancre sera réécrite en minuscule avec tirets même si vous l'écrivez en majuscule.</span><br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-faire-pointer-un-lien-vers-une-ancre">Faire pointer un lien vers une ancre</h4><br />

Pour créer un lien vers un endroit précis de la page, il faut mettre avant tout l'adresse de la page, puis mettre un dièse et le nom de l'ancre précédemment définie.<br />
Nous utiliserons par exemple (<strong>uniquement pour les modules Pages et Wiki</strong>):<br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">[link=principales-balises-bbcode#creer-une-ancre]Créer des ancres en BBCode sur PHPBoost[/link]</code></pre></div></div><br />
Cet exemple affichera : <a class="offload" href="https://www.phpboost.com/wiki/principales-balises-bbcode#creer-une-ancre">Créer des ancres en BBCode sur PHPBoost</a><br />
<br />
<span class="message-helper bgc warning">Pour les autres modules, c'est la balise [url] [/url] qui devra être utilisée à la place de la balise [link]</span><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-flux-rss">Flux RSS</h3><br />

Depuis la 4.0, il est possible d'ajouter un flux RSS interne au site via le BBCode.<br />
Il faut utiliser cette balise :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[feed cat"x" number="x"]NOM DU MODULE[/feed]</pre></div></div><br />
Vous avez la possibilité de personnaliser l'affichage :<br />
<ul class="formatter-ul">
<li class="formatter-li"><strong>cat="numéro de la catégorie du flux dans le module"</strong><br />
Pour connaître le numéro de la catégorie du flux, allez dans le module souhaité, allez dans la catégorie souhaitée et cliquez sur cette icone <i class="fa fa-rss" aria-hidden="true"></i>, vous allez être redirigé vers une page avec ce type d'adresse : /syndication/rss/forum/4<br />
Cela correspond au module forum et la catégorie est la n<span class="emoji-tag">&deg;</span> 4.<br />
Si vous souhaitez afficher tous les flux d'un module, dans ce cas ne mettez pas cat"x"
</li><li class="formatter-li"><strong>number="nombre de flux à afficher"</strong><br />
</li></ul><br />
Exemple pour afficher les 5 derniers flux du module téléchargement de la catégorie 3 :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[feed cat"3" number="5"]download[/feed]</pre></div></div>]]></description>
                <pubDate>Sat, 21 Feb 2026 08:48:44 +0100</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Utiliser Latex en BBCode]]></title>
                <link>https://www.phpboost.com/wiki/utiliser-latex-en-bbcode</link>
                <guid>https://www.phpboost.com/wiki/utiliser-latex-en-bbcode</guid>
                <description><![CDATA[<h2 class="formatter-title wiki-paragraph-2" id="paragraph-introduction">Introduction</h2><br />

Bien qu'elle permette une mise en forme assez poussée, l'utilisation du BBCode atteint ses limites, notamment en ce qui concerne l'affichage de formules mathématiques. Pour cela, il existe sur PHPBoost un interpréteur de langage mathématique. Il utilise <a class="offload" href="http://www.xm1math.net/phpmathpublisher/index_fr.html">PHPMathPublisher</a>, un logiciel libre qui permet de transformer le langage en images, ce qui est compatible avec tous les navigateurs. Il a été légèrement modifié afin de gérer la mise en cache des images, leur génération étant une opération gourmande en ressources. Les images sont ainsi conservées pendant 1 semaine, puis elles sont supprimées. Si elles sont à nouveau demandées, alors elles sont régénérées immédiatement.<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-syntaxe">Syntaxe</h2><br />

La syntaxe est assez proche du <a class="offload" href="http://fr.wikipedia.org/wiki/LaTeX">LaTeX</a>, un langage de mise en forme qui supporte très bien les expressions mathématiques.<br />
<br />
Pour introduire les expressions, il faut les entourer de la balise <em>math</em>, disponible dans la barre d'outils BBCode.<br />
<br />
Comment rédiger ces expressions?<br />
C'est assez simple, pour cela rien ne vaut <a class="offload" href="http://www.xm1math.net/doculatex/index.html">la documentation officielle de PHPMathPublisher</a>.<br />
<br />
<span class="message-helper bgc warning">A noter simplement que sur PHPBoost il ne faut pas mettre les balises <m> comme indiqué mais celle qui correspond en BBCode.</span><br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-exemples">Exemples</h2><br />

<span style="text-decoration: underline;">Série de Fourier de f:</span><br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">S(f)(t)=a_{0}/2+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}</code></pre></div></div><br />
<img src="https://www.phpboost.com/images/maths/math_978_980792589f68cb44db84f2f65bbfc4ec.png" style="vertical-align:-22px; display: inline-block ;" alt="S(f)(t)=a_{0}/2+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}" /><br />
<br />
<span style="text-decoration: underline;">Limite (utilisation de quantificateurs):</span><br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">{lim{{n}right{+infty}}{u_n}=l}doubleleftright{forall{varepsilon}>0,exists{n}_0 in bbN, forall{n} in bbN, n>={n_0}doubleright{delim{|}{u_n-l}{|}}<=varepsilon}</code></pre></div></div><br />
<img src="https://www.phpboost.com/images/maths/math_982_918f3ef706bceea6ee9265fa91359f6e.png" style="vertical-align:-18px; display: inline-block ;" alt="{lim{{n}right{+infty}}{u_n}=l}doubleleftright{forall{varepsilon}>0,exists{n}_0 in bbN, forall{n} in bbN, n>={n_0}doubleright{delim{|}{u_n-l}{|}}<=varepsilon}" /><br />
<br />
<span style="text-decoration: underline;">Moment cinétique du solide écrit en O:</span><br />
<div class="formatter-container formatter-code"><span class="formatter-title">Code : </span><div class="formatter-content"><pre><code style="color: #000000">vec{sigma_O}=tripleint{v}{}{vec{OA}wedge{vec{v(P)}.dm(P)}}</code></pre></div></div><br />
<img src="https://www.phpboost.com/images/maths/math_963_3fb676e18615aba4677dd25d666543ee.png" style="vertical-align:-37px; display: inline-block ;" alt="vec{sigma_O}=tripleint{v}{}{vec{OA}wedge{vec{v(P)}.dm(P)}}" />]]></description>
                <pubDate>Fri, 13 Feb 2026 07:29:58 +0100</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Insérer des vidéos sur PHPBoost]]></title>
                <link>https://www.phpboost.com/wiki/inserer-des-videos-sur-phpboost</link>
                <guid>https://www.phpboost.com/wiki/inserer-des-videos-sur-phpboost</guid>
                <description><![CDATA[Comment insérer une vidéo dans PHPBoost grâce au BBCode ?<br />
<br />
Pour profiter pleinement des outils de mise en page, il faut avoir choisi l'éditeur de texte BBCode dans son profil.<br />
Sinon, écrivez les codes bbcode fournis dans ce descriptif.<br />
<br />
Dans la barre d'outils sur la droite, cliquez sur l'outil <i class="fa fa-file-import" aria-hidden="true"></i> Fichiers puis sur l'outil <i class="fa fa-film" aria-hidden="true"></i> Vidéo<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-video-personnelle">Vidéo personnelle</h2><br />

Les formats .mp4 .ogg et .webm sont lu nativement par les navigateurs courants.<br />
<br />
Vous devez héberger ce fichier sur un serveur pour ensuite renseigner l'adresse <strong>complète</strong> dans le champ <pre style="display:inline;">Adresse de la vidéo</pre>.<br />
<br />
Dans le cas où vous hébergez le fichier sur votre propre site, n'oubliez pas de rajouter l'adresse du site en début d'url<br />
<span style="background-color:#e5f4fd;"><strong>https://www.mon.site.fr</strong>/dossier/video/ma_video.mp4</span><br />
<br />
Choisissez ensuite <pre style="display:inline;">Fichier distant</pre> dans le champ <pre style="display:inline;">Hébergeur</pre><br />
<br />
Choisissez ensuite les dimensions de la vidéo.<br />
<br />
Vous pouvez ajouter une vignette de présentation (optionnel)<br />
<br />
Enfin cliquez sur <pre style="display:inline;">insérer</pre><br />
<br />
Le code d'insertion de la vidéo sera noté dans le textarea sous la forme :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[movie,largeur,hauteur,/chemin/de/la/vignette]https://www.site.fr/chemin/vers/video.mp4[/movie]</pre></div></div><br />
<br />
Résultat :<br />
<br />
<div class="media-content" style="width: 800px; height: 450px;"><video class="video-player" poster="/templates/__default__/theme/images/logo.svg" controls><source src="https://resources.phpboost.com/phpboost/phpboost-presa-3d.mp4" type="video/mp4" /></video></div><br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-utiliser-un-hebergeur-video">Utiliser un hébergeur vidéo</h2><br />

Vous souhaitez partager une vidéo déjà en ligne, diffusée par un tiers ou par vous-même chez un hébergeur.<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-youtube">Youtube</h3><br />

<br />
<a class="offload" href="https://www.youtube.com">youtube.com</a><br />
<br />
Même procédure que précédemment pour les outils<br />
<br />
Dans le champ <pre style="display:inline;">Adresse de la vidéo</pre>, renseignez le lien de la page de Youtube où se trouve la vidéo<br />
<br />
Dans le champ <pre style="display:inline;">Hébergeur</pre>, choisissez <pre style="display:inline;">Youtube</pre><br />
<br />
Ce qui donne :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF;">[youtube</span>=<span style="color:#7B00FF;">800,450</span><span style="color:#0000FF;">]</span>https://www.youtube.com/watch?v=aqz-KE-bpKQ&t=531s<span style="color:#0000FF;">[/youtube]</span></pre></div></div><br />
<br />
Résultat :<br />
<div class="media-content" style="width: 800px; height: 450px;"><iframe class="youtube-player" type="text/html"  src="https://www.youtube.com/embed/aqz-KE-bpKQ" frameborder="0" allowfullscreen></iframe></div><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-dailymotion">Dailymotion</h3><br />

<br />
<a class="offload" href="https://www.dailymotion.com">dailymotion.com</a><br />
<br />
Même procédure que précédemment pour les outils<br />
<br />
Dans le champ <pre style="display:inline;">Adresse de la vidéo</pre>, renseignez le lien de la page de Dailymotion où se trouve la vidéo<br />
<br />
Dans le champ <pre style="display:inline;">Hébergeur</pre>, choisissez <pre style="display:inline;">Dailymotion</pre><br />
<br />
Ce qui donne :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[dailymotion=800,450]https://www.dailymotion.com/video/x2t6n4d[/dailymotion]</pre></div></div><br />
<br />
Résultat :<br />
<div class="media-content" style="width: 800px; height: 450px;"><iframe class="dailymotion-player" type="text/html" src="https://www.dailymotion.com/embed/video/x2t6n4d" frameborder="0" allowfullscreen></iframe></div><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-vimeo">Vimeo</h3><br />

<br />
<a class="offload" href="https://vimeo.com/">vimeo.com/</a><br />
<br />
Même procédure que précédemment pour les outils<br />
<br />
Dans le champ <pre style="display:inline;">Adresse de la vidéo</pre>,  renseignez le lien de la page de Vimeo où se trouve la vidéo<br />
<br />
Dans le champ <pre style="display:inline;">Hébergeur</pre>, choisissez <pre style="display:inline;">Vimeo</pre><br />
<br />
Ce qui donne :<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[vimeo=800,450]https://vimeo.com/1084537[/vimeo]</pre></div></div><br />
<br />
Résultat :<br />
<div class="media-content" style="width: 800px; height: 450px;"><iframe class="vimeo-player" type="text/html" src="https://player.vimeo.com/video/1084537" frameborder="0" allowfullscreen></iframe></div><br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-autres-hebergeurs-videos">Autres hébergeurs vidéos</h3><br />

<br />
De nouveaux hébergeurs émergent dans la sphère vidéo ludique sur la toile, Peertube, Odysee, Twitch, etc, mais ne sont pas accessibles via le bbcode.<br />
Cependant certains nouveaux hébergeurs sont déjà intégrés dans les modules Media et Video [insérer lien vers téléchargement]]]></description>
                <pubDate>Fri, 09 Dec 2022 03:45:35 +0100</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Faire un tableau en BBCode]]></title>
                <link>https://www.phpboost.com/wiki/faire-un-tableau-en-bbcode</link>
                <guid>https://www.phpboost.com/wiki/faire-un-tableau-en-bbcode</guid>
                <description><![CDATA[Depuis PHPBoost 2.0 il est possible de faire des tableaux en BBCode.<br />
<br />
Cette nouvelle balise supporte les imbrications infinies et elle permet une personnalisation presque totale puisqu'elle permet de définir au tableau des propriétés graphiques en CSS.<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-introduction">Introduction</h2><br />
<br />
<br />
La création d'un tableau n'est pas une opération simple à comprendre. La balise table de PHPBoost suit la même logique que la création de tableaux en HTML, seules les balises ne portent pas le même nom.<br />
<br />
Pour mieux expliquer cet article va progresser pas à pas avec de nombreux exemples.<br />
<br />
<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-tableau-de-base">Tableau de base</h2><br />
<br />
<br />
<br />
Nous allons faire un tableau qui contient une seule cellule. Voilà le code source :<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
<tr class="formatter-table-row">
    <td class="formatter-table-head" colspan="2">Tableau de base : une ligne et une colonne</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table"><tr class="formatter-table-row"><td class="formatter-table-col">Tableau à une cellule</td></tr></table><br />
<br />
</td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Tableau à une cellule
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
Explications :<br />
<br />
<ul class="formatter-ul"><li class="formatter-li">table : marque le début du tableau
</li><li class="formatter-li">row : marque le début d'une ligne du tableau
</li><li class="formatter-li">col : marque une colonne</li></ul><br />
<br />
<span class="message-helper bgc notice">Il faut comprendre que la construction d'un tableau se fait d'abord selon les lignes, puis pour chaque ligne on définit des colonnes, ce qui définit pour chaque intersection une cellule.</span><br />
<br />
<br />
<br />
Faisons maintenant un tableau à deux cellules sur la même ligne :<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
<tr class="formatter-table-row">
<td class="formatter-table-head" colspan="2">Tableau de base : une ligne et deux colonnes</td>
</tr><tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table"><tr class="formatter-table-row"><td class="formatter-table-col">cellule de gauche</td><td class="formatter-table-col">cellule de droite</td></tr></table><br />
<br />
</td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule de gauche
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule de droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
Il est donc important de remarquer que pour rajouter une cellule il suffit de rajouter une colonne dans la ligne.<br />
<br />
<br />
<br />
Rajoutons maintenant une deuxième ligne :<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
<tr class="formatter-table-row">
<td class="formatter-table-head" colspan="2">Tableau à deux lignes et deux colonnes</td>
</tr><tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Cellule haut gauche<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule haut droite<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Cellule bas gauche<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule bas droite<br />
<br />
        </td>
    </tr>
</table></td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule haut gauche
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule haut droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas gauche
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
Pour rajouter une ligne il faut utiliser la balise row et y insérer des cellules.<br />
<br />
<br />
<br />
<span class="message-helper bgc warning">Il est important de mettre le même nombre de colonnes dans chaque ligne pour ne pas risquer de déformer le tableau. Si vous souhaitez faire des fusions de cellules reportez vous au paragraphe <a class="offload" href="https://www.phpboost.com/wiki/faire-un-tableau-en-bbcode#paragraph_fusion-de-cellules">fusions de cellules</a>.</span><br />
<br />
<br />
<br />
On peut donc grâce à cette balise créer des tableaux avec n'importe quel nombre de cellules.<br />
<br />
<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-fusion-de-cellules">Fusion de cellules</h2><br />
<br />
<br />
<br />
Nous avons vu qu'il est nécessaire de mettre le même nombre de cellules dans chaque ligne. Voyons maintenant comment fusionner des cellules.<br />
<br />
<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-fusion-de-colonnes">Fusion de colonnes</h3><br />
<br />
<br />
<br />
Pour fusionner deux colonnes horizontalement il faut simplement déclarer une seule des cellules et lui donner l'argument colspan="2" afin de lui faire remarquer que celle déclaration de cellule vaudra pour deux cellules. Voilà un exemple.<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
<tr class="formatter-table-row">
<td class="formatter-table-head" colspan="2">Tableau avec cellules fusionnées</td>
</tr><tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-col" colspan="2"><br />
<br />
            Deux cellules fusionnées horizontalement<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Cellule bas gauche<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule bas droite<br />
<br />
        </td>
    </tr>
</table></td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span> colspan="2"<span style="color:#0000FF">]</span>
            Deux cellules fusionnées horizontalement
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas gauche
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
<span class="message-helper bgc question">Il est évident que l'on peut fusionner autant de colonnes que l'on veut. Pour cela il faut indiquer dans l'attribut colspan le nombre de cellules à fusionner.</span><br />
<br />
<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-fusion-de-lignes">Fusion de lignes</h3><br />
<br />
<br />
<br />
Voyons maintenant comment fusionner deux cellules selon la verticale. La démarche est la même que pour fusionner horizontalement sauf qu'on utilise ici l'attribut rowspan.<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
<tr class="formatter-table-row">
<td class="formatter-table-head" colspan="2">Tableau avec cellules fusionnées</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-col" rowspan="2"><br />
<br />
            Deux cellules fusionnées verticalement<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule haut droite<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Cellule bas droite<br />
<br />
        </td>
    </tr>
</table><br />
<br />
</td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span> rowspan="2"<span style="color:#0000FF">]</span>
            Deux cellules fusionnées verticalement
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule haut droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-fusion-horizontale-et-verticale">Fusion horizontale et verticale</h3><br />
<br />
<br />
<br />
Nous pouvons aussi fusionner des cellules à la fois horizontalement et verticalement.<br />
<br />
<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
<tr class="formatter-table-row">
<td class="formatter-table-head" colspan="2">Tableau avec cellules fusionnées</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-col" colspan="2" rowspan="2"><br />
<br />
            Quatre cellules fusionnées verticalement<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule haut droite<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Cellule milieu droite<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">  
        <td class="formatter-table-col"><br />
<br />
            Cellule bas gauche<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule bas milieu<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Cellule bas droite<br />
<br />
        </td>
    </tr>
</table><br />
<br />
</td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span> colspan="2" rowspan="2"<span style="color:#0000FF">]</span>
            Quatre cellules fusionnées verticalement
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule haut droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>    
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule milieu droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>        
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas gauche
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas milieu
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Cellule bas droite
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
<span class="message-helper bgc warning">Il est important de respecter l'ordre : d'abord colspan et ensuite rowspan.</span><br />
<br />
<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-mise-en-forme-avanc-e">Mise en forme avancée</h2><br />
<br />
<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-cellules-d-en-t-te">Cellules d'en-tête</h3><br />
<br />
<br />
<br />
Pour distinguer les cellules d'en-tête il existe une balise qui permet de donner un style différent des cellules par défaut ; il permet par exemple de distinguer le libellé d'une colonne et son contenu.<br />
<br />
Au lieu d'utiliser la balise col il faut simplement mettre head, son fonctionnement est strictement identique à celui de col, seule l'apparence graphique en sera modifiée.<br />
<br />
<br />
<br />
Voyons un exemple :<br />
<br />
<br />
<br />
<table class="table formatter-table" style="margin: auto;">
    <tr class="formatter-table-row">
        <td class="formatter-table-head" colspan="2">Tableau à mise en forme avancée</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col"><table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-head"><br />
<br />
            Légume<br />
<br />
        </td>
        <td class="formatter-table-head"><br />
<br />
            Couleur<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Carotte<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Orange<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Radis<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Rouge<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Salade<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Vert<br />
<br />
        </td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><br />
<br />
            Pomme de terre<br />
<br />
        </td>
        <td class="formatter-table-col"><br />
<br />
            Jaune<br />
<br />
        </td>
    </tr>
</table></td>
<td class="formatter-table-col"><br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span><span style="color:#0000FF">]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[head</span><span style="color:#0000FF">]</span>
            Légume
        <span style="color:#0000FF">[/head]</span>
        <span style="color:#0000FF">[head</span><span style="color:#0000FF">]</span>
            Couleur
        <span style="color:#0000FF">[/head]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Carotte
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Orange
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Radis
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Rouge
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Salade
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Vert
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
    <span style="color:#0000FF;">[row]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Pomme de terre
        <span style="color:#0000FF">[/col]</span>
        <span style="color:#0000FF">[col</span><span style="color:#0000FF">]</span>
            Jaune
        <span style="color:#0000FF">[/col]</span>
    <span style="color:#0000FF;">[/row]</span>
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
</td></tr></table><br />
<br />
<br />
<br />
<h3 class="formatter-title wiki-paragraph-3" id="paragraph-personnalisation-du-tableau-gr-ce-au-css">Personnalisation du tableau grâce au CSS</h3><br />
<br />
<br />
<br />
Comme précisé en introduction, la balise table permet de donner au tableau son propre CSS.<br />
<br />
<br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-personnalisation-du-tableau-en-lui-m-me">Personnalisation du tableau en lui-même</h4><br />
<br />
<br />
<br />
Voici comment insérer du CSS pour un tableau.<br />
<br />
<br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[table</span> style="css du tableau"<span style="color:#0000FF">]</span>
//Contenu du tableau
<span style="color:#0000FF">[/table]</span></pre></div></div><br />
<br />
<br />
<br />
Voyons maintenant les principales propriétés CSS d'un tableau.<br />
<br />
Tout d'abord il faut connaître au minimum la syntaxe du CSS qui est très simple.<br />
<br />
<br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>propriété 1: valeur; propriété 2 : valeur; propriété 3 : valeur; ...</pre></div></div><br />
<br />
<br />
<br />
<table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-head">Propriété</td>
        <td class="formatter-table-head">Action</td>
        <td class="formatter-table-head">Valeurs</td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">border-collapse</td>
        <td class="formatter-table-col">Coller les bordures du tableau entre elles</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">collapse : les bordures sont collées entre elles (par défaut dans le BBCode PHPBoost)
        </li><li class="formatter-li">separate : les bordures sont dissociées</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">border-spacing</td>
        <td class="formatter-table-col">Définit l'espace entre les cellules</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur: en pixels 3px par exemple</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">margin</td>
        <td class="formatter-table-col">Définit les marges</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">auto : le tableau est centré</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">width</td>
        <td class="formatter-table-col">Définit la largeur du tableau</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur : en % (50% par exemple): largeur proportionnelle à la place disponible
        </li><li class="formatter-li">valeur : en pixels (50px par exemple)</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">height</td>
        <td class="formatter-table-col">Définit la hauteur du tableau</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur : en % (50% par exemple): Hauteur proportionnelle à la place disponible
        </li><li class="formatter-li">valeur : en pixels (50px par exemple)</li></ul></td>
    </tr>
</table><br />
<br />
<br />
<br />
<h4 class="formatter-title wiki-paragraph-4" id="paragraph-personnalisation-des-cellules">Personnalisation des cellules</h4><br />
<br />
<br />
<br />
Vous allez aussi pouvoir personnaliser vos cellules ([col] et [head]) grâce au css. Voici un petit aperçu des possibilités.<br />
<br />
<br />
<br />
<table class="table formatter-table">
    <tr class="formatter-table-row">
        <td class="formatter-table-head">Propriété</td>
        <td class="formatter-table-head">Action</td>
        <td class="formatter-table-head">Valeurs</td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">background</td>
        <td class="formatter-table-col">Fond de la cellule</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">couleur: hexadécimale ou en anglais.
        </li><li class="formatter-li">url('adresse de l'image') :  Image en fond
        </li><li class="formatter-li">repeat: (repeat-x, repeat-y, repeat, no-repeat) Répétition de l'image de fond.</li></ul><br />
<br />
        Ex: background:black url('http://www/phpboost.com/image.jpg') repeat-x;</td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">border</td>
        <td class="formatter-table-col">Bordure de la cellule</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur: Largeur de la bordure
        </li><li class="formatter-li">(solid, dotted, dashed, groove, double, inset, outset, ridge): Type de bordure
        </li><li class="formatter-li">couleur</li></ul><br />
<br />
        Ex: border:1px solid black;</td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">width</td>
        <td class="formatter-table-col">Définit la largeur de la cellule</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur: en % (50% par exemple): largeur proportionnelle à la place disponible
        </li><li class="formatter-li">valeur: en pixels (50px par exemple)</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">height</td>
        <td class="formatter-table-col">Définit la hauteur de la cellule</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur: en % (50% par exemple): Hauteur proportionnelle à la place disponible
        </li><li class="formatter-li">valeur: en pixels (50px par exemple)</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">color</td>
        <td class="formatter-table-col">Définit la couleur du texte de la cellule</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">couleur: hexadécimale ou en anglais</li></ul></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">padding</td>
        <td class="formatter-table-col">Définit la marge intérieure de la cellule</td>
        <td class="formatter-table-col"><ul class="formatter-ul"><li class="formatter-li">valeur: en % (50% par exemple): Hauteur proportionnelle à la place disponible
        </li><li class="formatter-li">valeur: en pixels (50px par exemple)</li></ul></td>
    </tr>
</table>]]></description>
                <pubDate>Thu, 20 Dec 2018 12:27:25 +0100</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[BBCode]]></title>
                <link>https://www.phpboost.com/wiki/bbcode</link>
                <guid>https://www.phpboost.com/wiki/bbcode</guid>
                <description><![CDATA[<table class="table formatter-table" style="float:right;">
   <tr class="formatter-table-row">
      <td class="formatter-table-head" colspan="2">BBCode</td>
   </tr>
   <tr class="formatter-table-row">
      <td class="formatter-table-col">Auteur</td>
      <td class="formatter-table-col"><a class="offload" href="https://www.phpboost.com/user/profile/1">CrowkaiT</a></td>
   </tr>
   <tr class="formatter-table-row">
      <td class="formatter-table-col">Version actuelle</td>
      <td class="formatter-table-col">5.1</td>
   </tr>
   <tr class="formatter-table-row">
      <td class="formatter-table-col">Date de sortie</td>
      <td class="formatter-table-col">juillet 2007</td>
   </tr>
   <tr class="formatter-table-row">
      <td class="formatter-table-col">Compatibilité et téléchargement</td>
      <td class="formatter-table-col"><a class="offload" href="https://www.phpboost.com/download/62-modules-phpboost-5-1/521-bbcode/">PHPBoost 5.1</a> et <a class="offload" href="https://www.phpboost.com/download/47-modules-phpboost-5-0/373-bbcode/">PHPBoost 5.0</a></td>
   </tr>
</table><br />
<p style="text-align: center;"><br />
   <span style="font-size: 20px;"><strong>Module BBCode</strong></span><br />
   <img src="https://resources.phpboost.com/documentation/utilisation/modules/BBCode/logo.png" alt="logo" /><br />
</p><br />
<br />
<br />
<br />
<strong>Description :</strong> Ce module vous permet d'afficher une barre BBCode au dessus des champs texte qui permet de formater votre texte.]]></description>
                <pubDate>Sun, 20 Aug 2017 13:26:09 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Insérer un flux RSS en BBCode]]></title>
                <link>https://www.phpboost.com/wiki/inserer-un-flux-rss-en-bbcode</link>
                <guid>https://www.phpboost.com/wiki/inserer-un-flux-rss-en-bbcode</guid>
                <description><![CDATA[Vous souhaitez afficher sur votre site un flux RSS via le BBCode, c'est maintenant possible et il n'y a rien de plus simple !<br />
<br />
Il faut utiliser la balise feed :<br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[feed]le_nom_du_module[/feed]</pre></div></div><br />
<br />
Vous avez la possibilité de personnaliser l'affichage :<br />
<ul class="formatter-ul">
    <li class="formatter-li"><strong>cat="numéro de la catégorie du flux dans le module"</strong><br />
Pour connaître le numéro de la catégorie du flux, allez dans le module souhaité, allez dans la catégorie souhaitée et cliquez sur cette icone <!-- START HTML -->
<i class="fa fa-syndication"></i>
<!-- END HTML -->, vous allez être redirigé vers une page avec ce type d'adresse : /syndication/rss/forum/4<br />
Cela correspond au module forum et la catégorie est la n° 4.<br />
Si vous souhaitez afficher tous les flux d'un module, dans ce cas ne mettez pas cat"x"
    </li><li class="formatter-li"><strong>number="nombre de flux à afficher"</strong><br />
</li></ul><br />
<br />
Exemple : afficher les 5 derniers flux du module téléchargement de la catégorie 3<br />
<br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[feed cat="3" number="5"]download[/feed]</pre></div></div>]]></description>
                <pubDate>Wed, 07 Oct 2015 13:05:55 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Insérer une liste en BBCode]]></title>
                <link>https://www.phpboost.com/wiki/inserer-une-liste-en-bbcode</link>
                <guid>https://www.phpboost.com/wiki/inserer-une-liste-en-bbcode</guid>
                <description><![CDATA[Dans cet article nous allons voir comment créer des listes en langage BBCode.<br /><br />
<br /><br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-liste-de-base">Liste de base</h2><br />
<br /><br /><br />
Pour créer une liste il faut d'abord la déclarer. Pour cela il faut utiliser la balise <div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre>[list]</pre></div></div>.<br /><br />
Ensuite il faut déclarer chaque élément de la liste en utilisant [*].<br /><br />
Voilà un exemple de liste basique :<br /><br />
<ul class="formatter-ul"><li class="formatter-li">élément 1
</li><li class="formatter-li">élément 2
</li><li class="formatter-li">élément 3</li></ul><br /><br />
dont le code source est :<br /><br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[list</span><span style="color:#0000FF">]</span><span style="color:#00AF07;">[*]</span>élément 1
<span style="color:#00AF07;">[*]</span>élément 2
<span style="color:#00AF07;">[*]</span>élément 3<span style="color:#0000FF">[/list]</span></pre></div></div><br /><br />
<br /><br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-liste-numerotee">Liste numérotée</h2><br />
<br /><br /><br />
Pour faire une liste numérotée il faut passer l'argument <em>ordered</em>.<br /><br />
<ol class="formatter-ol">
<li class="formatter-li">Elément 1
</li><li class="formatter-li">Elément 2
</li><li class="formatter-li">Elément 3</li></ol><br /><br />
<br /><br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[list</span>=ordered<span style="color:#0000FF">]</span>
<span style="color:#00AF07;">[*]</span>Elément 1
<span style="color:#00AF07;">[*]</span>Elément 2
<span style="color:#00AF07;">[*]</span>Elément 3<span style="color:#0000FF">[/list]</span></pre></div></div><br /><br />
<br /><br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-imbrication">Imbrication</h2><br />
<br /><br /><br />
Il est possible d'imbriquer les listes.<br /><br />
<ul class="formatter-ul"><li class="formatter-li">Elément 1
</li><li class="formatter-li">Elément 2<ul class="formatter-ul"><li class="formatter-li">Sous liste 1
</li><li class="formatter-li">Sous liste 2</li></ul>
</li><li class="formatter-li">Elément 3</li></ul><br /><br />
<br /><br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[list</span><span style="color:#0000FF">]</span><span style="color:#00AF07;">[*]</span>Elément 1
<span style="color:#00AF07;">[*]</span>Elément 2
<span style="color:#0000FF">[list</span><span style="color:#0000FF">]</span><span style="color:#00AF07;">[*]</span>Sous liste 1
<span style="color:#00AF07;">[*]</span>Sous liste 2<span style="color:#0000FF">[/list]</span>
<span style="color:#00AF07;">[*]</span>Elément 3<span style="color:#0000FF">[/list]</span></pre></div></div><br /><br />
<br /><br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-personnalisation-supplementaire">Personnalisation supplémentaire</h2><br />
<br /><br /><br />
Il est possible de donner un style supplémentaire à chaque liste.<br /><br />
Pour cela il suffit de mettre du CSS.<br /><br />
Voici un exemple :<br /><br />
<ol style="list-style-type: upper-roman;" class="formatter-ol">
<li class="formatter-li">Elément 1
</li><li class="formatter-li">Elément 2</li></ol><br /><br />
<br /><br />
<div class="formatter-container formatter-code code-BBCODE"><span class="formatter-title">Code BBCODE : </span><div class="formatter-content"><pre><span style="color:#0000FF">[list</span>=ordered style="list-style-type: upper-roman;"<span style="color:#0000FF">]</span>
<span style="color:#00AF07;">[*]</span>Elément 1
<span style="color:#00AF07;">[*]</span>Elément 2<span style="color:#0000FF">[/list]</span></pre></div></div><br /><br />
<br /><br />
Vous retrouverez les propriétés CSS disponibles pour les listes dans ce récapitulatif du Site du Zér0 : <a class="offload" href="http://www.siteduzero.com/tuto-3-1938-1-liste-des-proprietes-css.html#ss_part_5">Propriétés des listes</a>]]></description>
                <pubDate>Sat, 25 Aug 2012 11:00:45 +0200</pubDate>
                
            </item>
		
	</channel>
</rss>
