vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - DJ's AME (Auto Media Embedding) XML Media Definitions (Third Time's the Charm) (https://vborg.vbsupport.ru/showthread.php?t=175378)

Digital Jedi 04-07-2008 11:29 AM

Quote:

Originally Posted by hornstar1337 (Post 1485045)
Is there anyway you can make it so it does not install that particular one if it is already added, as I just had several duplicates, and now I have no way of knowing which one I should keep.

Afraid not with the Master XML. As I mentioned, AME doesn't overwrite existing definitions. But one way you can tell the ones from my Master XML file is by looking at the display number. I set all mine to 1, that way they will be alphabetized in the AME CP. Also my descriptions always use the description "Embed ________.___ Videos!", baring Music and Games, of course. Remember, that you don't have to wait to delete duplicates after you import. You can always duplicate them before hand. Just make sure you have your back up XML files just in case something goes wrong.

You can also just import the individual files in the ZIP files, which is a little more time consuming, but a lot more specific.

Quote:

Originally Posted by GrendelKhan{TSU (Post 1485109)
wow awesome. :) great job!

so... just to be clear...
if "start fresh" and delete our old XMLs... do we have to convert anything again?
and delete even the default ones?

Nope, you shouldn't have to convert anything that wasn't already converted. That is, at least, the experience I've had with the modification. You will have to delete a lot of the default ones, as a good number of those don't work anymore, or don't exist (like iFilm). Use your best judgement. Also take into consideration if you've created anything that I don't have here. For new AME users, I would recommend deleting the default definitions and starting with my Master XML.

Quote:

EDIT: yah, tested it. gotta delete the defaults with AME as well. :)

<<< WORKING ON 3.7 RC2

ps. is there a way to control size for flash swf local hosted files?
You sure can. Any individual definitions can be altered by adjusting the height and width attributes in the Replacement HTML for that particular definition.

iogames 04-07-2008 01:41 PM

Great work I must say :up:

NoDRaC 04-07-2008 02:21 PM

for imeem music

Active and contain: yes

Regular expression:
Code:

http://[\w]*\.imeem\.com/music/([\w]+/[\w_]+)/
Replacement:
Code:

<object width="300" height="80"><param name="movie" value="http://media.imeem.com/m/$p1"></param><param name="wmode" value="transparent"></param><embed src="http://media.imeem.com/m/$p1" type="application/x-shockwave-flash" width="300" height="80" wmode="transparent"></embed></object>
Extract destination data: Yes

Code:

http://media\.imeem\.com/m/([\w/=]+)

Digital Jedi 04-07-2008 02:39 PM

Your regex is perfect, but you'll need to ungroup a couple of items in the regular expression in order for it backreference properly. Otherwise it will take a URL like this:

http://rayj.imeem.com/music/Z_soii_o/ray_j_all_i_feel/

and $p1 will try to put Z_soii_o/ray_j_all_i_feel instead of referencing the embed code where the video ID number is:

http://media.imeem.com/m/7tGKCr7sUP/

The first regular expression should look like this so it skips over it properly.
Code:

http://[\w]*\.imeem\.com/music/[\w-_]+/[\w-_]+/
Otherwise, it's perfect. I'll add it to the next update.

EDIT: Looks like a few of the URLs have a dash in the first [\w]+ area. So I added a dash (-) and a underscore (_) just in case.

stuartn 04-07-2008 10:39 PM

Am I right in thinking that clipshare is difficult to extract the data as the key used requires .php to find the related .flv file. While the embed code hits direct to the .flv file.

Is it possible to run a small .php script ahead of the embed code to match the key to the right .flv file and use that result to plug into the embed code.

Hope I'm making sense.

I have the find code sorted to create the box and player, but obviously this will not hit a file you need the related .flv file to achieve this. If so I can write up a brief find code to pull the correct .flv.

i.e. I use $p1 in .php to find the required record from the database and thus pull the required .flv as $p2

Digital Jedi 04-07-2008 11:10 PM

I'll look into it Stewart. With all the "clip" sites out there, I hadn't realized we didn't already have clipshare.

Until then, I have eight new definitions guys and gals:

Adult Swim
Imeem (Music) by NoDRaC
Imeem (Playlists)
Imeem (Video)
Jokeroo
Koreus
Magnify
Tu.TV

These have also been added to the ZIP and the Master XML.

EDIT: One little note I forgot to add about Jokeroo. It auto-plays. No way around that at the moment.

rapidphim 04-07-2008 11:58 PM

Truely awesome work. May I ask if this works on 3.6.9? Also, how did you get this Dailymotion video link to work?
http://www.dailymotion.com/video/x49...nk5_shortfilms

Look like it's not working on 3.6.9.

TTG 04-08-2008 12:48 AM

Awesome addition .. I have one question .. how do I solve this :-

Quote:

Your 'Extract Destination Data setting is currently off. That means that you will be unable to resolve URL titles and some providers (i.e. yahoo and dailymotion) will not function!
EDIT -- problem solved

Digital Jedi 04-08-2008 03:47 AM

Quote:

Originally Posted by rapidphim (Post 1485587)
Truely awesome work. May I ask if this works on 3.6.9? Also, how did you get this Dailymotion video link to work?
http://www.dailymotion.com/video/x49...nk5_shortfilms

Look like it's not working on 3.6.9.

Is that the only video not working for you? If the other's are working, and it's just this particular URL, check to make sure your Extract destination data setting is on.

Quote:

Originally Posted by TTG (Post 1485604)
Awesome addition .. I have one question .. how do I solve this :-

Extract destination data is in under Settings in your AME CP.

rapidphim 04-08-2008 05:14 PM

YouTube is not working for me also (I'm running 3.6.9) All I shown is just the URL...


All times are GMT. The time now is 02: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.01653 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)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