<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Eliseos.net &#187; Wordpress</title> <atom:link href="http://eliseos.net/tag/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://eliseos.net</link> <description>Wordpress, Diseño, jQuery and Coffee</description> <lastBuildDate>Tue, 16 Mar 2010 00:51:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>5 Nuevos plugins para Wordpress</title><link>http://eliseos.net/wordpress/5-nuevos-plugins-wordpress/</link> <comments>http://eliseos.net/wordpress/5-nuevos-plugins-wordpress/#comments</comments> <pubDate>Mon, 08 Mar 2010 23:23:24 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2742</guid> <description><![CDATA[El repositorio de Wordpress crece día a día y de eso no hay dudas. Diariamente nos encontramos con nuevos plugins que nos permiten extender las funcionalidades de Wordpress ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">El repositorio de Wordpress crece día a día y de eso no hay dudas. Diariamente nos encontramos con nuevos plugins que nos permiten extender las funcionalidades de Wordpress y facilitarnos el trabajo a la hora de trabajar con este magnifico <strong>CMS</strong>.</p><p><span
id="more-2742"></span></p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2744" title="5 Nuevos Plugins para Wordpress" src="http://eliseos.net/wp-content/uploads/2010/03/wp-plugin.jpg" alt="wp plugin 5 Nuevos plugins para Wordpress" width="500" height="250" /></p><h2><a
title="HiFi (Head Injection, Foot Injection)" href="http://wordpress.org/extend/plugins/hifi/">HiFi (Head Injection, Foot Injection)</a></h2><p
style="text-align: left;">Nos permite insertar <em>(injection</em>) porciones de código en el <em>Footer</em> y en <em>Header</em> de nuestro Theme, pero solamente cuando es necesario. Si estas escribiendo un tutorial y necesitas mostrar dentro de la entrada o pagina que trabaja como un demo online, muchas veces es necesario insertar <em>hojas de estilo</em> o algunas lineas de <em>javascript</em>.</p><p
style="text-align: left;">Este plugin crea un nuevo panel en nuestra entrada o pagina donde insertaremos esas porciones de código solo para el post pagina en cuestión.</p><h2><a
title="Hikari Titled Comments" href="http://wordpress.org/extend/plugins/hikari-title-comments/">Hikari Titled Comments</a></h2><p
style="text-align: left;">Como el titulo lo indica, nos ofrece la opción de permitirle a la persona que comenta en la entrada la chance de insertar un <strong>titulo</strong> a su comentario. Es una función que la podemos encontrar en <strong>Drupal</strong>, pero la extrañamos en <strong>Wordpress</strong>.</p><h2><a
title="Facebook Photo Fetcher" href="http://wordpress.org/extend/plugins/facebook-photo-fetcher/">Facebook Photo Fetcher</a></h2><p
style="text-align: left;">Una forma simple de insertar y crear galerías de imágenes en Wordpress usando un <strong>álbum</strong> de Facebook. Una vez activado solo necesitamos darle los permisos adecuados al plugin para conectarse a Facebook y seleccionaremos el Album que queremos mostrar en Wordpress. Este plugin trabaja con <em>shortcodes</em> a la hora de crear las galerías, por lo que su uso es de lo más simple.</p><h2><a
title="RSS Just Better" href="http://wordpress.org/extend/plugins/rss-just-better/">RSS Just Better</a></h2><p
style="text-align: left;">Ya he hablado aquí en Eliseos de como insertar cualquier RSS Feed en Wordpress, pero este plugin lo hace todavía mucho mas simple. Nos permite controlar cuantos items se mostraran, incluir la fecha de publicacion y la introducción. Funciona a modo de <em>widget</em> para incluir en el Sidebar o como <em>shortcode</em>, para incluirlo en las entradas o paginas.</p><h2><a
title="Facebook Share Statistics" href="http://wordpress.org/extend/plugins/facebook-share-statistics/">Facebook Share Statistics</a></h2><p
style="text-align: left;">Nos muestra en nuestro <strong>CP</strong> estadísticas y gráficos relativas a como se socializa nuestro Sitio en Facebook. Podemos ver, por ejemplo, la cantidad de usuarios que compartieron la entrada, la cantidad de &#8220;<em>like</em>s&#8221; que recibió un post, y muchos mas.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/5-nuevos-plugins-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Obtene Screenshots de cualquier sitio en Wordpress</title><link>http://eliseos.net/wordpress/obtene-screenshots-cualquier-sitio-wordpress/</link> <comments>http://eliseos.net/wordpress/obtene-screenshots-cualquier-sitio-wordpress/#comments</comments> <pubDate>Wed, 03 Mar 2010 20:41:51 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[imagenes]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2730</guid> <description><![CDATA[Hoy a través de Wpbeginner me entero de la existencia del plugin BM Shots, el cual nos permite realizar screenshots de un sitio en concreto con el API de Wordpress]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Hoy a través de <a
title="WP  Beginner" href="http://www.wpbeginner.com/plugins/an-automated-way-of-taking-website-screenshot-in-wordpress/">Wpbeginner </a>me entero de la existencia del plugin <a
title="BM Shots" href="http://www.binarymoon.co.uk/projects/bm-shots-automated-screenshots-website/"><strong>BM Shots</strong></a>, el cual nos permite realizar screenshots de un sitio en concreto con el API de Wordpress. Existen varios servicios que nos brindan un servicio parecido, pero que mejor que ser fiel a Wordpress?</p><p
style="text-align: left;">Un ejemplo claro de uso se puede ver en <a
title="WPvote" href="http://wpvote.com"><strong>WPvote</strong></a>, donde cada articulo esta acompañado de su respectiva screenshot.</p><p
style="text-align: left;">A modo de ejemplo del funcionamiento del API, esta es una imagen generada para que aprecien el resultado final.</p><p
style="text-align: center;"><img
src="http://s.wordpress.com/mshots/v1/http%3A%2F%2Feliseos.net%2F?w=550" alt="Eliseos.net | Wordpress. jQuery and Coffee" title="Eliseos.net | Wordpress. jQuery and Coffee" /></p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">http://s.wordpress.com/mshots/v1/http%3A%2F%2Feliseos.net%2F?w=550</pre></div></div></p><h2>Uso</h2><p
style="text-align: left;">Su utilización es muy sencilla. y depende de los planes que tengas en mente, básicamente podes mostrar las capturas por medio de <em><code>shortcodes</code></em>o por medio de una <em><code>función</code></em>, directamente en nuestro Theme.</p><h2>Shortcode</h2><p
style="text-align: left;">Esta puede ser la opción fácil mas simple de implementar ya que no es necesario editar nuestro Theme. Solo sigue este formato:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">[browsershot url=&quot;http://eliseos.net&quot; width=&quot;550&quot;]</pre></div></div><p
style="text-align: left;">El valor de la <strong>URL </strong>representa el sitio en el que vamos a realizar la captura y <strong>width </strong>el ancho deseado. Casi no tenemos restricciones en nuestro ancho de la captura, por lo que podrás integrar la imagen a tu diseño sin problemas.</p><h2>PHP Function</h2><p
style="text-align: left;">Dentro de nuestro Theme, llamaremos a la función <em><code>bm_mshot</code></em>:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://eliseos.net/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$width</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">550</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> bm_mshot <span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #000088;">$width</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p
style="text-align: left;">Los valores son los mismos que para el shortcode, por lo que no encontraras mayores dificultades.</p><p
style="text-align: left;">Por ultimo el autor nos señala que es las imágenes no se generan instantáneamente, sino que tardan unos segundos. En algunos sitios ese tiempo es mayor y en otros menor.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/obtene-screenshots-cualquier-sitio-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Crear un the_excerpt() personalizado en Wordpress</title><link>http://eliseos.net/wordpress/crear-the_excerpt-personalizado-wordpress/</link> <comments>http://eliseos.net/wordpress/crear-the_excerpt-personalizado-wordpress/#comments</comments> <pubDate>Fri, 26 Feb 2010 01:42:14 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2706</guid> <description><![CDATA[Trabajando en Wordpress, una de las cuestiones que mas resulta tediosa es no contar con las herramientas necesario para poder personalizar el the_excerpt() ese tag que solo nos muestra un adelanto de la entrada en el front]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Trabajando en Wordpress, una de las cosas que mas resulta tedioso es no contar con las herramientas necesarias para poder personalizar <em><code>the_excerpt()</code></em> ese tag que solo nos muestra un adelanto de la entrada en el front, el archivo y en las categorías. Siempre tenemos que recurrir a pequeños hacks, para personalizarlo a nuestro gusto.</p><p
style="text-align: left;">Hoy leyendo en <a
href="http://www.milienzo.com/2007/09/02/improving-wordpress-the_excerpt-template-tag/">Milienzo</a> encontré un hack que me pareció correcto de reproducir ya que podemos lograr una personalización del tag <em><code>the_excerpt()</code></em> casi perfecta.</p><h2>Problemas con the_excerpt()</h2><p
style="text-align: left;">Solo se muestran las primeras 55 palabras, no dándonos la posibilidad de acomodar ese numero. En cuanto el al formato, el tag limpia todos los tags HTML, por lo que no se muestran imágenes ni formato en los párrafos. Y por ultimo, en cuanto hablamos de javascript tenemos un gran problema ya que <em><code>the_excerpt()</code></em> no lo filtra, lo que trae como aparejado posibles problemas en el formato y vulnerabilidades.</p><p
style="text-align: left;">Lo que en milienzo nos plantean, es crear una nueva función para solucionar los problemas mencionados mas arriba.</p><h2>Comencemos</h2><p
style="text-align: left;">En tu archivo <em><code>functions.php</code></em> introduciremos esta nueva función</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> improved_trim_excerpt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$text</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> get_the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">']]&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;@si'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$words</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span> <span style="color: #000088;">$excerpt_length</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			ray_push<span style="color: #009900;">&#40;</span><span style="color: #000088;">$words</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'[...]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$words</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$text</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div><p
style="text-align: left;">Al no estar &#8220;tocando&#8221; no los archivos del core de Wordpress podremos reproducir esta función en todos los Themes que necesitemos.</p><h2>Controlar el tamaño en the_excerpt()</h2><p
style="text-align: left;">En lugar de mostrar solo las primeras 55 palabras, digamos que solo mostraremos las primeras 80.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$excerpt_length</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Para aumentar o disminuir las palabras, solo resta reemplazar el <strong>80</strong> por el numero deseado.</p><h2>Incluir tags HTML</h2><p
style="text-align: left;">Como lo mencione antes, al no poder contar con la posibilidad de mostrar dichos tags podemos encontrar problemas a la hora de dar formato</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">En este caso estamos incluyendo siempre el tag <em><code>&lt;p&gt;</code></em> Si lo necesitáramos podríamos también incluir el tag <em><code>&lt;img&gt;</code></em> o los que deseemos. Solo tenemos que mencionar los tags uno al lado de otro.</p><h2>Remover todo el código javascript que no necesitamos</h2><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;@si'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p
style="text-align: left;">Esta simple linea, nos ahorrara futuros dolores de cabeza.</p><p
style="text-align: left;">Ahora solo resta indicar nuestro nuevo filtro, otra vez dentro de <em><code>functions.php</code></em> insertamos:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'get_the_excerpt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_trim_excerpt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'get_the_excerpt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'improved_trim_excerpt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><h2>Implementación</h2><p
style="text-align: left;">Solo nos queda integrar este nuevo <em><code>the_excerpt()</code></em> mejorado dentro de nuestro Theme reemplazando el <em><code>the_excerpt()</code></em> original por nuestro el nuevo y flamante tag:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> improved_trim_excerpt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></div><p
style="text-align: left;">Como lo notaras el hack es bastante flexible y podemos lograr buenos resultado con pocas lineas de código.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/crear-the_excerpt-personalizado-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>MultiEdit: Editar paginas en Wordpress dinamicamente</title><link>http://eliseos.net/wordpress/multiedit-editar-paginas-wordpress-dinamicamente/</link> <comments>http://eliseos.net/wordpress/multiedit-editar-paginas-wordpress-dinamicamente/#comments</comments> <pubDate>Tue, 23 Feb 2010 23:13:12 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2702</guid> <description><![CDATA[Seguramente alguna vez te ha sucedido que cuentas con una pagina en Wordpress la cual editas regularmente.Dentro de esta pagina tenemos el contenido que genera el loop, una contenido estático a la derecha y otro contenido estático al pie]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Seguramente alguna vez te ha sucedido que cuentas con una pagina en Wordpress la cual editas regularmente. Dentro de esta pagina tenemos el contenido que genera el <strong>loop</strong>, una contenido estático a la derecha y otro contenido estático al pie.</p><p
style="text-align: left;">A la hora de editar dicha pagina, no tenemos muchas mas opciones que <em>&#8220;meter mano&#8221;</em> al código directamente, pero que tal si pudiéramos editar cada segmento de la pagina como editamos las entradas, es decir con el editor <a
title="WYSIWYG TinyMCE" href="tinymce.moxiecode.com">WYSIWYG TinyMCE</a>?</p><p
style="text-align: left;">Aquí es donde entra a jugar el <a
title="The Page.ly MultiEdit Plugin" href="http://blog.page.ly/multiedit-plugin/">Plugin MultiEdit</a>, el cual <strong>creara regiones</strong> editables dentro de nuestra pagina, para poder trabajar con TinyMCE como si estuviéramos trabajando con una entrada normal.</p><p
style="text-align: left;">MultiEdit creara 4 pestañas donde podremos crear y editar el contenido que necesitemos en 4 regiones de la pagina: El contenido normal, al pie, a la izquierda y a la derecha.</p><p
style="text-align: left;">Cada región almacena el contenido creado como si se tratara de un <em><code>custom field</code></em>, por ende si borramos o desactivamos el plugin nuestro contenido no se perdería.</p><h2>Instrucciones</h2><p
style="text-align: left;">Necesitas una copia de <a
title="The Page.ly MultiEdit Plugin" href="http://blog.page.ly/multiedit-plugin/">Plugin MultiEdit</a>, instala el plugin y activalo.</p><p
style="text-align: left;">Debemos crear una nueva Plantilla personalizada (<em><code>page template</code></em>) con el siguiente formato:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: MiNombre
MultiEdit: Right, Bottom, Left
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p
style="text-align: left;"><em><code>Right, bottom, y left</code></em> son las zonas o bloques que se añadirían a la pagina.</p><p
style="text-align: left;">Dentro de la nueva plantilla solo necesitamos definir las zonas, para este ejemplo el contenido al pie.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;pie_de_la_pagina&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> multieditDisplay<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div</pre></div></div><p
style="text-align: left;">Por ultimo a la hora de crear o editar una pagina utilizaremos la plantilla que se creo anteriormente y podremos ver nuestro nuevo panel de administración para la pagina.</p><p
style="text-align: center;"><a
href="http://blog.page.ly/multiedit-plugin/"><img
src="http://eliseos.net/wp-content/uploads/2010/02/MultiEdit-Panel.jpg" alt="MultiEdit Panel MultiEdit: Editar paginas en Wordpress dinamicamente" title="MultiEdit Panel" width="500" height="250" class="alignnone size-full wp-image-2703" /></a></p><h2>Consideraciones finales</h2><p
style="text-align: left;">Pareciera ser un proceso un tanto engorroso, pero, como lo mencione al principio de esta forma podremos ahorrarnos un tiempo considerable a la hora de trabajar con una pagina que editamos constantemente.</p><p
style="text-align: left;">Este plugin solo trabaja correctamente dentro del editor visual, y no hace magia; por lo que el estilo via CSS es requerido para lograr una buena presentación</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/multiedit-editar-paginas-wordpress-dinamicamente/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Inserta tu boton de Google Buzz en Wordpress</title><link>http://eliseos.net/wordpress/inserta-boton-google-buzz-wordpress/</link> <comments>http://eliseos.net/wordpress/inserta-boton-google-buzz-wordpress/#comments</comments> <pubDate>Fri, 12 Feb 2010 03:05:21 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[botones]]></category> <category><![CDATA[google]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2666</guid> <description><![CDATA[Con la llegada de Google Buzz ha llegado otro botón para compartir tus entradas en la red, si otro botón! Hay un amplio debate si Gbuzz llego para quedarse, si quiere una cuota del mercado de Twitter o Facebook]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Con la llegada de <a
title="Google Buzz" href="http://www.google.com/">Google Buzz</a> ha llegado otro botón para compartir tus entradas en la red, si otro botón! Hay un amplio debate si Gbuzz llego para quedarse, si quiere una cuota del mercado de Twitter o Facebook, etc.</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2667" title="Google buzz en wordpress" src="http://eliseos.net/wp-content/uploads/2010/02/Google-buzz.jpg" alt="Google buzz Inserta tu boton de Google Buzz en Wordpress" width="500" height="250" /></p><p><span
id="more-2666"></span></p><p
style="text-align: left;">Fuera de todo el debate, puede que quieras insertar este botón en tu blog para que tus lectores &#8220;buzzeen?&#8221; tus entradas.</p><h2>Integración</h2><p
style="text-align: left;">En archivo <em><code>single.php</code></em> inserta esta lineas de código donde necesites que el botón se muestre</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">	&lt;div class=&quot;gbuzz&quot;&gt;
	 &lt;a class=&quot;gbutton&quot;
href=&quot;http://www.google.com/reader/link?url=<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;amp;title=<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;amp;srcURL=<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; target=&quot;_blank&quot; rel=&quot;nofollow external&quot;&gt;Gbuzz&lt;/a&gt;
	&lt;/div&gt;</pre></div></div><h2>Estilo</h2><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">.gbuzz<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
a<span style="color: #6666ff;">.gbutton</span> <span style="color: #00AA00;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;img/buzz-icon2.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#E8E8E8</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1.625</span> verdana<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">47px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p
style="text-align: left;">Como lo veras le he aplicado un poco de <em><code>CSS</code></em> para que la integración sea completa, si lo deseas puedes modificarlo según tus necesidades, para eso edita el estilo</p><h2>Resultado final</h2><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2668" title="Google buzz button para wordpress" src="http://eliseos.net/wp-content/uploads/2010/02/Google-buzz-button.jpg" alt="Google buzz button Inserta tu boton de Google Buzz en Wordpress" width="500" height="113" /></p><p
style="text-align: left;">La imagen que se muestra en pantalla corresponde al diseño final, y <a
title="Google buzz icono" href="https://mail.google.com/mail/pimages/2/up/buzz-icon2.png">el icono</a> es tomado de <em><code>Gmail</code></em> directamente, te sugiero que lo guardes para futuros usos.</p><p
style="text-align: left;">Simple y contundente, otro botón mas abarrotar la red.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/inserta-boton-google-buzz-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CSS personalizado para cada entrada en Wordpress</title><link>http://eliseos.net/wordpress/css-personalizado-entrada-wordpress/</link> <comments>http://eliseos.net/wordpress/css-personalizado-entrada-wordpress/#comments</comments> <pubDate>Mon, 08 Feb 2010 22:39:41 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2655</guid> <description><![CDATA[Como todos lo sabemos Wordpress es muy flexible y con él podemos hacer casi cualquier cosa, en esta ocasión en particular vamos a crear un Box para poder estilizar nuestras entradas por medio de ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Como todos lo sabemos Wordpress es muy flexible y con él podemos hacer casi cualquier cosa, en esta ocasión en particular vamos a crear un Box para poder estilizar nuestras entradas por medio de CSS.</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2656" title="Custom CSS en Wordpess" src="http://eliseos.net/wp-content/uploads/2010/02/Custom-CSS.jpg" alt="Custom CSS CSS personalizado para cada entrada en Wordpress" width="500" height="250" /></p><p><span
id="more-2655"></span></p><p
style="text-align: left;">Como lo sabrás cada Theme tiene su propia hoja de estilos que es lo que le formato en definitiva. Si necesitáramos personalizar nuestras entradas, tendríamos que editar la hoja de estilos del Theme; cosa que puede ser algo molesto si solo necesitamos personalizar una entrada en concreto.</p><p
style="text-align: left;">Con esta pequeña función, estaremos añadiendo un Box para que la hora de crear un Post o Pagina podamos insertar un estilo para cada entrada/pagina en concreto.</p><p
style="text-align: left;">Por medio de filtros y acciones esta función insertar en el header de nuestro Theme, el estilo que le hayamos aplicados. Solo tenes que cerciorarte que Theme cuente con <em><code>wp_head();</code></em> dentro del Header.</p><h2>Uso</h2><p
style="text-align: left;">En tu archivo <em><code>functions.php</code></em> inserta lo siguiente:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">//Custom CSS </span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_menu'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_css_hooks'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'save_post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_custom_css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'insert_custom_css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_css_hooks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom_css'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Custom CSS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_css_input'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'normal'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'high'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom_css'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Custom CSS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_css_input'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'normal'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'high'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_css_input<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;input type=&quot;hidden&quot; name=&quot;custom_css_noncename&quot; id=&quot;custom_css_noncename&quot; value=&quot;'</span><span style="color: #339933;">.</span>wp_create_nonce<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'custom-css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;textarea name=&quot;custom_css&quot; id=&quot;custom_css&quot; rows=&quot;5&quot; cols=&quot;30&quot; style=&quot;width:100%;&quot;&gt;'</span><span style="color: #339933;">.</span>get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'_custom_css'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/textarea&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> save_custom_css<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>wp_verify_nonce<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'custom_css_noncename'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom-css'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DOING_AUTOSAVE'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> DOING_AUTOSAVE<span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$custom_css</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'custom_css'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	update_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_custom_css'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$custom_css</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> insert_custom_css<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;style type=&quot;text/css&quot;&gt;'</span><span style="color: #339933;">.</span>get_post_meta<span style="color: #009900;">&#40;</span>get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_custom_css'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/style&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
		rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//End Custom CSS</span></pre></div></div><p
style="text-align: left;">Ahora cada vez que escribas una entrada/pagina encontraras este box para insertar tus estilos:</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2657" title="Custom CSS Box en Wordpress" src="http://eliseos.net/wp-content/uploads/2010/02/Custom-CSS-Box.jpg" alt="Custom CSS Box CSS personalizado para cada entrada en Wordpress" width="500" height="250" /></p><p
style="text-align: left;">Como lo veras esta función es bastante flexible por lo sera posible adaptarla, para por ejemplo también poder incluir <em><code>scripts</code></em> en nuestro Header.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/css-personalizado-entrada-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>21 shortcuts utiles para escribir tus entradas</title><link>http://eliseos.net/wordpress/21-shortcuts-utiles-escribir-entradas/</link> <comments>http://eliseos.net/wordpress/21-shortcuts-utiles-escribir-entradas/#comments</comments> <pubDate>Thu, 04 Feb 2010 21:09:53 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2636</guid> <description><![CDATA[Si sos de los que tiende a escribir entradas largas, habrás notado que se pierde una cantidad de tiempo a la hora de darle formato al texto, negrita, subrayado, etc]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Si sos de los que tiende a escribir entradas largas, habrás notado que se pierde una cantidad de tiempo a la hora de darle formato al texto, negrita, subrayado, etc.</p><p>El editor de Wordpress es muy poderoso, y dispone de una serie de shortcuts (atajos) para darle formato al texto.<br
/> <span
id="more-2636"></span></p><p
style="text-align: left;">Estos son los 21 shortcuts necesarios para llevar tu productividad al máximo:</p><ul><li><h4>Negrita: Alt+SHIFT+b</h4></li><li><h4>Cursiva: Alt+SHIFT+i</h4></li><li><h4>Link: Alt+SHIFT+a</h4></li><li><h4>Blockquote: Alt+SHIFT+q</h4></li><li><h4>Codigo: Alt+SHIFT+c</h4></li><li><h4>Leer mas: Alt+SHIFT+t</h4></li><li><h4>Lista desordenada (ul): Alt+SHIFT+u</h4></li><li><h4>Lista ordenada (ol): Alt+SHIFT+o</h4></li><li><h4>Item de lista (li): Alt+SHIFT+l</h4></li><li><h4>Editor avanzado: Alt+SHIFT+v</h4></li><li><h4>Publicar entrada: Alt+SHIFT+p</h4></li><li><h4>ins: Alt+SHIFT+s</h4></li><li><h4>del: Alt+SHIFT+d</h4></li><li><h4>Deshacer cita/sangria: Alt+SHIFT+w</h4></li><li><h4>Deshacer: Alt+SHIFT+u</h4></li><li><h4>Rehacer: Alt+SHIFT+y</h4></li><li><h4>Editar en HTML: Alt+SHIFT+e</h4></li><li><h4>Alinear a la izquierda: Alt+SHIFT+f</h4></li><li><h4>Alinear al centro: Alt+SHIFT+c</h4></li><li><h4>Alinear a la derecha: Alt+SHIFT+r</h4></li><li><h4>Ctrl+[numero] para cambiar entre distinto tamaño de header en el texto seleccionado</h4></li></ul><p
style="text-align: left;">Visto en <a
title="21 Most Useful Time Saving WordPress Shortcuts" href="http://www.wpbeginner.com/beginners-guide/21-most-useful-time-saving-wordpress-shortcuts/">Wpbeginner</a></p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/21-shortcuts-utiles-escribir-entradas/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Remover el atributo nofollow dentro de tus entradas</title><link>http://eliseos.net/wordpress/remover-atributo-nofollow-dentro-entradas/</link> <comments>http://eliseos.net/wordpress/remover-atributo-nofollow-dentro-entradas/#comments</comments> <pubDate>Mon, 01 Feb 2010 23:13:46 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2628</guid> <description><![CDATA[Seguramente en algún momento habrás utilizado el atributo nofollow en el contenido de tus entradas, siguiendo algún consejo para sumar en ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Seguramente en algún momento habrás utilizado el atributo <em><code>nofollow</code></em> en el contenido de tus entradas, siguiendo algún consejo para sumar en SEO.</p><p>Wordpress por defecto no utiliza este atributo, pero varios plugins lo hacen; o quizás fuiste tu mismo el que agrego el nofollow manualmente en tus artículos.</p><p>Si por algún motivo ya no deseas que ese atributo este presente en el contenido de tus entradas, con esta simple función no desharemos del atributo nofollow.</p><h2>Eliminar atributo nofollow dentro de las entradas</h2><p>Dentro del archivo <em><code>functions.php</code></em> inserta estas lineas:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> remove_nofollow<span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_ireplace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' rel=&quot;nofollow&quot;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$string</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'remove_nofollow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Esta pequeña función revisara tus entradas y se deshará del atributo automáticamente.</p><h2>Eliminar atributo nofollow dentro de las entradas y comentarios</h2><p>Si también deseas deshacerte del nofollow en tu contenido y en tus comentarios, solo necesitas añadir estas lineas en tu <em><code>functions.php</code></em></p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> remove_nofollow<span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_ireplace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' rel=&quot;nofollow&quot;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$string</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'remove_nofollow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_text'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'remove_nofollow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Visto en <a
title="WordPress Tip: Remove nofollow Attributes from Post Content" href="http://digwp.com/2010/02/remove-nofollow-attributes-from-post-content/">Digging into Wordpesss</a></p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/remover-atributo-nofollow-dentro-entradas/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ultimos comentarios con Gravatar en Wordpress</title><link>http://eliseos.net/wordpress/ultimos-comentarios-gravatar-wordpress/</link> <comments>http://eliseos.net/wordpress/ultimos-comentarios-gravatar-wordpress/#comments</comments> <pubDate>Wed, 13 Jan 2010 21:22:19 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2577</guid> <description><![CDATA[Hoy leyendo en WpRecipes me tome con una linda receta que mostraba como mostrar los últimos &#8220;XX&#8221; comentarios junto con el gravatar correspondiente. Pero sentía que era una receta a medias, ya que se podía obtener mucho mas ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Hoy leyendo en <a
title="Display most recent comments with Gravatar" href="http://www.wprecipes.com/display-most-recent-comments-with-gravatar">WpRecipes</a> me tome con una linda receta que mostraba como mostrar los últimos &#8220;XX&#8221; comentarios junto con el gravatar correspondiente. Pero sentía que era una receta a medias, ya que se podía obtener mucho mas con unas lineas extras de código.</p><p
style="text-align: center;"><img
class="alignnone size-full wp-image-2578" title="Wordpress ultimos comentarios con gravatar" src="http://eliseos.net/wp-content/uploads/2010/01/wordpress_ultimos-comentarios_gravatar.jpg" alt="wordpress ultimos comentarios gravatar Ultimos comentarios con Gravatar en Wordpress" width="500" height="250" /></p><p><span
id="more-2577"></span></p><p
style="text-align: left;">Con esta receta mejorada ahora podremos ajustar el tamaño del gravatar, mostrar y controlar los caracteres del comentario y mostrar solo comentarios, excluyendo Pingbacks y Trackbacks.</p><p
style="text-align: left;">Donde necesites que se muestren los últimos comentarios solo introduce esta porción de código.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$comments</span> <span style="color: #339933;">=</span> get_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'status=approve&amp;number=5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//solo ultimos 5 comentarios aprobados , exlcluir Pingbacks &amp; Trackbacks</span>
<span style="color: #000088;">$img_w</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'80'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//tamaño de mi gravatar</span>
<span style="color: #000088;">$comment_lenth</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'150'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//cantidad de caracteres a mostrar antes de cortar el comentario</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;ul&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$comment_content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$comment_excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mb_substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_content</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$comment_lenth</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; [...]&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$permalink</span> <span style="color: #339933;">=</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;#comment-&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$permalink</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; title=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' | '</span> <span style="color: #339933;">.</span>
            get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_post_ID</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;gravatar&quot;&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_email</span><span style="color: #339933;">,</span> <span style="color: #000088;">$img_w</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p class=&quot;comment_author&quot;&gt;Autor: '</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/p&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;span class=&quot;comment_text&quot;&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; &lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$permalink</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span>Ver todo el comentario<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_excerpt</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p
style="text-align: left;">Lo que nos devolverá un Output como el siguiente:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">         <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
                <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
                    <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;gravatar&quot;</span><span style="color: #339933;">&gt;</span>
                        <span style="color: #339933;">&lt;</span>img alt<span style="color: #339933;">=</span><span style="color: #0000ff;">''</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">'http://www.gravatar.com/avatar/9b3068f17206b81cdde75e85d50885cb?s=80&amp;amp;d=http%3A%2F%2Feliseos.net%2Fwp-content%2Fthemes%2FEliseosV2%2Fimages%2Favatar.png%3Fs%3D80&amp;amp;r=G'</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'avatar avatar-80 photo'</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">'80'</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">'80'</span> <span style="color: #339933;">/&gt;</span>
                    <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;comment_author&quot;</span><span style="color: #339933;">&gt;</span>Autor<span style="color: #339933;">:</span> Alexis<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;comment_text&quot;</span><span style="color: #339933;">&gt;</span>Estas usando los campos personalizados o custom fields ? <span style="color: #009900;">&#91;</span><span style="color: #339933;">...</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
                <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></div></div><p
style="text-align: left;">Ahora solo te resta darle estilo a través de CSS.</p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/ultimos-comentarios-gravatar-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Auto rellenar los campos de comentarios en Wordpress</title><link>http://eliseos.net/wordpress/auto-rellenar-campos-comentarios-wordpress/</link> <comments>http://eliseos.net/wordpress/auto-rellenar-campos-comentarios-wordpress/#comments</comments> <pubDate>Tue, 29 Dec 2009 23:14:22 +0000</pubDate> <dc:creator>Alexis</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[hack]]></category><guid
isPermaLink="false">http://eliseos.net/?p=2537</guid> <description><![CDATA[Una de las cosas que que siempre intento predicar es hacer sentir al lector lo mas cómodo posible, para que vuelva al Blog. Hoy leyendo en uno de los blogs que siempre recomiendo seguir: Digging into Wordpress nos ]]></description> <content:encoded><![CDATA[<p
style="text-align: left;">Una de las cosas que que siempre intento predicar es hacer sentir al lector lo mas cómodo posible, para que vuelva al Blog. Hoy leyendo en uno de los blogs que siempre recomiendo seguir: <a
title="Digging into Wordpress" href="http://digwp.com/2009/12/gravatar-and-auto-fill/">Digging into Wordpress</a> nos acercaron una receta/idea para seguir con esta modalidad: Rellenar los campos de los comentarios de manera automática.</p><p
style="text-align: left;">Por cada comenario que un lector deja en el blog se almacenan datos en las cookies, se guardan en sus computadoras y luego a través de Wordpress podemos acceder a ellos. Los valores mas importantes y a los que luego haremos referencia son:</p><ol><li><h3>$comment_author</h3></p></li><li><h3>$comment_author_email</h3></p></li><li><h3>$comment_author_url</h3></p></li></ol><p
style="text-align: left;">Nuestro objetivo sera modificar nuestro archivo <em><code>comments.php</code></em> para que luego de cada comentario dejado, Wordpress recuerde automáticamente estos datos y se lo muestre al usuario, así este no tiene la necesidad de volver a introducirlos.</p><p
style="text-align: left;">Como lo mencione mas arriba Wordpress almacena esta información por nosotros, solo resta hacer el llamado y mostrar nuestro output:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><h2>Editando nuestro archivo comments.php</h2><p
style="text-align: left;">Solo necesitamos modificar los 3 campos donde se introduce el Nombre, el Sitio Web y el E-mail. Para eso solo modificamos los 3 valores antes mencionados en nuestros <em><code>input</code></em>:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;div&gt;
  &lt;label for=&quot;author&quot;&gt;Nombre*&lt;/label&gt;
  &lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; tabindex=&quot;1&quot; /&gt;			
