Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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
  #782  
Old 10-20-2007, 02:19 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know if this works with vb 3.5.3 ?
Reply With Quote
  #783  
Old 10-20-2007, 07:43 PM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not really sure bada bing..........
Reply With Quote
  #784  
Old 10-20-2007, 11:27 PM
DinarMet DinarMet is offline
 
Join Date: Feb 2006
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get Yahoo videos to show.

At first I had the Extract destination data turned off and Yahoo videos were just links.

Then I turned it on but now when I post Yahoo video links I get an empty container with Yahoo at the top.

Any help would be greatly appreciated.
Reply With Quote
  #785  
Old 10-21-2007, 08:29 PM
Johnny Utah Johnny Utah is offline
 
Join Date: Jul 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this installed on VB 3.6.8. When a user posts a link, it's showing two embedded videos of the same video. Anybody know how to fix this?

http://redtailconnect.net/forum/chew...html#post17564
Reply With Quote
  #786  
Old 10-21-2007, 08:30 PM
Johnny Utah Johnny Utah is offline
 
Join Date: Jul 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I figured it out. I had two YouTube entries in the media definitions.
Reply With Quote
  #787  
Old 10-23-2007, 09:17 AM
kindi_boy kindi_boy is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello great great add-on seriously,

but am getting this error whenever i try to post a newthread

Warning: Unknown: failed to open stream: No such file or directory in /newthread.php(266) : eval()'d code on line 1

Fatal error: Unknown: Failed opening required '/home/fabletec/public_html/vb/includes/ame_bbcode.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fabletec/public_html/vb/newthread.php(266) : eval()'d code on line 1


am not really sure what's the next step, my PHPv is 5.0.5. and using 3.6.8

very appreciated
Reply With Quote
  #788  
Old 10-24-2007, 12:53 AM
CP, CP, is offline
 
Join Date: Aug 2005
Location: UK London
Posts: 276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankgod i backed my database up! I advise everybody else to do the same also.. I appreciate the hack creator for advising members to backup their db before hand.. without that peice of advice i think my forum would have looked rather ugly.

Ok I was converting my posts to use the ame tags.. it was going good until i came across this error:

Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/kayz/public_html/forum/includes/ame_bbcode.php(192) : regexp code on line 1

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_substitute(1, &quot;=*rocky*&quot;, &quot;$exy_$cottish_AnGel vbmenu_register(\&quot;postmenu_248378\&quot;, true); urm im ok hun hw are u?&quot;, $subbed) in /home/kayz/public_html/forum/includes/ame_bbcode.php on line 192
Then i found the conflicting posts and edited them and i retried.. i then faced another similar problem again but different:

Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/kayz/public_html/forum/includes/ame_bbcode.php(192) : regexp code on line 13

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_substitute(1, &quot;=Distinct&quot;, &quot;Faheem: Respect to ya! Being a traffic warden is a tough job, look after yer self. Prizzle: What can I say abt her, well shes a sweetheart and she is a lovely person. Sidra240: Ur sweet, but u hav this hobbit of saying hunz too often in ya posts and u laugh fer no apparent reason. Iroquois Pliskin: I hav a lot of respect fer ya, ur one of the small majority of the people on the forum that speaks his mind, may Allah SWT keep ur deen strong. in /home/kayz/public_html/forum/includes/ame_bbcode.php on line 192
Now thats crazy.. so i didnt like the face that some of my posts were changed.. so i undid the ame tags through the toolbar.. i then went to see a video post and i saw that the video wasnt there but the link was converted into a text name link.. even after i had undo'ed.

So then i replaced the entire db to get back to square one.

What i have done is i have still got the hack on but disabled it.

If somebody can find a fix for this i would love to give it one last try. I am on a 3.6.8 forum.


Cheers
Reply With Quote
  #789  
Old 10-24-2007, 07:45 AM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is now acting weird. Not sure how it happened and why it happend but I am not able to use any bbcode for coding anymore. For example, if I use any bbcode tag for this below codes
Code:
<if condition="$show['largereplybutton']">
		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
	<else />
Then I received this error message:
Code:
Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxx/public_html/vshares/includes/ame_bbcode.php(192) : regexp code on line 2

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_substitute(4, &quot; &lt;if condition=\&quot;$show[\'largereplybutton\']\&quot;&gt; &lt;td class=\&quot;smallfont\&quot;&gt;&lt;a href=\&quot;newreply.php?$session[sessionurl]do=newreply&amp;amp;noquote=1&amp;amp;p=$FIRSTPOSTID\&quot; rel=\&quot;nofollow\&quot;&gt;&lt;if condition=\&quot;$show[\'closethread\']\&quot;&gt;&lt;img src=\&quot;$stylevar[imgdir_button]/reply.gif\&quot; alt=\&quot;$vbphrase[reply]\&quot; border=\&quot;0\&quot; /&gt;&lt;else /&gt;&lt;img src=\&quot;$stylevar[imgdir_button]/threadclosed.gif\&quot; alt=\&quot;$vbphrase[closed_thread]\&quot; border=\&quot;0\&quot; /&gt;&lt;/if&gt;&lt;/a&gt;&lt;/td&gt; &lt;else /&gt; &quot;, &quot;&quot;, $subbed) in /home/xxxx/public_html/vshares/includes/ame_bbcode.php on line 192
Even the error occured but the thread with bbcode thread still post in the back end.

Can anyone help me to fix this? I really hate to remove this awesome hack.
Reply With Quote
  #790  
Old 10-24-2007, 11:25 AM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me to get this to work with GodTube.com?

Here is a direct URL for a video:
http://www.godtube.com/view_video?vi...f61ae7edb98288

Here is the embed code for the same video:
Quote:
<embed src="http://godtube.com/flvplayer.swf" FlashVars="videoThumb=http://www.godtube.com/thumb/1_18825.jpg&flvPath=http://godtube.com/flvideo1/23/18825.flv" wmode="transparent" quality="high" width="330" height="270" name="flv_demo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
So far all that I'm able to produce on my forum post is a hyperlink for the video, which then opens in a new window. I tried the tests for utube and meta cafe, which both work as intended, this hack apparently just needs to be configured to work with GodTube.com for my videos to work.

Here is a demo of the problem which I'm encountering on my forums.

Any help would be appreciated!
Thanks!
Jeff
Reply With Quote
  #791  
Old 10-25-2007, 12:19 AM
CP, CP, is offline
 
Join Date: Aug 2005
Location: UK London
Posts: 276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rapidphim View Post
This mod is now acting weird. Not sure how it happened and why it happend but I am not able to use any bbcode for coding anymore. For example, if I use any bbcode tag for this below codes
Code:
<if condition="$show['largereplybutton']">
		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
	<else />
Then I received this error message:
Code:
Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxx/public_html/vshares/includes/ame_bbcode.php(192) : regexp code on line 2

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_substitute(4, &quot; &lt;if condition=\&quot;$show[\'largereplybutton\']\&quot;&gt; &lt;td class=\&quot;smallfont\&quot;&gt;&lt;a href=\&quot;newreply.php?$session[sessionurl]do=newreply&amp;amp;noquote=1&amp;amp;p=$FIRSTPOSTID\&quot; rel=\&quot;nofollow\&quot;&gt;&lt;if condition=\&quot;$show[\'closethread\']\&quot;&gt;&lt;img src=\&quot;$stylevar[imgdir_button]/reply.gif\&quot; alt=\&quot;$vbphrase[reply]\&quot; border=\&quot;0\&quot; /&gt;&lt;else /&gt;&lt;img src=\&quot;$stylevar[imgdir_button]/threadclosed.gif\&quot; alt=\&quot;$vbphrase[closed_thread]\&quot; border=\&quot;0\&quot; /&gt;&lt;/if&gt;&lt;/a&gt;&lt;/td&gt; &lt;else /&gt; &quot;, &quot;&quot;, $subbed) in /home/xxxx/public_html/vshares/includes/ame_bbcode.php on line 192
Even the error occured but the thread with bbcode thread still post in the back end.

Can anyone help me to fix this? I really hate to remove this awesome hack.
Same problem....
Reply With Quote
Reply


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 02:27 PM.


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.14319 seconds
  • Memory Usage 2,341KB
  • 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
  • (2)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