vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - AME3 - Auto Media Embeding and Video Extender (https://vborg.vbsupport.ru/showthread.php?t=230707)

The Geek 12-20-2009 10:00 PM

AME3 - Auto Media Embeding and Video Extender
 
1 Attachment(s)
From the makers of Smooth and Jazz comes the singing sensation my mom has been waiting months for:

AME3. Bigger. Badder. Bestest.

NOTE ABOUT vB4.0.3: ------------------------------------------------------------

vBulletin 4.0.3 has changed the way video codes are handled and in the process, inadvertently broke AME3. I have submitted a bug report and believe that the issue will be quickly resolved. There is a manual fix you can apply for 4.0.3 here in the interim.
-----------------------------------------------------------------------------------------------

AME3 is the sequel to the multi award winning AME 1x and AME 2x systems. AME3. This time, its different.
AME3 does 3 things:
  • It allows users to simply paste URLs into their message without having to use the video bbcode or video popup box.
  • It allows you to add, edit and customise the video definitions that ship with vB4
  • It allows you to import community created definitions to extend the system in ways you otherwise couldn't.
Now you can use AME anywhere you can use video bbcode: posts, blogs, visitor messages, the CMS, etc...

Note that I am releasing this early for beta testing and general feedback. There is currently a bug in RC2, RC4 and 4.0.0 that will prevent AME from working however there is a workaround posted below.

I have written a pretty comprehensive readme and attached it seperatly to this post. I suspect both this post and the readme will get updated as AME3 becomes finalised.

The Geek 12-21-2009 06:15 PM

Change Log:

2/1/10
  • Fixed file cache bug when rebuilding
  • Prevented turning on cache with empty path setting
  • Added ability to rebuild definitions after a vB4 default restore (i.e. an update)
  • Fixed a few other bugs

17/1/10
  • Fixed bug with quotes containing quotes

BBR-APBT 12-21-2009 06:15 PM

First Install

Is it just me or is there no product file in the zip file and the AME dir is empty.

Cableguy69 12-21-2009 06:22 PM

Excellent was wondering if this would be released again.

The Geek 12-21-2009 06:25 PM

Quote:

Originally Posted by BBR-APBT (Post 1934729)
First Install


Is it just me or is there no product file in the zip file?

From the troubleshooting section of the readme:

3. Where is the product XML file?
By default, AME requests that you read the installation instructions. This is where it says “The AME3 product file is in your includes/xml folder and is called product-ame.xml.”

;)

I have a feeling I'm going to need to move that back out to the root zip :D

BBR-APBT 12-21-2009 06:30 PM

Quote:

Originally Posted by The Geek (Post 1934736)
From the troubleshooting section of the readme:

3. Where is the product XML file?
By default, AME requests that you read the installation instructions. This is where it says “The AME3 product file is in your includes/xml folder and is called product-ame.xml.”

;)

I have a feeling I'm going to need to move that back out to the root zip :D

Thanks for the fast reply I found out why the AME dir is empty too. LOL

When I save the cache settings I get the following warnings.

Code:

Warning: Missing argument 1 for AME_file_cache(), called in ame.php on line 280 defined in ame_cache on line 76
Warning: Missing argument 2 for AME_file_cache(), called in ame.php on line 280 defined in ame_cache on line 76


Also this on rebuilding urls to AME with test mode on.

Code:

Building....

    * post 21606:
      Fatal error: Class 'AME_message_prep' not found in public_html/dev/forums/includes/functions_video.php(19) : eval()'d code on line 5


The Geek 12-21-2009 06:49 PM

Quote:

Originally Posted by BBR-APBT (Post 1934738)
Thanks for the fast reply I found out why the AME dir is empty too. LOL

When I save the cache settings I get the following warnings.

Code:

Warning: Missing argument 1 for AME_file_cache(), called in ame.php on line 280 defined in ame_cache on line 76
Warning: Missing argument 2 for AME_file_cache(), called in ame.php on line 280 defined in ame_cache on line 76


Also this on rebuilding urls to AME with test mode on.

Code:

Building....

    * post 21606:
      Fatal error: Class 'AME_message_prep' not found in public_html/dev/forums/includes/functions_video.php(19) : eval()'d code on line 5


:eek: oops. Wrong file :D

Download beta 1.02 and replace your includes/ame_cache.php and includes/ame_prep.php

Sorry about that!

BBR-APBT 12-21-2009 06:56 PM

No Biggie just trying to help get it all sorted.

Thanks for the fast fix.

New error on save cache settings
Code:

Fatal error: Call to undefined function ame_fetch_providers() in public_html/dev/forums/acp/ame.php on line 216
And this on the convert post tool.
Code:

Building....

    * post 21606:
      Warning: include(/public_html/dev/forums/ame/ame_prep.php) [function.include]: failed to open stream: No such file or directory in /public_html/dev/forums/includes/ame_prep.php on line 366

      Warning: include() [function.include]: Failed opening '/public_html/dev/forums/ame/ame_prep.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/dev/forums/includes/ame_prep.php on line 366
      was:


The Geek 12-21-2009 06:59 PM

Np, I apprecite the help. Can't believe I made such a noob mistake. Lets keep this between you and I for now ok? ;)

Thanks again, let me know if you come up across anything else.

pozo 12-21-2009 07:02 PM

Very nice! Installed :)

BBR-APBT 12-21-2009 07:05 PM

Should I also note that before it was making a file called ame_prep.php in the AME dir before the file changes.

The Geek 12-21-2009 07:45 PM

Quote:

Originally Posted by BBR-APBT (Post 1934767)
Should I also note that before it was making a file called ame_prep.php in the AME dir before the file changes.

Nope. thats fine.

Mosh 12-21-2009 08:05 PM

vBulletin 4.0.0 Gold has just been released, so might want to test it on that ;)

RadioErewan 12-21-2009 08:07 PM

Where are compatible definitions?

milaszewski 12-21-2009 08:35 PM

when saving an article I get this:
Quote:

Fatal error: Call to a member function query_read_slave() on a non-object in vbulletin/includes/ame_prep.php on line 372

Varsh 12-21-2009 08:59 PM

Tagging till the bugs are sorted out. Glad you're bringing this to vB4. :)

The Geek 12-21-2009 09:32 PM

Quote:

Originally Posted by milaszewski (Post 1934827)
when saving an article I get this:

Try setting up the file cache, that should sort the problem out until I get a chance to test it against vb4 gold.

The Geek 12-21-2009 09:33 PM

Quote:

Originally Posted by RadioErewan (Post 1934806)
Where are compatible definitions?

Give it time, this just released a couple hours ago ;)

jGas 12-21-2009 09:55 PM

does this stream mp3 attachments loaded by users?

thanks

RadioErewan 12-21-2009 09:58 PM

Quote:

Originally Posted by The Geek (Post 1934883)
Give it time, this just released a couple hours ago ;)

No problem, thought it will be "backwards" compatible.

RadioErewan 12-21-2009 10:01 PM

ps. Should I search for missing hooks in Gold?

RadioErewan 12-21-2009 10:09 PM

(Gold) Fatal error: Call to a member function query_write() on a non-object in /home/path/includes/ame_prep.php on line 298

Hornstar 12-21-2009 10:20 PM

YAY!!!! I was not sure this would be getting the update or not, and I am glad it did!

kall 12-21-2009 10:24 PM

Sam, I love you and want to have your babies - and that's just from reading the .pdf.

*edit* Heh. "combintation". (Verbose mode desc). :)

The Geek 12-21-2009 10:31 PM

Quote:

Originally Posted by kall (Post 1934935)
Sam, I love you and want to have your babies - and that's just from reading the .pdf.

*edit* Heh. "combintation". (Verbose mode desc). :)

So I typoed and you no longer want to bear my fruit? I knew I should have been more careful :) Glad someone read the readme (which I couldn't stop laughing while typing... clearly. Amazing there weren't more typos ;) )

Guys - I haven't had a chance to test this on gold. I will do this first thing tomorrow - thanks for your help so far.

milsirhc 12-21-2009 10:39 PM

Thanks!!! This is one of the mods that I'm so looking forward to for VB4!!!!

I'll wait till this is tested for GOLD, and will install it!

goblues 12-21-2009 11:11 PM

If nothing else Geek, You are damn entertaining. Tagged for future. Good work.

VonDoom 12-21-2009 11:40 PM

Alright its beginning to look alot like Christmas.. Tagged

garretbyrne 12-22-2009 12:39 AM

Doesn't seem to work with Gold.. But delighted this is being updated for VB4 I missed it so much when I updated to beta.. I mean having people go to video first and then add the link is in honestly too much hassle for some people.. the fact you can just add the link and it automatically changes it's so much better.. AME all the way.. I hope you sort this out soon because I loved this back in 3.8.4

Cheers for the hard work

[EDIT] If you can, with youtube can you make it so it adds the fullscreen button? That was one of the only issues I had with this last time around.. If not no worries... Cheers

kylek 12-22-2009 01:05 AM

Thanks Admiral Akbar!! Will see how it goes.

Digital Jedi 12-22-2009 01:18 AM

I may not be able to install 4.0 for a while, but that doesn't mean I can't develop definitions. I just won't be able to test them personally. What do I need to know that makes defs different in AME 3?

Alan_SP 12-22-2009 06:37 AM

Quote:

Originally Posted by The Geek (Post 1933979)
Because in vb4, AME uses vbs new [video] tag, the old [ame] tags will become redundant. Because of this and many internal changes, the upgrade path will actually look like:

1- uninstall AME2.x but leave the [ame] tags intact
2- install AME3
3- Run conversion tool which will convert ame tags into video tags.

Well, I'll ask my question here, it's a new version, it may be more appropriate in this thread...

In what step do we upgrade vB4? Before step 1, or before step 2?

The Geek 12-22-2009 07:40 AM

Quote:

Originally Posted by Digital Jedi (Post 1935073)
I may not be able to install 4.0 for a while, but that doesn't mean I can't develop definitions. I just won't be able to test them personally. What do I need to know that makes defs different in AME 3?

You won't have any problems updating most of your definitions - however because its vB doing the actual processing, there are some limitations to what can no be converted. Basically 1 parameter. Ill whip up some info and put it in the readme once I get it updated for gold.

Quote:

Originally Posted by Alan_SP (Post 1935213)
Well, I'll ask my question here, it's a new version, it may be more appropriate in this thread...

In what step do we upgrade vB4? Before step 1, or before step 2?

You can upgrade vB4 first or uninstall AME2x first. Remember though that if you upgrade vb4 first AME2x isn't compatible with vB4 so you will have to disable it AME untill it is uninstalled.

Leo Brazil 12-22-2009 09:46 AM

Simple question, how does it deal with old posts with Video URLs ? Is there something I could do to parse them properly ?

kfiasche81 12-22-2009 10:02 AM

when update file cache
Code:

Fatal error: Call to undefined function ame_fetch_providers() in /home/xxxxx/xxxxx.com/admincp/ame.php on line 216
and this when i rebuild post
Code:

post 45:
Warning: include([path]/ame/ame_prep.php) [function.include]: failed to open stream: No such file or directory in [path]/includes/ame_prep.php on line 366

Warning: include() [function.include]: Failed opening '[path]/ame/ame_prep.php' for inclusion (include_path='.:') in [path]/includes/ame_prep.php on line 366


The Geek 12-22-2009 10:35 AM

I have updated the pacakge to beta 2.

This version fixes a few issues with vB4 gold that was released yesterday and a few additional bugs users have noticed during the beta test.

I have verified that the bad hook bug mentioned in the first post still exists :down: I have included a safety check in ame's admincp to make sure users have removed it.

Again, thanks for the help in beta testing!

Change Log

The Geek 12-22-2009 10:36 AM

Quote:

Originally Posted by Leo Brazil (Post 1935299)
Simple question, how does it deal with old posts with Video URLs ? Is there something I could do to parse them properly ?

What video codes are those? Old AME codes or another video code system?

pozo 12-22-2009 11:03 AM

After uninstalling this modification, the default video-Tag doesn't work any longer...
Any idea how to solve this? :confused:

//edit:
It was probably a mistake from my side... I'm able to clarify it later, so I'll revert if the bug still appears!

The Geek 12-22-2009 11:21 AM

Quote:

Originally Posted by pozo (Post 1935343)
After uninstalling this modification, the default video-Tag doesn't work any longer...
Any idea how to solve this? :confused:

I can't confirm this. There isn't anything in AME that would stop the default video code from working. The only exception could be if you used URLs that vB's video code wouldnt parse to begin with. Can you provide an example?

BBR-APBT 12-22-2009 12:12 PM

Looks to be working great, so far so good no errors. I test ran all the admin settings


All times are GMT. The time now is 08:57 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.02070 seconds
  • Memory Usage 1,834KB
  • 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
  • (8)bbcode_code_printable
  • (14)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