Quote:
Originally Posted by nautiboy
First, thanks for this! It's very cool.
Second, has anyone already figured out how to get it to work with videos that are hosted with gallery2? I use gallery2 on my site to host the videos so I'd like to be able to embed them in the forum posts too.
You need to actually parse the gallery page to get to the actual content. You can see an example if you go to this video on my site:
http://www.baue.org/images/galleries...3Edge.mov.html
Obviously one other thing that needs to be fixed is to search for .mov.html (or wmv.html), but that's pretty easy. The harder part is parsing the page to figure out that the actual video is http://www.baue.org/images/galleries...2-4/E3Edge.mov.
It would be even cooler if you could also parse the actual width and height, but I don't think you specify that dynamically with AME, can you?
|
Nauitboy, don't think I forgot you, but I ... well, okay I kind of did forget you. But forgive my oldtimer's disease just this once, as I did find a solution to your problem, I just completely forget to mention it after I made this new round of defs.
It's actually quite simple. If you don't' already have the locally hosted definitions, or don't have the updated ones I just released, go ahead and add them, remembering to delete any duplications.
As you import them, add your forum name to the two pertinent locations, and at the very end of the
Regular expression add this:
That will make it to where it won't matter if you post a video from your Gallery, or post one from it's file location, it will still embed.