vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages (https://vborg.vbsupport.ru/showthread.php?t=189267)

The Geek 08-26-2008 10:00 PM

AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages
 
From the creators of French and Toast comes a sweet and sticky enchanement to the New York Times best-seller: AME - Auto Media Embedding

AME 2.0 - The Embedder Strikes Back!

AME has won Mod of the Month for Spetember 08. Thanks!

Note that 2.5 Gold has been released. Click Here.

Discussions for AME 2.5 RC 1 start here

AME 2.0 is the next version of the "Mod of the Month" winning media embedder that:
  • Allows user to simply 'paste' in a URL (i.e. a youtube link) without needing to know any special tags. However instead of displaying just the URL, it will show the media within the post
  • 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. AME radically reduces overhead and speeds up 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)
  • 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! At time of typing this, there are over 150 media sites that have been contributed by vBulletin.org members
  • 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, blogs, comments, visitor and social group messages 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, blog, comment, visitor and social group message
  • 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 bloody 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
  • Supports embedding in vbBlog, Visitor Messages and Social Groups.
  • Can be disabled in one or more of the following sections: Posts, vbBlog, Visitor Messages and/or Social Groups
Apart from the additional areas of support around vbBlog, Visitor Messages and Social Groups, little has changed about AME since version 1.0 released over a year ago. I cleaned up a few minor bugs, trimmed and updated the default definitions.

Which sites are supported?

At time of counting this, there are about 170 sites supported. But I have only included a few common standards as default (yahoo, youtube, myspace, google and Amazon). Why only these? AME was designed with its own import and export system that enables users to create or modify definitions and share them with the community. This keeps the system lightweight, customisable and saves us all from having to upgrade every time a media site changes their URL structure or if I add another site.

Check out the 'add ons' section of this post below to see availible add-ons.



Installation/Upgrade
  • Upload the contents of the forums folder into your forums directory and import the product-ame.xml file into your product manager (if upgrading, choose 'yes' to overwrite previous installation).
  • 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.
Big thanks goes out to all those in the community that have supported this mod. Especially Digital Jedi Who has created about 155 definitions for this system alone! :)

Change Log


2.0.2 - fixed added slashes in quote blocks (DoH!), vm advanced error and incrimented product version. You need to replace include/ame_bb_code.php and re-import the product-ame.xml to upgrade
2.0.1 - fixed missing backslashes in code blocks

2.5 Pre-Release information

Attached to this post is pre-release of version 2.5

2.5 is a pretty major upgrade from the 2.0 series and adds the following functionality to 2.0:
  • New in Beta 3 - Validation ability. This will help prevent media being embedded that can not be embedded (i.e. youtube videos that the author has stipulated can not be shown off of youtube). This option requires the extraction option to be turned on and a valid validation regexp. I have included one in the default youtube version. When a video on you tube gets embedded, but the author doesnt allow embedding, a link (with icon) is shown instead.
  • Ability to prevent non authorised usergroups from viewing (see Readme file in zip for more info)
  • Usergroup permissions (edit usergroup to adjust edit/view permissions)
  • Template driven system - uses templates now instead of 1 master replacement (see Readme file in zip for more info)
  • Signatures supported
  • Different sizes and template configurations for each supported zone (posts, blogs, groups, visitor messages and signatures)
  • A couple new hooks (Mainly to support a future add on for AME media in profiles)
  • Notfication system (similar to vB's to check for errors)
  • Definition keys for easier updating of definitions and to use in templates
  • File caching system which radically reduces processing
  • And more that I cant think of off the top of my head!
Note that while previous definitions will work with the new system, they will not be sizeable by zone. Since DJ helped with the private beta testing, I am sure he will be releasing 2.5 versions of his definitions soon.

Please note that 2.5 is a pre-release so there will be issues. If you want more stability, use 2.x until this version becomes gold :) FWIW: The only items currently outstanding are to add some missing admincp help. The rest is working as intended as far as I can tell :)

nJoy

The Geek 08-27-2008 12:18 PM

FAQs
I will add to this as points arise

Will I lose my old custom definitions upgrading from 1.x?
Nope, but to be on the safe side, you may want to make a backup of them before you upgrade.

Can I use my old definitions or some of the existing definitions for the 1.x series?
Yup. They are all compatable

Will this run on vb3.6x?

I haven't tested it, but there should be no reason why not. Of course visitor and social messaging wont be supported.


Troubleshooting

I will add to this as issues arise


I just installed and viedos aren't working
  • Check the settings to ensure new entries arent disabled (admincp->ame->settings)
  • If you were expecting to install AME and all your old posts would be AMEfied, remember that AME will not automatically change your old URL tags. Systems that do this are VERY server intensive. AME checks for matches at the time a post, blog, comment or message is saved (creating or editing). If you want AME to embed old posts, check out the Tools section of the admincp (admincp->AME CP->Tools).
When I post a media URL, I get a 'double' version
  • You are most likely using multiple versions of the same definition. This can occur if you import a similar definition more than once. The solution is to delete one of them.

Mosh 08-27-2008 12:21 PM

Excellent, I am glad you are back on the hacking scene Geek :)

I have always quite liked your hacks :)

The Geek 08-27-2008 12:33 PM

Thanks Mosh :) Not really back in the modding scene, just on Vacation and thought I would update this little baby as I wanted the functionality in Blogs, groups and visitor messages too :D

Hope you nJoy it :)

entertain 08-27-2008 12:43 PM

Nice work, Geek. :)

Are there many changes from the old version for vB3.6?

Or only the compatibility with blogs, ...?


cu
entertain

The Geek 08-27-2008 12:45 PM

Quote:

Originally Posted by entertain (Post 1608176)
Nice work, Geek. :)

Are there many changes from the old version for vB3.6?

Or only the compatibility with blogs, ...?


cu
entertain

Not really many changes apart from adding support for vbBlogs, visitor messages and social group messages.

I updated a few of the default definitions and added some minor enchanements to the admincp. Also fixed a couple of very minor bugs.

Other than that, its pretty much the same lightweight, easy to use beast it was before :D

Mosh 08-27-2008 12:47 PM

Quote:

Originally Posted by The Geek (Post 1608172)
Thanks Mosh :) Not really back in the modding scene, just on Vacation and thought I would update this little baby as I wanted the functionality in Blogs, groups and visitor messages too :D

Hope you nJoy it :)

I shall :)

It was nice of you to update the hack though :)

I take it the definitions from the 3.6 version will work fine with this version too?

Subah 08-27-2008 12:55 PM

Thanks a lot for the new version :)

The Geek 08-27-2008 12:58 PM

Quote:

Originally Posted by Mosh (Post 1608181)
I take it the definitions from the 3.6 version will work fine with this version too?

Yup, should do without a problem.

Subah 08-27-2008 01:02 PM

If i need to upgrade all i need is overwrite the files ? or i need to delete the old file for the 1.2 ?
and will this addon work with the new version ?
https://vborg.vbsupport.ru/showthread.php?t=175378

The Geek 08-27-2008 01:08 PM

Just overwrite the files contained in the zip, import the product-ame.xml (choosing to overwrite) and that should be all you need to do.

All of the previous add on XML's (like the big one DJ did in the link above) should all work fine. If you have additional definitions already installed, they too should be fine though you may want to use the export option to back them all up first (older versions used to overwrite previous definitions, this one shouldnt).

HTHs

Sph1nX 08-27-2008 01:43 PM

great Addon, but having problems with it :/
when installed, it replaces a backslash in codetags with nothing
example: [.code]C:\[./code] shows only C: without \

Subah 08-27-2008 01:54 PM

There is a problem with the arabic title in the youtube how can i fix it ?

The Geek 08-27-2008 01:59 PM

Whats the problem Subah?

The Geek 08-27-2008 02:15 PM

Quote:

Originally Posted by Sph1nX (Post 1608217)
great Addon, but having problems with it :/
when installed, it replaces a backslash in codetags with nothing
example: [.code]C:\[./code] shows only C: without \

Sorry Sphinx... should be sorted now. Just download the latest package and replace your include/ame_bbcode.php file :)

Megatr0n 08-27-2008 02:43 PM

Not working for me.

I uploaded all the files, imported the product and it doesn't work.

Initially I thought I hadn't configured which, usergroups can use this hack but there's only options to exclude/exempt.

Any ideas?

Subah 08-27-2008 02:56 PM

Quote:

Originally Posted by The Geek (Post 1608227)
Whats the problem Subah?

Try to see the orignal title of this video and add it by this mod you will fine big diffrent in the title , it is apper in un understand fonts !!
http://www.youtube.com/watch?v=fbE3-40l0oM

waza 08-27-2008 03:12 PM

great too see something again from the geek, always vere good mods.

The Geek 08-27-2008 03:27 PM

I see what you mean subah. I had added support for special characters (i.e. ?) but will need to look into how to support very special characters :D You can however simply turn off the extraction setting until then :)

Megatron - Is it just not linking URLs or is there another problem? Remember that it doesnt link previous posts unless you use the rebuild posts tool, otherwise it will only work on new posts. If you are making new posts and it isnt linking can you give me an example of a URL you are trying that isnt working? Also, do you have other embedding mods that could be interfering?

mykkal 08-27-2008 03:27 PM

has anyone thought of adding code to make AME work with signatures?
I see people using video links in thier sigs all the time.

Can this be done?

The Geek 08-27-2008 03:32 PM

Quote:

Originally Posted by mykkal (Post 1608275)
has anyone thought of adding code to make AME work with signatures?
I see people using video links in thier sigs all the time.

Can this be done?

It was fairly easy to add the additional areas of functionality with the only time consuming areas centred around adding the admin toggles and rebuilding tools. So maybe i'll check into it if there is enough support. I was actually putting together a small add on that allows you to show a media link in user profiles through the AME system. If I have time after that Ill check into it :)

mykkal 08-27-2008 03:43 PM

Quote:

Originally Posted by The Geek (Post 1608279)
It was fairly easy to add the additional areas of functionality with the only time consuming areas centred around adding the admin toggles and rebuilding tools. So maybe i'll check into it if there is enough support. I was actually putting together a small add on that allows you to show a media link in user profiles through the AME system. If I have time after that Ill check into it :)


Awesome, I was thinking that the mod will absolutely improve the AME add to be much stronger then all others... Besides signatures are more visible right?

Last question....would it be possible to modify the 3.6.X version as well? I can't upgrade as i've modified my version way too much (www.mymodeltalk.com). i intergrated it with a social networking script

bashy 08-27-2008 03:45 PM

Hi Geek, excellent hack m8, glad to see ya still producing great work :)

voter 08-27-2008 03:47 PM

Any idea how to bring this to work with vbseo?

Or how could one chek any logs, why the replacement not happening.

The Geek 08-27-2008 04:01 PM

Quote:

Originally Posted by mykkal (Post 1608283)
Awesome, I was thinking that the mod will absolutely improve the AME add to be much stronger then all others... Besides signatures are more visible right?

Last question....would it be possible to modify the 3.6.X version as well? I can't upgrade as i've modified my version way too much (www.mymodeltalk.com). i intergrated it with a social networking script

I suppose its because the videos would be massive in a signature or require a resize (which Im doing for the profile add-on, but not sure about as a default option).

Anyhoo, no real straight forward way to upgrade. Suppose you can check out the added hooks and see if you could tweak it :)

Quote:

Originally Posted by voter (Post 1608288)
Any idea how to bring this to work with vbseo?

Or how could one chek any logs, why the replacement not happening.

It works with vbSEO (at least on my site). Are they happening on new posts and if not, can you provide a link that you have been trying? Also do you have another media type hack that could be conflicting?

mykkal 08-27-2008 04:01 PM

It works with VBSEO on 3.6.X.

Contact vbseo support and see what the conflict is. They have great support my friend.

gothicuser 08-27-2008 04:04 PM

You've done it again, brilliant.
Absolutely wonderful to see you back here Sam, hope you are keeping well my friend :)

mykkal 08-27-2008 04:14 PM

I'm thinking youtube videos are a good size but I have seen smaller.

http://www.popeater.com/article/cult...ry-dies/144546

Look at the videos on this page (my favorite movie)

The Geek 08-27-2008 04:25 PM

Thats very dooable with AME, the problem is in having some sections one size and other sections other sizes. Like I mentioned, I have a workaround for this, but don't think I would be happy putting the workaround into the core product. Instead I would add additional fields to define sizes based on section of the site. I just don't know when I would get to it :D

- Hey Goth, Bashy, et. all :D /wave

Megatr0n 08-27-2008 05:02 PM

Quote:

Originally Posted by The Geek (Post 1608274)
I see what you mean subah. I had added support for special characters (i.e. ?) but will need to look into how to support very special characters :D You can however simply turn off the extraction setting until then :)

Megatron - Is it just not linking URLs or is there another problem? Remember that it doesnt link previous posts unless you use the rebuild posts tool, otherwise it will only work on new posts. If you are making new posts and it isnt linking can you give me an example of a URL you are trying that isnt working? Also, do you have other embedding mods that could be interfering?

It isn't linking the URLs. I was testing it on a new post not an old one.

Here is the exact URL: Testing

I do have this hack installed: www.vbyes.com

I disabled it and it still doesn't make a difference.

Digital Jedi 08-27-2008 05:47 PM

You had Disable New Items set to Yes Megatr0n. Take a look now. ;)

Digital Jedi 08-27-2008 05:55 PM

Oh, did I mention this is verily awesome?

yahoooh 08-27-2008 07:21 PM

does it include vblog ?

yahoooh 08-27-2008 07:27 PM

ok i get the answer , installed

Subah 08-27-2008 07:52 PM

Quote:

Originally Posted by The Geek (Post 1608274)
I see what you mean subah. I had added support for special characters (i.e. ?) but will need to look into how to support very special characters :D You can however simply turn off the extraction setting until then :)

How can i turn off the extraction setting ? until then ;)

iogames 08-27-2008 07:58 PM

This is one of the hacks I love the most! but before I post I read the thread and couldn't find direct answer:

Are you going to upgrade the one for 3.6x or can we install this on 3.6x or your vacations just covers 3.7x?

Jamesmaps 08-27-2008 07:59 PM

Woooo this is awesome

Thanks a lot =)

Digital Jedi 08-27-2008 08:21 PM

There's a global option in Settings, but you can do individual sites by turning it off inside each definition.

Hornstar 08-27-2008 08:41 PM

So awesome to see this updated. Thanks a lot Geek :)

The Geek 08-27-2008 08:43 PM

Quote:

Originally Posted by iogames (Post 1608445)
This is one of the hacks I love the most! but before I post I read the thread and couldn't find direct answer:

Are you going to upgrade the one for 3.6x or can we install this on 3.6x or your vacations just covers 3.7x?

Thanks IO :)

To be honest, I havent tested it on a 3.6x system, however there should be no reason that it wouldnt work. In fact I added a couple of admincp tools that can be run when you do upgrade to 3.7. (a couple of indexes that obviously wont be added if you install this on 3.6x).

So... while I havent tested it, I built it so it should be compatable with 3.6x

nJoy


All times are GMT. The time now is 12:54 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.02175 seconds
  • Memory Usage 1,847KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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