Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) Details »»
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...)
Version: 1.2.0, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 06-27-2007 Last Update: 07-12-2007 Installs: 1245
DB Changes Uses Plugins
Additional Files  
No support by the author.

From the inventors of Swiss Cheese and the Egg comes AME - The Automatic Media Embedding System.

Note that Version 2.0.0 can be found here

AME is derived from GAL 6 base code but instead of linking keywords, it converts URLs that users paste or enter in their posts into inline embedded video streams.

Big credit goes out to mfyvie for the original concept that jazzed me up enough to lift code that I have been working on to radically improve his fresh idea. Though the same goal, I have taken a totally different approach to his initial release. This mod is 100% steaming fresh code straight from the Geeks oven of love.

First... the overview

AME scans new and edited posts for pre-defined patterns of URLs (i.e. youtube's). If it finds a match, it swaps the url tag for an ame tag.
When a post get parsed for bbcode and an ame tag is found, instead of hammering away at the post with umpteen bbcodes, AME quietly figures out which pre-defined embedding should be placed there and... viola', you have a pretty little embedded video like this:

Attachment 66927

This is significantly faster, has much lower overhead and is much easier to manage than loads of bbcodes or a than scanning every single post as the user views it to see if there are any conversions that need to be made.

Now for the bells and whistles

AME:
  • is lightweight as it does all of her chores without the overhead of having 1 bbcode per pattern or trying to parse a post every single time it gets displayed with a bunch of patterns. This radically reduces overhead and speeds up the processing. The only time ame will kick in is after creating a new post or after editing an existing one (or if an ame tag is found in a post)
  • is extensible. She allows you to add, edit, delete, import and export patterns. That way you can decide which services to support, how they should look and then share them with others!
  • can extract the title (requires your server to allow url wrappers with fetch_contents)
  • can extract embed code from sites whose URLs do not contain sufficient information to embed the video
  • can rebuild your old posts to convert your 'other' mediaish tags into URL tags.
  • can rebuild your old posts to convert URL tags into ame tags where needed
  • can convert her codes BACK to url codes so you're not stuffed with a bunch of dead tags if you uninstall!
  • won't uglify your site by having videos appear in quotes, php, code or html blocks (blech!)
  • can be globally disabled
  • can be excluded from forums
  • can exclude usergroups
  • can be toggled on/off per post
  • would cook dinner for you if she had arms
  • can wrap the output in a 'container' with original URL
  • has a super comprehensive admincp help system. Yes, I actually took the time to add all the info you need into vB's admincp help system. If you ask a silly question in this thread that is addressed in the help system, you will be taunted.
  • is fully phrased
  • has hooks around integral operations so you can extend it

Add ons

AME comes configured with YouTube, Myspacetv, Google Video, Bolt, iFilm, Yahoo, Dailymotion, Amazon and MetaCafe Support built in. Since the amount of providers are always changing and most sites will only need a particular amount, AME has been designed with an import and export system to allow members to easily share formats with one another. In fact, the second post of this thread is updated periodically to relflect those add ons. Currently there are over 12 more additional formats contributed by AME users. Click here to see them.

Installation
  • Upload the contents of the forums folder into your forums directory and import the product.xml file into your product manager.
  • After installation, make sure that the system is on (admincp->AME CP->Settings)
  • Then you may want to try to rebuild old URLs via the tools option.

Troubleshooting

See this post on troubleshooting

A note about support and such

I have my plate pretty full with taking care of my commercial mods and the support that comes with them. Saying that, I will help when I can - but to be honest, I have ensured that there should be little to no support needed on this mod as it is very much self contained.
Please do not PM or post asking me to give you regexp's to support additional media streams. I built the system so that you can add your own providers as well as the ability to import and export them. If you still need a pattern but are not great with regular expressions (who is?) then I suggest getting RegExpBuddy. Although I am not expert at regular expressions, I did a quick start tutorial on AME regexps here if you want to check it out. I don't mind you guys asking amongst each other for these things, but just note that I will most likely not respond to the requests.

I will reserve the first couple of posts in this thread to periodically add user contributed patterns to import and for additional information (I hate mega long first post's in the release section). So check there for up to date information.

nJoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #512  
Old 08-06-2007, 03:46 PM
cynthetiq's Avatar
cynthetiq cynthetiq is offline
 
Join Date: Jul 2005
Location: NYC
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it and it works wonderfully.... except when posting code/quotes:

Quote:
Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.ember/rocesfam/belowdelancey.com/forum/includes/ame_bbcode.php(192) : regexp code on line 14

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_substitute(1, &quot;&quot;, &quot; Admin Log In As User version 2.1 FOR UPGRADE AND FRESH INSTALLATIONS! 1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite \&quot;YES\&quot; (admincp -&gt; Plugin System -&gt; Manage Products -&gt; [Add/Import Product]) 2) Do the template edits in header: find: -------------------------------------------------------------------- &lt;!-- logo --&gt; -------------------------------------------------------------------- BEFORE place this: -------------------------------------------------------------------- &lt;!-- Start Admin Log In As User --&gt; &lt;if condition=\&quot;$_REQUEST[\'admin_log_in_as_user\'] OR $_COOKIE[COOKIE_PREFIX . \'admin_log_in_as_user\']\&quot;&gt; &lt;div align=\&quot;center\&quot; style=\&quot;color: red; background-color: white; border: 1px solid black; padding:2px\&quot;&gt;&lt;a href=\&quot;$vboptions[forumhome].php?$session[ in /home/.ember/rocesfam/belowdelancey.com/forum/includes/ame_bbcode.php on line 192
what I was trying to post was the instructions.txt of Admin login as user. I don't anticipate this being problematic for most things, since the community shouldn't be posting code, but I figured I'd alreat you to it.

Quote:
Admin Log In As User version 2.1

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphra se[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done
Reply With Quote
  #513  
Old 08-07-2007, 08:57 AM
harley_m harley_m is offline
 
Join Date: Feb 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I have tried to find this by searching / in the help but cannot seem to work it out.

My members love this, but they want to know how they can link to those pages without it auto converting them. I tried to argue it posts a link with the video anyway, but they claim that not every time they want to show someone a video is an embedded video desirable.

Is there some way they can post a link, without it auto embedding if they choose?

Many Thanks so anyone who knows!

Harley
Reply With Quote
  #514  
Old 08-07-2007, 01:50 PM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

iogames, yeah I guess vB.org could do that, but I doubt they will. Anyways, as far as where you send the donation to buy RegExBuddy - I really rather not get anything into my PayPal Account. Reason being I dont know how many people are willing to donate towards the fund for it. Everyone wants support for a specific site, but none of them want to chip in any money. If you gave me some money for it, then who knows how long it'll be before someone else gives money for it ... What if I never get the complete $39.95, I'd have to refund all the money back and it'll be too much of a hassle. I personally am not buying it or spending money out of my pocket because 1) I dont have the extra cash 2) I dont need AME to support any other site and 3) I am gonna be doing the RegExs for you guys for free, and I shouldn't have to spend money on getting the program.

WEBclay, yeah support for that can be added, if someone buys RegExBuddy and after The Geek explains the use of the new "Extracting RegEx" feature in AME

DiesellMinded, I've said it like a million times already ... buy a RegExBuddy License ...

harley_m, tell your users to uncheck the "Automatically embed media (requires automatic parsing of links in text to be on)." Checkbox that's under "Additional Options" when they hit "Post Reply" ... By default the box is automatically checked, they need to uncheck it if they dont the video links to be changed into the actual videos.

cynthetiq, wierd ... I get the same error when posting the following into a Post ... I guess the error has to do with posting a Quote that contains a [CODE ] inside of it ... Here's what I posted to get the error, maybe The Geek could use this for troubleshooting of this bug/error:

Code Used:
HTML Code:
[QUOTE]Admin Log In As User version 2.1

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
[CODE]<!-- logo -->[/CODE]
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
[CODE]<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->[/CODE]
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
[CODE]<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>[/CODE]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
[CODE]<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->[/CODE]
--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done[/QUOTE]
Should Display like this, but gives error instead:
Quote:
Admin Log In As User version 2.1

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
Code:
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
Code:
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
Code:
<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
Code:
<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done
Reply With Quote
  #515  
Old 08-07-2007, 04:48 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
        //$this->_mediaInfo['htitle'] = $this->hTittle();
When including a video file directly; I got a blank page on this line. Not sure if it's an issue on my server or not; but the problem appears to be in trying to open a 30mb .mpg file to see if there is a <title> tag in there.
Reply With Quote
  #516  
Old 08-07-2007, 08:30 PM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ It would help if you posted the video link and from which Video Site are you posting ...
Reply With Quote
  #517  
Old 08-08-2007, 12:40 AM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad, I meant to post this in the AnyMedia topic.
Reply With Quote
  #518  
Old 08-08-2007, 04:54 AM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed it - working GREAT with my YouTube tests. The best thing about this script: EASY to install, no config to get confused about, CLEAN layout in your msgs.
Reply With Quote
  #519  
Old 08-08-2007, 08:59 AM
tobias_t tobias_t is offline
 
Join Date: Dec 2006
Location: Berlin, Germany
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anybody tried this under 3.6.5?
Reply With Quote
  #520  
Old 08-09-2007, 12:32 PM
G3mInI G3mInI is offline
 
Join Date: Apr 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help me add the code necessary to get AOL Video to work with this mod?

I have this snippet from a posted AOL Video.

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  width="264" height="267"  id="dl_flvwidget" align="middle"><param name="movie" value="http://cdn.channel.aol.com/aolexd_widgets/aolwidget_9.swf" /><param name="FlashVars" value="settings=133329&pmms=1953601&previewImage=http://www.aolcdn.com/ch_newgd/videoplayertest.jpg&skin=139422&size=manual&autoPlay=0" /><embed src="http://cdn.channel.aol.com/aolexd_widgets/aolwidget_9.swf" quality="high" bgcolor="#ffffff" width="264" height="267" name="dl_flvwidget" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="settings=133329&pmms=1953601&previewImage=http://www.aolcdn.com/ch_newgd/videoplayertest.jpg&skin=139422&size=manual&autoPlay=0" ></embed></object>
Given all that information can someone help with figuring out how I would add this type of video to the AME mod?

Or is it not possible?
Reply With Quote
  #521  
Old 08-09-2007, 12:33 PM
cheekymonk3y cheekymonk3y is offline
 
Join Date: Jan 2007
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've been looking for this..................installed and thx

i'll be adding more videos to the mod for my site, have you made a post saying how, or should i just go digging through the code?
Reply With Quote
Reply

Thread Tools

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 01:09 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.05995 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete