Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... Details »»
DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest...
Version: 3.0.0, by Digital Jedi Digital Jedi is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 11-09-2008 Last Update: 10-23-2013 Installs: 1406
Supported
 

NEARLY 300 SUPPORTED SITES FOR VIDEOS, AUDIO, GAMES AND MORE!


This is the most current repository of definitions for DJ's AME :: The Ultimate Automatic Media Embedder. These media definitions will expand your AME to support embedding from hundreds of websites. More videos. More than videos. These definitions will let you embed content from sites that include games, widgets, music players and so much more.

This repository was seeded by contributions from the vBulletin community over several years, but are curated here for easy access. Special thanks to Hotwheels and Danyloski for starting the tradition.


[hr]#CCCCCC[/hr]
NEWS
DJ's AME 2.5.7 is out! What are you waitin' fer?!


[hr]#CCCCCC[/hr]
IMPORT
DEFINITIONS ARE NOT INSTALLED They're imported through your AME CP. Which means you have to have AME installed first. You DO NOT import definitions through your Product Manager. I mean, you can try. But I'll make fun of you.

The READ ME file explains in more detail. Please don't skip it. I named it in big letters and everything.


[hr]#CCCCCC[/hr]
VERSION INFO
These definitions are for AME 2.5.

A BETA set of definitions for AME 3 can be found here.


[hr]#CCCCCC[/hr]
LIVE DEMO
This is my development area with a lot of test thread. As such, it's not a comprehensive list of all working definitions. You can find that below...


[hr]#CCCCCC[/hr]
MEDIA DEFINITIONS LIST
The full list of definitions is available in the second post of this thread. Requests for new definitions should be made here (no registration required), rather than in this thread. It makes it easier for me to keep track and to prioritize. Please do not use this area to contact me.
Code:
The password is: LetMeIn#33


[hr]#CCCCCC[/hr]
SUPPORT
I can't stress this enough. I NEED LINKS in order to troubleshoot problems. Links to the video. Links to the thread. I can't do anything without knowing what videos are causing the problem. If all you do is post that a particular site is not working and provide me with nothing to look at, well, how can I fix it? Following this simple guideline will save us both a lot of time and effort. (And check the FAQ on the first page. I worked really hard on that one. :erm: )

Please note that I do new definition requests in the order they were received and as timely as I can.

Download Now

File Type: zip DJs-AMEs-media-definitions.zip (220.8 KB, 664 views)

Screenshots

