Код: Выделить всё
<p align="justify">Длинный текст :-))</p>
Код: Выделить всё
<p align="justify">Длинный текст :-))</p>
Код: Выделить всё
##############################################################
## MOD Title: Text align wide
## MOD Author: [R: R@m$e$ :U] < Ramses@FromRU.com > (Ramses) http://www.phpbbguru.net
## MOD Description: use '<p align="justify"></p>' =)
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit:
## includes/bbcode.php
## language/lang_english/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
## templates/subSilver/quick_reply.tpl
## Included Files:
## n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbbguru.net/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## Author Notes:
## Find bug? Please write me...
##
##############################################################
## MOD History:
##
## 2005-02-13 - Version 1.0.0
## - First version =)))
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] 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 ]------------------------------------------
#
// [start] Text align wide 1.0.0
// [wide] and [/wide] for bolding text.
$text = str_replace("[wide:$uid]", $bbcode_tpl['wide_open'], $text);
$text = str_replace("[/wide:$uid]", $bbcode_tpl['wide_close'], $text);
// [end] Text align wide 1.0.0
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text align wide 1.0.0
// [wide] and [/wide] for bolding text.
$text = preg_replace("#\[wide\](.*?)\[/wide\]#si", "[wide:$uid]\\1[/wide:$uid]", $text);
// [end] Text align wide 1.0.0
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text align wide 1.0.0
$lang['bbcode_e_help'] = 'Wide text: [wide]text[/wide] (alt+e)';
// [end] Text align wide 1.0.0
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN wide_open --><p align="justify"><!-- END wide_open -->
<!-- BEGIN wide_close --></p><!-- END wide_close -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
b_help = "{L_BBCODE_B_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
e_help = "{L_BBCODE_E_HELP}";
#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
Код: Выделить всё
','
Код: Выделить всё
','
Код: Выделить всё
','
Код: Выделить всё
##############################################################
## MOD Title: Text upper index
## MOD Author: [R: R@m$e$ :U] < Ramses@FromRU.com > (Ramses) http://www.phpbbguru.net
## MOD Description: use '<sup></sup>' =)
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit:
## includes/bbcode.php
## language/lang_english/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
## templates/subSilver/quick_reply.tpl
## Included Files:
## n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbbguru.net/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## Author Notes:
## Find bug? Please write me...
##
##############################################################
## MOD History:
##
## 2005-02-13 - Version 1.0.0
## - First version =)))
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] 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 ]------------------------------------------
#
// [start] Text upper index 1.0.0
// [sup] and [/sup] for bolding text.
$text = str_replace("[sup:$uid]", $bbcode_tpl['sup_open'], $text);
$text = str_replace("[/sup:$uid]", $bbcode_tpl['sup_close'], $text);
// [end] Text upper index 1.0.0
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text upper index 1.0.0
// [sup] and [/sup] for bolding text.
$text = preg_replace("#\[sup\](.*?)\[/sup\]#si", "[sup:$uid]\\1[/sup:$uid]", $text);
// [end] Text upper index 1.0.0
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text upper index 1.0.0
$lang['bbcode_n_help'] = 'Upper text: [sup]text[/sup] (alt+n)';
// [end] Text upper index 1.0.0
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN sup_open --><sup><!-- END sup_open -->
<!-- BEGIN sup_close --></sup><!-- END sup_close -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
b_help = "{L_BBCODE_B_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
n_help = "{L_BBCODE_N_HELP}";
#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
Код: Выделить всё
','
Код: Выделить всё
','
Код: Выделить всё
','
Код: Выделить всё
##############################################################
## MOD Title: Text align wide and Text upper index:-)) altogether
## MOD Author: [R: R@m$e$ :U] < Ramses@FromRU.com > (Ramses) http://www.phpbbguru.net
## MOD Description: use '<p align="justify"></p>' =)
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit:
## includes/bbcode.php
## language/lang_english/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
## templates/subSilver/quick_reply.tpl
## Included Files:
## n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbbguru.net/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## Author Notes:
## Find bug? Please write me...
##
##############################################################
## MOD History:
##
## 2005-02-13 - Version 1.0.0
## - First version =)))
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] 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 ]------------------------------------------
#
// [start] Text align wide 1.0.0
// [wide] and [/wide] for bolding text.
$text = str_replace("[wide:$uid]", $bbcode_tpl['wide_open'], $text);
$text = str_replace("[/wide:$uid]", $bbcode_tpl['wide_close'], $text);
// [end] Text align wide 1.0.0
// [start] Text upper index 1.0.0
// [sup] and [/sup] for bolding text.
$text = str_replace("[sup:$uid]", $bbcode_tpl['sup_open'], $text);
$text = str_replace("[/sup:$uid]", $bbcode_tpl['sup_close'], $text);
// [end] Text upper index 1.0.0
#
#-----[ FIND ]------------------------------------------
#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text align wide 1.0.0
// [wide] and [/wide] for bolding text.
$text = preg_replace("#\[wide\](.*?)\[/wide\]#si", "[wide:$uid]\\1[/wide:$uid]", $text);
// [end] Text align wide 1.0.0
// [start] Text upper index 1.0.0
// [sup] and [/sup] for bolding text.
$text = preg_replace("#\[sup\](.*?)\[/sup\]#si", "[sup:$uid]\\1[/sup:$uid]", $text);
// [end] Text upper index 1.0.0
#
#-----для англичан -------[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text align wide 1.0.0
$lang['bbcode_e_help'] = 'Wide text: [wide]text[/wide] (alt+e)';
// [end] Text align wide 1.0.0
// [start] Text upper index 1.0.0
$lang['bbcode_n_help'] = 'Upper text: [sup]text[/sup] (alt+n)';
// [end] Text upper index 1.0.0
#
#----для русских же --------[ OPEN ]------------------------------------------
#
language/lang_russian/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [start] Text align wide 1.0.0
$lang['bbcode_e_help'] = 'Текст по ширине стр.: [wide]Текст[/wide] (alt+e)';
// [end] Text align wide 1.0.0
// [start] Text upper index 1.0.0
$lang['bbcode_n_help'] = 'Верхний индекс: [sup]Текст[/sup] (alt+n)';
// [end] Text upper index 1.0.0
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN wide_open --><p align="justify"><!-- END wide_open -->
<!-- BEGIN wide_close --></p><!-- END wide_close -->
<!-- BEGIN sup_open --><sup><!-- END sup_open -->
<!-- BEGIN sup_close --></sup><!-- END sup_close -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
b_help = "{L_BBCODE_B_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
e_help = "{L_BBCODE_E_HELP}";
n_help = "{L_BBCODE_N_HELP}";
#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','