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.

Daracon 10-18-2007 05:49 AM

Quote:

Originally Posted by Viper007Bond (Post 1362767)
v2.0.2 Released

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

thank you for the update :)

afmarko99 10-18-2007 05:08 PM

All of the youtube and google videos on my site won't load now. They youtube videos just sit there with the loading graphic in the middle and the google videos don't even attempt to load. I have a ton of videos on the site and I am afraid I am going to have to manually fix them somehow.

Any ideas?
www.thepublicenemy.net

afmarko99 10-18-2007 05:13 PM

It seems that they won't load up a thumbnail now as they are loading or give you the play button in the middle of the image. You have to hit the play button on the bottom left for it to play otherwise it will try to load the entire video I guess.

derfelix 10-19-2007 03:18 PM

I seem to have a problem getting it to work... when my editor is in wysiwyg mode...

why? because the url gets parsed before the youtube or gooble tags..
if i switch off the wysiwyg mode.. i can see what happend:

[YOUTUBE][URL ]http://www.youtube.com/watch?v=_V_7u7zuiEM[/URL][/YOUTUBE]

the [URL ][/URL] tag is added as soon as I paste the url... and it somehow overrides the youtube tags...

Only workaround.. if i edit the post.. switch to non-wysiwyg mode and remove the [ url] tags manually...

:-( no one else have the problem???

Felix

Code Monkey 10-22-2007 03:03 AM

You don't need to use the url. You can just put the code in there as shown in the examples.

Viper007Bond 10-24-2007 10:24 AM

Quote:

Originally Posted by EaglezEye (Post 1363210)
It seems that they won't load up a thumbnail now as they are loading or give you the play button in the middle of the image. You have to hit the play button on the bottom left for it to play otherwise it will try to load the entire video I guess.

Weird. Link me to an example please so I can check out the source HTML.

Viper007Bond 10-24-2007 11:08 AM

v2.2.0 Released

I got tired of watching tiny little videos on my forums, so I added a +/- button for increasing the video size to 150% of normal. Should make it easier to watch some videos. :)

In action: http://forums.finalgear.com/showthread.php?t=14892

wizardan 10-24-2007 11:22 AM

Simple overwrite for the upgrade, then?

Artes_Marciales 10-24-2007 01:06 PM

Great Work!
Thanks! :)

BobbyBig 10-24-2007 03:09 PM

Updated but we dont see the + / - sign, whats wrong ?

Daracon 10-24-2007 03:43 PM

updated and works great! thank you!

PoetJA-1975 10-24-2007 08:54 PM

Quote:

Originally Posted by Viper007Bond (Post 1367383)
v2.2.0 Released

I got tired of watching tiny little videos on my forums, so I added a +/- button for increasing the video size to 150% of normal. Should make it easier to watch some videos. :)

In action: http://forums.finalgear.com/showthread.php?t=14892

Thanx - but I've customized the bbcode to fit the style of my forum: (example).
Is there anyway - you can post what part of the html is changed to include the +/- button?

Jacquii.

Viper007Bond 10-24-2007 11:34 PM

Quote:

Originally Posted by wizardan (Post 1367390)
Simple overwrite for the upgrade, then?

Yes, import product, tick the overwrite button. It'll upgrade the existing custom BBCode.

Quote:

Originally Posted by BobbyBig (Post 1367514)
Updated but we dont see the + / - sign, whats wrong ?

Make sure you ticked the "overwrite" button.

Viper007Bond 10-24-2007 11:39 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1367795)
Thanx - but I've customized the bbcode to fit the style of my forum: (example).
Is there anyway - you can post what part of the html is changed to include the +/- button?

Jacquii.

YouTube:

Code:

<td class="tcat" colspan="2" style="text-align:center">
        <span style="float:right;margin-left:5px;cursor:pointer;font-weight:bolder;" title="Increase this video's size" onclick="
                if ( this.innerHTML == '+' ) {
                        this.innerHTML = '-';
                        this.title = 'Reset video size';
                        this.parentNode.parentNode.parentNode.parentNode.width=638;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].width=638;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].height=515;
                } else {
                        this.innerHTML = '+';
                        this.title = 'Increase this video\'s size';
                        this.parentNode.parentNode.parentNode.parentNode.width=425;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].width=425;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].height=355;
                }
        ">+</span>

        <a href="http://www.youtube.com/watch?v=...

Google Video:

Code:

<td class="tcat" colspan="2" style="text-align:center">
        <span style="float:right;margin-left:5px;cursor:pointer;font-weight:bolder;" title="Increase this video's size" onclick="
                if ( this.innerHTML == '+' ) {
                        this.innerHTML = '-';
                        this.title = 'Reset video size';
                        this.parentNode.parentNode.parentNode.parentNode.width=600;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].width=600;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].height=489;
                } else {
                        this.innerHTML = '+';
                        this.title = 'Increase this video\'s size';
                        this.parentNode.parentNode.parentNode.parentNode.width=400;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].width=400;
                        this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('object')[0].height=326;
                }
        ">+</span>

        <a href="http://video.google.com/videoplay?docid=


PoetJA-1975 10-25-2007 01:08 AM

EXCELLENT = Thanx so much VIPER - works like a charm.
I just realized I haven't rated this thread - So gave it an excellent rating
And a vote for MOTM!

Jacquii.

funkmeister 10-25-2007 05:41 AM

How do I get the videos to display centered in each post vs. left aligned - I've gone through and added align="center" in what I thought were the obvious places, but it's not sticking - any help appreciated.

Great job on this update by the way, works great. Thanks.

PoetJA-1975 10-25-2007 06:02 AM

Quote:

Originally Posted by funkmeister (Post 1368094)
How do I get the videos to display centered in each post vs. left aligned - I've gone through and added align="center" in what I thought were the obvious places, but it's not sticking - any help appreciated.

Great job on this update by the way, works great. Thanks.

I simply added <div align="center"> at the very top of the code....
Then just close by putting </div> at the very bottom ;)

HTH,

Jacquii.

funkmeister 10-26-2007 02:53 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1368100)
I simply added <div align="center"> at the very top of the code....
Then just close by putting </div> at the very bottom ;)

HTH,

Jacquii.

Yeah, that is what I've done, but perhaps it's in the wrong place? I have:

Code:

$vbulletin->db->escape_string('<div align="center"><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="400" align="center" style="margin:10px 0">
With a </div> at the very bottom.

Is this the right place?

PoetJA-1975 10-26-2007 03:16 AM

That's horribly wrong :)

Jacquii.

Viper007Bond 10-26-2007 09:17 AM

Quote:

Originally Posted by funkmeister (Post 1368837)
Is this the right place?

No. Install the product. When it gets installed, it automatically adds in some custom BBCode.

Then just go into your admin area -> Custom BBCode -> edit the new different BBCodes.

ktaylor 10-27-2007 06:26 AM

question...everything uploaded/installed just fine BUT my editor is not seeing the image graphics even though they're under images/editor.

could it be because my forum is aliased to forums.jetgirls.net and not jetgirls.net/forums? i figure it's the only thing that could be causing the problem...

also, if that is the case, how do i go about fixing? Thanks!

vietfancy 10-28-2007 04:22 AM

Would somebody please add yahoo video into this as well?

funkmeister 10-29-2007 04:54 AM

Quote:

Originally Posted by Viper007Bond (Post 1368976)
No. Install the product. When it gets installed, it automatically adds in some custom BBCode.

Then just go into your admin area -> Custom BBCode -> edit the new different BBCodes.

Many thanks Viper007Bond and PoetJA-1975 - finally understand where to put it now :)

Thanks and keep up the good work.

PoetJA-1975 10-29-2007 05:43 AM

LOL - Glad to help - I do suppose I could have been more succinct with my "That's horribly wrong" post :P

Jacquii.

McMendo 10-29-2007 11:40 AM

Quote:

Upgrading from v1.x:

Just remove the plugin you added before (manage plugins -> delete) and then continue on to the installation instructions.

If you already have v2.x installed, you do NOT need to do this.
I have v1.0.0 installed. But I can't find the plugin to uninstall it.

rabbits slayer 11-01-2007 01:30 AM

Hey how can I set it to auto start? Thanks.

Viper007Bond 11-02-2007 03:45 AM

Quote:

Originally Posted by McMendo (Post 1371063)
I have v1.0.0 installed. But I can't find the plugin to uninstall it.

Plugins & Producsts -> Plugins

Viper007Bond 11-02-2007 03:46 AM

Quote:

Originally Posted by rabbits slayer (Post 1373143)
Hey how can I set it to auto start? Thanks.

You can't. Neither site supports it AFAIK.

McMendo 11-02-2007 08:47 AM

Quote:

Originally Posted by Viper007Bond (Post 1373982)
Plugins & Producsts -> Plugins

I know. It was just not there. Anyway, I installed the plugin with overwrite allowed. Seems to be working. Except the full URLs, which don't work.

him666 11-09-2007 07:36 PM

like it very much but the little logo dont show up:(


All times are GMT. The time now is 03:12 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.02238 seconds
  • Memory Usage 1,857KB
  • 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
  • (2)bbcode_php_printable
  • (17)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
  • (40)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