Well I must say that I don't know the code for this that well, but here is what I did, simply by looking at similar code and I managed to get it working. This is all I will do, if it suits you, great, if not, too bad.
1. Inside the function ChkUrls, in inc_func_common.asp, add the lines in red:
Code:
(UCase(Right(strArray(Counter-1), 6)) <> "[GVID]") and _
(UCase(Right(strArray(Counter-1), 10)) <> "[METACAFE]") and _
(UCase(Right(strArray(Counter-1), 5)) <> "[WMA]") and _
(UCase(Right(strArray(Counter-1), 4)) <> "[QT]") and _
(UCase(Right(strArray(Counter-1), 5)) <> "[PBT]") and _
(UCase(Right(strArray(Counter-1), 4)) <> "[RV]") and _
(UCase(Right(strArray(Counter-1), 7)) <> "FLASH]""") and _
(UCase(Right(strArray(Counter-1), 5)) <> "WMV]""") and _
(UCase(Right(strArray(Counter-1), 4)) <> "QT]""") and _
(UCase(Right(strArray(Counter-1), 5)) <> "PBT]") and _
(UCase(Right(strArray(Counter-1), 4)) <> "RV]""") and _
(UCase(Right(strArray(Counter-1), 7)) <> "[FLASH]") and _
2. At the end of the function formatStr, in inc_func_common.asp, add the red line:
Code:
fString = ReplaceWMVTags(fString) ' windows media
fString = ReplaceRVTags(fString) ' Real video
fString = ReplacePhotoBucketVideoTags(fString)
FormatStr = fString
on Error goto 0
3. Near the end of inc_func_common.asp, just before the WriteFooter sub, add this code:
Code:
Function ReplacePhotoBucketVideoTags(fString)
Dim oTag, cTag
Dim roTag, rcTag
Dim oTagPos, cTagPos
Dim nTagPos
Dim counter1, counter2
Dim strCodeText
Dim Tagcount
Dim strTempString, strResultString
TagCount = 2
Dim CodeTags(2,2,2)
Dim strArray, strArray2
CodeTags(1,1,1) = "[pbt]"
CodeTags(1,2,1) = "[/pbt]"
CodeTags(1,1,2) = "<div class=""media""><script language=""javascript"">EmbedPBV("""
CodeTags(1,2,2) = """)</script></div><div class=""break""></div>"
CodeTags(2,1,1) = "[PBT]"
CodeTags(2,2,1) = "[/PBT]"
CodeTags(2,1,2) = CodeTags(1,1,2)
CodeTags(2,2,2) = CodeTags(1,2,2)
strResultString = ""
strTempString = fString
for counter1 = 1 to TagCount
oTag = CodeTags(counter1,1,1)
roTag = CodeTags(counter1,1,2)
cTag = CodeTags(counter1,2,1)
rcTag = CodeTags(counter1,2,2)
oTagPos = InStr(1, strTempString, oTag, 1)
cTagPos = InStr(1, strTempString, cTag, 1)
if (oTagpos > 0) and (cTagPos > 0) then
strArray = Split(strTempString, oTag, -1)
for counter2 = 0 to Ubound(strArray)
if (Instr(1, strArray(counter2), cTag) > 0) then
strArray2 = split(strArray(counter2), cTag, -1)
strCodeText = trim(strArray2(0))
strResultString = strResultString & roTag & strCodeText & rcTag & strArray2(1)
else
strResultString = strResultString & strArray(counter2)
end if
next
strTempString = strResultString
strResultString = ""
end if
next
ReplacePhotoBucketVideoTags = strTempString
end function
4. In video.js, add this code, at the end of the file, for example:
Code:
function EmbedPBV(URL){
if(URL == null || URL == "illegal"){
//Nope, we can't.
document.writeln(" error: illegal use of PhotoBucketVideo tag! ");
}else{
//Add the code to the document.
document.writeln('<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://i301.photobucket.com/player.swf?file='+ URL +'"> </embed>');
}
}
Use the tags like this:
[pbt]
http://s301.photobucket.com/albums/nn80/SinnSinn/clip0099.flv
[/pbt]
You will need to insert the complete link to the file, but without parameters.
I hope this helps, as I really don't have the time to filter out the parameters to allow you to use the complete link,as per your post.
I tested this locally and it works.<