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)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

newsoftw 07-07-2009 06:25 AM

Quote:

Originally Posted by The Geek (Post 1843647)
I got a trojan warning from my virus scanner with the full page ads that appear going to your site.

I then tested the you tube link which works perfect with a default installation of vb3.8.3 and AME 2.5.5. I didn't test the meta cafe as that is a custom definition so you will need to speak to the author.

If its an old post, try editing and saving it again. If it isnt a default definiton, you may want to reinstall.

HTHs!

i edit all old post but not show video and even i removed AME and reinstall again but dtill same and video should not display....just show only links...


please help on that issue

Thanks in ADVNS

Brathamike 07-07-2009 07:16 AM

How do i set this up with a local server?

The Geek 07-07-2009 09:02 AM

Quote:

Originally Posted by Brathamike (Post 1844360)
How do i set this up with a local server?

Try looking at DJ's add on definitions. I think he has some definitions for local content.

The Geek 07-07-2009 09:05 AM

Quote:

Originally Posted by newsoftw (Post 1844336)
i edit all old post but not show video and even i removed AME and reinstall again but dtill same and video should not display....just show only links...


please help on that issue

Thanks in ADVNS

Now you have another mod that prevents unregistered users from seeing links which means I can't even look at the link.

If its a fresh install of AME using default definitions and it isn't working, then it will be a conflict. The most common is a mod that changes URLs. If you are using vbSEO, make sure it isn't set to track outbound links.

The Geek 07-07-2009 09:10 AM

Quote:

Originally Posted by aperio (Post 1844243)
Mod is also not working for me. Mine is a fresh install of vbulletin version 3.8.3 and i have triple checked to ensure all files are in place and that I have the settings as they should be... links are simply links (youtube videos, embedding allowed) whether new posts or old ones edited. The videos are simply not appearing. Just a heads-up that it's not an isolated incident... great looking mod though, so I'll try to be patient :)

Most likely a conflict then. It helps if you can link to a page with the URLs not working though :)

The Geek 07-07-2009 09:10 AM

Quote:

Originally Posted by jkcerda (Post 1844169)
disabled for now, same DB error, over and over and over, not sure where the conflict is, DB errors went away when I disabled it, kind of sad, hack has some nice features, I am using Yahoo for my web server host, not sure if this makes a difference at all.

what is the error?

Makc666 07-07-2009 10:30 AM

Can some one explain me, please, and may be add to FAQ, what it of these options do?
  1. Regular expression
  2. Replacement
  3. Extract destination data
  4. Embedding Regexp
  5. Validation

I see that some of them search code in posts, some search in remote pages, some checks.

But there must be some order what is used first and what it second.
Also, for example, when I use "Embedding Regexp" who the text is searched - throw every line?
Thanks

The Geek 07-07-2009 11:06 AM

Regular Expression:
The regular expression is a pattern that matches the contents of a URL tag. For example the following regexp:

PHP Code:

[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\?v=([A-Z0-9._%-]*)[&\w;=\+_\-]* 

Matches all forms of youtube.com URLs in a post. If there is a match, AME knows to embed media.

Replacement:
This is the embed code that AME actually inserts into the post instead of the link. Technically speaking, it is what appears in the AME templates that are inserted into the post instead of the URL that the user entered.

Extract definition data:
This is an option that tells AME to go fetch the destination page when a match is made when the post is being saved. AME will then extract the page title. In some complex definitions where the URL doesnt contain enough information for the embedding to occur, AME may have to get the destination page to get the information required to actually embed the code.

Embedding Regexp:
In the case where the URL doesn't contain enough information for the embedding to occur, AME will need to fetch the destination page and extract the information it does need. In this case, this is the regular expression used to return the information AME needs.

Validation:
Some sites have external embedding disabled for some of its media (i.e. youtube). If extract definition data is on and there is a validation RegExp, AME will fetch the destination page and run the regexp on it (the regexp generally tries to match the text found in the destination sites Embed HTML textbox). If it finds what it is looking for, AME embeds, otherwise it asserts that the media cannot be externally embedded and as such, AME simply presents a link instead of a broken media box.

HTHs

Brathamike 07-07-2009 01:23 PM

Wow THANKS GEEK FOR NOT RESPONDING TO ME

Unistalled this product from my site!!!

Support sucks for this product

Makc666 07-07-2009 01:24 PM

Quote:

Originally Posted by The Geek (Post 1844433)
Regular Expression:
The regular expression is a pattern that matches the contents of a URL tag.

Embedding Regexp:
In the case where the URL doesn't contain enough information for the embedding to occur, AME will need to fetch the destination page and extract the information it does need. In this case, this is the regular expression used to return the information AME needs.

I had a problem with these one two.

For example my post https://vborg.vbsupport.ru/showthread.php?p=1844418.

As you can see by default there were both options filled.

But in such case it doesn't work.

I tried to filled them both with:

PHP Code:

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

I even tried to fill them both with:
PHP Code:

http://www.dailymotion.com/video/([\w\-]+) 

So, for example the URL:
http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creation

If we open it in Firefox and look into HTML Source we can find there OUR full URL:
http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creation
two times:
  1. HTML Code:

    <input type="text" readonly="readonly" onclick="this.select();" value="http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creation" class="text embed_input" />
  2. HTML Code:

    <input type="text" readonly="readonly" onclick="this.select();" value="&lt;div&gt;&lt;object width=&quot;480&quot; height=&quot;291&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.dailymotion.com/swf/x9m63m_canarias-timelapse_creation&amp;related=0&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.dailymotion.com/swf/x9m63m_canarias-timelapse_creation&amp;related=0&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;480&quot; height=&quot;291&quot; allowFullScreen=&quot;true&quot; allowScriptAccess=&quot;always&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;b&gt;&lt;a href=&quot;http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creation&quot;&gt;CANARIAS TIMELAPSE&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;Загружено  &lt;a href=&quot;http://www.dailymotion.com/kromacan&quot;&gt;kromacan&lt;/a&gt;. - &lt;a href=&quot;http://www.dailymotion.com/ru/channel/creation/featured/1&quot;&gt;Arts and animation videos.&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;" class="text embed_input" id="video_player_embed_code_text" />

But as I have said when I set both "Regular Expression" and "Embedding Regexp" to
PHP Code:

http://www.dailymotion.com/video/([\w\-]+) 

it doesn't work...

I can't understand why...

In other words...

Example #1
  • Regular expression
    PHP Code:

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

  • Extract destination data -> Yes
  • Embedding Regexp -> Empty

Works.
Example #2
  • Regular expression
    PHP Code:

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

  • Extract destination data -> Yes
  • Embedding Regexp
    PHP Code:

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


Doesn't work
  1. Why it doesn't work in second one?
  2. If I want to use Embedding Regexp how I has to fill it in this case?

Thanks


All times are GMT. The time now is 09:32 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.02775 seconds
  • Memory Usage 1,776KB
  • 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_php_printable
  • (6)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