vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Auto Youtube Link-Converter (https://vborg.vbsupport.ru/showthread.php?t=261296)

Disasterpiece 05-21-2011 11:21 PM

The Mod is made vor vbulletin 4 as you can see in the details in the first post, so I give no guarantee that it runs on older versions, now you know why :)

Angelyco 05-22-2011 12:02 AM

Yep, I did see that, and didn't see anyone else using anything much older to know if it worked or not, so it didn't hurt to ask! So assuming I had a newer version, I wouldn't need to add anything else to the code?

Disasterpiece 05-22-2011 01:36 PM

in theory, you must check the script files where the according hooks are located and see how video tags are parsed there. Then you replace the function name with the current in the script, which doesn't seem to exist prior to vb4. The rest of the code should be generative enough that it works on vb3 too.

inigo 05-22-2011 05:14 PM

Great mod,

working without problems, v4.1.2

thanks

Disasterpiece 05-23-2011 03:15 PM

Updated with version 1.4:

iPad shows replacement properly http://www.innsys.ca/images/icon_check.png

Gamelobby 05-24-2011 07:54 AM

Possible to do Game Trailers.?
http://www.gametrailers.com/video/de...-dirt-3/702436

Here is the embed code..
Code:

<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:702436" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;">Tags: <a href="http://www.gametrailers.com">GameTrailers.com</a>, <a href="http://www.gametrailers.com/video/debut-teaser-dirt-3/702436">Debut Teaser</a>, <a href="http://pc.gametrailers.com/">PC Games</a>, <a href="http://ps3.gametrailers.com/">PlayStation 3</a>, <a href="http://xbox360.gametrailers.com/">Xbox 360</a></p></div></div>

>> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.?

Thanks

Disasterpiece 05-24-2011 10:11 AM

Quote:

Originally Posted by Gamelobby (Post 2199382)
Possible to do Game Trailers.?
http://www.gametrailers.com/video/de...-dirt-3/702436

Here is the embed code..
Code:

<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:702436" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;">Tags: <a href="http://www.gametrailers.com">GameTrailers.com</a>, <a href="http://www.gametrailers.com/video/debut-teaser-dirt-3/702436">Debut Teaser</a>, <a href="http://pc.gametrailers.com/">PC Games</a>, <a href="http://ps3.gametrailers.com/">PlayStation 3</a>, <a href="http://xbox360.gametrailers.com/">Xbox 360</a></p></div></div>

>> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.?

Thanks

Hello,

Possible: yes.
But: This would go way beyond the scope of this mod.
If you'd like to have an individual solution, you can contact me via PM.

rhorman 05-25-2011 10:48 AM

This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?

Thanks!

Disasterpiece 05-25-2011 01:14 PM

Quote:

Originally Posted by rhorman (Post 2199746)
This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?

Thanks!

Open the xml file, search for this code occurence:
PHP Code:

$repl[] = $vbulletin->options['pl_ismobile']
            ? 
sprintf($vbulletin->options['autoyt_membed'], $v)
            : 
$bbcode_parser->handle_bbcode_video("http://www.youtube.com/watch?v=".$v"youtube;".$v); 

Replace with:
PHP Code:

$repl[] = "<center>".($vbulletin->options['pl_ismobile']
            ? 
sprintf($vbulletin->options['autoyt_membed'], $v)
            : 
$bbcode_parser->handle_bbcode_video("http://www.youtube.com/watch?v=".$v"youtube;".$v))."</center>"

3 times.

Not tested but should work.

porschegruven 05-26-2011 11:19 PM

Quote:

Originally Posted by grc (Post 2180484)
Cool - here's a link to a slide show:

PHP Code:

<embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fnazarenealvin%2Falbumid%2F5440810094021987121%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed

username: nazarenealvin
albumname: 2010NewCross

Is it do-able?

Is there any chance you can get your plugin to work with Picasaweb slide show? Picasa is Google's photo depository.


All times are GMT. The time now is 07:25 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.01347 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_php_printable
  • (3)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
  • (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