Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1448 connectés 

  FORUM HardWare.fr
  Windows & Software
  Logiciels

  Centrer du texte (en html?) dans un forum sous PHPBB

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Centrer du texte (en html?) dans un forum sous PHPBB

n°1714434
bibibobobu​bu
Posté le 10-09-2004 à 21:12:06  profilanswer
 

Bonjour,
 
Voila j'ai "transformer" mon site internet en forum (plus pratique & jolie à mon gout! :ange: ).
J'ai mis tout mes articles dans ce forum. mon problème est que j'aimerai pouvoir centrer les images dans mes posts.
 
j'ai cherché dans l'aide et le forum de PHPBB(+google) et j'en suis arrivé à la conclusion qu'il fallait que je posts du texte formatée en HTML.
mais rien n'est 'clairement' indiqué dans PHPBB pour inséré du HTML..
j'ai tenté plein de truc en HTML, mais rien n'y fait
 
PS : j'ai bien activé le HTML dans la config du forum + je me suis 'autorisé' à utilisé du HTML dans les droits des utilisateurs.
Il y a une histoire de balises à indiquer dans la config...
enfin bref je suis perdu, je ne connais que moyennement le HTML, je sais centrer du texte en CODE HTML, mais pas sous PHPBB!!
 
quelqu'un l'a déja fait?
 
 [:bibibobobubu]  
 

mood
Publicité
Posté le 10-09-2004 à 21:12:06  profilanswer
 

n°1714492
-CouiLLe2C​hieN-
Posté le 10-09-2004 à 21:54:21  profilanswer
 

tu as peu etre une balise [html] a mettre avant ton code.

n°1714554
bibibobobu​bu
Posté le 10-09-2004 à 22:30:24  profilanswer
 

j'ai essayé [html]*morceau de html*[/html], nada marche pas
snif

n°1716008
bibibobobu​bu
Posté le 12-09-2004 à 11:03:26  profilanswer
 

aidez moi!

n°1716060
ndi76
Posté le 12-09-2004 à 11:34:13  profilanswer
 

tu devrais peut être poster ça dans la catégorie programmation, plus de gens devraient pouvoir te répondre ;)


---------------
Z'avez des questions ? Non.... bon je recommence
n°1716221
bibibobobu​bu
Posté le 12-09-2004 à 13:22:31  profilanswer
 

j'en vient (lol). on m'en a presk "jeté en me disant "faut aller dans win&soft rubrique logiciel...
 
