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)

projectego 07-08-2007 05:43 PM

Sorry if I'm asking a question that has previously been answered, but can anyone confirm or not if this works for GameTrailers videos as well? I've searched through the thread and it looks as thought you have to add the code in yourself and I don't really fancy that.

a1whs.com 07-08-2007 07:13 PM

Geek any words on my issue yet ? I thought this mod was supported ? DO i have to go to some other site to get support or just asking here is sufficient ?

iogames 07-08-2007 08:00 PM

Quote:

Originally Posted by a1whs.com (Post 1286054)
Geek any words on my issue yet ? I thought this mod was supported ? DO i have to go to some other site to get support or just asking here is sufficient ?

Yes, I'm getting desperate too, this one of the best hacks, I tend to think he's busy, but I need to solve or I need his help:
My hack seems to be a mess, I just installed 10 functions and the half doesn't work:
http://chat.iogames.com/news/54-yout...ternships.html

1. YouTube: OK!
2. MySpace: doesn't respect PLAY or PAUSE [Maybe is the Video]
3. Google: OK!
4. Yahoo: Any URL I enter, shows the SAME video
5. Amazon: OK!
6. MetaCafe: Always shows a LINK, no a player...
7. iFilm: OK!
8. LiveLeak: OK!
9. VideoTube: Doesn't exist!!!
10. Bolt: OK!

Ah! and something strange happens, a NEW MEDIA DEFINITION appears in the TOP and it wasn't there the last version...

Can somebody help me???

The Geek 07-08-2007 08:01 PM

Quote:

Originally Posted by a1whs.com (Post 1285536)
It has major bug dude, try posting :

Code:

    $data = get_table_data('link');
Add after that line :
Code:

  if (! preg_match("/^http:\/\//", $data['URL1'])) { $data['URL1'] = "http://" . $data['URL1']; }

  if (! preg_match("/^http:\/\//", $data['URL2'])) { $data['URL2'] = "http://" . $data['URL2']; }

  if (! preg_match("/^http:\/\//", $data['URL3'])) { $data['URL3'] = "http://" . $data['URL3']; }

  if (! preg_match("/^http:\/\//", $data['URL4'])) { $data['URL4'] = "http://" . $data['URL4']; }

  if (! preg_match("/^http:\/\//", $data['URL5'])) { $data['URL5'] = "http://" . $data['URL5']; }

  if (! preg_match("/^http:\/\//", $data['URL6'])) { $data['URL6'] = "http://" . $data['URL6']; }


to any post. Till this error
Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/drd/public_html/zone/includes/ame_bbcode.php(177) : regexp code on line 2

Is fixed its an uninstall for me, time to find another youtube mod i suppose.

I cant reproduce this. It works fine. Furthermore, AME wouldnt doesnt do stuff like URL1 and URL2. It looks like some other mod you have installed.

The Geek 07-08-2007 08:08 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1285563)
Ok geek, I'll need a little help with this one... for live video, here are 4 different video links
Code:

http://www.livevideo.com/video/landing/848CAC16E63D439E8DB41820C009BC0D/boy-has-six-needles-in-body.aspx?tx_site=filecabi.net&tx_cid=3533&tx_category=1
http://www.livevideo.com/video/dudewheresmycar/5533114A13614A0DAED66CFC0FF8334F/train-crash-test.aspx?tx_category=1
http://www.livevideo.com/video/dudewheresmycar/5533114A13614A0DAED66CFC0FF8334F/train-crash-test.aspx
http://www.livevideo.com/video/F4756E4DEBDA4CD99E1E874AAF104C98/tarot-reading-for-mr-ed.aspx

Here is my embed code
Code:

(http://[\w\d]+\.livevideo\.[\w\.\/%-_?]+/video/)[\w\d0-9]+/([\w\.\/%-_?]+)/([\d\w\0-9\?\=\&]+)
It works fine for the first three, but the last one doesn't have a sub folder in it... can you help me fix the code?

This one is tough because the key that you are looking for can be in multiple places. Ill have to comb through it when I have some time to figure it out - cant promise anything though :(

The Geek 07-08-2007 08:09 PM

Quote:

Originally Posted by Silvio (Post 1285690)
hi and ty so much for this gorgeous release. working as charm.

Ive 'reverted' all my old videos and 100% working.
just a question.
in the past i was using christQ media tag that was formed by [media]full url to youtube or similar[/media]
now i need simply to rename/parse [media] in [ame] (or [url]) then re-build posts.
how can I mass revert [media] in [ame] (or [url]) from all old posts?
how can i remove the title from the media (the one on the top with embedded the url)
edited : p.s. during Rebuild status the pages are always 'about 77 page(s) left' and that value never change till the end.

Is it in test mode?

The Geek 07-08-2007 08:11 PM

Quote:

Originally Posted by swissbob (Post 1285734)
I get the following error message:

Any ideas?

hmmm, Can you edit the create_bbcode hook for AME and change the

return ame_process_bbcode(&$parser, $text, $option);

to

return ame_process_bbcode($parser, $text, $option);

And let me know if that helps

The Geek 07-08-2007 08:14 PM

Quote:

Originally Posted by iogames (Post 1286091)
Yes, I'm getting desperate too, this one of the best hacks, I tend to think he's busy, but I need to solve or I need his help:
My hack seems to be a mess, I just installed 10 functions and the half doesn't work:
http://chat.iogames.com/news/54-yout...ternships.html

1. YouTube: OK!
2. MySpace: doesn't respect PLAY or PAUSE [Maybe is the Video]
3. Google: OK!
4. Yahoo: Any URL I enter, shows the SAME video
5. Amazon: OK!
6. MetaCafe: Always shows a LINK, no a player...
7. iFilm: OK!
8. LiveLeak: OK!
9. VideoTube: Doesn't exist!!!
10. Bolt: OK!

Ah! and something strange happens, a NEW MEDIA DEFINITION appears in the TOP and it wasn't there the last version...

Can somebody help me???

IO - the ones you seem to be having problems with are add-ons that other users have done. Ill look into them when I have some time - but I can't comb through everyones :)

The only one Im wondering about is the metacafe as that is default. Can you post some examples of the URLs that are not parsing?

The blank item looks like an import or item that was created/edited with no name. Either edit it and put a name in or delete it.

HTHs

The Geek 07-08-2007 08:15 PM

Quote:

Originally Posted by a1whs.com (Post 1286054)
Geek any words on my issue yet ? I thought this mod was supported ? DO i have to go to some other site to get support or just asking here is sufficient ?

Dude, you posted your problem earlier today. Its a Sunday, its a free modification and your problem doesnt appear to have anything to do with AME. Patience is appreciated.

4x4 Mecca 07-08-2007 08:18 PM

Quote:

Originally Posted by The Geek (Post 1286099)
This one is tough because the key that you are looking for can be in multiple places. Ill have to comb through it when I have some time to figure it out - cant promise anything though :(

Don't waste your time. I was doing that for someone else by accident, it wasn't even the site they wanted :) lol

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 :)

Jammydodger 07-09-2007 09:49 PM

So is there a way we can get http://www.dailymotion.com

Dannyloski 07-09-2007 10:15 PM

Subah, import the attached file on this one to have Support for RealMedia's .ram Files, leave the other one installed though, you'll need both (one for .rm files and the other for .ram files) ... :up: ...

Jammydodger, did you read my post and The Geek's post on the previous page? I think that will answer your question ... Be patient ...

Tom1234, did you try to do the edit to the bbcode_create hook for [AME] (AdminCP > Plugins & Products > Plugin Manager)? If not, then ...

FIND:
Code:

return ame_process_bbcode(&$parser, $text, $option);
REPLACE WITH:
Code:

return ame_process_bbcode($parser, $text, $option);
See if that fixes it ... Another user was having the same problem and The Geek gave those instructions, the other user hasn't reported back with an answer if it worked or not, but check to see if it works for you ...

Tungsten 07-10-2007 01:14 PM

Here is an AME export for videos from CarpixTV.

Dannyloski 07-10-2007 03:00 PM

Well I decided to edit my HTML Container so that its a Collapsible Box, instead of just a box ... This way the user has the option to hide/unhide the videos located on the page. If you want to have your AME Media Boxes be Collapsible replace the following in the "Settings" Option of AME CP.

HTML Container

Open:
HTML Code:

<div align="center">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="500" style="margin:10px 0">
<thead>
    <tr>
        <td class="tcat" style="text-align:center" width="500">
                        <a style="float:right" href="#top" onclick="return toggle_collapse('ame_media')"><img id="collapseimg_ame_media" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a>
                        <a href="#" onclick="return toggle_collapse('ame_media')"></a>
                        <a href="$url" title="$title" target="_blank">$title</a>
        </td>
    </tr>
</thead>
<tbody id="collapseobj_ame_media">
        <tr>
                <td class="panelsurround" align="center" width="500">

Close HTML:
HTML Code:

</td>
        </tr>
</tbody>
</table></div>


Tungsten 07-10-2007 04:17 PM

Quote:

Originally Posted by Dannyloski (Post 1287628)
Well I decided to edit my HTML Container so that its a Collapsible Box, instead of just a box ... This way the user has the option to hide/unhide the videos located on the page. If you want to have your AME Media Boxes be Collapsible replace the following in the "Settings" Option of AME CP.

Cool modification! :up:

Dannyloski 07-10-2007 04:33 PM

:D Glad you like it :up:

The Geek,
I PM'ed you about a problem I'm having, can you help me out with that? I'm getting this error when I set a certain RegExp to Active on the AME CP, if it's Inactive then the error goes away. I PM'ed you the contents of the .xml for the RegExp that's causing the error, hopefully you can help me out ... The error displays in the showthread page ...

Error:
Code:

Warning: preg_replace() [function.preg-replace]: Compilation failed: range out of order in character class at offset 32 in /includes/ame_bbcode.php on line 336

The Geek 07-10-2007 04:45 PM

I think you need to escape your hyphens like:

PHP Code:

http://stage6\.divx\.com[\w-/_\-0-9%]+/video/([0-9]+)[\w-/_\-0-9%]* 

HTHs

Dannyloski 07-10-2007 05:03 PM

DOH! Damn, that makes me feel so dumb, how did I miss that, I looked at the thing like 100 times and didn't catch that ... Thanks!

Alright guys, so I know a lot of you want this one, so I cooked it up, thanks to The_Geek for helping me trouble shoot a little problem I was having, lol ... Enjoy Support for DivX/Stage6!

pspcrazy 07-11-2007 12:09 AM

Awesome also support for WMV files, and gamespot files would be awesome. E3 started today and i need gamespot video embeds badly :|

Their embed link looks like:

Quote:

<embed id="mymovie" width="432" height="355" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2 Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Eph p%3Fadseg%3D%26adgrp%3D%26sid%3D6173878%26pid%3D93 8874%26nc%3D1184116126187%26embedded%3D1&showWater mark=0&autoPlay=0" allowfullscreen="true" allowscriptaccess="always" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>

Dannyloski 07-11-2007 12:29 AM

^ WMV Files are already supported, search a few pages back and you'll find the .XML File to download and import into the AME CP ...

As far as gamespot support ... they have way too many different links for different types of videos hosted, some of the links do not include the information that is needed in the embed code, thus not making it work ...

big dan 07-11-2007 11:11 AM

Quote:

Originally Posted by Dannyloski (Post 1287091)

Tom1234, did you try to do the edit to the bbcode_create hook for [AME] (AdminCP > Plugins & Products > Plugin Manager)? If not, then ...

FIND:
Code:

return ame_process_bbcode(&$parser, $text, $option);
REPLACE WITH:
Code:

return ame_process_bbcode($parser, $text, $option);
See if that fixes it ... Another user was having the same problem and The Geek gave those instructions, the other user hasn't reported back with an answer if it worked or not, but check to see if it works for you ...

Thank you Danny, it worked for me. I just installed AME on a new forum of mine. Showthread.php came up blank over and over again until I disabled AME. I seen your post and on a hunch I edited the plugin. Now it works great! Thanks Again :)

