Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Fluid YouTube/Vimeo BBcodes (auto-created) Details »»
Fluid YouTube/Vimeo BBcodes (auto-created)
Version: 1.7, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 07-24-2015 Last Update: 12-31-2016 Installs: 42
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

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:



A YouTube video in a post:



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.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Fluid Youtube-Vimeo Video BBCodes v1.7.zip (6.4 KB, 97 views)

Screenshots

File Type: jpg fluidvideoseditor.jpg (30.0 KB, 0 views)
File Type: png fluidvideospost.png (245.9 KB, 0 views)
File Type: png fluidvideosacp.png (73.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
RichieBoy67

Comments
  #52  
Old 01-01-2017, 05:07 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and tried it out.

The two new BBCode icons appear in the toolbar. I tried the YouTube one. Put in the YouTube video identifier code between the tags. In Preview all that shows is the video container; there are no buttons or anything else.

I've temporarily uninstalled the MOD, but would like to use it if you can help me to get it working.

vBulletin 4.2.3 Patch Level 2. We are running our site with SSL if that makes a difference.
Reply With Quote
  #53  
Old 01-01-2017, 05:16 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
Installed and tried it out.

The two new BBCode icons appear in the toolbar. I tried the YouTube one. Put in the YouTube video identifier code between the tags. In Preview all that shows is the video container; there are no buttons or anything else.

I've temporarily uninstalled the MOD, but would like to use it if you can help me to get it working.

vBulletin 4.2.3 Patch Level 2. We are running our site with SSL if that makes a difference.
Okay, the first thing I would try is change the "http://" in the BBCode replacement to "https://"...please let me know if that works.
Reply With Quote
  #54  
Old 01-01-2017, 05:41 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.

Changing http: to https: in the Replacement code did the trick. I'm assuming I'll need to do the same for the Vimeo Replacement code as well?
Reply With Quote
Благодарность от:
MarkFL
  #55  
Old 01-01-2017, 05:54 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Vimeo Replacement code consists of:
HTML Code:
<br><div class="markfl_video_wrapper"><div class="markfl_video_wrapper_header markfl_video_gradient"></div><div style="background-color:transparent"><div class="markfl_video-container"><iframe src="//player.vimeo.com/video/{param}" frameborder="0"<p><a href="http://vimeo.com/{param}"></a> from <a href="http://vimeo.com/terjes"></a> on <a href="https://vimeo.com">Vimeo</a>.</p></iframe></div></div><div class="markfl_video_wrapper_footer markfl_video_gradient"></div></div><br>
What do we 'paste' between [MVIMEO][/MVIMEO]? Their URLs are constructed like YouTube videos. And, there appear to be categories which are part of the URL path to the video.

Nevermind! I had never been to vimeo.com before. If I enter a category and then select something, the format is https://vimeo.com/identifier. Looks like Vimeo is https: already, so no change to Replacement code needed.

Both BBCodes work nicely.
Reply With Quote
  #56  
Old 01-01-2017, 06:06 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
Thank you.

Changing http: to https: in the Replacement code did the trick. I'm assuming I'll need to do the same for the Vimeo Replacement code as well?
I will change both, and publish an update, so just wait until I do that, then download the update and install, and you should be good to go.

Quote:
Originally Posted by Snowhog View Post
The Vimeo Replacement code consists of:
HTML Code:
<br><div class="markfl_video_wrapper"><div class="markfl_video_wrapper_header markfl_video_gradient"></div><div style="background-color:transparent"><div class="markfl_video-container"><iframe src="//player.vimeo.com/video/{param}" frameborder="0"<p><a href="http://vimeo.com/{param}"></a> from <a href="http://vimeo.com/terjes"></a> on <a href="https://vimeo.com">Vimeo</a>.</p></iframe></div></div><div class="markfl_video_wrapper_footer markfl_video_gradient"></div></div><br>
What do we 'paste' between [MVIMEO][/MVIMEO]? Their URLs are constructed like YouTube videos. And, there appear to be categories which are part of the URL path to the video.
You include just the video identifier at the end of the URL.
Reply With Quote
  #57  
Old 01-01-2017, 06:22 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - version 1.7:
  • Added support for SSL.
Reply With Quote
  #58  
Old 01-01-2017, 06:41 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.7 installed.

Thank you. Another nice addition to our Forum.:up:
Reply With Quote
Благодарность от:
MarkFL
  #59  
Old 01-01-2017, 06:44 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
Version 1.7 installed.

Thank you. Another nice addition to our Forum.:up:
Thank you for your valuable feedback and testing, which helped me make this product more useful as more folks are moving to SSL. :up:
Reply With Quote
  #60  
Old 03-01-2017, 05:11 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested in vb4.2.0 pl4 (https)
Cool and very useful. Thank you very much
Reply With Quote
Благодарность от:
MarkFL
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08239 seconds
  • Memory Usage 2,353KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete