center kodu(istek)

Arayıp da bulamadığınız eklentileri buraya sorabilirsiniz.

center kodu(istek)

İleti casuslar 23.01.2006, 12:42

sitemde center kodu yok bu kodu siteme nasıl ekleyebilirim ilk eklediğim sitilde vardı yenisinde center kodu yok... mesaj yazarken ortalayamıyorum
casuslar
Üye
Üye
 
İleti: 4
Kayıt: 17.01.2006, 14:28

İleti Vinsanity 23.01.2006, 13:10

Kullanıcı avatarı
Vinsanity
Üye
Üye
 
İleti: 732
Kayıt: 05.10.2005, 21:00
Konum: Ankara

Cvp: center kodu(istek)

İleti casuslar 23.01.2006, 14:33

ilginize teşk ederim ama verdiğiniz kodlarda ilk defa gördüğüm ingizilizce isimler var....


Kod: Tümünü seç
###################################################################################
##
## 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 ]------------------------------------------
#
   // [i] and [/i] 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 ]------------------------------------------
#
   // [i] and [/i] 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
#
#-----[ FIND ]------------------------------------------
#
   'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

#
#-----[ ADD BELOW ]------------------------------------------
#
   'L_BBCODE_Y_HELP' => $lang['bbcode_y_help'],


#
#-----[ OPEN ]------------------------------------------
#
#  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('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'[url]','[/url]'

#
#-----[ 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">

###################################################################################
###################################################################################
###################################################################################
casuslar
Üye
Üye
 
İleti: 4
Kayıt: 17.01.2006, 14:28

Cvp: center kodu(istek)

İleti SqLine 20.03.2006, 17:22

ben center kodunu kurdum calisiyor ama simdide RENK ler gitti yaziya renk veremiyorum ve yazinin
boyutunu buyultup kucultemiyorum neden acaba? bilen varsa yardim ederse cok sevinirim..
SqLine
Üye
Üye
 
İleti: 24
Kayıt: 31.01.2006, 23:21

Advanced BBCode Box MOD

İleti fangoso 20.03.2006, 17:32

fangoso
Üye
Üye
 
İleti: 59
Kayıt: 09.03.2006, 17:06

Cvp: center kodu(istek)

İleti SqLine 20.03.2006, 17:44

Arkadasim ilgin icin tesekkurler bu verdigin adresteki install dosyasindakileri yapinca
RENK ' ve yaziyi buyultup kucultme hallolucak dimi?
SqLine
Üye
Üye
 
İleti: 24
Kayıt: 31.01.2006, 23:21

Cvp: center kodu(istek)

İleti fangoso 20.03.2006, 18:12

Resim

yanlız mesaj yazma panosunun açılması yavaşlar bu yuzden quick reply hack le kullanmanı öneririm...
fangoso
Üye
Üye
 
İleti: 59
Kayıt: 09.03.2006, 17:06


İstek Bölümü



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron