Fanbox para Facebook, Twitter, y Google Plus, flotantes y con efecto deslizante – Platform

AVISO
La API de Twitter cambió y ahora requiere autenticación para obtener los datos de los seguidores, por tal motivo éste y los demás fanbox para Twitter han dejado de funcionar. Si me entero de una solución u otra alternativa lo publicaré de inmediato.


Hace algún tiempo vimos cómoponer el fanbox de Facebook flotante y con efecto deslizante. En esa ocasión usamos un plugin de jQuery que aunque es bueno tiene la desventaja que la versión gratuita sólo permite poner una pestaña nada más, además que quienes usan otras librerías tenían problemas de compatibilidad.

En esta ocasión lo haremos sólo con CSS, de manera que no utilizaremos ni un solo sript y podremos mostrar no sólo una sino tres pestañas,el fanbox de Facebok,el fanbox de Google+, yel fanbox de Twitter.
Puedes ver un ejemplo en esta misma entrada, lo verás del lado derecho de la ventana.

Bien, para poner estosfanbox flotantes en el blog sólo tenemos que ir aDiseño | Añadir un gadget | HTML/Javascript y ahí pegar el siguiente código:
style
#flotante1 {
position:fixed;
top:100px;
right:-250px;
float:right;
width:288px;
display:block;
padding:0;
z-index:1002;
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
#flotante2 {
position:fixed;
top:240px;
right:-250px;
float:right;
width:288px;
display:block;
padding:0;
z-index:1003;
border-radius:10px;
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
#flotante3 {
position:fixed;
top:380px;
right:-250px;
float:right;
width:288px;
display:block;
padding:0;
z-index:1004;
border-radius:10px;
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
#flotante1:hover, #flotante2:hover, #flotante3:hover {
right:0px;
-moz-transition: all 1s;
-webkit-transition: all 1s;
-o-transition: all 1s;
}
div.likeboxwrap {
margin-top:-5px;
margin-left:-45px;
width:238px;
height:325px;
background-color:#fff;
overflow:hidden;
border-radius:10px;
}
/style

!-- Primera pestaña --
div id='flotante1'
img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifElrWV4r6oMksdlD1gtJOi8yxCOOuk_F7PUljW3v78hXx-lCktv0hMcZN5YwOZCmlTfWsmoxG6_AW8EZYUXIVbhU-RIya7vmlaz6AZ2DdKEOnKh89IMR38TOavL4qIBKvNCaCCDIUcYw/' style='float:left;'/
div style='background: #3c5a98; height:325px; margin-left:38px;padding: 8px 5px 0pt 50px;border-radius: 0px 0px 0px 10px;'spandiv class='likeboxwrap'iframe allowtransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fnombre-de-la-página-de-facebook&width=240&colorscheme=light&connections=15&stream=false&header=false&height=350' style='border:none; overflow:hidden; width:240px; height:325px;'//iframe
/div/span/div/div

!-- Segunda pestaña --
div id='flotante2'
img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxo6euyPEIyYT-8dvZqPQS5rOyHjBdhrGiyU6H8gj-qih5WT98pze6nRJ8F2D3HfZs-DpvLRE4iBKvGYJE3eP-IvkPPr0uLm0rRa972afGrGXlUo0b-O5tP0pN0EGhPhtTqDukzAkik6o/s159/goo_tab.png' style='float:left;'/
div style='background: #9A9FA8; height:325px; margin-left:38px;padding: 8px 5px 0pt 50px;border-radius: 0px 0px 0px 10px;'spandiv class='likeboxwrap' style="padding-left:20px; padding-top:15px; height:310px !important;"

div class="g-plus" data-action="followers" data-height="300" data-href="https://plus.google.com/XXXXXXXXXXXXXX" data-source="blogger:blog:followers" data-width="240"
/div
script type="text/javascript"
(function() {
window.___gcfg = {'lang': 'es'};
var po = document.createElement('script');
po.type = 'text/javascript';
po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
})();
/script

/div/span/div/div

