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)

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.


All times are GMT. The time now is 09:35 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.01438 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
  • (3)bbcode_code_printable
  • (7)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