
##############################################################
## MOD Title: XTube Video BBCode
## MOD Author: blazes < blazes816@yahoo.com > (Tyler Smith) http://blazes816.com
## MOD Description: Adds a new bbcode that lets you embed XTube videos into a post.
## MOD Version: 0.5
##
## Installation Level: (Easy)
## Installation Time: ~5 Minutes
## Files To Edit: - includes/bbcode.php,
## - langugage/lang_english/lang_main.php,
## - templates/subSilver/bbcode.tpl,
## - templates/subSilver/posting_body.tpl
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## You must have Multiple BBCode MOD installed for this to work.
## Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705
##
## example:
## [xtube]Share with friends URL[/xtube]
##
##############################################################
## MOD History:
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'60'
#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'xtube'
#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$bbcode_tpl['xtube'] = str_replace('{XTUBEID}', '\\1', $bbcode_tpl['xtube']);
$bbcode_tpl['xtube'] = str_replace('{XTUBELINK}', $lang['xtube_link'], $bbcode_tpl['xtube']);
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [xtube]Xtube share with friend URL[/xtube]
$patterns[] = '#\[xtube\]http://www\.xtube\.com/play_re\.php\?v=(.*?)\[/xtube\]#is';
$replacements[] = $bbcode_tpl['xtube'];
#
#-----[ 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_help']['xtube'] = 'XTube: [xtube]XTube share with friends URL[/xtube]';
$lang['xtube_link'] = 'Link';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN xtube -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="338" height="315" id="player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://pc4.xtube.com/embed_splayer.swf?idx=4&auto=0&video_id={XTUBEID}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://pc4.xtube.com/embed_splayer.swf?idx=4&auto=0&video_id={XTUBEID}" quality="high" bgcolor="#ffffff" width="338" height="315" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<!-- END xtube -->
#
#-----[ 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 ]---------------------------------
#
'',''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[xtube]','[/xtube]'
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoMnot : Multiple BBCode modunun da sitenizde olması gerekiyor..not 2 : bunun gibi redtube vb... bbcode lar varmı sizde de?