phpbbmod.com 'dan sonra ilk phpbbturkey.com'da
yazar :cupra

Modun 2 şekilde kurulması olası:
1. advanced bbcode box içine entegre :advanced bbcode box modu kuruluysa bu kurulumu yapın
2.ayrı ayrı Kurulum : Normal kurulum
1.Entegre Kurulum:
İndir : http://www.phpbbhacks.com/download/7067
Kod: Tümünü seç
##############################################################
## MOD Title: integrate youtube and google-video in advanced bbcode box
## MOD Author: freddie < freddie@tactic.be > http://www.tactic.be
## MOD Description: This mod adds 2 image buttons to your advanced BBcode box, one for youtube and one for google-video
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit:
## mods/bbcode_box/add_bbcode.js
## mods/bbcode_box/bbcode_box.js
## includes/bbcode.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
## language/your language/lang_main.php
##
## Included Files: googlevid.gif, youtube.gif
##
## Verified Compatability: i'm running 2.0.21
##
## topic on phpbb.com with screenshots : http://www.phpbb.com/phpBB/viewtopic.php?t=458424
##############################################################
## Author Notes: put the included images in mods/bbcode_box/images/ !!!
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
language/your language/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['bbcode_f_help']
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_help']['GVideo'] = 'GVideo: [GVideo]GVideo URL[/GVideo]';
$lang['GVideo_link'] = 'Link';
$lang['bbcode_help']['youtube'] = 'YouTube: [youtube]YouTube URL[/youtube]';
$lang['youtube_link'] = 'Link';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<img border="0" src="mods/bbcode_box/images/ram.gif" name="ram" type="image" onClick="BBCram()" onMouseOver="helpline('ram')" class="postimage" alt="Real Media">
#
#-----[ INLINE, AFTER, ADD ]------------------------------------------
#
<img border="0" src="mods/bbcode_box/images/googlevid.gif" name="GVideo" type="image" onClick="BBCGVideo()" onMouseOver="helpline('googlevid')" class="postimage" alt="GoogleVid"><img border="0" src="mods/bbcode_box/images/youtube.gif" name="youtube" type="image" onClick="BBCyoutube()" onMouseOver="helpline('youtube')" class="postimage" alt="Youtube">
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
</EMBED></OBJECT><!-- END flash -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN GVideo -->
<object width="425" height="350">
<param name="movie" value="http://video.google.com/googleplayer.swf?docId={GVIDEOID}"></param>
<embed style="width:400px; height:326px;" id="VideoPlayback"
align="middle" type="application/x-shockwave-flash"
src="http://video.google.com/googleplayer.swf?docId={GVIDEOID}"
allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff"
scale="noScale" salign="TL" FlashVars="playerMode=embedded">
</embed>
</object><br />
<a href="http://video.google.com/googleplayer.swf?docId={GVIDEOID}" target="_blank">{GVIDEOLINK}</a><br />
<!-- END GVideo -->
<!-- BEGIN youtube -->
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{YOUTUBEID}"></param>
<embed src="http://www.youtube.com/v/{YOUTUBEID}" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object><br />
<a href="http://youtube.com/watch?v={YOUTUBEID}" target="_blank">{YOUTUBELINK}</a><br />
<!-- END youtube -->
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$bbcode_tpl['GVideo'] = str_replace('{GVIDEOID}', '\\1', $bbcode_tpl['GVideo']);
$bbcode_tpl['GVideo'] = str_replace('{GVIDEOLINK}', $lang['GVideo_link'], $bbcode_tpl['GVideo']);
$bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);
#
#-----[ FIND ]------------------------------------------
#
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [GVideo]GVideo URL[/GVideo] code..
$patterns[] = "#\[GVideo\]http://video.google.[A-Za-z0-9.]{2,5}/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is";
$replacements[] = $bbcode_tpl['GVideo'];
// [youtube]YouTube URL[/youtube] code..
$patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = $bbcode_tpl['youtube'];
#
#-----[ OPEN ]------------------------------------------
#
mods/bbcode_box/bbcode_box.js
#
#-----[ FIND ]------------------------------------------
#
var symbol = 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
var youtube = 0;
var GVideo = 0;
#
#-----[ FIND ]------------------------------------------
#
function helpline(help) {
#
#-----[ BEFORE, ADD ]------------------------------------------
#
function BBCGVideo() {
var FoundErrors = '';
var enterURL = prompt("Give the URL of the page containing the movie", "http://");
if (!enterURL) {
FoundErrors += " Error: Didnt gave an URL";
}
if (FoundErrors) {
alert("Error:"+FoundErrors);
return;
}
var ToAdd = "[GVideo]"+enterURL+"[/GVideo]";
PostWrite(ToAdd);
}
function BBCyoutube() {
var FoundErrors = '';
var enterURL = prompt("Give the URL of the page containing the movie", "http://");
if (!enterURL) {
FoundErrors += " Error: Didnt gave an URL";
}
if (FoundErrors) {
alert("Error:"+FoundErrors);
return;
}
var ToAdd = "[youtube]"+enterURL+"[/youtube]";
PostWrite(ToAdd);
}
#
#-----[ OPEN ]------------------------------------------
#
mods/bbcode_box/add_bbcode.js
#
#-----[ FIND ]------------------------------------------
#
var symbol = 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
var youtube = 0;
var GVideo = 0;
#
#-----[ FIND ]------------------------------------------
#
function helpline(help) {
#
#-----[ BEFORE, ADD ]------------------------------------------
#
function BBCGVideo() {
var FoundErrors = '';
var enterURL = prompt("Give the URL of the page containing the movie", "http://");
if (!enterURL) {
FoundErrors += " Error: Didnt gave an URL";
}
if (FoundErrors) {
alert("Error:"+FoundErrors);
return;
}
var ToAdd = "[GVideo]"+enterURL+"[/GVideo]";
PostWrite(ToAdd);
}
function BBCyoutube() {
var FoundErrors = '';
var enterURL = prompt("Give the URL of the page containing the movie", "http://");
if (!enterURL) {
FoundErrors += " Error: Didnt gave an URL";
}
if (FoundErrors) {
alert("Error:"+FoundErrors);
return;
}
var ToAdd = "[youtube]"+enterURL+"[/youtube]";
PostWrite(ToAdd);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
2. Ayrı ayrı kurulum
2 aşamadan oluşuyor 2 mod kuracağız..
1. Multiple BBCode MOD
2. YouTube Video BBCode
sırayla bu modları kurup videolarınızı izletiyoruz..
1.
Kod: Tümünü seç
## easymod compliant
##############################################################
## MOD Title: Multiple BBCode MOD
## MOD Author: Nuttzy99 < nospam@blizzhackers.com > (n/a) http://www.blizzhackers.com
## MOD Author, Secondary: wGEric < eric@best-dev.com > (Eric Faerber) http://mods.best-dev.com/
##
## MOD Description: Allows you to install BBCode MODs that
## add quick BBCode buttons in post edits. Without this
## MOD, there is no standard way of installing BBCode MODs.
## MOD Version: 1.4.0c
##
## Installation Level: EASY
## Installation Time: 2 minutes
## Files To Edit: posting.php
## templates/subSilver/posting_body.tpl
## 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:
## + if Multi BBCode MOD v1.0.1 is already installed, use the update to 1.2.0 MOD
## and do NOT install this MOD script
## + Works with phpBB 2.0.2 thru 2.0.10
## + installable with EasyMOD
##
## Version 1.4.0 makes it so MOD Authors don't have to set a hotkey for their BBCodes.
##
## I have added instructions to the MOD that tell MOD Authors what to do in the language files
## This isn't required but I heavily recommend that you do it anyways just in case the MOD Authors
## use something in what I have added as their FIND.
##
##############################################################
##
## MOD History:
##
## 2004-09-26 - Version 1.4.0
## + Sets hot key automatically
## + Adds it to Private Messages (version b)
## + Fixes a help line bug (version c)
##
## 2003-09-25 - Version 1.2.1
## + improved MOD Template compliance
##
## 2003-08-15 - Version 1.2.0
## + updated for 2.0.6
## + allows additional hotkeys - Xore did most of the work ;-)
## + made EasyMOD compatiable
##
## 2003-02-03 - Version 1.0.1
## + updated for 2.0.4
## + no code changes required, just updated the header info
##
## 2002-08-31 - Version 1.0.0
## + initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# make_jumpbox('viewforum.'.$phpEx);
#
make_jumpbox(
#
#-----[ AFTER, ADD ]---------------------------------
#
Multi_BBCode();
#
#-----[ OPEN ]---------------------------------
#
privmsg.php
#
#-----[ FIND ]---------------------------------
#
generate_smilies('inline', PAGE_PRIVMSGS);
#
#-----[ AFTER, ADD ]---------------------------------
#
Multi_BBCode();
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
$bbcode_tpl = null;
#
#-----[ AFTER, ADD ]---------------------------------
#
// 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('') ;
$EMBB_values = array('') ;
for ($i=1; $i<count($EMBB_values); $i++)
{
// load BBcode MODs info
$val = ($i*2)+16 ;
$help_lang = ( !empty($lang['bbcode_help'][(strtolower($EMBB_values[$i]))]) ) ? $lang['bbcode_help'][(strtolower($EMBB_values[$i]))] : $lang['bbcode_help'][$EMBB_values[$i]];
$template->assign_block_vars('MultiBB', array(
'KEY' => $hotkeys[$i],
'NAME' => "addbbcode$val",
'HELP' => sprintf($help_lang, $hotkeys[$i]),
'WIDTH' => $EMBB_widths[$i],
'VALUE' => $EMBB_values[$i],
'STYLE' => "bbstyle($val)")
);
}
}
// MULTI BBCODE-end
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]---------------------------------
#
<!-- BEGIN MultiBB -->
{MultiBB.VALUE}_help = "{MultiBB.HELP}";
<!-- END MultiBB -->
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
# </span></td>
#
name="addbbcode16"
</td>
#
#-----[ AFTER, ADD ]---------------------------------
#
<!-- BEGIN MultiBB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{MultiBB.KEY}" name="{MultiBB.NAME}" value="{MultiBB.VALUE}" style="width: {MultiBB.WIDTH}px" onClick="{MultiBB.STYLE}" onMouseOver="helpline('{MultiBB.VALUE}')" />
</span></td>
<!-- END MultiBB -->
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# <select name="addbbcodefontcolor" onChange="bbfontstyle('[color=' + this.form.addbbcodefontcolor.options[this.form.addbbcodefontcolor.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
name="addbbcode18"
#
#-----[ IN-LINE FIND ]---------------------------------
#
name="addbbcode18"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
name="addbbcodefontcolor"
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode18.options
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontcolor.options
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode18.selectedIndex
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontcolor.selectedIndex
#
#-----[ FIND ]---------------------------------
#
# NOTE - the full line to look for is:
# </select> {L_FONT_SIZE}:<select name="addbbcodefontsize" onChange="bbfontstyle('[size=' + this.form.addbbcodefontsize.options[this.form.addbbcodefontsize.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
name="addbbcode20"
#
#-----[ IN-LINE FIND ]---------------------------------
#
name="addbbcode20"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
name="addbbcodefontsize"
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode20.options
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontsize.options
#
#-----[ IN-LINE FIND ]---------------------------------
#
this.form.addbbcode20.selectedIndex
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
this.form.addbbcodefontsize.selectedIndex
#
#-----[ 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 ]---------------------------------
#
//
// bbcode help format goes like this
// $lang['bbcode_help']['value'] = 'BBCode Name: Info (Alt+%s)';
//
// value is what you put in $EMBB_values in posting.php
// %s gets replaced with the automatic hotkey that the bbcode gets assigned
//
$lang['bbcode_help']['value'] = 'BBCode Name: Info (Alt+%s)';
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
# EoM
2.
Kod: Tümünü seç
##############################################################
## MOD Title: YouTube Video BBCode
## MOD Author: michaeltripp < iamdrscience@hotmail.com > (Mike) http://itsbeenconfirmed.com
## MOD Description: Adds a new bbcode allowing you to easily embed videos from YouTube.com.
## MOD Version: 1.0.1
##
## 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:
## [youtube]YouTube URL[/youtube]
##
## YouTube URL is the "Video URL (Permalink)" or the URL of the page the video
## is on, NOT the "Embeddable Player" code they have on their video pages.
##
##############################################################
## MOD History:
##
## 2006-03-20 - Version 1.0.1
## -Changed the names of the variables tbat are replaced in bbcode.tpl
## from VIDEO and LINK to YOUTUBEID and YOUTUBELINK, because the names
## were too common making it likely that they would conflict with other mods.
##
## 2006-03-17 - Version 1.0.0
##
## 2006-03-16 - Version 0.9.3
## -Fixed a problem in the regex that allowed some invalid but benign input
##
## 2006-03-15 - Version 0.9.2
## -Made the word "link" was a language variable
## -Made the link open in a new window
## -YouTube video IDs can have dashes, so I changed the regex to account for this
## -Moved the link underneath the video instead of beside it
##
## 2006-03-07 - Version 0.9.1
## -Added link for browsers YouTube's player doesn't like, i.e. Opera :(
##
## 2006-03-06 - Version 0.9.0
##
##############################################################
## 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 ]---------------------------------
#
,'YouTube'
#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [youtube]YouTube URL[/youtube] code..
$patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = $bbcode_tpl['youtube'];
#
#-----[ 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']['youtube'] = 'YouTube: [youtube]YouTube URL[/youtube]';
$lang['youtube_link'] = 'Link';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN youtube -->
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{YOUTUBEID}"></param>
<embed src="http://www.youtube.com/v/{YOUTUBEID}" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object><br />
<a href="http://youtube.com/watch?v={YOUTUBEID}" target="_blank">{YOUTUBELINK}</a><br />
<!-- END youtube -->
#
#-----[ 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 ]---------------------------------
#
,'[youtube]','[/youtube]'
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kod: Tümünü seç
[youtube]http://youtube.com/watch?v=UY0xwRIGOdc[/youtube]
önemli not:
phpbbmod.com tarafından hazırlanmış ve test edilmiştir..
bu bilgiyi buradan alıp kendinize mal edecekseniz bile phpbbmod.com'dan alıntılanmıştır demeniz emeğe saygıyı gösterir..
cupra
Türkiyenin #1 phpBB kaynağı phpbbturkey.com