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)
-   -   New Posting Features - Fluid YouTube/Vimeo BBcodes (auto-created) (https://vborg.vbsupport.ru/showthread.php?t=319623)

MarkFL 07-24-2015 09:00 PM

Fluid YouTube/Vimeo BBcodes (auto-created)
 
1 Attachment(s)
This product creates 2 new BBCodes that will allow your users to post YouTube/Vimeo videos in fluid containers, i.e., containers that will dynamically resize if the browser window is resized to always maintain a 16:9 aspect ratio and to maintain left/right margins based on a defined percentage of the parent element's width.

Once installed, instruct your users that they merely need to include the video identifiers within the BBCode tags. For example:

Code:

[MYOUTUBE]xjglB04TOno[/MYOUTUBE]

[MVIMEO]22439234[/MVIMEO]

Features:
  • Upon installation, your database is edited to create the two new BBCodes thereby eliminating the need for you to go through the tedious process of manually adding them yourself.
  • A button for each BBCode is added to your editor's toolbar.
  • The CSS of the video elements is configurable via the product settings.

Update: version 1.1
  • Added code so that CSS is rendered on the scripts necessary for the videos to display correctly when previewing a post or viewing in the topic review.
Update: version 1.2
  • Added the option to define a maximum width for the videos.
Update: version 1.3
  • Added support for CMS articles.
Update: version 1.4
Update: version 1.5
  • Template now cached.
Update: version 1.6
  • Added support for CMS previews.

Update: version 1.7
  • Added support for SSL.
The BBCode buttons in the editor toolbar:

https://vborg.vbsupport.ru/attachmen...1&d=1437852009

A YouTube video in a post:

https://vborg.vbsupport.ru/attachmen...1&d=1437852009

Upon clicking the BBCode buttons in the editor toolbar, you simply need to enter the video's identifier between the generated tags.

To Install:

Download and extract the attached .zip file.

Upload the contents of the "upload" folder to your root directory. This is the image files for the BBCode buttons.

In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

Visit the product's settings to configure the CSS (there are default values, so the product will run without having to initially set the settings). Each setting has an explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1442242111

Support for this product can be found here:

akz645 07-30-2015 07:26 AM

Could you do one for facebook too, please?

MarkFL 07-30-2015 07:58 AM

Quote:

Originally Posted by akz645 (Post 2551694)
Could you do one for facebook too, please?

Perhaps eventually...I [s]w[/s]don't do facebook and I would have to figure out how to integrate their embed code format. :)

RyanCB 08-06-2015 04:25 AM

Hello, our site is using SSL and i have mod'd the links in the plugin to be https: . The video shows but when you try to hit play it says an error has occurred. Any ideas what we are missing? Link to our test thread.

https://www.boostedforums.net/showth...6-Youtube-Test

RichieBoy67 08-06-2015 05:33 AM

Very Good Mark! Thanks!

MarkFL 08-06-2015 12:36 PM

Quote:

Originally Posted by RyanCB (Post 2552197)
Hello, our site is using SSL and i have mod'd the links in the plugin to be https: . The video shows but when you try to hit play it says an error has occurred. Any ideas what we are missing? Link to our test thread.

https://www.boostedforums.net/showth...6-Youtube-Test

I only see a blank video element when I follow the link. Can you post what your HTML replacement for the BBCode looks like after your edit?

Fizzgig 08-10-2015 08:20 AM

Quote:

Originally Posted by MarkFL (Post 2552239)
I only see a blank video element

Hi ..im getting the same, just comes up with error ...thanks

MarkFL 08-10-2015 03:06 PM

Quote:

Originally Posted by Fizzgig (Post 2552548)
Hi ..im getting the same, just comes up with error ...thanks

What error message are you getting?

Fizzgig 08-10-2015 04:29 PM

Hi..its the same error when the video has been removed on youtube...

MarkFL 08-10-2015 04:38 PM

Quote:

Originally Posted by Fizzgig (Post 2552566)
Hi..its the same error when the video has been removed on youtube...

Hmm...okay, would you please post:
  • A link to one of your pages containing such a video.
  • The video's identifier (what you are putting in between the tags) on the page to which you link so I can try it on my dev site.


All times are GMT. The time now is 11:54 AM.

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.01171 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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