Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Simple Video Embed No Follow Details »»
Simple Video Embed No Follow
Version: 1.00, by RichieBoy67 RichieBoy67 is offline
Developer Last Online: Jun 2022 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.2 Rating:
Released: 01-23-2015 Last Update: Never Installs: 7
Template Edits
Re-useable Code  
No support by the author.

Hey everyone,

This is a simple template modification that adds rel="nofollow" to the video embed bbcode. Search engines see video embeds as duplicate content so this will help a bit with that.

I did this for one of my own sites and I thought it may help someone else.

##Instructions:
Go into your style manager and replace the contents of the template bbcode_video with this:
PHP Code:
<vb:if condition="$provider == 'dailymotion'">
    <
object class="restrain" type="application/x-shockwave-flash"  width="420" height="339" data="http://www.dailymotion.com/swf/{vb:raw  code}" rel="nofollow">
    <
param name="movie" value="http://www.dailymotion.com/swf/{vb:raw code}" />
    <
param name="wmode" value="{vb:raw wmode}" />
    <!--[if 
IE 6]>
    <
embed width="420" height="339"  type="application/x-shockwave-flash"  src="http://www.dailymotion.com/swf/{vb:raw code}" rel="nofollow" />
    <![endif]--></
object>
<
vb:elseif condition="$provider == 'facebook'"/>
    <
iframe  src="https://www.facebook.com/video/embed?video_id={vb:raw code}"  rel="nofollow" width="720" height="450"  frameborder="0"></iframe>
<
vb:elseif condition="$provider == 'google'"/>
    <
object class="restrain" type="application/x-shockwave-flash"  width="400" height="326"  data="http://video.google.com/googleplayer.swf?docid={vb:raw code}"  rel="nofollow">
    <
param name="movie" value="http://video.google.com/googleplayer.swf?docid={vb:raw code}" rel="nofollow" />
    <
param name="wmode" value="{vb:raw wmode}" />
    <!--[if 
IE 6]>
    <
embed width="400" height="326"  type="application/x-shockwave-flash"  src="http://video.google.com/googleplayer.swf?docid={vb:raw code}"  rel="nofollow" />
    <![endif]--></
object>
<
vb:elseif condition="$provider == 'hulu'"/>
    <
object class="restrain" type="application/x-shockwave-flash"  width="512" height="296" data="http://www.hulu.com/embed/{vb:raw code}"  rel="nofollow">
    <
param name="movie" value="http://www.hulu.com/embed/{vb:raw code}" />
    <
param name="wmode" value="{vb:raw wmode}" />
    <!--[if 
IE 6]>
    <
embed width="512" height="296"  type="application/x-shockwave-flash"  src="http://www.hulu.com/embed/{vb:raw code}" rel="nofollow" />
    <![endif]--></
object>
<
vb:elseif condition="$provider == 'metacafe'"/>
    <
object class="restrain" type="application/x-shockwave-flash"  width="400" height="345" data="http://www.metacafe.com/fplayer/{vb:raw  code}.swf" rel="nofollow">
    <
param name="movie" value="http://www.metacafe.com/fplayer/{vb:raw code}.swf" />
    <
param name="wmode" value="{vb:raw wmode}" />
    <!--[if 
IE 6]>
    <
embed width="400" height="345"  type="application/x-shockwave-flash"  src="http://www.metacafe.com/fplayer/{vb:raw code}.swf" rel="nofollow"  />
    <![endif]--></
object>
<
vb:elseif condition="$provider == 'vimeo'"/>
    <
object class="restrain" type="application/x-shockwave-flash"  width="640" height="360" data="//vimeo.com/moogaloop.swf?clip_id={vb:raw  code}" rel="nofollow">
    <
param name="movie" value="//vimeo.com/moogaloop.swf?clip_id={vb:raw code}" />
    <
param name="wmode" value="{vb:raw wmode}" />
    <!--[if 
IE 6]>
    <
embed width="640" height="360"  type="application/x-shockwave-flash"  src="//vimeo.com/moogaloop.swf?clip_id={vb:raw code}" rel="nofollow"  />
    <![endif]--></
object>
<
vb:elseif condition="$provider == 'youtube'"/>
    <
iframe class="restrain" title="YouTube video player" width="640"  height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw  wmode}" frameborder="0" rel="nofollow"></iframe>
<
vb:elseif condition="$provider == 'youtube_share'"/>
    <
iframe class="restrain" title="YouTube video player" width="640"  height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw  wmode}" frameborder="0" rel="nofollow"></iframe>
</
vb:if> 

Download Now

File Type: txt bbcode_video.txt (3.2 KB, 21 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-09-2015, 08:38 PM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect! Thank you!
Reply With Quote
Благодарность от:
RichieBoy67
  #3  
Old 02-24-2015, 04:27 AM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Richie, I recently replaced mybbcode_video with a HTML5 player version of the code.

Is this running html5 player mate?

...and, if possible, so far no good, can the vBTube be somehow included so I can drop the site code in and get a player appearing?

also vBEntertain?

Cheers

Mick
Reply With Quote
  #4  
Old 02-25-2015, 02:26 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Toorak Times View Post
Hi Richie, I recently replaced mybbcode_video with a HTML5 player version of the code.

Is this running html5 player mate?

...and, if possible, so far no good, can the vBTube be somehow included so I can drop the site code in and get a player appearing?

also vBEntertain?

Cheers

Mick
That is a little beyond the scope of this. This is the default Vbulletin Youtube bbcode with rel="nofollow" added, nothing more.

Thanks
Reply With Quote
Reply

Thread Tools

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 07:44 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.05199 seconds
  • Memory Usage 2,282KB
  • Queries Executed 18 (?)
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_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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
  • 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
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete