Online Video Mod addon? - Posted (2654 Views)
Senior Member
leatherlips
Posts: 1838
1838
Is it possible to have some addons for the online video mod? I'd like it to also be able to insert Daily Motion videos. Also, HULU has videos that would be cool to be able to add as well.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Leatherlips, I have the function for DailyMotion, plus some others available here, starting at line 2008 :
http://oxle.com/source.asp?page=inc_func_common.asp
There are two functions you need:
- the function FixUrls(fString)
- the function ReplaceMediaTags(fString)

Also, need a small change in the FormatStr function at the beginning:
Code:
	fString = ReplaceCodeTags(fString)
'replace old tags with new video tag:
fString = replace(fString,"[gvid]","[video]")
fString = replace(fString,"[/gvid]","[/video]")
fString = replace(fString,"[dm]","[video]")
fString = replace(fString,"[/dm]","[/video]")
fString = replace(fString,"[tube]","[video]")
fString = replace(fString,"[/tube]","[/video]")
'now interpret the new media tags
fString = ReplaceMediaTags(fString)
And, one addition at the end of the FormastStr function
Code:
	fString = FixUrls(fString)
	FormatStr = fString
on Error goto 0
end function

One line added to the ChkUrls function:
Code:
				(UCase(Right(strArray(Counter-1), 7)) <> "[VIDEO]") and _
Oh, and a new js file: http://oxle.com/video.js
It's not polished, but it's all there. bigsmile
How to post a video? -> use the [video][/video] tags, and inbetween them simply but the embedding code found at YouTube, DailyMotion, GoogleVideo or MySpace (=untested!). Enjoy.<
Posted
Senior Member
leatherlips
Posts: 1838
1838
I'm a little confused. blush
Is this an add on to the Online Video MOD that balexandre put together or is it an entirely new video mod? In other words, do I need to have his mod installed before I make the changes you posted or can I just do what you've posted and be done with it?<
Posted
Junior Member
balexandre
Posts: 418
418
it's the same, but using only one tag [ video ] [ /video ] instead all the ones I use...
but the source (the "guy" that did the code and had all the work) is the same --> MarcelG bigsmile
eheh wink<
Posted
Senior Member
leatherlips
Posts: 1838
1838
Can the instructions be rewritten to have the new "all in one" [video] tag?<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Originally posted by leatherlips
Can the instructions be rewritten to have the new "all in one" [video] tag?
Bruno, that's were you come in. bigsmile In case of questions, just shout. cool
BTW ; the [video][/video] tags do not cover the Windows Media Player, Quick Time tag etc. It only covers the previously known tags [tube] for youtube, [gvid] for google video and [dm] for dailymotion (but that one wasn't in Bruno's version I think...)
And, additionally you can now simply put the embed code provided by those videosites inbetween the tags, instead of using the permalinks.<
Posted
Junior Member
balexandre
Posts: 418
418
but leatherlips, what is wrong with the current MOD?

can't you use it like it is?<
Posted
Senior Member
leatherlips
Posts: 1838
1838
Originally posted by balexandre
but leatherlips, what is wrong with the current MOD?

can't you use it like it is?
There is nothing wrong with the current mod. smile I just thought that since there is now the possibilty of an "all in one" video tag it would be nice to have a rewrite of the mod to be able to use it.<
Posted
Junior Member
balexandre
Posts: 418
418
it's not All-in-One

it is more like 4-in-one plus all the rest wink<
Posted
New Member
radiodelicate
Posts: 53
53
is it possible to create a profile field so that users can have a youtube video on their profile pages?<
Posted
Senior Member
leatherlips
Posts: 1838
1838
Originally posted by radiodelicate
is it possible to create a profile field so that users can have a youtube video on their profile pages?
I believe so. If you install this video mod then you can use one of the existing fields in the profile such as "Latest News". You can rename it to "My Media" or something like that. Then all you have to do is paste the url to the video in your profile page between the [video][/video] tags and it should work.<
You Must enter a message