File Type: jpg Slide.com.jpg (98.7 KB, 0 views)
File Type: png World Star Hip-Hop.png (105.7 KB, 0 views)
File Type: png Twitter.png (255.6 KB, 0 views)
File Type: png Amazon Thumb.png (67.8 KB, 0 views)
File Type: png screen-pinterest-boards.png (435.9 KB, 0 views)
File Type: png screen-pinterest-pins.png (166.4 KB, 0 views)
File Type: png screen-storify.png (154.7 KB, 0 views)
File Type: png screen-gamesopoly.png (100.5 KB, 0 views)
File Type: png screen-google-maps.png (174.1 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
lottidah, muhakeme, vithorius, xorex

Comments
  #672  
Old 07-13-2009, 09:43 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Mak,

I don't really know of any other way to explain it than how I have done . I think we are like passing ships with my explanation and my understanding of what you are wanting to do (I still have no clue what you are trying to do!). Let me try to sum up the way the Extraction regexp works another way.

Most of the time, the URL contains the information that is needed to embed without any additional work. For instance a URL may look like this:

www.yoururl.com/video=123456

And on that page, will be an 'Embed this video' box which will contain HTML that looks like:

<embed src="video" param="123456">

So the replace code in AME looks like:

<embed src="video" param="$p1">

So when AME looks at the URL, it pulls out the 123456 and puts it in the $p1 placeholder and Wham! You have your embedded video.

Where the extraction tool comes into place is when the URL looks like

www.yoururl.com/video=123456

But the Embedding HTML on the page looks like:

<embed src="video" param="abcdefg">

In this instance, there is no correlation between the URL and the embedding code so for the embedding to work, AME must go to www.yoururl.com/video=123456 and do a search for that parameter.

So if the definition includes an Embedding Regexp, AME knows to download the page the first time it is saved and run the Embed Regexp on the source code to lift the abcdefg out. That way, AME will then have all the information it needs to display the embedded media.

You cannot use the Embedding Regexp for anything other than putting parameters in the Replacement code as it wasn't designed to do anything else but what it is currently doing. Saying that, I can put a couple more hooks in so that if you wanted to extract additional information from the destination page at save then you could, however I still am at a loss as to what you are trying to achieve.
Reply With Quote
  #673  
Old 07-13-2009, 01:10 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek View Post
...

And on that page, will be an 'Embed this video' box which will contain HTML that looks like:

<embed src="video" param="123456">

So the replace code in AME looks like:

<embed src="video" param="$p1">

...

In this instance, there is no correlation between the URL and the embedding code so for the embedding to work, AME must go to www.yoururl.com/video=123456 and do a search for that parameter.
Just a control question

Do I understand right that Embedding Regexp searches (works with) ONLY

PHP Code:
<embed src=""
in page's HTML source code?
Reply With Quote
  #674  
Old 07-13-2009, 02:16 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It can technically grab anything from the page, however whatever is grabbed is intended to be used in the replacement code (the <embed>).
Reply With Quote
  #675  
Old 07-13-2009, 02:47 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek View Post
It can technically grab anything from the page, however whatever is grabbed is intended to be used in the replacement code (the <embed>).
lol. Then we have to begin from the start.

You said "It can technically grab".

But what can grab the current version???

You have said your-self in your previous post that:
Quote:
Originally Posted by The Geek View Post
Saying that, I can put a couple more hooks in so that if you wanted to extract additional information from the destination page at save then you could
You also said:

Quote:
Originally Posted by The Geek View Post
You cannot use the Embedding Regexp for anything other than putting parameters in the Replacement code as it wasn't designed to do anything else but what it is currently doing.
Look -->> for anything other than putting parameters in the Replacement code

From where "Embedding Regexp" takes those parameters?

Example

Edited:

Quote:
Originally Posted by The Geek View Post
Where the extraction tool comes into place is when the URL looks like

www.yoururl.com/video=123456

But the Embedding HTML on the page looks like:

<embed src="video" param="abcdefg">

In this instance, there is no correlation between the URL and the embedding code so for the embedding to work, AME must go to www.yoururl.com/video=123456 and do a search for that parameter.
Look -->> and do a search for that parameter

Where it searches?

And what it can search and what it can't?

You have said "It can technically grab anything from the page."
But actually what it (Embedding Regexp) can grab?
Reply With Quote
  #676  
Old 07-13-2009, 03:28 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still can't get hardly any to work.
Reply With Quote
  #677  
Old 07-13-2009, 03:34 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mak,

While running the embed regexp, it already has the entire page contents, therefore a hook can be placed (in an upcoming version) so that after the embed regecp is run you can do something else with it, but for right now it will grab whatever the result is and store it as a parameter for the embed code.

It would really help if you could elaborate on what you are trying to accomplish
Reply With Quote
  #678  
Old 07-13-2009, 11:20 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I'm having an odd issue with the "internal linking (threads)".
I deleted the definition and then re-imported it to be sure it wasn't something I messed up, but I still have the issue:

When I post a link to a thread (for example my-site.net/forums/showthread.php?t=123456), it is resolved as: [favicon]**Internal Linking (Threads) (as opposed to actually using the linked thread's title) and the URL leads to my-site.net/forums/showthread.php?p=123456. (Notice the P instead of the T that it should be)

This is the replacement code (which is the default) (and it looks fine to me):
Code:
<a href="$url" target="_self" title="$title"><img src="favicon.ico" border="0" alt="$title" height="16" width="16" /> $title</a>
I'm really not sure what the issue is. Any advice is appreciated.
Reply With Quote
  #679  
Old 07-14-2009, 07:51 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek View Post
Mak,
While running the embed regexp, it already has the entire page contents,
The Geek, I understand this one.

Quote:
Originally Posted by The Geek View Post
but for right now it will grab whatever the result is and store it as a parameter for the embed code.
And this one two.

Quote:
Originally Posted by The Geek View Post
It would really help if you could elaborate on what you are trying to accomplish
I already have posted my test case here https://vborg.vbsupport.ru/showthread.php?p=1844996.

Ok. Lets make steps

Step 1:
  1. Regular expression
    PHP Code:
    http://[w\.]*dailymotion\.[com|alice\.it]+/[\w/\-%]*video/([\w\-]+) 
  2. URL is posted:
    http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creatio

  3. I don't want to use "x9m63m_canarias-timelapse_creatio" from the URL

Is step 1 is clear? Then continue.

Step 2:
  1. The HTML Source of above URL has such code:

    HTML Code:
        <link rel="stylesheet" href="http://ak.style.dailymotion.com/css/gen/widget/pack/baseskin-prod.css.v1198007225" />
        <link rel="canonical" href="/video/x9m63m_canarias-timelapse_creation" />
        <link rel="image_src" type="image/jpeg" href="http://www.dailymotion.com/thumbnail/160x120/video/x9m63m_canarias-timelapse_creation" />
        <link rel="video_src" href="http://www.dailymotion.com/swf/x9m63m?autoPlay=1" />
        <link rel="thumbnail" type="image/jpeg" href="/thumbnail/160x120/video/x9m63m_canarias-timelapse_creation" />
  2. I want to get one line from it (HTML Source) with Embedding Regexp and pass the result to Replacement.

Is step 2 is clear? Then continue.

Step 3:
  1. I set Extract destination data to Yes
  2. I set Embedding Regexp with:
    Code:
    <link rel="canonical" href="/video/([a-z_0-9-]+)"
  3. It doesn't work...

Is step 3 is clear?
Reply With Quote
  #680  
Old 07-14-2009, 08:32 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That will work. The regexp will capture x9m63m_canarias-timelapse_creation into $p1

So what you need to do is use $p1 in your replace code where you want it to appear.

HTHs
Reply With Quote
  #681  
Old 07-14-2009, 08:33 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EagleNick View Post
Hello,

I'm having an odd issue with the "internal linking (threads)".
I deleted the definition and then re-imported it to be sure it wasn't something I messed up, but I still have the issue:

When I post a link to a thread (for example my-site.net/forums/showthread.php?t=123456), it is resolved as: [favicon]**Internal Linking (Threads) (as opposed to actually using the linked thread's title) and the URL leads to my-site.net/forums/showthread.php?p=123456. (Notice the P instead of the T that it should be)

This is the replacement code (which is the default) (and it looks fine to me):
Code:
<a href="$url" target="_self" title="$title"><img src="favicon.ico" border="0" alt="$title" height="16" width="16" /> $title</a>
I'm really not sure what the issue is. Any advice is appreciated.
Hey Nick,

Ill look into DJ's internal linking definition. It looks like it isn't updated for 2.5x, however it should still be working ok.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07880 seconds
  • Memory Usage 2,386KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_php
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete