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)
-   -   New Posting Features - VB AnyMedia Player / Media Sites (youtube, google and many more) (https://vborg.vbsupport.ru/showthread.php?t=150491)

bing11 09-16-2007 01:14 PM

Quote:

Originally Posted by nix (Post 1340045)
You want to use this in vblog? I haven't tried.

yes I try . But not work . Can help?

Emaginsoft 09-16-2007 06:24 PM

the mp3's refused to play so I had to add:

Code:

so$media[id].addVariable("type","mp3");
now they play just fine with autostart. Hopefully this is helpful to you. :D

eurofunny 09-16-2007 07:39 PM

Quote:

Originally Posted by Emaginsoft (Post 1340310)
the mp3's refused to play so I had to add:

Code:

so$media[id].addVariable("type","mp3");
now they play just fine with autostart. Hopefully this is helpful to you. :D

Hi, can you attach the anymedia Template with your modifications please??

Emaginsoft 09-16-2007 07:44 PM

I made all the changes to the anymediaold template. Note that I uploaded the full mp3 player instead of using the modified version. here is my full modified version of the template:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$media[layout]">
<tr>
        <td class="tcat"<if condition="$media['type'] == 'p2p'"> colspan="2"</if>>
        <span style="float:$stylevar[right]"><a href="#" onclick="return toggle_collapse('media_$media[id]')"><img id="collapseimg_media_$media[id]" src="$stylevar[imgdir_button]/collapse_tcat.gif" border="0" /></a></span>
        <a href="#" onclick="return toggle_collapse('media_$media[id]')"><if condition="$vboptions['anymediatitle']"> $vboptions[anymediatitle]<else />$vbphrase[anymedia_player]</if></a></td>
</tr>
<tbody id="collapseobj_media_$media[id]"<if condition="$vboptions['anymediacollapse']"> style="display:none;"</if>>
<if condition="$media['type'] != 'p2p'">
<tr>
        <td class="alt1" align="center">
                <if condition="$media['type'] == 'adobe_flash' AND !in_array($media['extension'], array('mp3','mtv','flv','youporn','godtube'))">
                        <div id="vid-$media[id]">
                                <script type="text/javascript">
                                        // <![CDATA[               
                                        var so$media[id] = new SWFObject("$media[url]", "anymediavidsites", "$media[width]", "$media[height]", "7", "#FFFFFF");
                                        <if condition="$media['url2']">so$media[id].addVariable("$media[url2]");</if>
                                        so$media[id].addParam("wmode", "transparent");
                                        so$media[id].write('vid-$media[id]');
                                        // ]]>
                                </script>
                        </div>
                </if>
                <if condition="$media['extension'] == 'mp3'">
                        <div id="vid-$media[id]">
                                <script type="text/javascript">
                                        var so$media[id] = new SWFObject("players/mp3player.swf", "line", "420", "20", "7");
                                        so$media[id].addVariable("file","$media[link]");
                        so$media[id].addVariable("width","420");
                        so$media[id].addVariable("repeat","$media[loop]");
                        so$media[id].addVariable("type","mp3");
                        so$media[id].addVariable("showdigits","true");
                        so$media[id].addVariable("showdownload","$media[download]");
                        so$media[id].addVariable("autostart","$media[autoplay]");
                                       
                                        so$media[id].write('vid-$media[id]');
                                </script>
                        </div>
                </if>
                <if condition="$media['attachment'] == 'flv'">
                <!-- Adobe Flash -->
                <div id="$media[id]">
                        <script type="text/javascript">
                                // <![CDATA[               
                                var so$media[id] = new SWFObject("$media[url]", "flvattach", "$media[width]", "$media[height]", "7", "#FFFFFF");
                                so$media[id].addVariable("file","$media[url3]");
                                so$media[id].addParam("wmode", "transparent");
                                so$media[id].addVariable("image","anymedia/anyMediaplay.gif");
                                so$media[id].addVariable('type','flv');
                                so$media[id].write('$media[id]');
                                // ]]>
                        </script></div>
                </if>
                <if condition="$media['extension'] == 'flv' AND $media['attachment'] != 'flv'">
                        <div id="vid-$media[id]">
                                <script type="text/javascript">
                                        // <![CDATA[               
                                        var so$media[id] = new SWFObject("$media[url]", "anymediaflash", "$media[width]", "$media[height]", "7", "#FFFFFF");
                                        so$media[id].addVariable("file","$media[link]");
                                        so$media[id].addParam("wmode", "transparent");
                                        so$media[id].addVariable("image","anymedia/anyMediaplay.gif");
                                        so$media[id].addVariable('type','flv');
                                        so$media[id].write('vid-$media[id]');
                                        // ]]>
                                </script>
                        </div>
                </if>
                <if condition="$media['extension'] == 'mtv'">
                        <div id="vid-$media[id]">
                                <script type="text/javascript">
                                        // <![CDATA[               
                                        var so$media[id] = new SWFObject("$media[url]", "anymediavidsitesmtv", "$media[width]", "$media[height]", "7", "#FFFFFF");
                                        so$media[id].addVariable("CONFIG_URL","$media[url2]");
                                        so$media[id].addParam("AllowScriptAccess", "never");
                                        so$media[id].addParam("base", ".");
                                        so$media[id].addParam("wmode", "transparent");
                                        so$media[id].write('vid-$media[id]');
                                        // ]]>
                                </script>
                        </div>
                </if>
                <if condition="$media['extension'] == 'godtube'">
                        <div id="vid-$media[id]">
                                <script type="text/javascript">
                                        // <![CDATA[               
                                        var so$media[id] = new SWFObject("$media[url]", "anymediavidsitesgodtube", "$media[width]", "$media[height]", "7", "#FFFFFF");
                                        so$media[id].addVariable("type","$media[url2]");
                                        so$media[id].addParam("wmode", "transparent");
                                        so$media[id].write('vid-$media[id]');
                                        // ]]>
                                </script>
                        </div>
                </if>
                <if condition="$media['type'] == 'divx_video'">
                <!-- Divix -->
                <object codebase="http://download.divx.com/webplayer/stage6/windows/DivXBrowserPlugin.cab" height="$media[height]" width="$media[width]" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="$media[url]" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="$media[url]" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="$media[height]" width="$media[width]" /></object>
                </if>
        <if condition="$media['type'] == 'quick_time'">
        <!-- Quick Time -->
                <script type="text/javascript" src="clientscript/anymedia.js"></script>
                <div id="anymedia_container_$media[id]"></div>
                <script type="text/javascript">anymedia_quicktime('$media[id]', '$media[url]', '$media[mime]', '$media[width]', '$media[height]', '$media[autoplay]', '$media[loop]');</script>
        </if>
        <if condition="$media['type'] == 'real_media'">
        <!-- Real Media -->
                <script type="text/javascript" src="clientscript/anymedia.js"></script>
                <div id="anymedia_container_$media[id]"></div>
                <script type="text/javascript">anymedia_realmedia('$media[id]', '$media[url]', '$media[mime]', '$media[width]', '$media[height]', '$media[autoplay]', '$media[loop]');</script>
        </if>
        <if condition="$media['type'] == 'windows_media'">
        <!-- Windows Media -->
                <script type="text/javascript" src="clientscript/anymedia.js"></script>
                <div id="anymedia_container_$media[id]"></div>
                <script type="text/javascript">anymedia_windowsmedia('$media[id]', '$media[url]', '$media[mime]', '$media[width]', '$media[height]', '$media[autoplay]', '$media[loop]');</script>
        </if>
        <if condition="$media['type'] == 'adobe_pdf'">
        <!-- Adobe PDF -->
                <script type="text/javascript" src="clientscript/anymedia.js"></script>
                <div id="anymedia_container_$media[id]"></div>
                <script type="text/javascript">anymedia_adobepdf('$media[id]', '$media[url]', '$media[mime]', '$media[width]', '$media[height]', '$media[autoplay]');</script>
        </if>
        <if condition="$media['type'] == 'image'">
        <!-- Image -->
                <script type="text/javascript" src="clientscript/anymedia.js"></script>
                <img src="$media[url]" id="anymedia_image_$media[id]" border="0" onload="if(this.width>$media[width]) {this.resized=true; this.width='$media[width]'; this.alt='$vbphrase[anymedia_resized]';}" onmouseover="if(this.resized) this.style.cursor='pointer';" onclick="if(!this.resized) {return false;} else {window.open('$media[url]');}" onmousewheel="return imgzoom(this);" />
        </if>
        <if condition="$media['type'] == 'pplive'">
        <!-- PPLive -->
                <script type="text/javascript" src="clientscript/anymedia.js"></script>
                <div id="anymedia_container_$media[id]"></div>
                <script type="text/javascript">anymedia_pplive('$media[id]', '$media[url]', '$media[mime]', '$media[width]', '$media[height]', '$media[autoplay]');</script>
        </if>
        <if condition="$media['type'] == 'torrent_error'">
        <!-- Torrent Error -->
                $vbphrase[anymedia_torrent_error]
        </if>
        <if condition="$media['type'] == 'unknown'">
        <!-- Wrong Type -->
                $vbphrase[anymedia_wrong_type]
        </if>
        <if condition="$media['type'] == 'error'">
        <!-- Error -->
                $vbphrase[anymedia_error]
        </if>
        <if condition="$media['type'] == 'vidsiteoff'">
        <!-- Error -->
                $vbphrase[anymedia_vidsiteoff]
        </if>
        </td>
</tr>
<else />
<if condition="$media['extension'] == 'torrent'">
<!-- Torrent -->
<if condition="$media['extra']['name']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_name]: </td>
        <td class="alt1">{$media[extra][name]}<if condition="$media['extra']['length']"> ( {$media[extra][length]} )</if></td>
</tr>
</if>
<if condition="$media['extra']['publisher']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_publisher]: </td>
        <td class="alt1"><if condition="$media['extra']['publisher_url']"><a href="{$media[extra][publisher_url]}" target="_blank" title="$vbphrase[anymedia_torrent_publisher_url]">{$media[extra][publisher]}</a><else />{$media[extra][publisher]}</if></td>
</tr>
</if>
<if condition="$media['extra']['created_by']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_created_by]: </td>
        <td class="alt1">{$media[extra][created_by]}</td>
</tr>
</if>
<if condition="$media['extra']['creation_date']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_creation_date]: </td>
        <td class="alt1">{$media[extra][creation_date]}</td>
</tr>
</if>
<if condition="$media['extra']['encoding']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_encoding]: </td>
        <td class="alt1">{$media[extra][encoding]}<if condition="$media['extra']['codepage']"> ( $vbphrase[anymedia_torrent_codepage]: {$media[extra][codepage]} )</if></td>
</tr>
</if>
<if condition="$media['extra']['piece_length']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_piece_length]: </td>
        <td class="alt1">{$media[extra][piece_length]}</td>
</tr>
</if>
<if condition="$media['extra']['announce']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_announce]: </td>
        <td class="alt1">{$media[extra][announce]}</td>
</tr>
</if>
<if condition="$media['extra']['nodes']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_nodes]: </td>
        <td class="alt1">{$media[extra][nodes]}</td>
</tr>
</if>
<if condition="$media['extra']['files']">
<tr>
        <td class="alt2" width="20%">$vbphrase[anymedia_torrent_files]: </td>
        <td class="alt1">{$media[extra][files]}</td>
</tr>
</if>
</if>
<if condition="$media['extension'] == 'foxy' || $media['extension'] == 'emule'">
<!-- Foxy -->
{$media[extra][content]}
<tr class="alt2">
        <td align="left" width="80%">
        <script type="text/javascript" src="clientscript/anymedia.js"></script>
        <span style="float: right;"><input type="button" value="$vbphrase[anymedia_download_checked]" onClick="anymedia_download('$media[id]', 0, 1)" class="button"> <input type="button" value="$vbphrase[anymedia_copy_checked]" onClick="anymedia_copy('$media[id]')" class="button"><div id="copy_anymedia_$media[id]" style="position:absolute;height:0px;width:0px;overflow:hidden;"></div></span> <input type="checkbox" id="checkall_anymedia_$media[id]" onClick="anymedia_checkall('$media[id]', this.checked)" checked="checked" /> <label for="checkall_anymedia_$media[id]">$vbphrase[anymedia_check_all]</label>
        </td>
        <td align="center" width="20%" class="alt1">
        $vbphrase[anymedia_total_size]<span id="size_anymedia_$media[id]">{$media[extra][size]}</span>
        </td>
</tr>
</if>
</if>
<if condition="$media['download']">
<tr>
        <td class="tfoot" align="center"<if condition="$media['type'] == 'p2p'"> colspan="2"</if>><a href="$media[link]" target="_blank"><if condition="$media['title']">$media[title]<else />$vbphrase[anymedia_download]</if></a></td>
</tr>
<else />
<tr>
        <td class="tfoot" align="center"<if condition="$media['type'] == 'p2p'"> colspan="2"</if>><strong>$media[title]</strong></td>
</tr>
</if>
</tbody>
</table>


eurofunny 09-16-2007 07:58 PM

thx now it works :D

ammoskumar 09-16-2007 09:20 PM

Quote:

Originally Posted by nix (Post 1339778)
I would have to look at your forum to see.

Ya can you please check.....

jamestanker 09-16-2007 10:20 PM

I am being told to upgrade my flash player and it just puts the M logo in the spot

help!

RockStrongo 09-16-2007 11:25 PM

Nice Mod! Thanks!

Any chance you'll ever get NFL.com videos to work? ;)

nix 09-16-2007 11:34 PM

I'll take a look at them. Didn't know they had videos.

I have this working in the vblogs. I'll release it sometime this week.

RockStrongo 09-17-2007 12:07 AM

Here's a sample of their video link they provide if that helps at all. :up:

http://www.nfl.com/videos?videoId=09000d5d8026755c

Once again....GREAT MOD!


All times are GMT. The time now is 12:29 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.02725 seconds
  • Memory Usage 1,819KB
  • 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
  • (3)bbcode_code_printable
  • (3)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