[BBCode] Polices d’écriture
Posté : 02 oct. 2014, 12:45
Ce BBCode, utilisant les services de Google Fonts, permet de sélectionner différentes polices d'écriture dans les messages.
- Créer le BCCode
Utilisation du BBCode :Code HTML de remplacement :Code : Tout sélectionner
[Police={SIMPLETEXT}]{TEXT}[/Police]
Ligne d’aide : ne pas renseignerCode : Tout sélectionner
<span style="font-family:'{SIMPLETEXT}';">{TEXT}</span>
Paramètres : ne pas sélectionner Afficher sur la page de rédaction d’un message - Sélectionner les polices sur Google Fonts.
Cliquer sur Add to Collection pour chaque police à ajouter.
Cliquer sur Use.
Copier le lien proposé.
- Ouvrir overall_header.html
Coller le lien précédemment copié, avant la balise <head>.
Exemple :Code : Tout sélectionner
<link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light|Indie+Flower|Gloria+Hallelujah|Dancing+Script' rel='stylesheet' type='text/css'>
- Ouvrir posting_buttons.html
Trouver :Ajouter avant :Code : Tout sélectionner
<!-- BEGIN custom_tags -->
Ajouter autant d'options que vous avez de polices et modifier les noms en conséquence.Code : Tout sélectionner
<select name="policeperso" onchange="bbfontstyle('[Police=' + this.form.policeperso.options[this.form.policeperso.selectedIndex].value + ']', '[/Police]');this.form.policeperso.selectedIndex = 0;" title="Famille de police" style="height: 1.9em;"> <option value="inherit" selected="selected">Police</option> <!-- police du style, ne pas modifier --> <option value="Shadows Into Light" style="font-family: 'Shadows Into Light'">Shadows Into Light</option> <option value="Indie Flower" style="font-family: 'Indie Flower'">Indie Flower</option> <option value="Gloria Hallelujah" style="font-family: 'Gloria Hallelujah'">Gloria Hallelujah</option> <option value="Dancing Script" style="font-family: 'Dancing Script'">Dancing Script</option> </select>