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)
-   -   BB Code Enhancements - Embed XHTML valid YouTube and Google Video into your posts (https://vborg.vbsupport.ru/showthread.php?t=130868)

webmaster74 08-17-2007 09:03 PM

anyone can tell if this mod works fine with 3.6.8 ? ?

Kinneas 08-21-2007 08:04 AM

Quote:

Originally Posted by glennno (Post 1319028)
Is there any security risk with this mod? Does it actually enable HTML in any way, which is a security risk in vB? I can't tell. Thanks.

As it's a BBCode replacement I don't think it poses any kind of risk, just like the [b] code replaces the html for <b>

Kinneas 08-21-2007 08:08 AM

This is a very useful product, may I suggest adding regional variations of YT in your next version though? (Eg, uk.youtube.com, ie.youtube.com)

glennno 08-21-2007 08:10 AM

Thank you very much, Kinneas. Someone at the vBulletin.com forum had expressed some concern, but I guess they just saw "Embed XHTML" in the title and thought it actually enables HTML.

Kinneas 08-21-2007 08:58 AM

Quote:

Originally Posted by Kinneas (Post 1322173)
This is a very useful product, may I suggest adding regional variations of YT in your next version though? (Eg, uk.youtube.com, ie.youtube.com)

Re: This.

Sorry if someone's mentioned it already, but I found a way to make it work.

In the plugin "Find Valid BBCode Calls & Handle Full URLs",
find:

PHP Code:

    // Replace all valid YouTube/Google Video BBCode with some temp tags
    
$ytgv_validpatterns = array(
        
'#\[YOUTUBE\]http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)(.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE\]([\w-]+)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE="http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)(.*?)"\](.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE=http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)(.*?)\](.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE="([\w-]+)"\](.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE=([\w-]+)\](.*?)\[/YOUTUBE\]#i',
        
'#\[GVIDEO\]http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO\]([\d-]+)\[/GVIDEO\]#i',
        
'#\[GVIDEO="http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)"\](.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO=http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)\](.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO="([\d-]+)"\](.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO=([\d-]+)\](.*?)\[/GVIDEO\]#i',
    ); 

Replace with:

PHP Code:

     // Replace all valid YouTube/Google Video BBCode with some temp tags
    
$ytgv_validpatterns = array(
        
'#\[YOUTUBE\]http://(www.youtube|youtube|[a-z.]{2}.youtube)\.com/watch\?v=([\w-]+)(.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE\]([\w-]+)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE="http://(www.youtube|youtube|[a-z.]{2}.youtube)\.com/watch\?v=([\w-]+)(.*?)"\](.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE=http://(www.youtube|youtube|[a-z.]{2}.youtube)\.com/watch\?v=([\w-]+)(.*?)\](.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE="([\w-]+)"\](.*?)\[/YOUTUBE\]#i',
        
'#\[YOUTUBE=([\w-]+)\](.*?)\[/YOUTUBE\]#i',
        
'#\[GVIDEO\]http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO\]([\d-]+)\[/GVIDEO\]#i',
        
'#\[GVIDEO="http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)"\](.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO=http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)\](.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO="([\d-]+)"\](.*?)\[/GVIDEO\]#i',
        
'#\[GVIDEO=([\d-]+)\](.*?)\[/GVIDEO\]#i',
    ); 


Viper007Bond 08-24-2007 08:40 AM

Thanks.

Yeah, I need to spend some time and update this plugin a little (minor fixes and such).

Been too busy with paid work and my World of Warcraft addiction. >_<

Andyucs 08-24-2007 09:36 AM

Quote:

Originally Posted by Viper007Bond (Post 1324631)
Thanks.

Yeah, I need to spend some time and update this plugin a little (minor fixes and such).

Been too busy with paid work and my World of Warcraft addiction. >_<

Do more coding then you will have a life :):D:)

dump WoW

nokturno 09-09-2007 01:45 PM

problem in all videos

[img=http://img41.imagevenue.com/loc1068/th_48947_problem_122_1068lo.jpg]

Mungky 10-17-2007 07:02 PM

I've installed this mod a few times; it's fantastic and has never caused any problems.

However, on my most recent install, for some reason I can't figure out, the font color is not showing up properly from my .tcat settings. If I change any other aspects of the font—underline, bold, whatever, that works, but the font color won't change, even though it works in all the other .tcat instances in my forum.

I've been tearing my hair out trying to figure out what might be going on. I've tried replacing the tcat code in the BBCode for this mod, but those font colors don't take, either.

Does anyone have any idea what might be causing this issue? At this point I don't think it's the mod, but since that's the only place where the settings aren't working properly, I've posted the issue in this thread. There must be something I've missed. Any insight would be very appreciated.

Thanks again for the mod, Viper. Great, great work.

Viper007Bond 10-18-2007 01:27 AM

v2.0.2 Released

YouTube has changed the height of their embeds. This update should automatically change it to the new value of 355.


All times are GMT. The time now is 05:05 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.01370 seconds
  • Memory Usage 1,754KB
  • 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_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