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)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

ericgtr 01-23-2010 02:03 PM

Hi DJ,

You answered my question about embedding MP3 attachments in Geeks thread and I thought I would follow up here. Even though I am using fb 4.0 my goal is to have an attached MP3 file play inline. What I have done is taken some of what you had written and worked created a new definition that looks like this:
HTML Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<AME3>
        <def>
                <providerid>6</providerid>
                <tagoption>MP3</tagoption>
                <provider>MP3</provider>
                <url>http://www.mysitename.com</url>
                <regex_url><![CDATA[([http://]*[\w]*[\.]*mysitename\.[\w/&;%-\.]+\.mp3?2?)]]></regex_url>
                <regex_scrape />
                <embed><![CDATA[<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="250" height="20"> <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" /> <param name="bgcolor" value="#384651" /> <param name="FlashVars" value="mp3=$p1&amp;width=250&amp;showstop=1&amp;showinfo=1&amp;showvolume=1&amp;bgcolor=384651&amp;bgcolor1=31a2f4&amp;bgcolor2=0b8eee&amp;slidercolor1=ffffff&amp;slidercolor2=CCCCCC&amp;sliderovercolor=ffff00" /> </object>]]></embed>
                <priority>0</priority>
        </def>
</AME3>

However, I still can't seem to get it to play the attached file inline, it's just ignored as if it doesn't exist and I have also rebuilt my posts. I noticed you said in your statement when you released these that it's not the intent but I'm wondering if there is a way to get this to work with strictly .mp3 files.

Digital Jedi 01-24-2010 07:50 AM

Quote:

Originally Posted by ericgtr (Post 1964364)
Hi DJ,

You answered my question about embedding MP3 attachments in Geeks thread and I thought I would follow up here. Even though I am using fb 4.0 my goal is to have an attached MP3 file play inline. What I have done is taken some of what you had written and worked created a new definition that looks like this:
HTML Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<AME3>
        <def>
                <providerid>6</providerid>
                <tagoption>MP3</tagoption>
                <provider>MP3</provider>
                <url>http://www.mysitename.com</url>
                <regex_url><![CDATA[([http://]*[\w]*[\.]*mysitename\.[\w/&;%-\.]+\.mp3?2?)]]></regex_url>
                <regex_scrape />
                <embed><![CDATA[<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="250" height="20"> <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" /> <param name="bgcolor" value="#384651" /> <param name="FlashVars" value="mp3=$p1&amp;width=250&amp;showstop=1&amp;showinfo=1&amp;showvolume=1&amp;bgcolor=384651&amp;bgcolor1=31a2f4&amp;bgcolor2=0b8eee&amp;slidercolor1=ffffff&amp;slidercolor2=CCCCCC&amp;sliderovercolor=ffff00" /> </object>]]></embed>
                <priority>0</priority>
        </def>
</AME3>

However, I still can't seem to get it to play the attached file inline, it's just ignored as if it doesn't exist and I have also rebuilt my posts. I noticed you said in your statement when you released these that it's not the intent but I'm wondering if there is a way to get this to work with strictly .mp3 files.

Though I don't have AME 3 installed, fundamentally, it's the same process. The reason AME doesn't normally work with attachments is because attachment URLs are all the same. http://www.yoursite.com/attachment.php and some id numbers. Nothing else to tell the definition whether it's an MP3 or a PDF or a JPG file. Whatever the replacement HTML is, that's what AME is going to use every time. Not very practical when your user has posted a PDF, and AME tries to play it in an MP3 player.

If this has changed in vB4, and you have some way to distinguish file types (simply having the extension .MP3 in the URL would be enough, really) then you could get it to work. Only $p1 isn't used in AME 3. Double check one of the definitions, but I believe it's something like {vb:raw:something}. It just slips my mind at the moment.

Nook_Neformat 01-25-2010 05:06 PM

is there a way to add space between word "YouTube" and title of the video?
so it will be "YouTube - Title" istead of "YouTube- Title"

Digital Jedi 01-25-2010 08:46 PM

Quote:

Originally Posted by Nook_Neformat (Post 1966315)
is there a way to add space between word "YouTube" and title of the video?
so it will be "YouTube - Title" istead of "YouTube- Title"

Everything posted in the title is just duplicated from the title of the original video page. So without being able to edit the website itself, there's no way to change that.

Arkham 01-25-2010 09:28 PM

Quote:

Originally Posted by Digital Jedi (Post 1964062)
It would conflict with any other Amazon definition you'd have active. It comes down to the fact that there are no unique qualities to a URL with a video on it to differentiate it from any other Amazon product URL. So even if you decided to just have a definition that converted Amazon videos, it would still try to convert all the other pages into videos, too.

Ah, that makes sense. Thanks for the confirmation! It might be still be useful if we can use those videos as an all-or-nothing situation, if we don't need the other links/books embedded.

Maybe an option in the future?

imk 01-26-2010 09:12 PM

a member posted this up

Quote:

and I guess it comes with the AME (Auto Media Embedder) :
Code:

Parse error:  syntax error, unexpected '[' in /home/manly/public_html/forum/includes/ame_bbcode.php(323) : regexp code on line 1
I love codes errors lol! :D

Edit : error also occurs when I actually try to post a reply.

Edit2 : I tried a quick reply, see what happened :
Quote:

The following errors occurred with your submission:
  1. This forum requires that you wait 30 seconds between posts. Please try again in 29 seconds.

Then I'm on the preview problem. :(

Edit3 : the quick reply worked on some threads though... that's weird now! I should go to bed lol

Edit4 : (now that's gonna be epic!) : the error seemed to come from a link to Wikipedia I added in my reply, and causes troubles with AME.

Digital Jedi 01-27-2010 05:22 PM

Quote:

Originally Posted by imk (Post 1967451)
a member posted this up

Again, I need to see the link in question, or I can't help you.

wacnstac 01-27-2010 06:01 PM

I want people to be able to enter a place name in a BBCODE and have the Google Maps for that location displayed inline, or alternatively use another AME definition to do this. I tried to get this to work with a BB code but it turned out to be too complex and I'm not good with Regular Expressions in AME.....

Digital Jedi 01-27-2010 06:08 PM

Quote:

Originally Posted by wacnstac (Post 1968201)
I want people to be able to enter a place name in a BBCODE and have the Google Maps for that location displayed inline, or alternatively use another AME definition to do this. I tried to get this to work with a BB code but it turned out to be too complex and I'm not good with Regular Expressions in AME.....

AME parses URLs, not BBCode. I'm afraid you'd need a completely different application for that. AME won't parse terms or addresses, or other BBCodes.

wacnstac 01-27-2010 06:46 PM

Quote:

Originally Posted by Digital Jedi (Post 1968209)
AME parses URLs, not BBCode. I'm afraid you'd need a completely different application for that. AME won't parse terms or addresses, or other BBCodes.

Hmmm.


All times are GMT. The time now is 08:10 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.04408 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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