
Code: Select all
#$EMBB_keys = array('') ;
#$EMBB_widths = array('') ;
#$EMBB_values = array('') ;
#
# ...but will look slightly different if other bbcode MODs have been installed
#
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array('# IMPORTANT: you MUST first have already installed the Multi BBCode MOD
# available at http://www.phpbb.com/mods/
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full lines to look for are:
#$EMBB_keys = array('') ;
#$EMBB_widths = array('') ;
#$EMBB_values = array('') ;
#
# ...but will look slightly different if other bbcode MODs have been installed
#
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array(''Code: Select all
// MULTI BBCODE-begin
function Multi_BBCode()
{
global $template, $lang;
// DO NOT CHANGE THIS ARRAY
$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
//NOTE: the first element of each array must be '' Add new elements AFTER the ''
$EMBB_widths = array('','40','55','50') ;
$EMBB_values = array('','Hide','Google','Flash') ;
for ($i=1; $i<count($EMBB_values); $i++)
{
// load BBcode MODs info
$val = ($i*2)+16 ;
$template->assign_block_vars('MultiBB', array(
'KEY' => $hotkeys[$i],
'NAME' => "addbbcode$val",
'HELP' => sprintf($lang['bbcode_help'][(strtolower($EMBB_values[$i]))], $hotkeys[$i]),
'WIDTH' => $EMBB_widths[$i],
'VALUE' => $EMBB_values[$i],
'STYLE' => "bbstyle($val)")
);
}
}
// MULTI BBCODE-endCode: Select all
##############################################################
## MOD Title: BBCode StrikeThrough
## MOD Author: Serj21 < mods@zcultfm.com > (Serj) http://zcultfm.com
## MOD Description: Allows strikethrough of text using [s]text[/s]
## MOD Version: 1.2.0
##
## Installation Level: Easy
## Installation Time: ~3 Minutes
## Files To Edit:
## includes/bbcode.php
## templates/subSilver/bbcode.tpl
## language/lang_english/lang_main.php
## templates/subSilver/posting_body.tpl
## language/lang_english/lang_bbcode.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Created for use on Z-Cult FM forum after HotRod and Al
## requested such such a system on forum.
## Is EasyMod 0.1.13 Combatable :)
##############################################################
## MOD History:
##
## 2004-08-21 - Version 1.0.0
## - Initial Release :)
## 2004-08-23 - Version 1.1.0
## - Made code Multi BBCode MOD compliant
## - Changed BBCode HotKey from Alt-k to Alt-9
## 2004-12-22 - Version 1.2.0
## - Made code compliant with latest version of Multi BBCode MOD (1.4.0c)
##
##############################################################
#
# IMPORTANT: you MUST first have already installed the Multi BBCode MOD
# available at http://www.phpbb.com/mods/
#
##############################################################
# Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
# IMPORTANT: you MUST first have already installed the Multi Quick BBCode MOD
#
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual lines may be longer if you have installed other BBCode MODs
#
$EMBB_widths = array('');
$EMBB_values = array('');
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'30'
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'s'
#
#-----[ 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 ]------------------------------------
#
// [s] and [/s] 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 ]------------------------------------------
#
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
#-----[ AFTER, ADD ]------------------------------------
#
// [s] and [/s] 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 ]---------------------------------
#
# Note: This text will appear twice in the code. Make sure you have the one that is NOT a comment
#
$lang['bbcode_help']['value'] = 'BBCode Name: Info (Alt+%s)';
#
#-----[ AFTER, ADD ]---------------------------------
#
$lang['bbcode_help']['s'] = 'Strikethrough text: [s]text[/s] (alt+9)';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(
#
#-----[ IN-LINE FIND ]---------------------------------
#
'[url]','[/url]'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[s]','[/s]'
#
#-----[ OPEN ]---------------------------------
#
language/lang_english/lang_bbcode.php
#
#-----[ FIND ]---------------------------------
#
$faq[] = array("Can I combine formatting tags?", "Yes, of course you can; for example to get someones attention you may write:<br /><br /><b>[size=18][color=red][b]</b>LOOK AT ME!<b>[/b][/color][/size]</b><br /><br />this would output <span style=\"color:red;font-size:18px\"><b>LOOK AT ME!</b></span><br /><br />We don't recommend you output lots of text that looks like this, though! Remember that it is up to you, the poster, to ensure that tags are closed correctly. For example, the following is incorrect:<br /><br /><b>[b][u]</b>This is wrong<b>[/b][/u]</b>");
#
#-----[ BEFORE, ADD ]---------------------------------
#
// start mod [s] bbcode
$faq[] = array("What does the S BBCode do?", "The [s] [/s] tags will put a strikthrough (horizontal line) through the center of the text. For example using:<ul><li>[s]This text is struckthrough![/s]<br /><br />will display as:<br /><br /><s>This text is struckthrough!</s></li></ul>");
// end mod [s] bbcode
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoMCode: Select all
// start mod [s] bbcode
$faq[] = array("What does the S BBCode do?", "The [s] [/s] tags will put a strikthrough (horizontal line) through the center of the text. For example using:<ul><li>[s]This text is struckthrough![/s]<br /><br />will display as:<br /><br /><s>This text is struckthrough!</s></li></ul>");
// end mod [s] bbcode Code: Select all
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center">
<td width="100%">
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" onmouseover="helpline('b')" />
<input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" onmouseover="helpline('i')" />
<input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" onmouseover="helpline('u')" />
<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" />
<input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" />
<input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" />
<input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" />
<input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" />
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
<!-- BEGIN MultiBB -->
<span class="genmed">
<input type="button" class="button" accesskey="{MultiBB.KEY}" name="{MultiBB.NAME}" value="{MultiBB.VALUE}" style="width: 40px" onClick="{MultiBB.STYLE}" onMouseOver="helpline('{MultiBB.VALUE}')" />
</span></td>
<!-- END MultiBB -->