Niraen Arhanghelul Berii


Data inscrierii: 15/Oct/2006 Mesaje: 705 Locatie: In your mind...
|
Trimis: Dum Noi 19, 2006 2:38 pm Titlul subiectului: Sugestii tehnice |
|
|
Acilea se vor posta doar measaje care țin de domeniul tehnic.
Am și eu o sugestie pentru un array offtopic. Nu de alta, da' să se vadă diferența între textul ontopic și cel offtopic. Bașca, avem și un buton offtopic la postare.
| Cod: | #################################################################
## MOD Title: BBCode Offtopic Tag
## MOD Description: With this MOD an user can use an offtopic tag while posting.
## Adds an offtopic tag in bbcode system.([ot]Offtopic text[/ot])
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 6
## includes/bbcode.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
## templates/subSilver/subSilver.css
## language/lang_english/lang_main.php
## posting.php,
## Included Files: N/A
##############################################################
## Author Notes:
## You must install Multiple BBcode mod before installing this mod!!!!
## Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705
##
##############################################################
## MOD History:
##
## 01-05-2004 - 1.0.2
## - Fixed wrong tag correction
##
## 05-04-2004 - 1.0.1
## - MultiBB integration
##
## 05-04-2004 - 1.0.0
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN ot_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="genmed"><b>Offtopic:</b></span></td>
</tr>
<tr>
<td class="offtopic"></span>
<!-- END ot_open -->
<!-- BEGIN ot_close --></td>
</tr>
</table>
<span class="postbody">
<!-- END ot_close -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
t_help = "{L_BBCODE_T_HELP}";
#
#-----[ FIND ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');
#
#-----[ REPLACE WITH ]------------------------------------------
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[ot]','[/ot]');
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [OT] and [/OT] for offtopic tag.
$text = str_replace("[ot:$uid]", $bbcode_tpl['ot_open'], $text);
$text = str_replace("[/ot:$uid]", $bbcode_tpl['ot_close'], $text);
#
#-----[ FIND ]------------------------------------------
#
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, '');
$text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\\".*?\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1]");
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [OT] and [/OT] for posting offtopic in your posts.
$text = bbencode_first_pass_pda($text, $uid, '[ot]', '[/ot]', '', false, '');
#
#-----[ OPEN ]------------------------------------------
# Do this in every used language
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['bbcode_q_help'] = 'Quote text: [quote]text[/quote] (alt+q)';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_t_help'] = 'Offtopic: [ot]text[/ot] (alt+t)';
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
$EMBB_keys = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'t'
#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'30'
#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'OT'
#
#-----[ FIND ]------------------------------------------
#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BBCODE_T_HELP' => $lang['bbcode_t_help'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.css
#
#-----[ FIND ]------------------------------------------
#
.quote {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
#
#-----[ AFTER, ADD ]------------------------------------------
# Here you can change the settings of the Offtopic box
.offtopic {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
_________________ E pur si muove! |
|