vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) (https://vborg.vbsupport.ru/showthread.php?t=150863)

Dannyloski 07-08-2007 09:26 PM

the Yahoo! Videos RegEx that was created does NOT work ... It plays the same video, no matter what URL you put, so for those who have that one installed, I would disable it by uncheking the "Active" option until a fix for Yahoo! Videos is released.

Dannyloski 07-09-2007 03:31 AM

Okay so I'm trying to work on the fix for Yahoo! Videos for AME, but I highly doubt it'll be possible to support Yahoo! Videos because we need two things in order to get the embed to work and display the video, but the URL's only provide one of those two things. Let me explain ...

URL is:
Code:

http://video.yahoo.com/video/play?vid=744707&fr=&cache=1
Embed Code is:
Code:

<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="vid=VIDEOvidHERE&id=VIDEOidHERE" type="application/x-shockwave-flash" width="425" height="350"></embed>

We need to retrieve the vid= (which is 744707 for this example) and that's great and no problem as we can do that with RegexBuddy, but the other part we need is id=, which is not in the URL, so how can we get it? Any ideas? The id= information can be found on the Video's Yahoo! page under the <embed> code they provide in the "Add to Site:" section.

Anyways, if anyone has a solution for this, then let me know cause if not, then Yahoo! Videos is out the question for this Hack. The only solution I can think of right now is for The Geek to add some more coding into the Hack so that the server will request the Yahoo! Video Page and find the contents of id=, then recreate the URL so it includes that information.

- Danny

PS. For DailyMotion it would be the same exact thing, it wont work unless we can get this Hack to request the Video Page and find the contents of the information needed that's not included in the URL already.

Dannyloski 07-09-2007 04:05 AM

projectego,

Per your request, here is the GameTrailers RegEx ... Just import and it should work, let me know if anything :up:

EDIT (7/19/2007): Re-uploaded and fixed ... Old one was not working properly. Attached the new version as seen here.

Dannyloski 07-09-2007 04:54 AM

DiesellMinded, per your request ... here is FileCabi.net's RegEx File :up:

NOTE: Only problem is, that the videos AutoStart by default, I cannot seem to be able to get them to load as paused. Other than that, it works fine ... Enjoy!

DieselMinded 07-09-2007 05:05 AM

Thanks A Ton , Our members just came across this site and they keep posting links !

lol

Thanks Again

DM

The Geek 07-09-2007 07:00 AM

Great contributions Dannt, thanks for the work!

The pages ARE requested at parse time IF the option to resolve titles is on (and the server config allows it). I suppose I can try to come up with a way to extract the embed code... I just have to figure out how to impliment it as a standard feature. I suppose I could have an additional (optional) regexp for extracting page values.

ANy other ideas?

Dannyloski 07-09-2007 03:39 PM

No problem :up: glad to help ...

It would be awesome if you could make the additional regexp to extract the <embed> code from the page if the information is not included in the URL and have this be an Optional setting in the AME CP ... If you want, you could take a look at passiveVid's code as the author made it to request the information for Yahoo! Videos since they dont contain the id= in the URL. Let me know how that goes ... Thanks again for the support for this Hack ...

Oh and the Sites that would require the use of this setting (from the ones requested so far) are:

- Yahoo! Videos
- DailyMotion.com
- esnips.com

Dannyloski 07-09-2007 06:10 PM

I think someone had requested this, so here it is ... Support for RealMedia Videos (.rm) and for Quicktime Videos (.mov) ... Enjoy! :D:up:;):p

- Danny

Tom1234 07-09-2007 09:20 PM

I'm also seeing the warning in the logs:

PHP Warning: Call-time pass-by-reference has been deprecated - argument p
assed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like
to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future version
s may not support this any longer. in ....../includes/class_bbcode.php(181) : eval()'d code on line 7

Subah 07-09-2007 09:32 PM

Quote:

Originally Posted by Dannyloski (Post 1286900)
I think someone had requested this, so here it is ... Support for RealMedia Videos (.rm) and for Quicktime Videos (.mov) ... Enjoy! :D:up:;):p

- Danny

Thanks a lot :up: and i hope you make the one for the realplayer play the .ram also :)


All times are GMT. The time now is 09:23 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.02827 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)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