vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

blackberry 01-13-2013 01:48 PM

Hi,

not able to embed facebook video's please help with definition

SBlueman 01-13-2013 04:08 PM

dailymotion, anyone? Please?

Digital Jedi 01-14-2013 04:34 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2384135)
The file was last updated in Sept 2011, so any changes since then have not been implemented.

Yeah, sorry about that. My life took on some new, unexpected challenges. But I haven't forgotten about this thread, or AME in general. Hopefully everyone can hang on just a little while longer.

Also, thanks BirdOPrey, for keeping the light on for everyone. :up:

Digital Jedi 01-22-2013 12:25 AM

I've run into a problem that I'm trying to sort out with my server that's holding further development up. I'm not able to save changes or import definitions on either my board, my test board or a client's board on my shared server. I'm working with them to try and rectify the issue, but if it turns out that it's an AME issue, this might delay things for the foreseeable future.

Digital Jedi 01-23-2013 05:41 PM

Okay, just to keep you guys apprised, we didn't really solve the problems with my server, but I've found a workaround that should work, and maybe any of you that were having a similar problem saving definitions can benefit from it. I'm having to put brackets around the http of the RegEx or encase the whole RegEx in (). No idea what that works, but at least I can save defs now. (Still can't delete any.) I'll try to have some updated ones for you sometime this week.

In addition to that, those of you having trouble with URLs that have been changed to https links, just do as BirdOfPrey recommended and add an s? to the RegEx. I'll post updated ones for those later.

Because of both the https issue and the fact that I'm using brackets, all definitions released from here on out will require the RegEx pattern to look like this:
Code:

