Author |
Topic |
balexandre
Junior Member
Denmark
418 Posts |
Posted - 10 March 2008 : 21:39:47
|
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 I just compiled it and created nice icons ...
To download the MOD follow up this link
hope you like it...
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< |
Bruno Alexandre (Strøby, DANMARK)
"a Portuguese in Danmark"
|
Edited by - balexandre on 16 November 2008 14:31:26 |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 11 March 2008 : 08:44:11
|
Well there it is, the official blessing. < |
|
|
rrf
Starting Member
22 Posts |
Posted - 13 March 2008 : 16:54:48
|
Works great! Many thanks Bruno < |
|
|
balexandre
Junior Member
Denmark
418 Posts |
Posted - 14 March 2008 : 11:30:44
|
off course! what would you expect ?
eheheh < |
Bruno Alexandre (Strøby, DANMARK)
"a Portuguese in Danmark"
|
|
|
furk
Starting Member
11 Posts |
Posted - 18 March 2008 : 04:36:24
|
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:
<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?< |
Tha't all forks!
<center></center> |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 18 March 2008 : 07:45:27
|
Furk, you do not seem to have added the appropriate tags to the ChkURLs function in inc_func_common.asp.
(UCase(Right(strArray(Counter-1), 7)) <> "[VIDEO]") and _ < |
portfolio - linkshrinker - oxle - twitter |
|
|
furk
Starting Member
11 Posts |
Posted - 18 March 2008 : 08:14:58
|
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?< |
Tha't all forks!
<center></center> |
|
|
furk
Starting Member
11 Posts |
Posted - 18 March 2008 : 08:49:18
|
Double checked it and now when i insert a video i get only this in the post:
error: illegal use of flash tag!< |
Tha't all forks!
<center></center> |
|
|
furk
Starting Member
11 Posts |
Posted - 18 March 2008 : 09:03:24
|
Solved!
The problem was in the use of prompt mode to inser the video. I adds a space before and after the tags, like this:
[tube] http://it.youtube.com/watch?v=4rb8aOzy9t4 [/tube]
Cutting off the spaces solves.
I try to fix the code to not make use of space...< |
Tha't all forks!
<center></center> |
|
|
furk
Starting Member
11 Posts |
Posted - 18 March 2008 : 09:10:05
|
That's it:
Change
AddTxt=" [tube] "+txt+" [/tube]";
With
AddTxt=" [tube]"+txt+"[/tube]";]
Same thing need to be done with all video tags.
Cheers.< |
Tha't all forks!
<center></center> |
Edited by - furk on 18 March 2008 09:10:49 |
|
|
jeffmetcalf
Starting Member
4 Posts |
Posted - 18 March 2008 : 13:17:17
|
Hmmm...I can't get this to work at all. When I click any of the icons, nothing happens, not even a 'click' for feedback, the tags aren't inserted, and typing in a vid by hand just results in a blank space in the forum.
Any thoughts?< |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 18 March 2008 : 13:31:16
|
Double-check your installation - sounds like something might have gotten missed.< |
|
|
balexandre
Junior Member
Denmark
418 Posts |
Posted - 19 March 2008 : 04:14:54
|
read the instructions first, then apply them ...
it does work fine as you can see by other members
dont miss any step and remember that some code you need to add BEFORE the searching code, and other AFTER it!< |
Bruno Alexandre (Strøby, DANMARK)
"a Portuguese in Danmark"
|
|
|
IWishToLearn
Starting Member
United States
24 Posts |
Posted - 26 March 2008 : 13:38:29
|
Furk I'm having the same blank page problem but I can't seem to find what file you changed the txt in for this one:
That's it:
Change
AddTxt=" [tube] "+txt+" [/tube]";
With
AddTxt=" [tube]"+txt+"[/tube]";]
Same thing need to be done with all video tags.< |
|
|
IWishToLearn
Starting Member
United States
24 Posts |
Posted - 26 March 2008 : 13:53:59
|
Ok, found that part in the .js. Still blank post though. What should I post for help?< |
|
|
Topic |
|