vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - DJ's AME (Auto Media Embedding) XML Media Definitions (Third Time's the Charm) (https://vborg.vbsupport.ru/showthread.php?t=175378)

ImageMavericks 09-26-2008 01:38 AM

Hi all. I am trying to make my own definition, but apparently I suck at it. I am trying to make an embed code for screencast which is a pay service where I host my schtuff. I have tried in vein to make a container that works and I have relented to asking you guys for help. Any assistance is appreciated!

Here is an example of a link to a video :

http://www.screencast.com/t/bQJpf693

And here is a big fluffy embed code:

<object name="Video" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/quicktime/download/" standby="Loading Quicktime components..." width="800" height="616" > <param name="src" value="http://content.screencast.com/users/ImageMavericks/folders/Default/media/05617c42-a806-43e0-bb73-8bacb5c5653f/levelsorcurves.mov"></param> <param name="autoplay" value="false"></param> <param name="controller" value="true"></param> <param name="enablejavascript" value="true"></param> <param name="playCount" value="1"></param> <param name="starttime" value="0"></param> <embed name="Video" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" src="http://content.screencast.com/users/ImageMavericks/folders/Default/media/05617c42-a806-43e0-bb73-8bacb5c5653f/levelsorcurves.mov" autoplay="false" controller="true" enablejavascript="true" starttime="0" width="800" height="616"></embed> </object>

Digital Jedi 09-26-2008 02:06 AM

I'll give ScreenCast a look too.

I may just decide to do an update for 2.0 and below first and then worry about an updated Master XML for 2.5 Beta.

TsirhCitna 09-26-2008 02:47 AM

Oh :( I was waiting for the 2.5 version.

Digital Jedi 09-26-2008 03:03 AM

Quote:

Originally Posted by TsirhCitna (Post 1630563)
Oh :( I was waiting for the 2.5 version.

I'll still release it, I just have to wait for some bugs in AME 2.5 to be fixed first. But in the meantime, the current set needs updating, as there appears to be a number of sites that have made changes to their code.

ImageMavericks 09-26-2008 03:53 AM

I appreciate you looking at it so much! Total lifesaver... I can't keep up with putting our tutorials on public sites and this has been such a headache to try and make work in our forums... this would be awesome!

Thanks!
Alexandria

Skavenger 09-26-2008 03:45 PM

Quote:

Originally Posted by Digital Jedi (Post 1630516)
GoEar was working for me last time I checked. Can you send me some sample links?

Check your PM inbox.

Digital Jedi 09-26-2008 06:37 PM

Quote:

Originally Posted by Skavenger (Post 1631035)
Check your PM inbox.

Yeah, they got a new flash player. Actually, it's kind of nice. Just drop this in your GoEar definition's Replacement HTML until the next update.

HTML Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="353" height="132"><param name="movie" value="http://www.goear.com/files/external.swf" /><param name="FlashVars" value="file=$p1" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="http://www.goear.com/files/external.swf" width="353" height="132" flashvars="file=$p1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>


Quote:

Originally Posted by DiesellMinded (Post 1631045)
Changed the Reg Exp to

http://diesel\.powertvonline\.com/video/[\w]+

Using Regex

How do i figure out the Replacement code??

Did you refer to the tutorial linked in Post 3 of this thread? There's a link to where The Geek explains how the variables work.

But like I said, I always look requests over and add them to every update. So, if you can hang on, I can look at it for you. I just have a lot of requests backlogged.

Skavenger 09-26-2008 06:45 PM

Quote:

Originally Posted by Digital Jedi (Post 1631144)
Yeah, they got a new flash player. Actually, it's kind of nice. Just drop this in your GoEar definition's Replacement HTML until the next update.

HTML Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="353" height="132"><param name="movie" value="http://www.goear.com/files/external.swf" /><param name="FlashVars" value="file=$p1" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="http://www.goear.com/files/external.swf" width="353" height="132" flashvars="file=$p1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>

That fixed the problem. Thanks.

Digital Jedi 09-27-2008 02:37 AM

Quote:

Originally Posted by DiesellMinded (Post 1631161)
Yes thats how i made the First part Theres no guide to making the embed part all i need is help with the second part Please

Actually, he does explain it at the very end:

Quote:

Originally Posted by The Geek (Post 1279365)
And in the case of AME, I can put $p1 in the replacement HTML to get the 'movie' id which in this case is MzEwODYwfDg2NzY0Ng.

$p1, $p2, $p3, etc, represent your RegEx groups in the order they exist in the URL. I haven't looked at the site yet, so I don't know if the video ID is represented in the URL. But if it is, then you'd put those in a (group) and put the $p1, 2, 3 etc variable where that same number appears in the embed code.

If the ID used in the embed code is not found in the URL, then you have to use the Extraction RegEx, and have it search for the URL somewhere in the HTML of the page.

Try taking a look at the existing definitions and it will all become clear. It's really quite simple.

EHSkaRMa 09-27-2008 06:09 AM

Hello, this works great for everything, but can someone show me how to make a definition for clip-bucket? Ive tried making it a few times, and keep screwing it up.


All times are GMT. The time now is 07:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02260 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete