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 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?


All times are GMT. The time now is 12:20 AM.

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.01891 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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