MOD: OnlineVideos 1.1 - نوشته شده در (25194 Views)
Junior Member
balexandre
مطلب: 418
418
As told some days ago in this post, here is the complete tutorial for the Marcel's Video MOD that I call OnlineVideos.
it has all the Marcel's code compiled into a nice step by step tutorial so you can't miss having this great accomplish in your Snitz Forum.
Thank you Marcel for the work smile I just compiled it and created nice icons ... wink
To download the MOD follow up this link
hope you like it...
smile

Updated:
v.1.1: Fixed a small bug that would give "error: illegal use of flash tag!" when using Prompt box; Added video.js pointer to inc_header_short.asp<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Retired Support Moderator
MarcelG
مطلب: 2625
2625
Good job Bruno!<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Well there it is, the official blessing. smile<
نوشته شده در
Starting Member
rrf
مطلب: 22
22
Works great! Many thanks Bruno smile<
نوشته شده در
Junior Member
balexandre
مطلب: 418
418
نوشته شده در
Starting Member
furk
مطلب: 11
11
I've some troubles with this mod.
Followed the setup instructions but seem not working.
I tried all the tags, same result, video not showing.
This is what is been generated for example by the TUBE tag:

Code:
<div class="tube"><script language="javascript">EmbedYT("<a href="http://www.youtube.com/v/S_Va0ojp-Dk" target="_blank">http://www.youtube.com/v/S_Va0ojp-Dk</a>",375,298,"false","high","white","white")</script></div>

Any hint?<
نوشته شده در
Retired Support Moderator
MarcelG
مطلب: 2625
2625
Furk, you do not seem to have added the appropriate tags to the ChkURLs function in inc_func_common.asp.
Code:
(UCase(Right(strArray(Counter-1), 7)) <> "[VIDEO]") and _
<
نوشته شده در
Starting Member
furk
مطلب: 11
11
Code:
function ChkURLs(ByVal strToFormat, ByVal sPrefix, ByVal iType)
Dim strArray
Dim Counter

ChkURLs = strToFormat

if InStr(1, strToFormat, sPrefix) > 0 Then
strArray = Split(strToFormat, sPrefix, -1)
ChkURLs = strArray(0)

for Counter = 1 To UBound(strArray)
if ((strArray(Counter-1) = "" Or Len(strArray(Counter-1)) < 5) And strArray(Counter)<> "") then
ChkURLs = ChkURLs & edit_hrefs(sPrefix & strArray(Counter), iType)
elseif ((UCase(Right(strArray(Counter-1), 6)) <> "HREF=""") and _
(UCase(Right(strArray(Counter-1), 5)) <> "[IMG]") and _
(UCase(Right(strArray(Counter-1), 5)) <> "[URL]") and _
(UCase(Right(strArray(Counter-1), 6)) <> "[URL=""") and _
(UCase(Right(strArray(Counter-1), 8)) <> "_BLANK"">") and _
(UCase(Right(strArray(Counter-1), 5)) <> "[WMV]") and _
(UCase(Right(strArray(Counter-1), 6)) <> "[TUBE]") and _
(UCase(Right(strArray(Counter-1), 9)) <> "[MYSPACE]") and _
(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), 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), 4)) <> "RM]""") and _
(UCase(Right(strArray(Counter-1), 7)) <> "[FLASH]") and _
(UCase(Right(strArray(Counter-1), 5)) <> "[FLV]") and _
(UCase(Right(strArray(Counter-1), 5)) <> "TUBE]") and _
(UCase(Right(strArray(Counter-1), 6)) <> "FTP://") and _
(UCase(Right(strArray(Counter-1), 8)) <> "FILE:///") and _
(UCase(Right(strArray(Counter-1), 7)) <> "HTTP://") and _
(UCase(Right(strArray(Counter-1), 8)) <> "HTTPS://") and _
(UCase(Right(strArray(Counter-1), 5)) <> "SRC=""") and _
(UCase(Right(strArray(Counter-1), 1)) <> "-") and _
(UCase(Right(strArray(Counter-1), 1)) <> "=") and _
(strArray(Counter) <> "")) then

ChkURLs = ChkURLs & edit_hrefs(sPrefix & strArray(Counter), iType)
else
ChkURLs = ChkURLs & sPrefix & strArray(Counter)
end if
next
end if
end function

Followed the moddescription.html included in the archive.
Have i missed something?<
نوشته شده در
Starting Member
furk
مطلب: 11
11
Double checked it and now when i insert a video i get only this in the post:

error: illegal use of flash tag!<
نوشته شده در
Starting Member
furk
مطلب: 11
11
Solved! bigsmile
The problem was in the use of prompt mode to inser the video. I adds a space before and after the tags, like this:

Code:
[tube] http://it.youtube.com/watch?v=4rb8aOzy9t4 [/tube]

Cutting off the spaces solves. smile
I try to fix the code to not make use of space...<
نوشته شده در
Starting Member
furk
مطلب: 11
11
That's it:

Change

Code:
AddTxt=" [tube] "+txt+" [/tube]";

With

Code:
AddTxt=" [tube]"+txt+"[/tube]";]

Same thing need to be done with all video tags.
Cheers.<
شما باید یک متن وارد کنید