tant pis je vais faire un post sur le forum de PHPBB (en anglais, ça va être comique!
 
a+ merci

n°1724161
bibibobobu​bu
Posté le 17-09-2004 à 23:01:33  profilanswer
 

ça y est j'arrive à centrer!
 
http://bibibobobubu.free.fr/hardware/centrage.jpg
 
 
 
 
pour ceux que ça interesse :
###################################################################################  
##  
## Hack Title:    BBcode [center]..[/center]
## Hack Version:  1.0.2 (phpBB 2.0.x)
## Author:        Acid
## Support:   http://www.phpbbhacks.com/forums/
##
## Description:   A new BBcode, so you can center your text with the bbcode buttons.
##
## Files to edit:       6
##   includes/bbcode.php
##   posting.php
##   privmsg.php
##          language/lang_english/lang_main.php  
##   templates/xxx/bbcode.tpl
##   templates/xxx/posting_body.tpl  
##  
###################################################################################  
##  
## Note:  
## First always make a back-up from the files that you're going to edit.  
##  
## If you have additional bbcodes installed you will need to increase the
## addbbcodeXX (part in posting_body.tpl) accordingly and be sure that you don´t use
## same letters and digits for two different bbcode hacks.
## The colspan value in posting_body.tpl (3x after bbcodes) should be changed too  
## (it depends on how many bbcodes you have installed).
###################################################################################  
##
## Versions:
##
## 1.0.2   - colspan (posting_body.tpl)
## 1.0.1   - fixed a typo
## 1.0     - Release
##
#####################################################################################  
#  
#-----[ OPEN ]------------------------------------------  
#
# includes/bbcode.php
#  
#-----[ FIND ]------------------------------------------  
#
 // and for italicizing text.
 $text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
 $text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
 // [center] and [/center] for centered text.  
 $text = str_replace("[center:$uid]", $bbcode_tpl['center_open'], $text);
 $text = str_replace("[/center:$uid]", $bbcode_tpl['center_close'], $text);
 
 
 
#  
#-----[ FIND ]------------------------------------------  
#
 // and for italicizing text.
 $text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
 // [center] and [/center] for centered text.
 $text = preg_replace("#\[center\](.*?)\[/center\]#si", "[center:$uid]\\1[/center:$uid]", $text);
 
 
 
#  
#-----[ OPEN ]------------------------------------------  
#
#  posting.php/privmsg.php
#  
#-----[ FIND ]------------------------------------------  
#
 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
 'L_BBCODE_Y_HELP' => $lang['bbcode_y_help'],  
 
 
 
#  
#-----[ OPEN ]------------------------------------------  
#
# languages/lang_english/lang_main.php
#  
#-----[ FIND ]------------------------------------------  
#
$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
$lang['bbcode_y_help'] = 'Font Center: [center]text[/center] (alt+y)';
 
 
 
#  
#-----[ OPEN ]------------------------------------------  
#
# templates/xxx/bbcode.tpl
#  
#-----[ FIND ]------------------------------------------  
#
 <!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
 <!-- BEGIN i_close --></span><!-- END i_close -->
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
 <!-- BEGIN center_open --><div align="center"><!-- END center_open -->
 <!-- BEGIN center_close --></div><!-- END center_close -->
 
 
 
#  
#-----[ OPEN ]------------------------------------------  
#
# templates/xxx/posting_body.tpl
#  
#-----[ FIND ]------------------------------------------  
#
f_help = "{L_BBCODE_F_HELP}";
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
y_help = "{L_BBCODE_Y_HELP}";
 
 
#  
#-----[ FIND ]------------------------------------------  
#
bbtags = new Array('','','','','','','

Citation :

','

','

Code :
  1. ','

','[list]','[/list]','[list=]','[/list]','[img]','[/img]','','');
 
#  
#-----[ IN-LINE FIND ]------------------------------------------  
#
'',''
 
#  
#-----[ IN-LINE ADD ]------------------------------------------  
#
,'[center]','[/center]'
 
 
#  
#-----[ FIND ]------------------------------------------  
#
     <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
     </span></td>
 
#  
#-----[ ADD BELOW ]------------------------------------------  
#
# see "Note" at the beginning of this guide
 
   <td><span class="genmed">  
     <input type="button" class="button" accesskey="y" name="addbbcode18" value=" Center " style="width: 60px" onClick="bbstyle(18)" onMouseOver="helpline('y')" />
     </span></td>
 
#  
#-----[ FIND ]------------------------------------------  
#
   <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
 
#  
#-----[ REPLACE WITH ]--------------------------------------------------  
#  
# see "Note" at the beginning of this guide
 
   <select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
 
#  
#-----[ FIND ]------------------------------------------  
#
   </select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
 
#  
#-----[ REPLACE WITH ]--------------------------------------------------  
#  
# see "Note" at the beginning of this guide
 
   </select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
 
#  
#-----[ FIND und increase colspan value ]--------------------------------------------------  
#  
# see "Note" at the beginning of this guide
 
                    </span></td>  
                </tr>  
                <tr>  
                  <td colspan="9">  
 
#  
#-----[ FIND und increase colspan value ]--------------------------------------------------  
#  
# see "Note" at the beginning of this guide
 
                </tr>  
                <tr>  
                  <td colspan="9"> <span class="gensmall">  
 
#  
#-----[ FIND und increase colspan value ]--------------------------------------------------  
#  
# see "Note" at the beginning of this guide
 
                </tr>  
                <tr>  
                  <td colspan="9"><span class="gen">  
 
###################################################################################  
###################################################################################  
###################################################################################  
 
 [:bibibobobubu]


Message édité par bibibobobubu le 17-09-2004 à 23:03:43

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Windows & Software
  Logiciels

  Centrer du texte (en html?) dans un forum sous PHPBB

 

Sujets relatifs
Des images qui apparaissent comme un fichier texteGrabit me génère que des fichier texte
[Résolu] Remplacement de texte dans plusieurs fichiers...avec quoi ?Hebergeur gratuit pour forum en PHP
Texte sous ExcelPerte de tout mon historique du forum !!!
Ballay a crée son forum, il veut votre avisprobleme foction recherche du forum
Sous forum sous phpbb2Executer un HTML sur un dossier
Plus de sujets relatifs à : Centrer du texte (en html?) dans un forum sous PHPBB


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR