vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

The Geek 07-20-2009 08:46 AM

That isn't AME. AME doesn't add tags like that.

Scitz0 07-22-2009 09:55 AM

I just installed this module on my 3.8.3 forum but I have a problem with the import. No matter what I try it always say(translated from swedish) "No file uploaded and no local file found.". And yes, I use AME CP->Import Definitions. Tried to browse to the file stored on my computer, tried to upload the file to the server and import localy and I even tried to rename the file so there are no special chars or spaces. The files I have tried are from https://vborg.vbsupport.ru/showthrea...195884&page=49 , tried both the master xml and a single definition with the same result. Not sure what to do.

Need help resolving this please.

Charles_1 07-22-2009 09:56 AM

Quote:

Originally Posted by Digital Jedi (Post 1722319)
Okay, the first major thing I'm running into is, the non-embeddable videos are indeed converting to links, but the link doesn't go a valid URL. It seems to be using the title instead of the URL.

Example
URL: http://www.youtube.com/watch?v=XZcG0...eature=related
Converts: https://vborg.vbsupport.ru/ YouTube - Boyz II Men - End Of The Road

URL: http://www.youtube.com/watch?v=jsd0pKGr2Os
Converts: https://vborg.vbsupport.ru/ YouTube - The Jets - The Same Love


Also, the source code in the default YouTube definition is no longer used by YouTube, so not all videos will load in that case.

I have similar issue on vBulletin v3.8.2 and AME v2.5.5.

When I post full URL (http://www.youtube.com/watch?v=i8OLcbxZ0cA) everything is OK, player will appear. But when I post URL without http://, it shows only link with this target:
http://www.svethardware.cz/forum/www...?v=i8OLcbxZ0cA

It adds URL of our forum to beginning and link is of course not working. How to change it please? Besides that this mod is great becouse users don't need to learn something new, thanks.

Scitz0 07-22-2009 10:35 AM

Got it to work now, had to retry several times before it accepted the xml.

The Geek 07-23-2009 10:35 AM

Quote:

Originally Posted by Charles_1 (Post 1853409)
I have similar issue on vBulletin v3.8.2 and AME v2.5.5.

The example above isn't related to this. Those examples were working as intended as embedding was disabled (in fact, neither of those videos are valid links anymore anyway)

Quote:

When I post full URL (http://www.youtube.com/watch?v=i8OLcbxZ0cA) everything is OK, player will appear. But when I post URL without http://, it shows only link with this target:
http://www.svethardware.cz/forum/www...?v=i8OLcbxZ0cA

It adds URL of our forum to beginning and link is of course not working. How to change it please? Besides that this mod is great becouse users don't need to learn something new, thanks.
However this I just confirmed as indeed a bug. The bug is that if no protocol is included (i.e. no http://) then the link will be malformed. I have included the fix in the next release but as I am heading out on Holiday Saturday, Ill post it here for those that want to apply the fix sooner.

in includes/ame_bbcode.php on or around line 492 find

PHP Code:

$url str_replace(array("[url]""[URL]""[/url]""[/URL]"), array("","","",""), $param1); 

and directly below it, add:

PHP Code:

        if (!preg_match('#^[a-z0-9]+(?<!about|javascript|vbscript|data):#si'$url))
        {
            
$url "http://$url";
        } 

HTHs

biome.pat 07-23-2009 01:52 PM

1 Attachment(s)
I think I might have a similar issue. I just upgraded to vB 3.8.3, and I'm finding that valid video links convert to standard URL tags, not AME tags. I don't use the WYSIWYG editor, so I don't think it has anything to do with the color tags, if that makes a difference.

Not sure if it's important, but when it changes to URL tags, the link is displayed as if embedding were disabled:
Attachment 102400

Also, I noticed that if I manually change the URL tags to AME tags, it shows up correctly, BUT if I try to edit the post again, the AME tags revert back to URL tags. But the ame_strip function seems to be doing this, so maybe it's on purpose, with the expectation that it will be converted back to AME tags?

Anyhow, maybe I'll jump back to the previous version of AME, but I thought I'd let you know about it :)

Thanks for all your great work with this mod, by the way!

biome.pat 07-23-2009 02:15 PM

Quote:

Originally Posted by aperio (Post 1844243)
Mod is also not working for me. Mine is a fresh install of vbulletin version 3.8.3 and i have triple checked to ensure all files are in place and that I have the settings as they should be... links are simply links (youtube videos, embedding allowed) whether new posts or old ones edited. The videos are simply not appearing. Just a heads-up that it's not an isolated incident... great looking mod though, so I'll try to be patient :)

Let me guess -- and the tooltip was showing up when you hovered the link, saying "External Embedding Not Available"?

I think I just figured this out:
Turn off "Extract destination data" in the settings. It seems like it's detecting embedding as disabled regardless. You'll need to rebuild to fix old posts, but any new posts should just show up.

This is vB3.8.3 by the way, in case it helps Geek!

Cheers all

UPDATE: The only other plug-in that seemed like it might conflict was the "Auto-Merge Post" plugin, which also uses the newpost_complete hook. I disabled it and the problem was still there.

PossumX 07-23-2009 11:36 PM

Quote:

Originally Posted by biome.pat (Post 1854173)

Not sure if it's important, but when it changes to URL tags, the link is displayed as if embedding were disabled:
Attachment 102400

Also, I noticed that if I manually change the URL tags to AME tags, it shows up correctly, BUT if I try to edit the post again, the AME tags revert back to URL tags. But the ame_strip function seems to be doing this, so maybe it's on purpose, with the expectation that it will be converted back to AME tags?

Same issue here on vB 3.8.3 and AME 2.5.5, no matter what, the videos will no longer embed and only show up as titles.

SMMensans 07-24-2009 03:51 AM

This mod is great. Thanks to everyone involved.

Is there a way to change the color of the font above the videos without changing the color in the actual forum style? If not is there a way to change which font color (First Alternating Color), it pulls from in the forum style?

See the image below:

https://vborg.vbsupport.ru/external/2009/08/42.jpg

The Geek 07-24-2009 10:34 AM

Quote:

Originally Posted by biome.pat (Post 1854182)
Let me guess -- and the tooltip was showing up when you hovered the link, saying "External Embedding Not Available"?

I think I just figured this out:
Turn off "Extract destination data" in the settings. It seems like it's detecting embedding as disabled regardless. You'll need to rebuild to fix old posts, but any new posts should just show up.

This is vB3.8.3 by the way, in case it helps Geek!

Cheers all

UPDATE: The only other plug-in that seemed like it might conflict was the "Auto-Merge Post" plugin, which also uses the newpost_complete hook. I disabled it and the problem was still there.

Not sure about the automerge hack (which I noticed in your attachement) however i did notice that the video that embeded clearly didn't extract the definition data as the title was just 'You Tube'. There is either a subtle bug with validation when extraction isn't enabled (or working) or you have extraction on, but your server doesn't allow it (i.e. you don't have ccurl). Edit the Youtube definition and either remove the validation regexp or turn off the 'extraction' setting.

HTHs


All times are GMT. The time now is 07:29 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.01895 seconds
  • Memory Usage 1,767KB
  • 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
  • (2)bbcode_php_printable
  • (6)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