Author |
Topic |
mkelley
Junior Member
112 Posts |
Posted - 13 January 2009 : 11:55:24
|
Reading about this further looks like custom code is needed for each and every video site... AND there is no promise such code will work in the future.
So... it's a nice try, but I do think allowing HTML is the way to go for those sites (like my own) where members can be trusted. It's unfortunate, but it looks as though there just ain't no such general video playing/sharing mechanism that can be written, and as sites pop up (and change) all the time it's just a royal PITA to have to deal with those changes.
Since blogs (like Google's) allow such HTML embedding I wonder why the Snitz forums can't be more robust when it comes to allowing HTML. I mean, I pretty obviously can't hack Google blogs and do something destructive (except to my own posts) and it's too bad the Snitz forums can't similarly protect the forum (IOW, only HTML in a message could hurt the thread it's in). As a forum admin it would be simple to police such problems assuming you're policing spam otherwise, but if topic embedded HTML really is a Bad Bad thing I assume it can do a lot more than just trash the thread it's in.< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
|
mkelley
Junior Member
112 Posts |
Posted - 13 January 2009 : 12:15:50
|
Okay, and as it turns out I can't use the img code AND turn on HTML at the same time. So I can't just turn on HTML to solve this problem.
But I'm still back to trying to figure out how to make this work for Vimeo. Do I need to write a custom function?< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
mkelley
Junior Member
112 Posts |
Posted - 13 January 2009 : 12:30:24
|
Um, just so I understand.
After I put Marcel's mod in (which I'll have to find all the pieces for -- hopefully early in this thread) then just putting the code [flash] and the reference to Vimeo that you inserted for that particular video and then [/flash] should do it? IOW, I don't have to do anything else once the mod is added other than make sure the flash codes are around the Vimeo reference?
< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 13 January 2009 : 12:54:16
|
You could easily strip out the ID from the URI of the page (in this case http://www.vimeo.com/1297050) using regular expressions so there would be no need for someone posting a video to go rooting around in the HTML for embedding videos in order to find the string they need.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 13 January 2009 : 17:15:11
|
Patience, patience. The [video][/video] tag is working on oxle for Youtube and Dailymotion already, and you can simply paste the embed HTML inbetween those tags, and the function does the rest. I just need to work in the handling of the VIMEO embed HTML. I'll try to do that tomorrow morning, but now I have to get some sleep first.< |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 13 January 2009 17:15:45 |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 14 January 2009 : 07:21:44
|
Here's the first working version: http://oxle.com/topic/5683.html It's built using the [video][/video] tags I've made for oxle back in 2007. You can post the vimeo URL (http://vimeo.com/123456 for example) or the embedding code inbetween those tags. The function does the rest, using the EmbedFlashT function (in video.js).
There's no complete mod yet, so only go forward if you know what you're doing.
In all cases, make backups of the files mentioned below!!!!
Here's what I've done: inc_func_common.asp : added/updated the function ReplaceMediaTags(fString) (source - login demo/demo) Check line 402: (UCase(Right(strArray(Counter-1), 7)) <> "[VIDEO]" and _ Check line 522: fString = ReplaceMediaTags(fString) Check line 572: fString = FixUrls(fString)Check the function FixUrls(fString) Check the function ReplaceMediaTags(fString)
video.js : changed the EmbedFlashT function, to add the allowfullscreen and allowscriptaccess parameters. (source - login demo/demo)
inc_post_buttons.asp : added the Vimeo button (uses overlib plugin, so you may need an alternate method.) (source - login demo/demo)
inc_func_pb2.asp : added the Vimeo javascript function. (source - login demo/demo)
If you implement the above mentioned functions etc, you'll be able to use the [video][/video] tags for:
- 4:3 & widescreen Youtube videos using the HTML Embedding code provided by Youtube.
- 4:3 Youtube videos using the URL
- Dailymotion videos using the HTML Embedding code provided by DailyMotion.
- 4:3 & widescreen Vimeo videos using the HTML Embedding code provided by Youtube.
- 4:3 Vimeo videos using the URL
Issues:
- I'm still working on the MySpace video feature for this function, but it hasn't been tested yet.
- I think I'm sanatizing the whole lot, but I'm not sure...sanity check needed
- It's a (Google-style)béta ;-)
By the way ; if you look closely in inc_func_common.asp you'll see the function ReplaceHDMediaTags. That one uses [hdvideo][/hdvideo] and currently supports YouTube and Dailymotion using the HTML Embedding code provided by both sites.
I hope someone understands my coding...and can write a nicely readable mod for it. Perhaps Bruno can do that. Gotta go now.... < |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 14 January 2009 07:42:29 |
|
|
mkelley
Junior Member
112 Posts |
Posted - 14 January 2009 : 14:23:09
|
Um, I'm a little lost.
I applied the mod as noted here in the front of this topic and it at least seems to work in that I can put [flash]stuff here[/flash] and it does show the Vimeo flash properly (as long as the "stuff here" is the Vimeo link :>).
However... there isn't any other "added" functionality that I can see. Nothing that is an icon to allow my users to do this (like there is with the [img] code). Either I did something wrong or I don't understand how this is supposed to work (I was under the impression there would be some kind of added thingee in the "Reply To Post" or "New Topic" that would make it a touch easier for my users to add flash.
I did add the three files (in the ZIP) to my ASP directory, I edited the three ASP files I was supposed to edit and, as I say, it now at least works when I add the code in myself. Anyone have a clue as to what I did/haven't done yet so that it isn't working? Or is that indeed how it is supposed to work? (But then I'm wondering why I need that qtposter.jpg which appears to be something that allows them to press for some sort of automatic thingamajig).< |
Edited by - mkelley on 14 January 2009 14:24:57 |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
mkelley
Junior Member
112 Posts |
Posted - 14 July 2009 : 18:41:17
|
So... this was never properly implemented for Vimeo, correct?
I put the mod in and tried the "Flash" button and it didn't work (gave an illegal error). I used the mod that Podge put up.
Worse -- even using the [video] tags no longer works for Vimeo stuff (so I assume that Podge fracked it up when he was doing whatever he was doing).
Any chance anyone can help me out here? I *really* need to embed Vimeo on my site. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Topic |
|