[https://]*
Which, ironically, is the way The Geek used to format his default definitions in the first place before I started doing it differently. Maybe that's why. (Doh!)

I cannot open my board just yet to the public, but I'll try and set up something where you can continue to make definition requests. It won't be vB, so you won't be able to see my demos, but it will be something temporary anyway.


Quote:

Originally Posted by Tourmeister (Post 2342449)
Can't seem to get links to Google Maps to work:

Link to actual map here:

https://maps.google.com/maps?saddr=S...=1,2,3&t=m&z=6

In addition to the https, the colon was throwing the definition off. Just add both to the ReGex like so:

Code:

https?://maps\.google\.com[\w.]*/[maps]*\?[\w]*=[\w+&;:='%,.-]+


Quote:

Originally Posted by wcbryant (Post 2346832)
I've been poking around today trying to figure out if I can use AME to embed tweets using Twitter's oEmbed.

I've got this in Regular expression:
Code:

http[s]*://[www\.]*twitter\.com/[\w]+/status[es]*/([\d]+)
And this in Replacement:
Code:

<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id=$p1"></script>
And yet what happens is I end up with a blank post with no tweet/Twitter rendering when I post something like "https://twitter.com/twitterapi/statuses/133640144317198338".

Is the problem somehow trying to render by way of javascript in a post through AME? I concede I may well be barking up the wrong tree trying to do it this way. Wide open to any and all suggestions.

https://dev.twitter.com/docs/embedded-tweets
https://dev.twitter.com/docs/api/1/get/statuses/oembed

I was able to get this to work, but I used additional JavaScript which I picked up from another BBCode posted here. It has the same limitations that JavaScript has when posting via AJAX, but it works. JavaScript is not my language, so I don't know why it does. Possibly older code. Hopefully not deprecated.

Code:

<script type="text/javascript">
function loadx(data) {
  document.write(data.html);
}
</script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id=$p1&callback=loadx"></script>
<div class="twitter" onLoad="loadx().html"/>



Quote:

Originally Posted by J4CKT (Post 2381439)
Hi guys,

Having a couple of issues.

I have downloaded the definitions pack and all the defs for locally stored media imported without a problem.

However the big list of external link definitions kept failing to load completely. So as advised in the faq I did a couple at a time. I am at a point now where I have added enough definitions in small groups that the whole list will work but there are some that won't work at all. All the youtube definitions for example won't upload regardless of if I do them one at a time or as part of the whole list.

Is that all the YouTube defs (Playlists, User Profiles) or just the default one? Did you get any error messages when you tried, or is simply nothing happening after import?


Quote:

Originally Posted by BirdOPrey5 (Post 2353380)
I can't get the second link to play any video... Maybe I will try again later.

The first site isn't ideal for linking via AME. I have attached a definition that works for this video but it may fail if the story title has numbers in it. Could't find any way around that.

Also understand if you use this if anyone tries to link to that site to a news story without a video (assuming they have any) it will also break.

Really i would avoid using AME unless linking to actual video sites (youtube, vimeo, and the like.)

I took a look at that first one, and it looks like it might be possible to make a def for just the videos section. That way they could avoid false embeds from the whole site. I'll put that on my list of things to do as well, presuming you don't beat me to it. :up: I'll also try and get all yours and the community's defs I may have missed included in the Master XML.

Digital Jedi 01-24-2013 05:05 AM

Quote:

Originally Posted by Nook_Neformat (Post 2342027)
Anyone can help to embed new divshare design?

If you can hook me up with some URLs and Embed Code, I'd be happy to take a look. DivShare comes up every now and again as a request, but I've yet to see what it's embed code looks like, since it's not a browse-able site. I decided to just join tonight and upload a video to see for myself, but for whatever reason, the embed code region for my video is blank.


Quote:

Originally Posted by J4CKT (Post 2381439)
Also does anyone have any experience or found the definitions with putlocker media links?

Here is an example to media I have up on putlocker:

URL link:
http://www.putlocker.com/file/9267704207230C2A#

Embed Link:
<iframe src="http://www.putlocker.com/embed/9267704207230C2A" width="600" height="360" frameborder="0" scrolling="no"></iframe>

Any help/suggestions would be greatly appreciated.

For some reason, I thought I had already released one for PutLocker and SockShare. I even remember testing them, but alas, I don't know what the heck happened there. If you can deal with the bajillion popups, it's actually pretty easy to make.

Digital Jedi 01-24-2013 06:16 AM

1 Attachment(s)
|[Friday Night Definitions]|
Yes, I know it's Thursday. No, I have no idea why I insist on calling it that. We've established I don't sleep much.

Here's a few definitions to hopefully get you through the weekend. New and updated, and collected a few from BirdOPrey. [s]Not yet added to the Master XML.[/s]

UPDATES
Mostly fixes for the https problem a lot of you were running into, and because some of the sites had updated their URL/Embed Codes.

Dailymotion
eBay
Facebook
Google Maps
Hulu
YouTube


NEW
A few requests, and a few defs made by BirdOPrey while I was away.

Alli Sports - It appears this site is making a gradual move to all YouTube hosted videos. Fortunately their URLS were distinct enough that I could add two more definitions to support that change.

WWLTV - I tweaked this one a bit to only embed videos from their videos section. Should help to prevent any conflicts with regular news pages.

NOLA - Embed using their permalinks from within the video, rather than their page URL.

Red Bull Signature Series - Another BOP-created def, tweaked a little bit, so I could save a copy on my durn server. Also expanded to include some additional video URLs.

Twitter - Requested in the Twitter BBCode thread, this one should work for everyone.

Putlocker and SockShare - Watch out for popups!

Digital Jedi 01-25-2013 04:14 AM

1 Attachment(s)
Oh yeah, I almost forgot that I wanted to replace MegaUpload badges with something. This isn't perfect, as you'll need to use the extended URL they provide with downloads that includes the name in the file. But file sharing sites are persnickety about what content they let you pull from their sites. This was the only way I could make it work. I give you:

MediaFire Badges

Please upload the attached image to your images/misc directory [s]or whatever misc directories are in each of your style folders[/s].

Attachment 143436

In addition to badges, I also made one for Direct Links to images hosted on RapidShare. No need for BBCode, and the image will be resized to no larger than 400px. It will also use your forums tborder class for some nice framing.


The Dude 01-25-2013 09:25 AM

Quote:

Originally Posted by Franciscus (Post 2392399)
Doing this, AME parses the https links but it shows the video twice, with some garbage code into the post... :erm:

I have the same issue. What did you do to sort it out? This actually happens to all embedded videos, not just from Youtube.

Example: http://www.ultimatecarpage.com/forum...ad.php?t=45563

Franciscus 01-25-2013 09:34 AM

100% OK with the last update of Digital Jedi ;)


All times are GMT. The time now is 03:25 AM.

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.02412 seconds
  • Memory Usage 1,787KB
  • 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
  • (5)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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