And Geek thank you very much for such a great product! :up:

MajorFm.com 07-11-2007 05:08 PM

Can i just say, this is the best hack i have every installed, exactly what was needed...

Please create imports for:

www.pornotube.com
www.youporn.com

Thanks in advance....

Mrdby 07-11-2007 05:14 PM

How about zshare? www.zshare.net

The Geek 07-11-2007 05:47 PM

As an FYI, I updated the package to address the occasional php reference error. If you manually applied the fix or are not having problems, don't worry about updating :)

The only change is to the product xml so upgrading means only re-uploading the product xml.

Ill update the first and second posts with the latest user contributions.

nJoy

Dannyloski 07-11-2007 06:54 PM

^ Cool, thanks ... Any news on the requesting of the embed code from the site's that dont contain all the information needed in the URL, such as Yahoo?

- Danny

The Geek 07-11-2007 08:37 PM

I started to take a stab at it, but I just didnt have the time to code the back end. It shouldnt take too long, but I have loads of work before I head out on vacation :)

So... no :)

Will I get to it before I leave? 50/50 chance :|

wastemytime 07-11-2007 09:23 PM

Thanks for this great Mod! Everthing is working fine...but if i want to edit my post or other Users, i see the html code for AME. If i save my post the link is full of html code.

Dannyloski 07-11-2007 10:16 PM

Quote:

Originally Posted by The Geek (Post 1288608)
I started to take a stab at it, but I just didnt have the time to code the back end. It shouldnt take too long, but I have loads of work before I head out on vacation :)

So... no :)

Will I get to it before I leave? 50/50 chance :|

Okay ... Hopefully you can get it to work, I'm really crossing my fingers for that, lol ... How long will you be gone? If you dont mind me asking, its just so just in case you cant get it working before you leave I know how long I'll have to wait before those Sites are supported by this Hack ...

EDIT:
In addition, I am getting some display errors, I updated to the latest version and it's looking wierd ... Could that be fixed? It seems the new version messed up something with the HTML Container ... It is making the video show twice and its also making it be inside another box ... why?

NEW EDIT:
Nevermind the above, the reason was that when I uploaded the product (per instructions), it re-added all the sites that came default with the Hack, so I just deleted the ones that were doubled and it fixed it ....

Subah 07-11-2007 10:57 PM

Thanks for the Updating :)

Extreme John 07-12-2007 12:56 AM

Im getting old so I might be a little blind, I saw someone ask on Page 19 if there is a plan for break.com embedding in the near future, but I didnt see a response to that, I want to install it but one of the main sites I want to use it with would be break.com... Did I miss the answer to that question? If so smack me please. :)


All times are GMT. The time now is 11:50 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.02908 seconds
  • Memory Usage 1,869KB
  • 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
  • (11)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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