Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Using video/flash in topics?
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 17

mkelley
Junior Member

112 Posts

Posted - 13 January 2009 :  11:55:24  Show Profile  Reply with Quote
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.<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  11:57:14  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
This is an example Marcel.

<object width="400" height="171"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1989082&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=1989082&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="171"></embed></object><br /><a href="http://vimeo.com/1989082">Rendezvous with Rama</a> from <a href="http://vimeo.com/user845779">Aaron Ross</a> on <a href="http://vimeo.com">Vimeo</a>.


If you extract this portion you should be able to display it the same way as Flash is displayed.

http://vimeo.com/moogaloop.swf?clip_id=1989082&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - MarcelG on 14 January 2009 07:29:01
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  12:00:10  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
mkelley, the problem with posting html on a forum is that any member (not just the admin) could post malicious html. Usually only the owner of a blog would post html and that same owner would have no reason to post malicious html.

Embedding code doesn't usually change that often.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 13 January 2009 :  12:15:50  Show Profile  Reply with Quote
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?<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  12:16:39  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
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]<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 13 January 2009 :  12:30:24  Show Profile  Reply with Quote
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?

<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  12:38:49  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
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.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  12:42:35  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Marcel, the bare minimum you need is this to show a Vimeo clip - [flash]http://vimeo.com/moogaloop.swf?clip_id=1297050[/flash]<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 January 2009 :  12:54:16  Show Profile  Reply with Quote
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.”
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 13 January 2009 :  17:15:11  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 14 January 2009 :  07:21:44  Show Profile  Visit MarcelG's Homepage  Reply with Quote
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
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 14 January 2009 :  14:23:09  Show Profile  Reply with Quote
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
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 14 January 2009 :  14:50:49  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
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.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 14 July 2009 :  18:41:17  Show Profile  Reply with Quote
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.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 July 2009 :  19:13:37  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
There is also another mod, which I believe was picked up from this one. Maybe that one will fare better. Try searching this forum.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 17 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07