&lt;/div&gt;	
&nbsp;
&lt;div&gt;
  &lt;label for=&quot;email&quot;&gt;E-mail*&lt;/label&gt;
  &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; tabindex=&quot;2&quot; /&gt;
&lt;/div&gt;
&nbsp;
&lt;div&gt;
  &lt;label for=&quot;url&quot;&gt;Sitio Web&lt;/label&gt;
  &lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; tabindex=&quot;3&quot; /&gt;
&lt;/div&gt;</pre></div></div><p
style="text-align: left;">Cada ves que un usuario vuelva a comentar, Wordpress le recordara sus datos. Fantástico!</p><h2>Mostrar el Gravatar</h2><p>Como un extra si se quiere, también somos capaces de devolver el Gravatar del usuario para mostrarlo donde necesitemos. La <em><code>URL</code></em> de Gavatar esta compuesta por el siguiente formato:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">http://www.gravatar.com/avatar/MD5-HASH-OF-EMAIL</pre></div></div><p
style="text-align: left;">Así que solo necesitamos devolverla dentro de <em><code>img</code></em> y estaremos listos</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_email</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
&nbsp;
    <span style="color: #000088;">$gravatar_link</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://www.gravatar.com/avatar/'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_email</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'?s=32'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$gravatar_link</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; alt=&quot;&quot; /&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p
style="text-align: left;">Estos pequeños trucos nos ayudan a interactuar cada ves mas con el usuario y hacerlo sentir mas a gusto.</p><p
style="text-align: left;">Articulo visto en <a
title="Digging into Wordpress" href="http://digwp.com/2009/12/gravatar-and-auto-fill/">Digging into Wordpress</a></p> ]]></content:encoded> <wfw:commentRss>http://eliseos.net/wordpress/auto-rellenar-campos-comentarios-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: eliseos.net @ 2010-03-17 04:25:03 by W3 Total Cache -->