[MOD] BBcode Strike / BBkod yazıların üstüne çizgi çeker

EftelyA

Yaşayan Forum Efsanesi
22 Kas 2007
9,097
59
EsEs
##############################################################
## MOD İSMİ: BBCode StrikeThrough
## MOD YAZARI: Serj21 < [email protected] > (Serj) https://tik.lat/UGoaS
## MOD AÇIKLAMASI: Allows strikethrough of text using text
## MOD VERSİYONU: 1.0
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit:
## includes/bbcode.php
## posting.php
## templates/subSilver/bbcode.tpl
## language/lang_english/lang_main.php
## includes/posting_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: https://tik.lat/qg3Ip for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: https://tik.lat/eD619
##############################################################
## Author Notes: Created for use on Z-Cult FM forum after HotRod and Al
## requested such such a system on forum.
##############################################################
## MOD History:
##
## 2004-08-21 - Version 1.0.0
## - Initial Release :)
##
##############################################################
# Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// and for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);

#
#-----[ AFTER, ADD ]------------------------------------
#

// and for striking out text.
$text = str_replace("[s:$uid]", $bbcode_tpl['s_open'], $text);
$text = str_replace("[/s:$uid]", $bbcode_tpl['s_close'], $text);

#
#-----[ FIND ]------------------------------------------
#
// and for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);

#
#-----[ AFTER, ADD ]------------------------------------
#
// and for striking out text.
$text = preg_replace("#\[s\](.*?)\[/s\]#si", "[s:$uid]\\1[/s:$uid]", $text);


#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]---------------------------------
#

<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

#
#-----[ AFTER, ADD ]------------------------------------
#

<!-- BEGIN s_open --><span><s><!-- END s_open -->
<!-- BEGIN s_close --></s></span><!-- END s_close -->

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#

$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';

#
#-----[ AFTER, ADD ]------------------------------------
#

$lang['bbcode_k_help'] = "Strikethrough text: text (alt+k)";

#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ AFTER, ADD ]------------------------------------
#
'L_BBCODE_K_HELP' => $lang['bbcode_k_help'],

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#

f_help = "{L_BBCODE_F_HELP}";

#
#-----[ AFTER, ADD ]------------------------------------
#

k_help = "{L_BBCODE_K_HELP}";


#
#-----[ FIND ]------------------------------------------
#

bbtags = new Array('','','','','','','
','
Kod:
','
','
  • ','
','
  • ','
','
','','');

#
#-----[ REPLACE WITH ]------------------------------------------
#

bbtags = new Array('','','','','','','
','
Kod:
','
','
  • ','
','
  • ','
','
','','','','');

# NOTE: If you have installed other BBCode mods please make sure you update this section
#

#
#-----[ FIND ]------------------------------------------
#

<td><span class="genmed">
<input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
</span></td>


#
#-----[ AFTER, ADD ]------------------------------------
#

<td><span class="genmed">
<input type="button" class="button" accesskey="k" name="addbbcode18" value="s" style="text-decoration: strike; width: 30px" onClick="bbstyle(18)" onMouseOver="helpline('k')" />
</span></td>


#
#-----[ FIND ]---------------------------------
#

<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

#
#-----[ REPLACE WITH ]---------------------------------
#

<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">

#
#-----[ FIND ]---------------------------------
#

</select>  {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#-----[ REPLACE WITH ]---------------------------------
#

</select>  {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.