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 01-22-2009 09:27 PM

Quote:

Originally Posted by tintructo (Post 1721409)
any news on the ksort problem with the XML with all the sites ? :)

Haven't been able to duplicate. It shouldn't prevent imports though.

Quote:

Originally Posted by lowlight (Post 1721430)
Wow, many tables are messed up. Our database is huge, this is going to take hours.

What does the plugin attempt to do when you install it? Whatever it was, it was pretty serious.

AME adds a flag field to the posts, blog and groups tables. This allows people to disable embedding as well as to greatly speed up processing. If your posts table is massive, it will take a while to do, but it isn't an abnormal practise. Sounds like your tables may have already been in a state, especially if you have to repair additional tables. Its a good idea to backup your db before installing a mod that makes changes to the DB structure. Hope your repair goes smoothly :)

Quote:

Originally Posted by TCB (Post 1721543)
Thanks for this fantastic mod. How's gars and gal going currently?

Thanks :) Gars and GAL (and other thevbgeek.com scripts) are owned and supported by another author now (a very fine one might I add). I only upgraded this because it needed to be and it was a quick job :)

HTHs!

tintructo 01-22-2009 09:31 PM

the code in automediaembed_admin.php in line 2515 is :

PHP Code:

ksort($arr['items']); 

BUT, it should be

PHP Code:

ksort($arr['item']); 

the ksort not functioning makes the display of the sites unordered. with this fix it should work fine =)

cheers

The Geek 01-22-2009 09:36 PM

Thanks for that. Ill update for next release :)

Manic Mechanic 01-23-2009 01:17 AM

Quote:

Originally Posted by Digital Jedi (Post 1721093)
Thanks Geek! Will test it out right now and start working on the next set of defs if all is well. :up:


You like having to give your users special instructions on how to use BBCode and then make them extract a set of numbers from the URL everytime, rather then just have them post the URL to the video and not even have to let them think about it? Okay. Just keep in mind, there's more then 20 to 30 sites that BBCode wouldn't even work with, because their videos have no video ID and AME converts them without having to even tell your users that it's going to embed.



Post the link to the Imeem URL that's not converting, but post it in the thread you downloaded my definitions from if you haven't already. I haven't checked those threads as of this post.



If you're using mine, then I haven't implemented that yet. Mainly because I didn't know how to use it. Now that I see the The Geek has one in his default install, I can reverse engineer what he did and I'll have it ready for the next 2.5 Defs update.



Make sure your using my set of definitions for 2.5 (Delta) and not the set for 2.0 (Third Time's the Charm).

Thank you I was still using 2.0 definitions.

tintructo 01-23-2009 02:54 AM

Quote:

Originally Posted by The Geek (Post 1721610)
Thanks for that. Ill update for next release :)

i just found out the ksort isn't working, because it can't re-order with values that actually are arrays..

you should use usort and make the custom comparing function to check the titles so it's ordered by name :)

Digital Jedi 01-23-2009 07:31 AM

Quote:

Originally Posted by tintructo (Post 1721857)
i just found out the ksort isn't working, because it can't re-order with values that actually are arrays..

you should use usort and make the custom comparing function to check the titles so it's ordered by name :)

Are you saying that definitions aren't sorting by name for you? Because I've never had an problems as long as they were all set to the same number. Or are you refering to the sort order inside the XML file?

Digital Jedi 01-23-2009 09:28 AM

Okay, you got me: I don't I understand how the Validation tool works. What is the RegEx checking for to determine if a video can be embedded or not?

Also, running this on my demo board, the default YouTube definition doesn't convert anything. It just turns videos into the little Film icon and nothing more.

The Geek 01-23-2009 10:46 AM

Updated package to 2.5.3

This is a minor update which solves the ksort error some have reported while importing and a bug where non validated media wasnt showing the link.

Upgrade as normal :)

The Geek 01-23-2009 10:57 AM

Quote:

Originally Posted by Digital Jedi (Post 1722100)
Okay, you got me: I don't I understand how the Validation tool works. What is the RegEx checking for to determine if a video can be embedded or not?

Also, running this on my demo board, the default YouTube definition doesn't convert anything. It just turns videos into the little Film icon and nothing more.

The validation works like this:

If the validation field has a value and extraction is on, then AME will scan the contents of the destination page for the existence of the validation field. If it finds the value, it is validated, otherwise not.

For instance, the following regexp is actually part of the HTML input box that contains youtubes Embed code IF the video can be embeded. If not, this regexp won't validate because the input box actually says 'Embedding disabled by request' instead of the HTML needed to embed:
Code:

value="http://www\.youtube\.com/v/([\w\-]*)?&
There was a bug prior to 2.5.3 that prevented the title appearing in a non validated result (just the icon showed).

HTHs :)

Digital Jedi 01-23-2009 11:50 AM

Quote:

Originally Posted by The Geek (Post 1722176)
The validation works like this:

If the validation field has a value and extraction is on, then AME will scan the contents of the destination page for the existence of the validation field. If it finds the value, it is validated, otherwise not.

For instance, the following regexp is actually part of the HTML input box that contains youtubes Embed code IF the video can be embeded. If not, this regexp won't validate because the input box actually says 'Embedding disabled by request' instead of the HTML needed to embed:
Code:

value="http://www\.youtube\.com/v/([\w\-]*)?&
There was a bug prior to 2.5.3 that prevented the title appearing in a non validated result (just the icon showed).

HTHs :)

Ah, I see. My logic was completely inverted. I'll see if I can update my other YouTube defs after breakfast.


All times are GMT. The time now is 08:08 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.02094 seconds
  • Memory Usage 1,757KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (8)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