Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Using video/flash in topics?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
MarcelG Posted - 06 December 2005 : 11:51:15
I've been fiddling around with some javascript to circumvent the Eolas patents which will change IE very soon.
Based on those javascript functions I decided to create some additional forumcode that allows users to embed video/flash directly in their posts, at least in IE and on Windows.

demo: http://oxle.com/topic.asp?tid=3392 (it looks differently when your logged in/not logged in, so you can use demo/demo to log in).

Update 20-02-2006: Installation guide & fix for non-oxle code forums is available at http://oxle.com/topic.asp?tid=3437<
15   L A T E S T    R E P L I E S    (Newest First)
MarcelG Posted - 27 July 2009 : 07:00:01
That's how I used it initially.
However, as most users simply want to grab the embed code instead of look for the video id, I decided to change the approach to actually allow the embed code to be posted.
That's why I now have support for just a couple of sites instead of all sites.
My code finds out which video to embed, and which size (widescreen or 4:3), and then changes it accordingly.
You could add any site embed code if you want, as long as you know how to deconstruct it to remove malicious inserted code and reconstruct it.
From the top of my head my code now supports Youtube, Vimeo, GoogleVideo and Dailymotion.
Astralis Posted - 25 July 2009 : 13:20:34
Marcel,

I love all the work you did to this and appreciate that you're sharing it.

I'm sure you considered this, so I want to get your thoughts because I might allow videos on my site:

Would it be simpler to create a system where the user can input the video ID instead of the entire embed code? I think the video ids are always the same, even when urls change. Then you can create a system that allows the user to check the site where they're grabbing the video. This seems to reduce the complexity but requires the poster to know where to find the video id.

For example, the user goes to embed a video id:


Supported video sites (radio button):

- YouTube
- Vimeo
- NYTimes

Embed video id: ________________.

This seems to reduce the complexity of the script and also seems like it would be easy to update or is this simply one half of the other?
MarcelG Posted - 15 July 2009 : 07:26:44
quote:
If you implement the above mentioned functions etc, you'll be able to use the [video][/video] tags for:
...
* 4:3 & widescreen Vimeo videos using the HTML Embedding code provided by Youtube Vimeo.
* 4:3 Vimeo videos using the URL


Example at oxle:

This link: http://vimeo.com/4946315
Embedded as widescreen player with the embed code:
[video]<object width="400" height="225"><param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" 
value="http://vimeo.com/moogaloop.swf?clip_id=4946315&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" />
<embed 
src="http://vimeo.com/moogaloop.swf?clip_id=4946315&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1"
type="application/x-shockwave-flash" 
allowfullscreen="true" 
allowscriptaccess="always" 
width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/4946315">gottardo nord</a>
 from <a href="http://vimeo.com/fb1visuals">fb1 visuals</a>
 on <a href="http://vimeo.com">Vimeo</a>.</p>[/video]

Or as 4:3 player with just the link:
[video]http://vimeo.com/4946315[/video]


At oxle: http://oxle.com/topic/5898.html
ruirib Posted - 14 July 2009 : 19:13:37
There is also another mod, which I believe was picked up from this one. Maybe that one will fare better. Try searching this forum.
mkelley 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.
Podge Posted - 14 January 2009 : 14:50:49
Download this version - http://www.snitzbitz.com/mods/details.asp?Version=All&mid=263

There are changes you must make to inc_code.js and inc_post_buttons.asp that you will read about in the modDescription.html in the zip.

You can see a demo here.<
mkelley 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).<
MarcelG 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....
<
MarcelG 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.<
Shaggy 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.

<
Podge Posted - 13 January 2009 : 12:42:35
Marcel, the bare minimum you need is this to show a Vimeo clip - [flash]http://vimeo.com/moogaloop.swf?clip_id=1297050[/flash]<
Podge Posted - 13 January 2009 : 12:38:49
I think Marcel is going to write a function for it. Ideally you would have Vimeo tags [vimeo][/vimeo] and place all the embed code between them so that your users don't have to edit the code themselves. I intend to look at this after I finish my exams later this week as one of my users requested this feature before Christmas.<
mkelley 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 Posted - 13 January 2009 : 12:16:39
The following code works with Marcel's mod see here

[flash]http://vimeo.com/moogaloop.swf?clip_id=1989082&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1[/flash]<
mkelley 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?<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07