martes, 11 de diciembre de 2012

Filled Under: ,

Tableros Pinterest en el blog – Arquitectura

Llevo casi un mes dándole vueltas a una manera de mostrar un tablero de Pinterest en el blog y hoy que por fin consigo algo decente, descubro que justo desde hace ese mismo tiempoPinterest ofrece un gadget que permite hacer lo mismo.

Frustración aparte, en el siguiente enlace podéis encontrar elgenerador oficial dónde con sólo indicar la dirección de un perfil (Profile Widget) o la de un tablero concreto (Board Widget), podréis conseguir el código para colocar vuestros pines en vuestro sitio. Hasta 30 por tablero.

El código es el mismo en ambos casos y sólo cambia la forma de la dirección del tablero y las opciones que se pueden insertar para las medidas generales del tablero y las del ancho de las imágenes:

adata-pin-scale-width="200" data-pin-scale-height="600" data-pin-board-width="220" data-pin-do="embedBoard" href="http://pinterest.com/pinterest/pin-pets/"/a
script src="//assets.pinterest.com/js/pinit.js"/script

  • data-pin-scale-width: Opcional. Ancho de cada imagen, si no se indica el dato el ancho será por defecto de 92px
  • data-pin-scale-height: Opcional. El alto total del gadget. En este caso, si no indicamos nada el alto se calculará automáticamente.
  • data-pin-board-width: Opcional. El ancho total del gadget. Si no incluimos el parámetro, será de 175px

La dirección del tablero es obligatoria y tendrá la forma http://pinterest.com/USUARIO para mostrar todas las imágenes del perfil o http://pinterest.com/USUARIO/TABLERO para ver un solo tablero.


Aquíuna demo en acción.


Y ya que lo tenía perfilado, el que prefiera un estilo similar pero totalmente hecho a mano con sus ventajas (formato libre con CSS) y sus inconvenientes (más cantidad de código), puedeechar un vistazo a esta otra página que había montado para que os hiciérais una idea de las posibilidades.

No olvidéis pasar el puntero por encima de las imágenes del primer tablero. El segundo es una versión con otro estilo más sencillo.

Si os gusta y tenéis ganas de experimentar (o sólo de copiar y pegar), a continuación el código completo que utilicé.

Los que ya tengáis jQuery en la plantilla, tendréis que quitar la primera línea para evitar duplicar versiones. Por otro lado, casi al final tenéis algunos parámetros de configuración de la salida y el lugar dónde indicar la dirección del feed.

script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"/script
script type="text/javascript" src="https://dl.dropbox.com/u/57549161/scripts/tablero-pinterest.js"/script
style type="text/css"
/* Contenedor general */
#PintBoard {width:576px; margin:0 auto;}
.PintFeed {}
/* Cabecera tablero */
.PintHeader {margin:20px auto;text-align:center;font-weight:bold;}
.PintHeader a {padding:10px 20px; background-color: white; color: black;}
/* Caja imágenes */
.PintBody {}
/* Lista */
#PintBoard ul {position: relative; margin:0; list-style: none;}
#PintBoard ul li {position: relative; list-style: none; float:left; width:100px; height:110px; margin: 0; padding: 0; overflow:hidden;color:transparent;border:1px solid white;}
#PintBoard ul li img {}
#PintBoard ul li:hover {overflow: visible; z-index: 2;}
/* Imágenes impares */
.odd {}
/* Imágenes impares */
.even {}
/* Título imagen */
#PintBoard ul li h5 {}
#PintBoard ul a {position: relative;display:block;}
#PintBoard ul img {position: absolute; margin:0; padding:1px; border:0; background: white;}
#PintBoard ul li:hover img {position:relative; top:50%; left: 50%;width:250px;margin-left:-125px;margin-top:-50px; box-shadow: 0 0 16px rgba(0,0,0,.8);}
/style
script type="text/javascript"
$(document).ready(function () {
$('#PintBoard').BoardFeed('http://pinterest.com/USUARIO/TABLERO/rss', {
limit:20, //Máximo 25
header:true, //Nombre del tablero
showtittle:false //Título imagen. Requiere cambio CSS
});
});
/script
div id="PintBoard"/div
div style="clear:both;"/div

La dirección para ver todos los tableros de un usuario terminaría algo distinto; con unfeed.rss:
http://pinterest.com/USUARIO/feed.rss

El script para descargar y alojar bajo vuestro control está disponible en este enlace:tablero-pinterest.js

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 Jet

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 FootballFIFA World Cup Vestidos de Perros y gatosHosting Dominio web movilSelling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlementStructured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

insurance medical temporary Social media tools federal criminal defense attorney low credit line credit cards Dwi lawyer Personal Injury Lawyer Dedicated Hosting Dedicated Server Hosting paperport promotional code CHEAP AUTO INSURANCE IN VA Holland Michigan College Mesothelioma Law Firm Custom WordPress theme designer broward county dui lawyer mesothelioma lawyer asbestos cancer lawsuit Psd to WordPress Seo companies Html email Make money online Australia See more at http//wwwginfostopnet/ google affiliate WEBEX COSTS DONATE CAR FOR TAX CREDIT business email web hosting Donate Your Car Sacramento Virtual Data Rooms DONATE A CAR IN MARYLAND Hire php developer Online motor insurance quotes sell structured settlement calculator Live casino Online casino Casino Mobile casino motorcycle accident attorney chicago CAR INSURANCE QUOTES UTAH selling structured settlement Best Seo company Psd to html Christmas cards Hard drive data recovery services Auto Mobile Shipping Quote How to Donate A Car in California auto accident lawyer san francisco firm law mesothelioma cash out structured settlement DUI lawyer Psychic for free Hard drive Data Recovery Services Casino reviews life insurance co lincoln asbestos lawyers accident attorneys orange county Php programmers for hire CHEAP DOMAIN REGISTRATION HOSTING PHD on Counseling Education STRUCTURED ANNUITY SETTLEMENT houston tx auto insurance domain name yahoo Donate a Car in Maryland Social media strategies Hire php developers mesothelioma charities Car Insurance Quotes MN Italian cooking school FORENSICS ONLINE COURSE World Trade Center Footage BETTER CONFERENCING CALLS Hire php programmers mesothelioma attorneys Criminal lawyer CAR DONATE attorney lawyer mesothelioma Motor Replacements accident car florida lawyer Automobile Accident Attorney Service business software personal injury lawyer sarasota fl mesothelioma settlements Criminal defense lawyer Best social media platforms for business Psychic for Free AUTO ACCIDENT ATTORNEY motorcycle lawyer los angeles Criminal Defense Attorneys Florida Nunavut Culture Computer science classes online DONATE YOUR CAR FOR MONEY car insurance in south dakota Online Stock Trading DAYTON FREIGHT LINES mesothelioma settlements amounts Bankruptcy lawyer email bulk service Php programmers buying structured settlements mortgage adviser New social media platforms tennessee mesothelioma lawyer buy structured settlements Donate Cars Illinois Business finance group DONATE YOUR CAR FOR KIDS Photo Christmas cards Business VOIP Solutions WordPress theme designers mesothelioma claims google adsense Social media platforms for business personal injury law firm motor insurance quotes Seo services virtual data rooms Business management software Cheap domain registration hosting Best social media platforms ROYALTY FREE IMAGES STOCK Car Insurance Quotes Colorado Seo company DALLAS MESOTHELIOMA ATTORNEYS miami personal injury lawyer Online Christmas cards Custom Christmas cards WordPress themes for designers Online Classes Cheap Car Insurance in Virginia WordPress hosting anti spam appliance Webex Costs meso lawyer Social media examiner Car Insurance Quotes PA PHD IN COUNSELING EDUCATION Social media management lease management software DONATE CARS ILLINOIS Better Conference Calls Tech school illinois mesothelioma lawyer Social media platforms houston mesothelioma attorney car insurance quotes Proud Italian cook new york mesothelioma law firm Structures Annuity Settlement Mortgage adviser mesothelioma lawsuits structured settlement quote PhD in counseling education Online Colleges Adobe illustrator classes selling a structured settlement motorcycle accident attorney sacramento Cheap Auto Insurance in VA Criminal lawyer Miami Learning adobe illustrator Social media campaigns student loan consolidation program Donate Car to Charity California city college in miami Donating Used Cars to Charity Donate Car for Tax Credit Donate Cars in MA mesothelioma law firm Donate Your Car for Kids criminal defense attorneys florida buying an annuity calculator Futuristic Architecture Sell Annuity Payment structured settlement buyer primary pulmonary hypertension structured annuity settlement mesothelioma symptoms Asbestos Lawyers FUTURISTIC ARCHITECTURE Cheap auto insurance in VA Annuity Settlements Donate a car in Maryland MET AUTO Dayton Freight Lines Better conferencing calls structured settlement agreement saskatchewan auto insurance HOW TO DONATE A CAR IN CALIFORNIA mesothelioma attorney directory Injury Lawyers online motor insurance quotes mesothelioma trial attorney Cheap Domain Registration Hosting Donating a Car in Maryland pharmacist jobs in chicago World trade center footage Donate cars in ma maritime lawyer houston los angeles auto accident attorneys peritoneal mesothelioma CAR INSURANCE IN SOUTH DAKOTA Car Insurance Quotes ASBESTOS LAWYERS Home phone internet bundle Best Criminal Lawyers in Arizona Car Insurance Quotes Utah cheap auto insurance in va Life Insurance Co Lincoln annuity payment Insurance Companies Nunavut culture cheap car insurance in virginia Online Motor Insurance Quotes caraccidentlawyer Paperport Promotional Code