[MOD] BBcode Center / BBkod yazıları ortalama

[url=http://www.phpbbturkey.com/mods.html:34cnv4ga]phpBB 2.0.x MOD Veritabanımızda[/url:34cnv4ga] yayınlanan ve tarafınızca eklenen tüm yeni phpBB 2.0.x sürümleri için MODların duyuruları buradan yapılmaktadır. MODlar hakkında ihtiyacınız olan desteği lütfen [b:34cnv4ga]2.0.x MOD Destek[/b:34cnv4ga] forumuna başlık açarak sorunuz.
Kilitli
Kullanıcı avatarı
NEFRİT
Uzaklaştırıldı
Mesajlar: 1404
Kayıt: 28.01.2006, 04:15
Konum: DarkKingdom
İletişim:

[MOD] BBcode Center / BBkod yazıları ortalama

Mesaj gönderen NEFRİT »

Bu modu kurduğunuzda artık mesaj yazarken yeni bir özelliğiniz daha var yazıları ortalayabilirsiniz. Gayet kullanışlı ve kurulumu kolaydır.

Kod: Tümünü seç

################################################################################### 
## 
## İSMİ:    BBcode [center]..[/center]
## VERSİYONU:  1.0.2 (phpBB 2.0.x)
## YAZARI:        Acid
## Support:	  http://www.phpbbhacks.com/forums/
##
## AÇIKLAMASI:   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]','
','
  • ','
','
  • ','
','[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">

###############################################[/code]
Özellerden kullanıcılara reklam yaptığım için sayın yöneticim beni uzaklaştırdı.
Shev@
Kayıtlı Kullanıcı
Mesajlar: 44
Kayıt: 14.05.2006, 22:37
İletişim:

Mesaj gönderen Shev@ »

abi bu son 3 komut hakkında bilgi verirmisin ?? ne yapmamızı istiyor ?? tşkler...
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Mesaj gönderen cupra »

üstad ezportal da da işe yarıyor mu oradaki yazıları ve resimleri ortalayan align yapan bir olay olarakta görülebilir mi bu acaba...
Shev@
Kayıtlı Kullanıcı
Mesajlar: 44
Kayıt: 14.05.2006, 22:37
İletişim:

Mesaj gönderen Shev@ »

Shev@ yazdı:abi bu son 3 komut hakkında bilgi verirmisin ?? ne yapmamızı istiyor ?? tşkler...
2 ay önce yazdıgım post'a cvp gelmemiş...ltfn bi ilgilenirmisiniz...??
Kullanıcı avatarı
KILLBOY
Kayıtlı Kullanıcı
Mesajlar: 35
Kayıt: 13.03.2006, 20:20
Konum: Sandalye
İletişim:

Mesaj gönderen KILLBOY »

Shev@ yazdı:abi bu son 3 komut hakkında bilgi verirmisin ?? ne yapmamızı istiyor ?? tşkler...
harbi son 3 komutu bende anlamadım.
Kullanıcı avatarı
atilimtosun
Kayıtlı Kullanıcı
Mesajlar: 208
Kayıt: 29.08.2006, 20:55
İletişim:

Mesaj gönderen atilimtosun »

nedir bu son 3 komut ?
Kullanıcı avatarı
crowzer
Kayıtlı Kullanıcı
Mesajlar: 623
Kayıt: 05.06.2006, 19:38
İletişim:

Mesaj gönderen crowzer »

Gerçekten Bu Son 3 Komutun Ne Olduğu Hakkında Bir Bilginiz Varmı 2 tane olsa deneme yapabilirdik ama 3 tane olunca iş değişiyor :lol:
FoRumOlayi.com
Benimde İmzam Olmasın Ne Var Yani
HaYaL-eT
Kayıtlı Kullanıcı
Mesajlar: 311
Kayıt: 02.08.2006, 21:13
İletişim:

Mesaj gönderen HaYaL-eT »

Sanırım şu:

"Bul ve colspan değerini 1 sayı arttır"

Yani bu durumda colspanın yanında yazan o 9ları bir artırıp 10 yapacağız daha farklı bir sayıysa da bir arttıracağız..

ama tabi emin değilim...
Lütfen MSNden ve özelden yardım istemeyin..
Kullanıcı avatarı
crowzer
Kayıtlı Kullanıcı
Mesajlar: 623
Kayıt: 05.06.2006, 19:38
İletişim:

Mesaj gönderen crowzer »

MultiBB Mod'u Kullananların Şu İşlemleri Yapmasına Gerek Yok Bilginize

Kod: Tümünü seç

#-----[ 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"> 
FoRumOlayi.com
Benimde İmzam Olmasın Ne Var Yani
Kullanıcı avatarı
atilimtosun
Kayıtlı Kullanıcı
Mesajlar: 208
Kayıt: 29.08.2006, 20:55
İletişim:

Mesaj gönderen atilimtosun »

crowzer yazdı:MultiBB Mod'u Kullananların Şu İşlemleri Yapmasına Gerek Yok Bilginize

Kod: Tümünü seç

#-----[ 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"> 
Dostum ben hiçbişey anlamadım ???????? :?:
Kullanıcı avatarı
crowzer
Kayıtlı Kullanıcı
Mesajlar: 623
Kayıt: 05.06.2006, 19:38
İletişim:

Mesaj gönderen crowzer »

yani daha önce forumunuza MultiBB Mod 'u Kurduysanız BBcode [center] Mod'unda Bulunan o kodlamaları yapmanıza gerek yok Onlarsızda sorun yapmadan çalışır
FoRumOlayi.com
Benimde İmzam Olmasın Ne Var Yani
Kullanıcı avatarı
leGGleSS
Kayıtlı Kullanıcı
Mesajlar: 27
Kayıt: 18.10.2006, 21:09
İletişim:

Mesaj gönderen leGGleSS »

Kullanıcı avatarı
PessimiStyle
Kayıtlı Kullanıcı
Mesajlar: 99
Kayıt: 22.02.2007, 05:00
Konum: İstanbul-Sakarya
İletişim:

Mesaj gönderen PessimiStyle »

bazı şeylerle çakışıyor sanırım. kurayım dedim siteyi zor kurtardım.. tabi bende becerememiş olabilirim.. :D
ghost123
Kayıtlı Kullanıcı
Mesajlar: 1
Kayıt: 13.04.2007, 17:30
İletişim:

olmadı

Mesaj gönderen ghost123 »

yaptım ama şöyle bir hata ile karşılaştım

[center:939749ae3a]fatih[/center:939749ae3a]



ama önizleme diyince düzgün gösteriyor.nerde yanlışlık var acaba
Kilitli

“2.0.x MOD Duyuruları” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 1 misafir