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)

kalliey 01-05-2010 04:48 PM

Quote:

Originally Posted by The Geek (Post 1947279)

There aren't any that I know of. AME is still in Beta (till vB can fix the bug) and has just come out. Give it some time and the definitions will start to fall like Rain in Blackpool.

Thanks for your answer. :)

adambloch 01-05-2010 06:04 PM

OK Got the first part but what do I do with this bit.

Then Edit the plugin titled: AME - Auto Convert URLs. And click save

????? Many thanks :)

Digital Jedi 01-05-2010 08:29 PM

Okay, so just to be sure since I have to work these from the inside out, let me know if I've got the tags compared correctly.

<item> = <def>
<id> = <providerid>
<title> = <tagoption>
[s]<description>[/s]
NEW = <url>
[s]<displayorder>[/s]
<findcode> = <regex_url>
<replacecode> = <embed>
[s]<status>[/s]
[s]<container>[/s]
<embedregexp> = <regex_scrape>
[s]<extraction>[/s]
<gdef> = <priority>
[s]<ameid>[/s]
[s]<validation>[/s]

The Geek 01-05-2010 09:48 PM

Quote:

Originally Posted by Digital Jedi (Post 1948196)
Okay, so just to be sure since I have to work these from the inside out, let me know if I've got the tags compared correctly.

<item> = <def> yup
<id> = <providerid> yup
<title> = [s]<tagoption>[/s] title = provider
[s]<description>[/s] Yup
NEW = <url> Yup. This is the home page. Links the Provider in the 'popup' media box.[s]<displayorder>[/s] displayorder = priority
<findcode> = <regex_url> Yup
<replacecode> = <embed> Yup. Only takes 1 param though: {vb:raw code}
[s]<status>[/s] yup
[s]<container>[/s] yup
<embedregexp> = <regex_scrape> Yup
[s]<extraction>[/s] Yup. asserted if regex_scrape contains value
[s]<gdef> = <priority>[/s]
[s]<ameid>[/s] ameid = tagoption
[s]<validation>[/s]

So to recap:

providerid (was id) isn't really used on insertion anyway
provider (was title). A User friendly name for definition. Appears in the media popup box linked
url (new). A link to the provider home page. Used with Provider name to provide user friendly link in video popup box
tagoption (was ameid). A unique textual key to identify defintion
regex_url (was findcode). The regex to match the URL. Grabs the 1 parameter unless regex_scrape is specified
regex_scrape (was embedregexp). The regex that will return 1 match from the destination page.
embed (was replacecode). This is the html with {vb:raw code} in it. It actually gets build into the bbcode_video template.

Others are discontinued.

HTH's :)

Digital Jedi 01-06-2010 08:30 AM

Quote:

Originally Posted by The Geek (Post 1948260)
So to recap:

providerid (was id) isn't really used on insertion anyway
provider (was title). A User friendly name for definition. Appears in the media popup box linked
url (new). A link to the provider home page. Used with Provider name to provide user friendly link in video popup box
tagoption (was ameid). A unique textual key to identify defintion
regex_url (was findcode). The regex to match the URL. Grabs the 1 parameter unless regex_scrape is specified
regex_scrape (was embedregexp). The regex that will return 1 match from the destination page.
embed (was replacecode). This is the html with {vb:raw code} in it. It actually gets build into the bbcode_video template.

Others are discontinued.

HTH's :)

Okay, thanks. Now does the order in the XML matter here, because I see a couple of tags have changed position?

kfiasche81 01-06-2010 08:34 AM

when i create a new topic i see this error
HTML Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/amefy_class.php on line 176

The Geek 01-06-2010 08:45 AM

Quote:

Originally Posted by Digital Jedi (Post 1948551)
Okay, thanks. Now does the order in the XML matter here, because I see a couple of tags have changed position?

Nope

Quote:

Originally Posted by kfiasche81 (Post 1948554)
when i create a new topic i see this error
HTML Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/amefy_class.php on line 176

Thats a bug with AME'fy, not AME3. ALl it means is that you haven't set up an entry in AME'fy yet. Set one up and it goes away. Ill see if I can update the package today to fix this.

movslow 01-06-2010 01:53 PM

You replied over there to this message.

http://www.vbulletin.com/forum/showt...esizing-in-CMS

Have you gotten the issue w/the CMS worked out, where it will resize them ?

The Geek 01-06-2010 02:14 PM

There is no issue with the CMS and AME. If you uninstall AME you will see the exact same problem using vB4's video popup because the problem is vB4.

meissenation 01-06-2010 04:10 PM

Doesn't work for me.
http://www.mifbody.com/vbulletin/showthread.php?34280-Welcome-to-MiFbody-com-VBulletin-4!&p=529143#post529143

I have it in there and the checkbox is checked to parse it into video. Youtube is defined and it's a new post that was done after installing AME so it's not a matter of rebuilding posts. It's simply not doing anything to the youtube link.

Chuk 01-06-2010 04:15 PM

Thanks for developing this mod, which is really great.

But I have one problem when using it
When there is a link in a post like this [URL="http://www.google.com/search?rlz=1C1CHOT_enAM350AM351&sourceid=chrome&ie =UTF-8&q=vbulletin"]http://www.google.com/search?rlz=1C1CHOT_enAM350AM351&sourceid=chrome&ie =UTF-8&q=vbulletin[/URL], and afterwards the post is quoted, in the quoted post there appear unnecessary symbols like "/".

The same post is normally quoted when AME 3 is disabled.

You can see this behavior here in my forum

Also I have noticed that this problem doesn't appear with all links, but I can't figure out this special cases.
Can you please have a look at this, and provide some help.

The Geek 01-06-2010 06:10 PM

Quote:

Originally Posted by meissenation (Post 1948898)
Doesn't work for me.
http://www.mifbody.com/vbulletin/showthread.php?34280-Welcome-to-MiFbody-com-VBulletin-4!&p=529143#post529143

I have it in there and the checkbox is checked to parse it into video. Youtube is defined and it's a new post that was done after installing AME so it's not a matter of rebuilding posts. It's simply not doing anything to the youtube link.

Did you make the change outlined in the installation instructions to the required hook?

Quote:

Originally Posted by Chuk (Post 1948901)
Thanks for developing this mod, which is really great.

But I have one problem when using it
When there is a link in a post like this [URL="http://www.google.com/search?rlz=1C1CHOT_enAM350AM351&sourceid=chrome&ie =UTF-8&q=vbulletin"]http://www.google.com/search?rlz=1C1CHOT_enAM350AM351&sourceid=chrome&ie =UTF-8&q=vbulletin[/URL], and afterwards the post is quoted, in the quoted post there appear unnecessary symbols like "/".

The same post is normally quoted when AME 3 is disabled.

You can see this behavior here in my forum

Also I have noticed that this problem doesn't appear with all links, but I can't figure out this special cases.
Can you please have a look at this, and provide some help.

Ill see if I can replicate and fix tomorrow.

Lighting90 01-06-2010 09:12 PM

Hi Geek,

I am having problems with the installation on VB4 Patch 2, I have followed your instructions to the letter... well, I think I did... and it is not showing up as it was before..

For example this post showed it as an embedded video when it was vB3.8, now it isn't...

http://forum.landrovernet.com/showth...androver-Films

Tried a few times now going over the instructions again, just to make sure, including editing the files again as per the instructions... and still the same result... not sure if they have changed something somewhere else or I have not switched something else on or switched it off...

The Geek 01-06-2010 09:17 PM

That link is borked. For some odd reason you have [video][/url[url][/video] going on. Thats just wrong. Are other posts doing that? Was that a conversion from AME2x?

Lighting90 01-06-2010 10:11 PM

Yep, they are, and was an upgrade from 2.0, not sure what happened, but even new links just put in give the video tag and still no embedding.

Though I am slowly working through the system, so I may have missed something

InfoAddict 01-06-2010 11:02 PM

I too have the same problem - vb4 upgrade from vb3 and previous version of AME.

I then upgraded to AME3 and did a convert on my posts to change all ame= to the below video format.

For instance - check this page:

http://dev.gamers-underground.com/me...his-match.html

This is the code for the link:

Code:

[video=youtube;apWrS2uPBTg]http://www.youtube.com/watch?v=apWrS2uPBTg[/video]
Only thing I can think of is that I left the vb3 version installed when I did the upgrade.

I have removed the link from the hook xml file - it just doesn't seem to kick in.

Chuk 01-06-2010 11:05 PM

Quote:

Originally Posted by The Geek (Post 1948982)
Ill see if I can replicate and fix tomorrow.

The problem was solved after deleting the following string in ame_prep.php file:
PHP Code:

$text preg_replace('%(\[(quote|php|html|code|nomedia)([^\]]*)\](.*?)\[/(\2)\])%sime''$this->substitute(\'\1\', $this->_subbed)'$text); 

May I leave this file without that string?

Cface 01-07-2010 06:23 AM

Mine doesn't work :\
"This product is not compatible with version 4.0.0 Beta 4 of vBulletin. (Compatible starting with 4.0.0)"
And i don't have a includes/xml/hooks_vbcms.xml file.

Lighting90 01-07-2010 10:01 AM

@ The Geek

Just to let you know, I can post a video with the video tags and it embeds okay, I assume that is the vB version as it is fairly basic...

The Geek 01-07-2010 01:09 PM

Quote:

Originally Posted by Cface (Post 1949352)
Mine doesn't work :\
"This product is not compatible with version 4.0.0 Beta 4 of vBulletin. (Compatible starting with 4.0.0)"
And i don't have a includes/xml/hooks_vbcms.xml file.

You can edit the includes/product-ame.xml product and remove this line:

<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="" />

You don't have to do the hook edit if you don't have hooks_vbcms.xml

HTHs

The Geek 01-07-2010 01:11 PM

Quote:

Originally Posted by Chuk (Post 1949161)
The problem was solved after deleting the following string in ame_prep.php file:
PHP Code:

$text preg_replace('%(\[(quote|php|html|code|nomedia)([^\]]*)\](.*?)\[/(\2)\])%sime''$this->substitute(\'\1\', $this->_subbed)'$text); 

May I leave this file without that string?

Yes, you can comment out that line in the meantime. Its job is to prevent auto embedding videos within quote blocks and such. However it isn't overly useful yet simply because it isn't stripping out videos from that spot either. Comment it out for now and Ill try to resolve the bug in the next build.

meissenation 01-07-2010 01:16 PM

I'm a doofus - disregard about it not working. I didn't see the edit and save of the plugin. Funny how you have to edit the plugin and then hit save? Either way - works now.

The Geek 01-07-2010 01:32 PM

Quote:

Originally Posted by InfoAddict (Post 1949157)
I too have the same problem - vb4 upgrade from vb3 and previous version of AME.

I then upgraded to AME3 and did a convert on my posts to change all ame= to the below video format.

For instance - check this page:

http://dev.gamers-underground.com/me...his-match.html

This is the code for the link:

Code:

[video=youtube;apWrS2uPBTg]http://www.youtube.com/watch?v=apWrS2uPBTg[/video]
Only thing I can think of is that I left the vb3 version installed when I did the upgrade.

I have removed the link from the hook xml file - it just doesn't seem to kick in.

Did you then save the AME hook? As to the code above, that looks correct to me. Running the conversion tool will convert old AME bbcode into URLs which can be converted to video codes. If you edit that first post which is just an youtube link, does it embed the video or not?

Lighting90 01-07-2010 03:08 PM

Right, I can get the video embedding to work only in the admin forum, editing the post I put up earlier it doesn't work... I have added a post after it with the same link, and not working, also tried in another part of the forum, also not working...

Is there any permissions I should go and look at...:confused:

The Geek 01-07-2010 07:08 PM

nope. All AME3 does is look to see if you have a video in your URL tags. If do, its changes the url tag to a video tag. Nothin too fancy. Most of AME's key features are the ability to manage and import/export definitions through the admincp.

InfoAddict 01-07-2010 11:30 PM

Quote:

Originally Posted by The Geek (Post 1949560)
Did you then save the AME hook? As to the code above, that looks correct to me. Running the conversion tool will convert old AME bbcode into URLs which can be converted to video codes. If you edit that first post which is just an youtube link, does it embed the video or not?

Yes - I even then disabled it and re-enabled it. I then uninstalled the product and re-installed it.

Editing that post doesn't fix it neither does a new post.

Still no go.

I know a bit of PHP, is there some way I can insert some debug code to see if it's starting or not?

EDIT: I just turned on vb's debug mode and the hook "data_preparse_bbcode_video_start" isn't called at all.

The Geek 01-08-2010 06:53 AM

Then follow the steps again. It isn't being called because they put that hook in the wrong section of the hooks_vbcms.xml file. Deleting it means that next time the cache of hooks is saved (via savinga hook) it will build correctly. See the link in the first post to the bug tracker.

HTHs

Delilahs 01-08-2010 09:39 AM

Does this also do VShare ?

Lighting90 01-08-2010 09:55 AM

Quote:

Originally Posted by The Geek (Post 1949857)
nope. All AME3 does is look to see if you have a video in your URL tags. If do, its changes the url tag to a video tag. Nothin too fancy. Most of AME's key features are the ability to manage and import/export definitions through the admincp.

Arh, thanks, that makes it a lot clearer, so it is something else wrong then as I have the video tags... it's just not emebedding the video's. So This means I need to have a good look through the forum settings.... I must have messed something up somewhere.. :) (Not unusual for me....)

Birute 01-08-2010 12:06 PM

Love it, thanks. It worked great!!! :)

There are some posts with just the url for the youtube video without any tags around the url, any suggestions on how to convert these to tagged url's without spending hours on editing each post then running the rebuild?

The Geek 01-08-2010 03:57 PM

Quote:

Originally Posted by Birute (Post 1950326)
Love it, thanks. It worked great!!! :)

There are some posts with just the url for the youtube video without any tags around the url, any suggestions on how to convert these to tagged url's without spending hours on editing each post then running the rebuild?

Thanks :) Use the AME CP->Tools->Rebuild options

Quote:

Originally Posted by Lighting90 (Post 1950258)
Arh, thanks, that makes it a lot clearer, so it is something else wrong then as I have the video tags... it's just not emebedding the video's. So This means I need to have a good look through the forum settings.... I must have messed something up somewhere.. :) (Not unusual for me....)

No problem. Hope you get it sorted :)

Quote:

Originally Posted by Delilahs (Post 1950243)
Does this also do VShare ?

AFAIK there isn't a defintiion for vshare out.

Lighting90 01-08-2010 05:28 PM

Just an update, and useful for anyone else who has a similar problem, it turns out that for some reason, when we upgraded the forum, it switched the IMG code option off on all the forums that had it on and the ones which had it off suddenly had it on... :rolleyes:

So we have it sorted now... many thanks for the help...

(Next Gars.... ;) ... )

The Geek 01-08-2010 06:52 PM

Good luck with Gars, not sure if Morgan is upgrading it or not. Personally I think it would be a freaking massive workload to pull off.

Thanks for sharing the solution!

Stryker412 01-08-2010 06:58 PM

Geek, I just installed AME on my test vb4 server. I made a post with Youtube, Vimeo, and Hulu to see how it worked.

Youtube and Vimeo worked fine just posting the links, but not Hulu. I had to manually edit the post and add the [video] tags then it worked.

The Geek 01-08-2010 07:56 PM

thanks for the heads up. Can you give me the link that was borking out for you?

Sascha108 01-08-2010 08:20 PM

Hmm, I installed AME without problems and removed the hook. but nothing happens. Any idea what else to do?

This is the page in the CMS:

http://issaforum.snake-style.org/con...30-ISSA-Videos

jaffaman 01-08-2010 09:31 PM

I think its because you are using this link on the top video....

Code:

http://www.youtube.com/user/IpTaiChi#p/u/1/300fvly1mXA
Try using this link m8 its on the share tab of the video as the above is the users link.

Code:

http://www.youtube.com/watch?v=300fvly1mXA

Try using this link on the second video.
Code:

http://www.youtube.com/watch?v=02ODqfpVXME

Sascha108 01-09-2010 06:21 AM

1000 blessings!

Thanks for the fast help, it worked :)

Abo Al-Waleed 01-09-2010 07:13 AM

is this add-ons working with VB 3.8.3?/

Digital Jedi 01-09-2010 08:28 AM

Quote:

Originally Posted by Abo Al-Waleed (Post 1950958)
is this add-ons working with VB 3.8.3?/

The 3.8 version does. This is the 4.0 version.


All times are GMT. The time now is 10:30 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.02416 seconds
  • Memory Usage 1,858KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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