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)

Ghostt 04-02-2011 05:30 AM

sry for the maybe offtopic question but its important.
is there a mod like that AME for wordpress ?
thanks very mutch for answer

Wonksta 04-02-2011 08:48 AM

Anyway to make the embedding of YouTube be more widescreen like the widescreen on YouTube?

BirdOPrey5 04-02-2011 01:18 PM

In the AME CP -> Settings there are several default width and heights... "Posting Zone" deals with posts.

I set my width to: 640 and height to: 385, I believe that matches the widescreen youtube settings.

Wonksta 04-02-2011 02:05 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2180093)
In the AME CP -> Settings there are several default width and heights... "Posting Zone" deals with posts.

I set my width to: 640 and height to: 385, I believe that matches the widescreen youtube settings.

Thanks champ!

snakes1100 04-10-2011 05:35 PM

Youtu.be Addon:

Title = Your Choice
Description = Your Choice
Unique Key = Your Choice
Display Order = Your Choice
Active = Yes
Contain = Yes

Regex
Code:

http:\/\/youtu\.be\/([A-Za-z0-9-_]+)
Replacement
Code:

<object width="$ameinfo[width]" height="$ameinfo[height]">
<param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]" height="$ameinfo[height]" wmode="transparent"></embed></object>

Noted Correction:
New Code - param name="movie" <-- Double quotes
Old Code - param name=''movie'' <-- Two single quotes

BirdOPrey5 04-10-2011 05:59 PM

Unfortunately with the new shorter youtube URLs I can no longer check if embedding is allowed anymore. If I attempt to "validate" it always fails with a "302" error- must be from youtu.be forwarding to youtube.com. If anyone knows how to get validation working on the shorter URLs please let me know.

joeychgo 04-12-2011 08:45 PM

This doesnt work properly for me on 3.8.7


Quote:

Originally Posted by snakes1100 (Post 2183068)
Youtu.be Addon:

Title = Your Choice
Description = Your Choice
Unique Key = Your Choice
Display Order = Your Choice
Active = Yes
Contain = Yes

Regex
Code:

http:\/\/youtu\.be\/([A-Za-z0-9-_]+)
Replacement
Code:

<object width="$ameinfo[width]" height="$ameinfo[height]">
<param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]" height="$ameinfo[height]" wmode="transparent"></embed></object>

Noted Correction:
New Code - param name="movie" <-- Double quotes
Old Code - param name=''movie'' <-- Two single quotes


viper357 04-15-2011 06:25 AM

Quote:

Originally Posted by joeychgo (Post 2183970)
This doesnt work properly for me on 3.8.7

Doesn't work for me either on 3.8.5, however the couple of video's that I have come across with the new youtu.be thingy are still youtube.com in the address bar so I just use the link from the address bar and it works fine.

BirdOPrey5 04-16-2011 09:57 PM

Here's what I'm using for the new short youtube URLs...

Probably could be more efficient but it works for me. Even does a custom start time if you append #t=90 to the URL where 90 is the start time in seconds.

Import into your AME Control Panel.

EDIT- Updated file, now in post #1495

fly 04-16-2011 10:02 PM

I'm pretty sure that whoever invented regex did it because he hated people.

Thanks BirdOPrey5!!!


All times are GMT. The time now is 05:28 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.02664 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (3)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