######################################################## 
## MOD Title:   BBcode Scroll Left/Right/Up/Down aka Marquee - EM Friendly
## MOD Version: 1.2.1
## First MOD Author:  Brewjah 
## Rev Date:    February 5, 2003
## MODdified by:  De Munt 
## Rev Date:    May 14, 2003
##
## Contributor: Nuttzy99 < pktoolkit@blizzhackers.com > http://www.blizzhackers.com
## 
## MOD Description:  Displays scrolling text using the marquee tag.
##       [scroll_**]some text[/scroll_**] 
## 
## 
## Installation Level:  (easy) 
## Installation Time:  5-10 Minutes 
## 
## Files To Edit:         6
##                   - includes/bbcode.php 
##                   - posting.php 
##                   - templates/subSilver/bbcode.tpl 
##                   - language/lang_english/lang_main.php 
##                   - language/lang_english/lang_bbcode.php
##                   - includes/posting_body.tpl 
## 
## Included Files:      None 
## 
######################################################## 
## VERSION HISTORY:
## v1.2.1 - 14/05/2003
##    + added right, up and down scrolling - De Munt
##
## v1.2.0 - 02/05/2003
##    + updated for 2.0.4 - Nuttzy
##    + added BBCode FAQ entry - Nuttzy
##
## v1.1.0 - 09/06/2002
##    + update and made EasyMod Compliant by Nuttzy ( pktoolkit@blizzhackers.com )
##
## v1.0.4 - 03/19/2002
##    + added bbcode button help line forgot to include it..
##
## v1.0.3 - 03/19/2002
##    + added bbcode button 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ DIY INSTRUCTIONS ]-------------------------------- 
# 
 IMPORTANT: if you are installing manually (without EasyMod, WITCH IS NOT SURE TO BE COMPLIANT) .
       you MUST first install the Multi Quick BBCode Mod witch can be downloaded at 
          http://www.detecties.com/forum/
#
#-----[ OPEN ]---------------------------------
# 
includes/bbcode.php
# 
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
# 
#-----[ IN-LINE FIND ]---------------------------------
#
)
# 
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
,'75','75','75','75'

# 
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''
# 
#-----[ IN-LINE FIND ]---------------------------------
#
)
# 
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#  If you already installed the bbcode_scroll_1-2-0_mod replace	in-line
#
#   ,'Scroll' 
#
#  with the code below
,'ScrollLeft','Scrollright','ScrollUp','Scrolldown'
# 
#-----[ FIND ]--------------------------------- 
#
#   NOTE: the full line to look for is:
#	$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text); 
#
$text = str_replace("[/b:$uid]
# 
#-----[ AFTER, ADD ]------------------------------- 
# 
#  If you already installed the bbcode_scroll_1-2-0_mod replace these 3	lines
# 
#	// [scroll] and [/scroll] for scrolling text.
#	$text = str_replace("[scroll:$uid]", $bbcode_tpl['scroll_open'], $text);
#	$text = str_replace("[/scroll:$uid]", $bbcode_tpl['scroll_close'], $text);
#
#  with the lines below:

	// [scroll_**] and [/scroll_**] for scrolling text.
	$text = str_replace("[scrollleft:$uid]", $bbcode_tpl['scrollleft_open'], $text);
	$text = str_replace("[/scrollleft:$uid]", $bbcode_tpl['scrollleft_close'], $text);
	$text = str_replace("[scrollright:$uid]", $bbcode_tpl['scrollright_open'], $text);
	$text = str_replace("[/scrollright:$uid]", $bbcode_tpl['scrollright_close'], $text);
	$text = str_replace("[scrollup:$uid]", $bbcode_tpl['scrollup_open'], $text);
	$text = str_replace("[/scrollup:$uid]", $bbcode_tpl['scrollup_close'], $text);
	$text = str_replace("[scrolldown:$uid]", $bbcode_tpl['scrolldown_open'], $text);
	$text = str_replace("[/scrolldown:$uid]", $bbcode_tpl['scrolldown_close'], $text);
# 
#-----[ FIND ]--------------------------------- 
# 
#   NOTE: the full line to look for is:
#	$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
#
$text = preg_replace("#\[b\]
# 
#-----[ AFTER, ADD ]---------------------------- 
# 
#  If you already installed the bbcode_scroll_1-2-0_mod replace these 2	lines
#
#	// [scroll] and [/scroll] for scrolling text.
#	$text = preg_replace("#\[scroll\](.*?)\[/scroll\]#si", "[scroll:$uid]\\1[/scroll:$uid]", $text);
#
#  with the lines below:

	// [scroll] and [/scroll] for scrolling text.
	$text = preg_replace("#\[scrollleft\](.*?)\[/scrollleft\]#si", "[scrollleft:$uid]\\1[/scrollleft:$uid]", $text);
	$text = preg_replace("#\[scrollright\](.*?)\[/scrollright\]#si", "[scrollright:$uid]\\1[/scrollright:$uid]", $text);
	$text = preg_replace("#\[scrollup\](.*?)\[/scrollup\]#si", "[scrollup:$uid]\\1[/scrollup:$uid]", $text);
	$text = preg_replace("#\[scrolldown\](.*?)\[/scrolldown\]#si", "[scrolldown:$uid]\\1[/scrolldown:$uid]", $text);
#
#-----[ OPEN ]---------------------------------
# 
posting.php
# 
#-----[ FIND ]---------------------------------
# 
#  NOTE: the full line to look for is:
#	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
'L_BBCODE_F_HELP' =>
# 
#-----[ AFTER, ADD ]--------------------------------
# 
	'L_BBCODE_K_HELP' => $lang['bbcode_k_help'],
#
#-----[ OPEN ]---------------------------------
#
language/lang_english/lang_main.php
# 
#-----[ FIND ]---------------------------------
# 
#  NOTE: the full line to look for is:
#$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
$lang['bbcode_f_help']
# 
#-----[ AFTER, ADD ]---------------------------------
#  If you already installed the bbcode_scroll_1-2-0_mod replace
#
# 	 $lang['bbcode_k_help'] = "Scrolling text: [scroll]text[/scroll] (alt+k)";
#
#  with the code below.
$lang['bbcode_k_help'] = "Scrolling text: [scroll**]text[/scroll**] (alt+k)";
# 
#-----[ OPEN ]---------------------------------
# 
language/lang_english/lang_bbcode.php
#
#-----[ FIND ]---------------------------------
# 
# NOTE: the full line to look for is:
# $faq[] = array("How to change the text colour or size", [..SNIP..]  </ul>");
#
array("How to change the text colour or size"
# 
#-----[ AFTER, ADD ]---------------------------------
# 
#  If you already installed the bbcode_scroll_1-2-0_mod replace
#
#   // SCROLL-start
#   $faq[] = array("What does the SCROLL BBCode do?", "This forum has the Scroll BBCode MOD installed.  Using scroll on selected text will make the text scroll from right to left across the post body.  The scroll text will appear on a seperate line.  For example using:<ul><li>Wow! Look I'm <b>[scroll]</b>scrolling across the screen<b>[/scroll]</b>!<br \><br \>will display as:<br \><br \>Wow! Look I'm <span><marquee>scrolling across the screen</marquee></span>!</li></ul>") ;
#   // SCROLL-end
#
#  with the code below

// SCROLL-start
$faq[] = array("What does the SCROLL BBCode do?", "This forum has the Scroll** BBCode MOD installed.  Using scroll** on selected text will make the text scroll left, right, up or down.  The scroll text will appear on a seperate line.  For example using:<ul><li>Wow! Look I'm <b>[scrollleft]</b>scrolling across the screen<b>[/scrollleft]</b>!<br \><br \>will display as:<br \><br \>Wow! Look I'm <span><marquee>scrolling across the screen</marquee></span>!</li></ul>") ;
// SCROLL-end
# 
#-----[ OPEN ]--------------------------------- 
# 
templates/subSilver/bbcode.tpl 
# 
#-----[ FIND ]--------------------------------- 
# 
#  NOTE: the full line to look for is:
#<!-- BEGIN b_close --></span><!-- END b_close --> 
<!-- END b_close --> 

# 
#-----[ AFTER, ADD  ]--------------------------------- 
#  If you already installed the bbcode_scroll_1-2-0_mod replace
#
#   <!-- BEGIN scroll_open --><span><marquee><!-- END scroll_open -->
#   <!-- BEGIN scroll_close --></marquee></span><!-- END scroll_close -->
#
#  with the code below
# 

<!-- BEGIN scrollleft_open --><span><marquee direction="left"><!-- END scrollleft_open -->
<!-- BEGIN scrollleft_close --></marquee></span><!-- END scrollleft_close -->
<!-- BEGIN scrollright_open --><span><marquee direction="right"><!-- END scrollright_open -->
<!-- BEGIN scrollright_close --></marquee></span><!-- END scrollright_close -->
<!-- BEGIN scrollup_open --><span><marquee direction="up"><!-- END scrollup_open -->
<!-- BEGIN scrollup_close --></marquee></span><!-- END scrollup_close -->
<!-- BEGIN scrolldown_open --><span><marquee direction="down"><!-- END scrolldown_open -->
<!-- BEGIN scrolldown_close --></marquee></span><!-- END scrolldown_close -->

# 
#-----[ OPEN ]---------------------------------
# 
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
# 
# NOTE: the full line to look for is:
#f_help = "{L_BBCODE_F_HELP}";
#
f_help =
# 
#-----[ AFTER, ADD ]---------------------------------
# 
k_help = "{L_BBCODE_K_HELP}";
# 
#-----[ FIND ]---------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(
# 
#-----[ IN-LINE FIND ]---------------------------------
# 
)
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
# 
#  If you already installed the bbcode_scroll_1-2-0_mod replace	in-line
#
#	,'[scroll]','[/scroll]'
#	
#  with the code below
,'[scrollleft]','[/scrollleft]','[scrollright]','[/scrollright]','[scrollup]','[/scrollup]','[scrolldown]','[/scrolldown]'
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM