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)

Makc666 07-07-2009 10:27 AM

Quote:

Originally Posted by DemoVFW (Post 1818155)
Had the same problem. You need to set "Extract destination data" to YES in vb cpanel-> AME-> Settings. I'm able to embed daily motion now.

Daily Motion

Regular expression by default:
PHP Code:

http://[w\.]*dailymotion\.[com|alicet\.]+/[\w/\-%]*video/[\w\-]+ 

Extract destination data by default:
PHP Code:

http://[w\.]*dailymotion\[/url].[com|alicet\.]+/swf/([\w]*) 

In any way [com|alicet\.]must be [com|alice\.it]

Also the only way I was able to make Daily Motion working is to set:
  • Regular expression to:
    PHP Code:

    http://[w\.]*dailymotion\.[com|alicet\.]+/[\w/\-%]*video/([\w\-]+) 

  • And set off "Extract destination data".
  • And remove "Embedding Regexp"

The Geek 07-07-2009 11:13 AM

Quote:

Originally Posted by daihlo (Post 1843670)
I get this message

Parse error: syntax error, unexpected '~' in /home/wwwcage/public_html/forum/includes/ame_bbcode.php(242) : regexp code on line 1

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_match(&quot;http://www.cagefilm.com/video/1475/M...king-4-MMA-DVD&quot;, &quot;&quot;, 1, &quot;~swf\?config=http://www\.cagefilm\.com/nuevo/econfig\.php\?key=([\w]*?)\\&quot;~sim&quot;, $ameinfo) in /home/wwwcage/public_html/forum/includes/ame_bbcode.php on line 242


Any ideas?

thanks - daihlo

Are you using the file cache? That doesn't look right at all.

The Geek 07-07-2009 11:15 AM

Quote:

Originally Posted by TMH63 (Post 1843698)
Anyone??

I'm not sure I follow what you are trying to do. If the definition is set to extract info from the destination page, the name of the page will appear in the media title. Otherwise the definition title appears.

The Geek 07-07-2009 11:17 AM

Quote:

Originally Posted by MonkYZ (Post 1843792)
Thanks again. Unfortunatelly i think there is a small letter missing (and i can't find where that is. Here is the title i get for the videos (i think the letter "R" is missing from [/COLOR]):

You are pasting a link with color and font encoding into the IE WYSIWYG editor. Take a 'clean' URL (i.e. copy from the address bar of the destination page).

The Geek 07-07-2009 11:40 AM

1 Attachment(s)
Quote:

Originally Posted by abdulbasitsaeed (Post 1844301)
Is it possible to update the definitions for Scribd documents? They do not display properly with this mod.

Here is scribd, though I only tested a couple permutations of the URLs.

BTw: Extraction must be on to obtain the embed key.

HTHs

TMH63 07-07-2009 11:52 AM

Quote:

Originally Posted by The Geek (Post 1844438)
I'm not sure I follow what you are trying to do. If the definition is set to extract info from the destination page, the name of the page will appear in the media title. Otherwise the definition title appears.


I guess that I was under the assumption that one could change the title name that comes up as the definition of the video. Like X video @ YOURWEBSITENAME or whatever you wanted to put there.

The Geek 07-07-2009 12:01 PM

Guess you could edit the ame_container template and change:

<a href="$ameinfo[url]" title="$ameinfo[title]" target="_blank">$ameinfo[title]</a>

to

<a href="$ameinfo[url]" title="$ameinfo[title] @ YOURSITENAME" target="_blank">$ameinfo[title] @ YOURSITENAME</a>

The Geek 07-07-2009 02:13 PM

1 Attachment(s)
Quote:

Originally Posted by Makc666 (Post 1844418)
Daily Motion

Regular expression by default:
PHP Code:

http://[w\.]*dailymotion\.[com|alicet\.]+/[\w/\-%]*video/[\w\-]+ 

Extract destination data by default:
PHP Code:

http://[w\.]*dailymotion\[/url].[com|alicet\.]+/swf/([\w]*) 

In any way [com|alicet\.]must be [com|alice\.it]

Also the only way I was able to make Daily Motion working is to set:
  • Regular expression to:
    PHP Code:

    http://[w\.]*dailymotion\.[com|alicet\.]+/[\w/\-%]*video/([\w\-]+) 

  • And set off "Extract destination data".
  • And remove "Embedding Regexp"

As per my other post, I think you were over thinking this one (at least from the examples I saw).

Dailymotions URL structure is

domain.suffix/various/paths/depending/on/things/name_of_video

In the embed code, you see a couple of references:

http://www.dailymotion.com/swf/name_of_video

and

http://www.dailymotion.com/swf/name_of_video

So, all we need is the name_of_video which can be taken from the URL and put into the replace code.

See attached definition

Makc666 07-07-2009 02:30 PM

Quote:

Originally Posted by The Geek (Post 1844510)
As per my other post, I think you were over thinking this one (at least from the examples I saw).

Dailymotions URL structure is

domain.suffix/various/paths/depending/on/things/name_of_video

In the embed code, you see a couple of references:

http://www.dailymotion.com/swf/name_of_video

and

http://www.dailymotion.com/swf/name_of_video

So, all we need is the name_of_video which can be taken from the URL and put into the replace code.

See attached definition

The Geek, thanks for reply.

I understand that I can use only Regular expression .

This is OK for me.

I am trying to understand why Embedding Regexp doesn't work for me on that Daily Motion?

As I understand AME does this one:
  1. Finds an URL of Daily Motion in post using Regular expression for example the URL:
    http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creation
  2. Then if Embedding Regexp is filled
  3. AME takes that URL from post
  4. Extracts HTML Source of that page it got from the URL
  5. Using Embedding Regexp AME tries to find some "text" for that Regexp from that HTML Source
  6. If AME finds, then it uses it to build Replacement

Am I right?

The Geek 07-07-2009 02:43 PM

You only use the Embedding Regexp if the data needed to embed cannot be found within the URL itself.

For example:

if the embed code for www.myvideo.com/watch.php?v=123456 looks like:
<embed src="http://www.myvideo.com/watch.php?v=abcdef" ... />

In this instance, the URL doesnt 'tie up' to the embed HTML so AME needs to go to www.myvideo.com/watch.php?v=123456 and find the abcdef part. With the Embedding Regexp, AME pulls down the page and runs something like:

http://www\.myvideo\.com/watch\.php\?v=(\w+)

Which grabs the abcdef part so the video will properly embed.

In the event that the URL contains the information you need (i.e. the dailymotion definition I just posted) then this process is redundant and a time waster. Furthermore, the Embedding Regexp is generally different than the regexp used to match the URL in the first place.

Hope this helps.


All times are GMT. The time now is 05:37 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.03842 seconds
  • Memory Usage 1,772KB
  • 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
  • (6)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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