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)

SpyCam 01-07-2010 04:32 PM

Hey DJ, take a look at the example test post with youtube not parsed and metacafe parsed:

http://www.muzikantams.com/alubaris/...html#post17931

Digital Jedi 01-07-2010 04:44 PM

Quote:

Originally Posted by SpyCam (Post 1949722)
Hey DJ, take a look at the example test post with youtube not parsed and metacafe parsed:

http://www.muzikantams.com/alubaris/...html#post17931

For whatever reason, your Validation RegEx is not finding a match. Open up the YouTube definition and remove the contents of the Validation RegEx and save. Then re-edit your post.

SpyCam 01-07-2010 06:04 PM

ok, this is what i removed from "Validation" textarea:

Code:

value="http://www\.youtube\.com/v/([\w\-]*)?&
And now it works:
http://www.muzikantams.com/alubaris/...u-youtube.html

Should i leave the definition as is now, or should i enter something into validation textarea?

Stryker412 01-07-2010 06:05 PM

DJ here's what I have for the Gametrailers definition:

Regular:

Code:

http://www\.gametrailers\.com/([u]*)[sermovievid-]+/[\w-]+/([\d]+)#*[\w]*
Replacement:

Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">       
                <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
                <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?{$p1}mid=$p2"/>
                <param name="quality" value="high" />
                <embed src="http://www.gametrailers.com/remote_wrap.php?{$p1}mid=$p2" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed>
</object>

Just want to verify this is correct.

Digital Jedi 01-07-2010 06:14 PM

Quote:

Originally Posted by SpyCam (Post 1949801)
ok, this is what i removed from "Validation" textarea:

Code:

value=&quot;http://www\.youtube\.com/v/([\w\-]*)?&amp;
And now it works:
http://www.muzikantams.com/alubaris/...u-youtube.html

Should i leave the definition as is now, or should i enter something into validation textarea?

You can leave it as is. Validation is just supposed to keep videos that have embedding disabled from converting. All that will happen now is they'll convert, but if embedding is not enabled it will just say so in video.


Quote:

Originally Posted by Stryker412 (Post 1949803)
DJ here's what I have for the Gametrailers definition:

Regular:

Code:

http://www\.gametrailers\.com/([u]*)[sermovievid-]+/[\w-]+/([\d]+)#*[\w]*
Replacement:

Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">       
                <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
                <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?{$p1}mid=$p2"/>
                <param name="quality" value="high" />
                <embed src="http://www.gametrailers.com/remote_wrap.php?{$p1}mid=$p2" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed>
</object>

Just want to verify this is correct.

Try escaping the pound sign in your RegEx.
Code:

http://www\.gametrailers\.com/([u]*)[sermovievid-]+/[\w-]+/([\d]+)\#*[\w]*

SpyCam 01-07-2010 06:25 PM

OK, thanks,
now one more question, if i can ask.
I wanted to create and add a local tube site's definition, but i don't know how.
It uses JW player 4.3.132
The example URL:
http://tv.delfi.lt/video/aAEt8cWJ/

The embed code they offer:
Code:

<script type="text/javascript">var c = "Sportas"; </script>
<script type="text/javascript" src="http://tv.delfi.lt/js/embed.js?v=1.5"></script>
<script>var _delfiVideoX = 420;var _delfiVideoY = 334;var _delfiVideoSalt = "aAEt8cWJ";_createDelfiVideo();</script>

Do you have any idea what Regular expression URL code should i use and what Replacement HTML to put for it to work?

Thanks a lot in advance

Musika 01-08-2010 03:41 AM

Quote:

Originally Posted by Digital Jedi (Post 1949714)
Clipfish is blocked in my country, so I wasn't able to do anything but update the embed code I had in the old definition. If you can get me a few more example URLs and embed code samples from the site (three or four each should do), I can work something up, but you would have to let me know if it's working.

I found out, that there are two Links for one Video and both are used by Clipfish, so I will give you both links for the following three examples. But I tested it out and after the video-ID you can put every string even with slashes, it is ignored.

1.
PHP Code:

http://www.clipfish.de/video/3221577/
http://www.clipfish.de/video/3221577/cute-dancer/ 

PHP Code:

<object width="464" height="384">
<
param name="allowScriptAccess" value="always" />
<
param name="movie" value="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&videoid=3221577&r=1&angebot=extern&c=990000" />
<
param name="bgcolor" value="#ffffff" />
<
param name="allowFullScreen" value="true" />
<
embed src="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=3221577&r=1&angebot=extern&c=990000" quality="high" bgcolor="#990000" width="464" height="384" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object


2.
PHP Code:

http://www.clipfish.de/video/3221911/
http://www.clipfish.de/video/3221911/winterspeck/ 

PHP Code:

<object width="464" height="384">
<
param name="allowScriptAccess" value="always" />
<
param name="movie" value="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&videoid=3221911&r=1&angebot=extern&c=990000" />
<
param name="bgcolor" value="#ffffff" />
<
param name="allowFullScreen" value="true" />
<
embed src="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=3221911&r=1&angebot=extern&c=990000" quality="high" bgcolor="#990000" width="464" height="384" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object


3.
PHP Code:

http://www.clipfish.de/channel/144/video/3094673/
http://www.clipfish.de/channel/144/video/3094673/bernard---windsurfing/ 

PHP Code:

<object width="464" height="384">
<
param name="allowScriptAccess" value="always" />
<
param name="movie" value="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&videoid=3094673&r=1&angebot=extern&c=990000" />
<
param name="bgcolor" value="#ffffff" />
<
param name="allowFullScreen" value="true" />
<
embed src="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=3094673&r=1&angebot=extern&c=990000" quality="high" bgcolor="#990000" width="464" height="384" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object


Digital Jedi 01-08-2010 04:52 AM

1 Attachment(s)
Quote:

Originally Posted by Musika (Post 1950108)
I found out, that there are two Links for one Video and both are used by Clipfish, so I will give you both links for the following three examples. But I tested it out and after the video-ID you can put every string even with slashes, it is ignored.

1.
PHP Code:

http://www.clipfish.de/video/3221577/
http://www.clipfish.de/video/3221577/cute-dancer/ 

PHP Code:

<object width="464" height="384">
<
param name="allowScriptAccess" value="always" />
<
param name="movie" value="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&videoid=3221577&r=1&angebot=extern&c=990000" />
<
param name="bgcolor" value="#ffffff" />
<
param name="allowFullScreen" value="true" />
<
embed src="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=3221577&r=1&angebot=extern&c=990000" quality="high" bgcolor="#990000" width="464" height="384" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object


2.
PHP Code:

http://www.clipfish.de/video/3221911/
http://www.clipfish.de/video/3221911/winterspeck/ 

PHP Code:

<object width="464" height="384">
<
param name="allowScriptAccess" value="always" />
<
param name="movie" value="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&videoid=3221911&r=1&angebot=extern&c=990000" />
<
param name="bgcolor" value="#ffffff" />
<
param name="allowFullScreen" value="true" />
<
embed src="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=3221911&r=1&angebot=extern&c=990000" quality="high" bgcolor="#990000" width="464" height="384" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object


3.
PHP Code:

http://www.clipfish.de/channel/144/video/3094673/
http://www.clipfish.de/channel/144/video/3094673/bernard---windsurfing/ 

PHP Code:

<object width="464" height="384">
<
param name="allowScriptAccess" value="always" />
<
param name="movie" value="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&videoid=3094673&r=1&angebot=extern&c=990000" />
<
param name="bgcolor" value="#ffffff" />
<
param name="allowFullScreen" value="true" />
<
embed src="http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=3094673&r=1&angebot=extern&c=990000" quality="high" bgcolor="#990000" width="464" height="384" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object


Okay, that should be relatively simple. Give this definition a try and see if the sample URLs embed.

Musika 01-08-2010 09:37 AM

Quote:

Originally Posted by Digital Jedi (Post 1950144)
Okay, that should be relatively simple. Give this definition a try and see if the sample URLs embed.

Worked smooth and perfect.
Thank you! :up:

Nook_Neformat 01-08-2010 04:08 PM

Digital Jedi, first of all, thank you for your work, it is really helpfull!
And i got one question, i tried to make a definition to play DivShare music and i made it but it plays everywhere but not in FireFox.
So this is what i used
Regular expression
PHP Code:

[http://]*[a-z]*?[\.]?divshare\.com/download/([\w\-]+) 

Replacement
PHP Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="335" height="85" id="divplaylist"><param name="movie" value="http://www.divshare.com/flash/playlist?myId=$p1/></object

End here's example link:
http://www.neformat.com.ua/forum/nef...ml#post1038345

I'm not good at it so i think i messed up something. I hope you can help me, coz my users badly want this option(


All times are GMT. The time now is 04:46 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.02369 seconds
  • Memory Usage 1,844KB
  • 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
  • (8)bbcode_code_printable
  • (14)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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