!-- Tercera pestaña --
div id='flotante3'
img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW6pIcAKZQlPYIxiifg4_Dy08I9A_iQjl9OdFxadfg7YRNt1Slk0jqePYOuCfcCyngAJXUKsw-xPFH1gqioJZgIyXupUlA1LLNjDurcCbYfZsYbO-KBTLIT-ylk5crjW7MidwgSujyfT4/' style='float:left;'/
div style='background: #00a0e8; height:325px; margin-left:38px;padding: 8px 5px 0pt 50px;border-radius: 0px 0px 0px 10px;'spandiv class='likeboxwrap'
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/script
style
.follow_box_widget{overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 5px; background-color: #fff transparent; position: relative; margin: auto;}
.follow_box{font-size: 11px; font-family: "lucida grande",tahoma,verdana,arial,sans-serif; color: #333; line-height: 1.28; text-align: left; direction: ltr;}
.follow_box .follow_top{padding: 5px 10px 0px 5px; margin-bottom: 8px; min-width: 230px; overflow: hidden;}
.follow_box .profileimage{float: left; width: 40px; height: 40px; padding: 0px; margin: 0 10px 4px 0;}
.follow_box img{border: 0;}
.follow_box a{cursor: pointer; color: #3B5998; text-decoration: none;}
.follow_box a:hover{text-decoration: underline;}
.follow_action{padding: 0 0 0 8px;}
.follow_box .follow_action .name{line-height: 15px; font-size: 14px; font-weight: bold;}
.follow_box .follow_button{margin: 5px 0 0;}
.follow_box .total{min-width: 230px; overflow: hidden; display: block;}
.follow_box .connections{padding: 5px 0 4px 0px; border-top: solid 1px #D8DFEA; border-bottom: 1px solid #CCC; min-height: 150px;}
.follow_box .connections .connections_grid{padding-top: 5px; overflow: hidden;}
.follow_box .clearfix{zoom: 1;}
.follow_box .connections .connections_grid .grid_item{float: left; margin:0px; margin-right: 5px; margin-bottom: 8px; overflow: hidden; width: 50px;}
.follow_box .connections .connections_grid .grid_item .name{font-size: 9px; color: gray; overflow: hidden; padding-top: 2px; text-align: center; white-space: nowrap;}
.follow_box .connections .connections_grid .grid_item img{width: 48px; height: 48px;}
.follow_box .follow_widget_footer{ cursor: default; width: 100%; min-width: 230px; overflow: hidden;}
.follow_box .footer_border{ margin-top: 5px;}
.follow_box .uiImageBlock{line-height: 14px;}
.follow_box .follow_widget_footer .footer_logo{float: left; margin-right: 5px;}
.follow_box .follow_widget_footer .footer_text{cursor: default; color: #808080; font-size: 9px; float: left;}
.follow_box .follow_widget_footer .footer_text a.footer_text_link{color: #808080;}
.follow_box .titlecase{text-transform:capitalize;}
/style
script
/*
* Twitter Follow Box jQuery Plugin
* http://jobyj.in/twitter-follow-box-widget/
* Copyright 2012, Joby Joseph
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function(a){a.fn.followbox=function(b){function f(a,b){if(a100)a=100;var c=new Array;for(var d=0;da;d++){c.push(b[d])}var e=c.join();return e}var c=a(this);var d="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlARATx2aH3yW9nD-Jt5QGEPYeEk77k1RblnEuw70QmYfay6GF-BhyphenhyphenXgWK4rwVUM9hTVwRKqq1qEkgPg5XaHyTyYPyyzCODLwPo0EhO5mPWB8PFh9gTHRoKLoRa4SMYV8QbVMlftBJmHE/";var e=a.extend({user:"jobysblog",width:292,height:252,theme:"light",border_color:"#AAA",bg_color:"#fff",bg_image:"",title_color:"#3B5998",total_count_color:"#333",follower_name_color:"#BBB"},b);a.ajax({url:"http://api.twitter.com/1/users/lookup.json?screen_name="+e.user+"&include_entities=true",dataType:"jsonp",success:function(b){var g=e.width-2;var h=e.height-2;var i=e.height-115;var j=parseInt(e.width/55);var k=parseInt(i/69)+1;var l=j*k;c.html('div class="follow_box_main" style="border: 1px solid #bbb; width: '+g+"px; height: "+h+'px;"div class="follow_box_widget"div class="follow_box"divdiv class="follow_top clearfix"a href="http://www.twitter.com/'+e.user+'" target="_blank"img class="profileimage img" src="'+b[0].profile_image_url_https+'" alt="'+b[0].name+'"/adiv class="follow_action"div class="name_block"a href="http://www.twitter.com/'+e.user+'" target="_blank"span class="name titlecase"'+b[0].name.toLowerCase()+"/span @"+b[0].screen_name+'/a/divdiv class="follow_button"iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/follow_button.html?screen_name='+e.user+'&show_count=false&show_screen_name=false&lang=es" style="width:100px; height:20px;"/iframe/div/div/divdiv class="connections"span class="total"span class="follow_box_follower_count"'+b[0].followers_count+'/span personas siguen a b class="titlecase"'+b[0].name.toLowerCase()+'/b/spandiv class="connections_grid clearfix" style="height:'+i+'px;"/div/div/divdiv style="height: 23px"div class="follow_widget_footer"div class="footer_border"div class="clearfix uiImageBlock"a class="footer_logo" target="_blank" href="http://jobyj.in/twitter-follow-box-widget"img src="'+d+'"//adiv class="footer_text"a class="footer_text_link" target="_blank" href="http://jobyj.in/twitter-follow-box-widget"Twitter Social Plugin/a/div/div/div/div/div/div/div/div');if(e.theme=="dark"){c.find(".follow_box_main").addClass("dark")}c.find(".follow_box_follower_count").text(c.find(".follow_box_follower_count").text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"));if(a.browser.msie&&!a.support.boxModel)a(".follow_box .connections").css("padding-bottom","14px");if(e.theme=="custom"){c.find(".follow_box_main").css({"border-color":e.border_color,"background-color":e.bg_color,"background-image":'url("'+e.bg_image+'")'});c.find(".follow_box a").css({color:e.title_color});c.find(".follow_box .total").css({color:e.total_count_color})}a.ajax({url:"https://api.twitter.com/1/followers/ids.json?cursor=-1&screen_name="+e.user,dataType:"jsonp",success:function(b){var d=f(l,b.ids);a.ajax({url:"https://api.twitter.com/1/users/lookup.json?user_id="+d+"&include_entities=true",dataType:"jsonp",success:function(b){for(var d=0;db.length;d++){var f=a.trim(b[d].name);var g=f.split(" ");var h='div class="grid_item"a href="http://twitter.com/'+b[d].screen_name+'" target="_blank"img class="img" src="'+b[d].profile_image_url+'" alt=""div class="name titlecase"'+g[0].toLowerCase()+"/div/a/div";c.find(".connections_grid").append(h)}if(e.theme=="custom"){c.find(".connections .connections_grid .grid_item .name").css({color:e.follower_name_color})}}})}})}})}})(jQuery)
/script
script
$(document).ready(function(){
$('#twitterfollowbox').followbox({
'user':'usuarioTwitter',
'height':'300',
'width':'260',
'theme':'custom',
'border_color':'#ffffff',
'bg_color':'#ffffff',
'bg_image':'',
'title_color':'#3B5998',
'total_count_color':'#333333',
'follower_name_color':'#BDBDBB'
});
});
/script
div id="twitterfollowbox" class="follow-box-container" /div

/div/span/div/div
Agrega donde se indica el nombre de tu página de Facebook, también pon la ID de tu página de Google Plus en donde están las equis en rojo, y el nombre de tu usuario de Twitter también donde se indica en color rojo.

El ID de tu página de Google Plus lo puedes ver ingresando a tu página, y al final de la URL aparecerán una serie de letras y números, ese es tu ID.

En el caso del fanbox de Twitter hemos usado elfanbox para Twitter que vimos recientemente, pero puedesusar otro, o bien, quitar la pestaña, o sustituirla por otro contenido, pues al menos ese fanbox sí usa jQuery y puede causar incompatibilidad con otros scripts.

En caso de que quieras cambiar alguna pestaña por otro tipo de contenido tendrás que localizar la URL de la imagen de la pestaña (color azul) y sustituirla por la que diseñes, luego quitar el contenido de la pestaña (según sea el caso) y en su lugar poner el código que desees.

La ventaja de este método es que no usamos scripts para las pestañas, ni para esconderlas, ni para mostrarlas, ni para el efecto deslizante. La contra es que el efecto deslizante son transiciones con CSS por lo que los navegadores que no son modernos no podrán ver el efecto de deslizamiento. Fuera de esto último es un método que además de ser fácil de aplicar también es una buena opción para tener tus distintos fanbox agrupados y mostrándolos de una forma elegante y original.




ACTUALIZACIÓN 1:
Si el fanbox de Facebook te marca error puede ser porque aún no tienes una URL personalizada en tu página de Facebook, en esos casos deberás cambiar esta parte:
http%3A%2F%2Fwww.facebook.com%2Fnombre-de-la-página-de-facebook
Por esta:
http%3A%2F%2Fwww.facebook.com%2Fpages%2Fnombre-de-la-página-de-facebook%2FXXXXXXXXXXXXXXX
Ahí además de poner el nombre de tu página donde se indica deberás poner en las equis una serie de números que aparecen al final de la URL de tu página de Facebook.

ACTUALIZACIÓN 2:
Es preciso mencionar nuevamente que el fanbox de Twitter sí usa jQuery por lo que si ya tienes alguna versión de jQuery o si usas otra librería de scripts como Scriptaculous entonces no se verá, en esos casos habrá que eliminar la versión de jQuery que incluye el gadget y/o hacer unos cambios para que sea compatible con Scriptaculous. Para más información mira la entrada sobreel fanbox de Twitter.

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDNos ofrece Mundial Football eloan com, FIFA World Cupuna gran variedad para contratar mesothelioma info y obtener un equity line of credit y una buena estructura de negocio SEO consolidate loans y visitar su casa matriz Mesothelioma law firm,home equity loans domain name searchSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial Football Mesothelioma law firm,mega life and health FIFA World Cup es un buen servicio en las distintas naciones trans union pero resulto que tenia cancer y fui a asbestos cancer y me dijeron en asbestos mesothelioma que tambien padecia de prostate cancer treatment y un daño tremendo a mi organismo fui a malignant pleural mesothelioma,asi que hice un prestamo en credit repair y otro en chase credit pero de pronto un anti spam software asi que decido un auto en rental car in costa rica me registre en Facebook en internet domain registration y tambien obtuve un domain registration,Selling annuity payments for cash,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Donating a Car in Maryland Life Insurance Co Lincoln domain yahoo Business finance group Donate a Car in Maryland mesothelioma lawyers san diego STRUCTURED ANNUITY SETTLEMENT insurance medical temporary colorado auto accident attorney Seo companies Hire php developers car insurance quotes pa mesothelioma survival rates Motor replacements Paperport Promotional Code Online casino Criminal defense lawyer DUI lawyer Social media platforms for business alabama mesothelioma lawyer los angeles auto accident attorneys CAR INSURANCE IN SOUTH DAKOTA MESOTHELIOMA LAW FIRM Auto Mobile Shipping Quote Mobile casino BETTER CONFERENCING CALLS Custom Christmas cards harddrive data recovery services Online Christmas cards Mortgage Adviser Online Motor Insurance Quotes sell structured settlement calculator Social media strategies Annuity Settlements CHEAP DOMAIN REGISTRATION HOSTING onlineclasses chicago hair laser removal Low credit line credit cards Seo services Live casino FUTURISTIC ARCHITECTURE Casino Online Colleges donate your car for money holland michigan college accident attorneys orange county selling annuity payments for cash Tech school Make money online Australia Hire php programmers Casino reviews mesotheliama average mesothelioma settlement Forensics online course compare life assurance Italian cooking school Sell Annuity Payment LOW CREDIT LINE CREDIT CARDS New social media platforms Dwi lawyer firm law mesothelioma DONATE CARS IN MA Best Criminal Lawyers in Arizona Criminal lawyer mesothelioma trial attorney virtual data rooms Service business software WordPress hosting structured settlement buyer dallas mesothelioma lawyer miami personal injury attorney Php programmers for hire Hire php developer Custom WordPress theme designer cheap car insurance in virginia How to donate a car in California Best social media platforms houston motorcycle accident lawyer CHEAP CAR INSURANCE IN VIRGINIA Bankruptcy lawyer Computer science classes online Php programmers Best social media platforms for business Social media tools Online colledges Gas/Electricity Online College Course PSYCHIC FOR FREE auto accident lawyer san francisco Best criminal lawyer in Arizona DONATE CAR FOR TAX CREDIT Life insurance co Lincoln Psd to WordPress Donate Cars Illinois Car Donate Business VOIP Solutions personal injury accident lawyer Donating used cars to charity Car insurance quotes Colorado DAYTON FREIGHT LINES Social media platforms broward county dui lawyer Social media campaigns Psychic for free Motor Replacements Best Seo company Futuristic architecture Adobe illustrator classes Business management software Cheap auto insurance in VA Attorney structured settlement buyers Seo company workplace accident attorney Criminal Defense Attorneys Florida

Share: