## EasyMod 0.0.7 Compliant
########################################################
## MOD Title: BBcode Scroll aka Marquee
## MOD Version: 1.2.0
## MOD Author: Brewjah
## Rev Date: February 5, 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.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
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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/downloads/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
# IMPORTANT: if you are installing manually (without EasyMod) you MUST first
# install the Multi Quick BBCode Mod (included).
#
#
#-----[ OPEN ]--------------------------------
#
includes/bbcode.php
#
#-----[ 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 ]-------------------------------
#
// [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);
#
#-----[ 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 ]----------------------------
#
// [scroll] and [/scroll] for scrolling text.
$text = preg_replace("#\[scroll\](.*?)\[/scroll\]#si", "[scroll:$uid]\\1[/scroll:$uid]", $text);
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_keys = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'k'
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'40'
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'Scroll'
#
#-----[ 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'],
##
##
## --- NOTE: You will have to make this change to ALL languages that you ---
## --- plan to support on your board. I use "English" as an example ---
##
##
#
#-----[ 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 ]---------------------------------
#
$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 ]---------------------------------
#
// 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
##
##
## --- NOTE: You will have to make this change to ALL themes you have ---
## --- installed. I use "subSilver" as an example. ---
##
##
#
#-----[ 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 ]---------------------------------
#
<!-- BEGIN scroll_open --><span><marquee><!-- END scroll_open -->
<!-- BEGIN scroll_close --></marquee></span><!-- END scroll_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 ]---------------------------------
#
'[url]','[/url]'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[scroll]','[/scroll]'
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM