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)
-   -   Mini Mods - Auto youtube embed player ( NEW PLAYER ) (https://vborg.vbsupport.ru/showthread.php?t=251569)

yin9 05-02-2011 12:51 AM

Edit: Sorry...

ShawneyJ 05-03-2011 04:06 AM

ah i see, only works with URL LINK FROM BROWSER. thanks.

http://www.chatforums.net/graveyard/...tube-hack.html

mapleleaffans 05-03-2011 05:12 AM

Marked as Installed! Works great fr me! Thank you! :)

Llandy 05-06-2011 07:20 AM

Youtube has changed the "share" links. Is there an way to update this mod?

MagicThemeParks 05-06-2011 10:38 AM

Is this not working with the new share links?

mapleleaffans 05-06-2011 10:11 PM

Works fine for me guys. It works by using the actual link in the adress bar of your browser.

Llandy 05-07-2011 07:32 AM

Quote:

Originally Posted by mapleleaffans (Post 2192797)
Works fine for me guys. It works by using the actual link in the adress bar of your browser.

Nope, cause often you will get a link that is longer then the actual "share" link, which this mod is built on.

Quote:

Originally Posted by MagicThemeParks (Post 2192636)
Is this not working with the new share links?

Sadly it's not. Youtube changed their "share" links, which makes this mod outdated.

Max Taxable 05-09-2011 04:34 PM

I'm having no such trouble with my install. The new "short" share link works fine.

GavoTrav 06-14-2011 12:26 PM

Very good installed, resized for my forum 640x390

Demo: http://pvhax.com/forums/showthread.php?p=377291

Code:

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

<product productid="youtubeplayer" active="1">
        <title>Auto youtube embed</title>
        <description>replace youtube link with player</description>
        <version>1</version>
        <url>http://www.lebch.com</url>
        <versioncheckurl>http://www.lebch.com</versioncheckurl>
        <dependencies>
        </dependencies>
        <codes>
        </codes>
        <templates>
        </templates>
        <plugins>
                <plugin active="1" executionorder="5">
                        <title>embed player</title>
                        <hookname>postbit_display_complete</hookname>
                        <phpcode><![CDATA[$embed_player =  '
    <table widht="640" align="center" class="tborder" >
    <tr><td class="alt1">
    <object width="640" height="390">
    <param name="movie" value="http://www.youtube.com/v/\\4&hl=en_US&fs=1&rel=0&version=3">
    </param>
    <param name="allowFullScreen" value="true">
    </param>
    <param name="allowscriptaccess"value="always"></param>
    <embed src="http://www.youtube.com/v/\\4&hl=en_US&fs=1&rel=0&version=3"
    type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"  width="640" height="390"></embed>
      </object>
      </td>
      </tr>
      </table>
      ';

      $post['message'] = preg_replace('#(<a href="http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)">(http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)<\/a>#i', $embed_player, $post['message']);]]></phpcode>
                </plugin>
        </plugins>
        <phrases>
        </phrases>
        <options>
        </options>
        <helptopics>
        </helptopics>
        <cronentries>
        </cronentries>
        <faqentries>
        </faqentries>
</product>


drsli 06-14-2011 04:55 PM

The youtube-browser-address-link with the syntax

"http://www.youtube.com/watch?v=videocodehere"

works on my side perfectly.

Thanks for sharing this handy addon! :)


All times are GMT. The time now is 09:19 PM.

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.01107 seconds
  • Memory Usage 1,742KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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