martes, 20 de marzo de 2012

Filled Under: , ,

Gadget configurable de comentarios recientes con avatar – PHD – Law Firm

Hay diversos sistemas para mostrar los últimos comentarios en nuestro blog. Entre otros, aquí hemos visto elgadget de Blogger (el que viene de serie), una variante usandoFeed2JS, los scripts deLeonelHack yAndrewHonors y un último que incluíatodo el código para no depender de alojamientos externos.

Este de hoy no difiere mucho de los anteriores, pero desde luego, es el más configurable que he visto y también el más fácil de instalar. Sólo hacen falta tres o cuatro clics para tenerlo instalado en nuestra barra lateral.


El primero sería para acceder a la página deWay2Blogging que es quién lo ofrece.

Una vez allí rellenamos los campos personalizables que en este orden son: título que le queremos dar al widget, la dirección de tu propio blog, el número de comentarios a mostrar, si queremos que se vean los avatares de los autores del comentario, el tamaño del avatar, si lo queremos redondo, si queremos mostrar un "Leer más" o similar, el texto concreto que deseamos para ese "Leer más", una imagen por defecto para cuando no esté disponible el avatar y, por último, esconder/mostrar el agradecido enlace a la página del creador de esta utilidad.


Widget comentarios

Add to BloggerPinchando enGenerate vamos a otra pantalla dónde vemos un nuevo botón para acceder a Blogger y añadir el gadget a nuestro sitio. Pinchamos en él y ya sólo nos falta seleccionar el blog dónde lo queremos poner, el título del artilugio (si no lo hicimos antes) y por último, pulsarAñadir artilugio.


Ya lo tenemos funcionando. Si posteriormente queremos cambiarlo de sitio, sólo tenemos que acceder aDiseño y desde ahí moverlo pinchando en el él y arrastrándolo hasta la sección y posición que queramos.


Si alguien prefiere hacerlo por sí mismo, entonces habría que copiar este código en un gadget tipoHTML/JavaScript, cambiando los valores marcados en verde antes de guardar. Lo más importante es cambiar la dirección del blog que aparece en la última línea:

style type="text/css"
ul.w2b_recent_comments{list-style:none;margin:0;padding:0;}
.w2b_recent_comments li{background:none !important;margin:0 0 6px !important;padding:0 0 6px 0 !important;display:block;clear:both;overflow:hidden;list-style:none;}
.w2b_recent_comments li .avatarImage{padding:3px;background:#fefefe;-webkit-box-shadow:0 1px 1px #ccc;-moz-box-shadow:0 1px 1px #ccc;box-shadow:0 1px 1px #ccc;float:left;margin:0 6px 0 0;position:relative;overflow:hidden;}
.avatarRound{-webkit-border-radius:100px;-moz-border-radius:100px;border-radius:100px;}
.w2b_recent_comments li img{padding:0px;position:relative;overflow:hidden;display:block;}
.w2b_recent_comments li span{margin-top:4px;color: #666;display: block;font-size: 12px;font-style: italic;line-height: 1.4;}
/style
script type="text/javascript"
//![CDATA[
// Recent Comments Settings
var
numComments = 5,
showAvatar = true,
avatarSize = 60,
roundAvatar = true,
characters = 70,
showMorelink = false,
moreLinktext = "More »",
defaultAvatar = "http://www.gravatar.com/avatar/?d=mm",
hideCredits = false;
//
/script
script type="text/javascript" src="http://bloggerblogwidgets.googlecode.com/svn/trunk/w2b-recent-comments-w-gravatar.js"/script
script type="text/javascript" src="http://www.oloblogger.com/feeds/comments/default?alt=json&callback=w2b_recent_comments&max-results=5"/script

Actualización

Al parecer el autor de este código ha tenido problemas con el hosting y tuvo que cambiar de lugar el fichero .js. Sin ese fichero el gadget no funciona, pero la solución es tan sencilla como cambiar la dirección que veis arriba...

http://bloggerblogwidgets.googlecode.com/svn/trunk/w2b-recent-comments-w-gravatar.js

...por la nueva, que es:

http://widgets.way2blogging.org/blogger-widgets/w2b-recent-comments-gravatar.js

No habrá mayor problema, pero si en algún caso excepcional no fuera así, en el enlace a Way2Blogging al principio del post, podréis acceder al generador de código ya actualizado.

Y en cualquier caso, la mejor opción es siempre descargar el fichero y alojarlo bajo nuestro control para evitar problemas de este tipo ;)

mesothelioma information Paperport Promotional Code Online Christmas cards injury attorney baton rouge mesothelioma charities Car Insurance Quotes Utah Live casino forensics online course webex costs Online casino mesothelioma attorney assistance mesothelioma lawyer virginia Donate cars in ma Criminal Defense Attorneys Florida yahoo web hosting Business finance group semi truck accident lawyers DUI lawyer Best social media platforms Social media campaigns Health Records Personal Health Record Service business software Car insurance quotes Utah google affiliate WordPress hosting Social media tools CHEAP CAR INSURANCE IN VIRGINIA Best Seo company car insurance in south dakota DONATE CARS IN MA hair removal washington dc structured settlements companies Html email Donating a Car in Maryland AUTOMOBILE ACCIDENT ATTORNEY Italian cooking school Computer science classes online CAR INSURANCE QUOTES PA dallas mesothelioma lawyer Cheap Car Insurance for Ladies paperport promotional code Massage School Dallas Texas Psd to html mesothelioma lawyer asbestos cancer lawsuit ASBESTOS LAWYERS Social media strategies Email Bulk Service structured settlement investments Dwi lawyer ONLINE COLLEDGES Car Accident Lawyers Virtual Data Rooms world trade center footage Casino reviews Annuity Settlements Mobile casino ONLINECLASSES Casino average mesothelioma settlement mesothelioma settlements register free domains domains yahoo structured settlement brokers Hire php programmers Dayton Freight Lines Car Insurance in South Dakota Bankruptcy lawyer firm law mesothelioma Dedicated Hosting Dedicated Server Hosting Register Free Domains wisconsin mesothelioma attorney Online Motor Insurance Quotes Make money online Australia DONATE YOUR CAR SACRAMENTO Met auto car insurance quotes mn Donate your Car for Money business administration masters accident attorney san bernardino BEST CRIMINAL LAWYER IN ARIZONA Nunavut Culture Hire php developers EMAIL BULK SERVICE Criminal lawyer supportpeachtreecom Mesothelioma Law Firm domain registration yahoo sell structured settlement calculator cash out annuity refinance with bad credit DALLAS MESOTHELIOMA ATTORNEYS illinois mesothelioma lawyer HOW TO DONATE A CAR IN CALIFORNIA Motor Insurance Quotes Best social media platforms for business Criminal defense lawyer CHEAP AUTO INSURANCE IN VA mesotheliama business voip solutions Neuson Php programmers for hire orlando criminal attorney DONATE A CAR IN MARYLAND Hire php developer car insurance quotes colorado Donate Your Car Sacramento Php programmers STRUCTURED ANNUITY SETTLEMENT DONATE OLD CARS TO CHARITY Seo companies Forex Trading Platform New social media platforms Car Insurance Quotes Colorado selling annuity workers compensation lawyer los angeles Social media platforms Asbestos Lawyers Social media examiner Social media platforms for business primary pulmonary hypertension CHEAP DOMAIN REGISTRATION HOSTING Home Phone Internet Bundle Custom WordPress theme designer Seo services Dallas Mesothelioma Attorneys adverse remortgage city college in miami motor replacements mesothelioma claim dui lawyer scottsdale Car insurance in South Dakota Donate a Car in Maryland Business management software DAYTON FREIGHT LINES meso lawyer Donate Your Car for Kids mesothelioma attorneys california Car insurance quotes Colorado Seo company injury lawyer houston tx car insurance quotes pa Online Criminal Justice Degree CAR ACCIDENT LAWYERS mesothelioma law firms Car Insurance Quotes PA Custom Christmas cards Photo Christmas cards FUTURISTIC ARCHITECTURE Cheap Auto Insurance in VA WordPress themes for designers cheaper insurance companies Psd to WordPress Personal Injury Lawyer motorcycle accident attorney chicago Social media management Auto Mobile Insurance Quote Cheap Car Insurance in Virginia criminal defense attorneys florida state of california car insurance low credit line credit cards MOTOR REPLACEMENTS Tech school life insurance quotes car insurance companies mesothelioma care Asbestos Lung Cancer personal injury lawyer sarasota fl Christmas cards Proud Italian cook Futuristic Architecture Home phone internet bundle colorado auto accident attorney better conferencing calls WordPress theme designers Adobe illustrator classes Donate Car to Charity California life insurance co lincoln Learning adobe illustrator car accident lawyers west palm beach houston mesothelioma attorney mesothelioma lawyer houston MASSAGE SCHOOL DALLAS TEXAS Donate Car for Tax Credit la personal injury lawyer chicago hair laser removal Donate Cars in MA offshore accident lawyer motor insurance quotes How to Donate A Car in California Sell Annuity Payment Donate your car for money truck accident attorney los angeles Structures Annuity Settlement truck accident attorney texas LIFE INSURANCE CO LINCOLN diagnosed with mesothelioma asbestos lawyers DONATE CARS ILLINOIS Hard drive Data Recovery Services Motor Replacements Cheap Domain Registration Hosting Donate Car To Charity CALIFORNIA Donate Cars Illinois Best Criminal Lawyers in Arizona personal injury law firm Life Insurance Co Lincoln Holland Michigan College buying an annuity calculator Donate Old Cars to Charity Online Colleges