[rootturkhacks.com~]
duyuru LiNK KISALTMAK / TEMA VEYA SCRiPT iSTEĞiNDE BULUNMAK YASAKTIR!
duyuru GiZLi iÇERiKLERE "asdafsdfsdf" TARZI YORUM YAPMAK BAN SEBEBIDIR !
hack forum

[MOD] Simple Integration of YouTube and Google Video Videos

#1
Kod:
################################################## ################################################## #########################
################################################## ################################################## #########################
##
## MOD Title: Simplified integration of youtube and google-video in advanced bbcode box
## MOD Author: A. Djabri < [email protected], http://aokas.com >
## MOD Description: This mod adds 2 image buttons to your advanced BBcode box, one for youtube and one for google-video. Based on Freddie's Mod < [email protected] > http://www.tactic.be
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 2 Minutes
## Files To Edit: 2
## mods/bbcode_box/bbcode_box.js
## templates/subSilver/posting_body.tpl
##
## Included Files: 2
## googlevid.gif, youtube.gif
##
## Verified Compatability: phpBB v 2.0.21
##
## topic on aokas.com with a screenshot : http://www.phpbb.com/phpBB/viewtopic.php?t=458424
##
################################################## ################################################## ###########################
##
## Author Notes: Copy included images into mods/bbcode_box/images/ !!!
##
################################################## ################################################## #########################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
################################################## ################################################## #########################
#
#-----[ OPEN ]------------------------------------------
#
# If subSilver is your template
#
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 ]------------------------------------------
#
mods/bbcode_box/bbcode_box.js

#
#-----[ FIND ]------------------------------------------
#
symbol_help = "Insert Symbol Into Post";

#
#-----[ AFTER, ADD ]------------------------------------------
#
GVideo_help="Insert videoID: [video width=# height=#]http://video.google.com/googleplayer.swf?docId=VideoID[/video]";
youtube_help="Insert videoID: [video width=# height=#]http://www.youtube.com/v/VideoID[/video]";

#
#-----[ FIND ]------------------------------------------
#
var symbol = 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#
var youtube = 0;
var GVideo = 0;

#
#-----[ FIND ]------------------------------------------
#
function helpline(help) {

#
#-----[ BEFORE, ADD ]------------------------------------------
#

function BBCGVideo() {
var FoundErrors = '';
var enterID = prompt("Please enter the ID of the video (Try: -4190938042466443086)", "");
if (!enterID) {
FoundErrors += " You have not entered an ID.";
}
var enterW = prompt("Enter the video file width", "400");
if (!enterW) {
FoundErrors += " You didn't enter the video file width.";
}
var enterH = prompt("Enter the video file height", "350");
if (!enterH) {
FoundErrors += " You didn't enter the video file height.";
}
if (FoundErrors) {
alert("Error:"+FoundErrors);
return;
}
var ToAdd = "[video width="+enterW+" height="+enterH+"]http://video.google.com/googleplayer.swf?docId="+enterID+"[/video]";
PostWrite(ToAdd);
}

function BBCyoutube() {
var FoundErrors = '';
var enterID = prompt("Please enter the ID of the video (Try: vwl98dU0kY8)", "");
if (!enterID) {
FoundErrors += " You have not entered an ID.";
}
var enterW = prompt("Enter the video file width", "400");
if (!enterW) {
FoundErrors += " You didn't enter the video file width.";
}
var enterH = prompt("Enter the video file height", "350");
if (!enterH) {
FoundErrors += " You didn't enter the video file height.";
}
if (FoundErrors) {
alert("Error:"+FoundErrors);
return;
}
var ToAdd = "[video width="+enterW+" height="+enterH+"]http://www.youtube.com/v/"+enterID+"[/video]";
PostWrite(ToAdd);
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
#
################################################## ################################################## #########################
################################################## ################################################## #########################
imza
Eski Kurt
Alıntı
#2
Eline Sağlık
imza
Alıntı




Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi
brazzers premium accounts izmit escort porno beylikdüzü escort avcılar escort porno cami halısı vdcasino vdcasino giriş ilbet casino siteleri taraftarium24 ilbet giriş kurtköy escort izmir escort izmir escort izmir escort