<?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>Guia Wordpress &#187; Tutoriales</title>
	<atom:link href="http://www.guiawordpress.org/category/tutoriales/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guiawordpress.org</link>
	<description>Otro sitio web creado con WordPress</description>
	<lastBuildDate>Mon, 28 Nov 2011 14:37:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Integrando instagram en  wordpress</title>
		<link>http://www.guiawordpress.org/analisis/integrando-instagram-en-wordpress/</link>
		<comments>http://www.guiawordpress.org/analisis/integrando-instagram-en-wordpress/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 22:11:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Análisis]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[fotgrafía]]></category>
		<category><![CDATA[Imágenes]]></category>
		<category><![CDATA[Instagram]]></category>
		<category><![CDATA[Iphone]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1411</guid>
		<description><![CDATA[Hace meses que vengo jugando con la aplicación de Instagram para Iphone. Una aplicación que ha echo sacar al fotógrafo que muchos llevan dentro. La aplicación tiene una serie de filtros que dan a las imágenes tomadas con la cámara del teléfono un verdadero aspecto profesional. El éxito de la aplicación reside en su potencial como verdadera red social, con sus seguidores, sus [...]


]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hace meses que vengo jugando con la aplicación de Instagram para Iphone. Una aplicación que ha echo sacar al fotógrafo que muchos llevan dentro. La aplicación tiene una serie de filtros que dan a las imágenes tomadas con la cámara del teléfono un verdadero aspecto profesional. El éxito de la aplicación reside en su potencial como verdadera red social, con sus seguidores, sus likes y los #hashtags, que ayuda que otros usuarios encuentren tus imágenes y comenten sobre ellas.</p>
<p style="text-align: justify;">No voy hablar del uso de la aplicación en si misma, ya hay cientos de entradas en Internet sobre el uso de la app, el éxito es notable y ha creado una verdadera legión de fans.</p>
<p style="text-align: justify;">Lo que vamos a ver es la manera de <strong>integrar instagram con wordpress</strong>. De momento, el repositorio de plugins de wordpress contiene un reducido número de plugins . Los hemos estado analizando para ver cual de ellos se adaptaba mejor a nuestras necesidades. Lo que buscábamos era un plugin que nos dejara <strong>mostrar nuestras imágenes de instagram</strong>  en cualquier parte de nuestra web, ya sea en páginas,  post  o en el sidebar.</p>
<p style="text-align: justify;">De todos los plugin analizados, el mejor es sin duda <a style="font-size: 15px; font-weight: bold;" href="http://wordpress.org/extend/plugins/instapress/">Instapress</a> , porque además de mostrar las galerías en cualquier parte de la web, tiene varias opciones que nos permitirán mostrar el contenido de diferente manera. Con Instapress podemos mostrar las imágenes de nuestra cuenta o la del usuario que deseemos, un follower, las imágenes de la categoría popular o quizás una de las cosas más interesantes, mostrar imágenes según el tag  (hashtag) que le marquemos en la configuración. Esto es muy interesante desde el punto de vista de la temática de nuestra web.</p>
<p style="text-align: justify;">Una vez instalado el plugin , lo activamos. Vamos a  Ajustes en el Admin Panel y selecconamos Instapress. Lo primero que debemos hacer es introducir nuestro usuario y password de nuestra cuenta de Instagram. El resto de funciones se pueden dejar de momento sin seleccionar.</p>
<p style="text-align: justify;">Debo decir que en la primera instalación del plugin, en una versión actualizada de wp pero con un theme algo desfasado, todo ha ido correcto, excepto la opción del plugin que al clickar sobre cada imagen se muestra con el efecto &#8220;fancybox&#8221; .  Aquí me ha fallado, y al seleccionar en cada imagen direccionaba hacia la url de la imagen. Como no podía actualizar el theme de esa web he decidido cambiar de web para testearlo. Si tu theme lleva incorporado el efecto &#8220;fancybox&#8221; por defecto, puede que te encuentres con alguna incompatibilidad.</p>
<p style="text-align: justify;">En páginas y post podemos integrar instagram via shortcode con el siguiente formato:</p>
<p style="text-align: justify;">[ instapress userid="" piccount="" size="" ]  podemos jugar con los parámetros del shortcode:</p>
<ul style="text-align: justify;">
<li><strong>userid</strong>: ID o nombre de usuario de instagram ( en blanco para el feed de poular, &#8220;self&#8221; para tus propias imagenes o &#8220;feed&#8221; para tu feed)</li>
<li><strong>piccount</strong>: Numero de imagenes (por defecto: 9) &#8211; Hay que habilitar cache para mas de 20 imágenes.</li>
<li><strong>size</strong>: Medida en Pixels (Por defecto: 85)</li>
<li><strong>effect</strong>: Nombre del efecto , actualmente solo es posible &#8220;fancybox&#8221;</li>
<li><strong>url</strong>: si le das algun valor, Instapress ignora el valor para <strong>userid and piccount </strong> y muestra una sola imagen.</li>
<li><strong>title</strong>: marca 1 para mostrar el titulo de tus imagenes</li>
<li><strong>paging</strong>: Marca 1, y tus imágenes se mostraran en galería. El valor <strong>piccount</strong> definirá el numero de imágenes por pagina.</li>
<li><strong>tag</strong>: Usa esta opción para filtrar por hashtag. Se puede usar un solo tag. La opción  <strong>userid</strong> se ignora si seleccionas esta opción.</li>
</ul>
<div style="text-align: justify;">Pero el plugin nos lo pone más fácil. En el editor de texto te aparece este <img src="http://www.guiawordpress.org/wp-content/plugins/instapress/tinymce/img/instapress.gif" alt="instapress Integrando instagram en  wordpress"  title="Integrando instagram en  wordpress" /> icono para <strong>insertar tus galerías de Instagram</strong>, lo seleccionamos y se nos abrirá esta ventana de configuración:</div>
<div><img class="size-full wp-image-1421 aligncenter" title="insert instagram" src="http://www.guiawordpress.org/wp-content/uploads/2011/11/insert-instagram.jpg" alt="insert instagram Integrando instagram en  wordpress" width="330" height="379" /></div>
<p>y es aquí donde puedes jugar con todos los atributos . Mira este ejemplo de integración en el post:</p>
<script type="text/javascript">var instapressConfig = {"userid":"gintoni","size":"90","piccount":"4","effect":"fancybox","url":false,"title":"1","paging":"1","max_id":"","like":0,"tag":""};</script><div class="instapress-shortcode-pager"><a href="http://www.guiawordpress.org" class="prev-page-instapress" rel="0">&lt;&lt; Previous</a><a href="http://www.guiawordpress.org" class="next-page-instapress" rel="2">Next &gt;&gt;</a></div><div class="instapress-gallery"><div class="instapress-shortcode version-1.4.4 instapress-shortcode-page" id="instapress-shortcode-page-1"><div class="instapress-shortcode-image odd" id="instapress-shortcode-image-1"><a href="http://distilleryimage8.s3.amazonaws.com/0256e2d6114511e19896123138142014_7.jpg" rel="instagram-sc-images" title="#barcelona #windows #sun #reflect #clouds #cameraplus #ig #iphone #instagood #instagram #iphonesia #iphoneonly #instagramers #iphoneography #igerscatalunya #instagrameando #buildings "><img src="http://distilleryimage8.s3.amazonaws.com/0256e2d6114511e19896123138142014_5.jpg" width="90" height="90" border="0" title="Integrando instagram en  wordpress" alt="0256e2d6114511e19896123138142014 5 Integrando instagram en  wordpress" /></a></div><div class="instapress-shortcode-image even" id="instapress-shortcode-image-2"><a href="http://distilleryimage2.s3.amazonaws.com/a786f4300f6f11e180c9123138016265_7.jpg" rel="instagram-sc-images" title="#cameraplus #lomo #buildings #windows #architecture #ig #igerscatalunya #iphone #instagood #instagram #iphonesia #iphoneonly #instagramers #iphoneography #instagrameando "><img src="http://distilleryimage2.s3.amazonaws.com/a786f4300f6f11e180c9123138016265_5.jpg" width="90" height="90" border="0" title="Integrando instagram en  wordpress" alt="a786f4300f6f11e180c9123138016265 5 Integrando instagram en  wordpress" /></a></div><div class="instapress-shortcode-image odd" id="instapress-shortcode-image-3"><a href="http://distilleryimage8.s3.amazonaws.com/f6a66fd6070011e180c9123138016265_7.jpg" rel="instagram-sc-images" title="Tracks bcn #barcelona #bw #cameraplus #xpro #gintoni #ig #iphone #instagood #i#instagram #iphonesia #iphoneonly #instagramers #iphoneography #instagrameando #trains #tracks #underground"><img src="http://distilleryimage8.s3.amazonaws.com/f6a66fd6070011e180c9123138016265_5.jpg" width="90" height="90" border="0" title="Integrando instagram en  wordpress" alt="f6a66fd6070011e180c9123138016265 5 Integrando instagram en  wordpress" /></a></div><div class="instapress-shortcode-image even" id="instapress-shortcode-image-4"><a href="http://distilleryimage2.s3.amazonaws.com/884e859a06c511e1abb01231381b65e3_7.jpg" rel="instagram-sc-images" title="Barcelona sky #barcelona #sky #clouds #lomo #planes #ig #iphone #iphoneonly #iphonesia #instagood #instagram #instagramers #iphoneography #instagrameando #picoftheday #fotodeldia #gintoni"><img src="http://distilleryimage2.s3.amazonaws.com/884e859a06c511e1abb01231381b65e3_5.jpg" width="90" height="90" border="0" title="Integrando instagram en  wordpress" alt="884e859a06c511e1abb01231381b65e3 5 Integrando instagram en  wordpress" /></a></div><input type="hidden" id="instapress-next-max-id-2" value="280267341_9736051" /></div></div><div class="instapress-shortcode-pager"><a href="http://www.guiawordpress.org" class="prev-page-instapress" rel="0">&lt;&lt; Previous</a><a href="http://www.guiawordpress.org" class="next-page-instapress" rel="2">Next &gt;&gt;</a></div>
<p>una minigalería de 4 imágenes de tu feed de Instagram. El proceso es el mismo para mostrarlo en páginas, mira <a title="instagram en páginas" href="http://www.guiawordpress.org/instagram/">esta demo</a> para ver como queda integrado en una página.</p>
<p>Para integrar instagram en el sidebar no tiene mayor secreto que usar el widget que proporciona el plugin. Mira de ajustar correctamente los pixels y el número de imágenes, para que encajen correctamente con el tamaño de la barra lateral. En nuestro sidebar de <a title="Tutoriales para wordpress" href="http://www.guiawordpress.org">guiawordpress.org</a> puedes ver un ejemplo de como queda.</p>
<p>Todo es ir probando, hasta encontrar la manera correcta en que<strong> tus imágenes de instagram se muestren correctamente en wordpress</strong>.</p>
<p>Si nada de esto te sirve para <strong>integrar instagram en tu site</strong> y lo que quieres es mostrarla en alguna parte de tu template o theme, también puedes llamar al shortcode en cualquier parte de tu theme via php:</p>
<p><img class="aligncenter size-full wp-image-1451" title="shortcode" src="http://www.guiawordpress.org/wp-content/uploads/2011/11/shortcode.jpg" alt="shortcode Integrando instagram en  wordpress" width="432" height="29" /></p>
<p>&nbsp;</p>
<p>dentro del código php solo se trata que uses las variables que te he comentado, para mostrar las galerías de imágenes de instagram de la manera que consideres oportuna.</p>
<p>Espero que te haya servido de ayuda el post, de esta manera podrás sacarle mas jugo a tu creatividad combinando <strong>Instagram y WordPress</strong>.</p>
<p>Porque no me sigues en Instagram ? @gintoni puedes dejar tu username en los comentarios de este post para que te podamos seguir también.</p>
<p>Saludos,</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/analisis/integrando-instagram-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trucos para evitar ser hackeados en WordPress</title>
		<link>http://www.guiawordpress.org/tips/trucos-para-evitar-ser-hackeados-en-wordpress/</link>
		<comments>http://www.guiawordpress.org/tips/trucos-para-evitar-ser-hackeados-en-wordpress/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 01:26:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Hacked]]></category>
		<category><![CDATA[Trucos]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1391</guid>
		<description><![CDATA[Vamos a explicar unos “tips” para evitar ser hackeados . Vaya por delante que esta información que vamos a dar no es garantía segura de que no seas hackeado, pero al menos vamos a intentar ponerle las cosas un poco mas difíciles a quien lo intente.


]]></description>
			<content:encoded><![CDATA[<p>Vamos a explicar unos “tips” para evitar ser hackeados . Vaya por delante que esta información que vamos a dar no es garantía segura de que no seas hackeado, pero al menos vamos a intentar ponerle las cosas un poco mas difíciles a quien lo intente.</p>
<p><br class="spacer_" /></p>
<p>En primer lugar, asegúrate que tienes tu instalación de wordpress correctamente actualizada a la última versión.</p>
<p>Una buena opción para evitar ataques es proteger nuestro directorio / wp-admin /. Vamos a bloquearlo para que solo algunas IP puedan acceder a este directorio. Crearemos un archivo htaccess y lo colocamos  en /wp-admin/.htaccess.  Aquí va un ejemplo de lo que figura en este archivo:</p>
<p><br class="spacer_" /></p>
<p>AuthUserFile /dev/null</p>
<p>AuthGroupFile /dev/null</p>
<p>AuthName “Access Control”</p>
<p>AuthType Basic</p>
<p>order deny,allow</p>
<p>deny from all</p>
<p># whitelist home IP address</p>
<p>allow from 64.233.169.99</p>
<p># whitelist work IP address</p>
<p>allow from 69.147.114.210</p>
<p>allow from 199.239.136.200</p>
<p># IP while in Madrid; delete when back</p>
<p>allow from 128.163.2.27</p>
<p><br class="spacer_" /></p>
<p>Hemos cambiado las direcciones IP , recuerda siempre por motivos obvios de seguridad no hacer nunca pública la información de tus IP.</p>
<p>A las direcciones IP arriba mencionadas les hemos permitido el acceso al directorio /wp-admin /, pero al resto de ellas que no estén en ese rango se lo denegamos. Esto puede salvarnos de situaciones desagradables.</p>
<p>Haremos que el 	archivo wp-content/plugins/index.html esté vacío, así evitaremos 	ceder una lista de los plugins que estamos ejecutando en nuestro wp. 	Si alguien quiere hackear tu blog podría utilizar esta información 	para intentar acceder vía alguno de los plugins instalados.</p>
<p>Otra cosa muy 	útil y que casi nunca hacemos, es seguir las actualizaciones y 	novedades del blog de desarrollo de wordpress 	<a href="http://wordpress.org/development/feed/">http://wordpress.org/development/feed/</a> . Cuando los creadores de wordpress encuentran un agujero de 	seguridad cuelgan tan pronto como pueden una solución adecuada para 	subsanarlo con algún nuevo parche de seguridad. Hay que estar 	atento y aplicarlo en cuanto sea necesario, ya sea actualizando o 	siguiendo las instrucciones de los desarrolladores.</p>
<p>Y por último y 	no menos importante. Vamos a nuestro archivo header.php y buscamos la 	linea de código :</p>
<p>&lt;meta 	name=”generator” content=”WordPress &lt;?php 	bloginfo(’version’); ?&gt;” /&gt;</p>
<p>y 	eliminamos completamente esa linea, pero ojo, solo esa, y siempre 	previamente de haber tenido la preocupación de hacer una copia de 	seguridad de nuestros archivos. Si no quieres borrar toda la linea, 	puedes solo eliminar “bloginfo(’version’)”. Esto lo hacemos 	para evitar que sepan que copia de WP estamos usando , poniendo 	otro obstáculo a quien intente hackear nuestro blog.</p>
<p><br class="spacer_" /></p>
<p>Esperamos que 	te hayan servido estos pequeños trucos de ayuda . Si tienes alguna 	duda al respecto, puedes dejarnos un comentario.</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tips/trucos-para-evitar-ser-hackeados-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recibir un aviso por mail si falla la Base de Datos</title>
		<link>http://www.guiawordpress.org/tutoriales/recibir-un-aviso-por-mail-si-falla-la-base-de-datos/</link>
		<comments>http://www.guiawordpress.org/tutoriales/recibir-un-aviso-por-mail-si-falla-la-base-de-datos/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:40:17 +0000</pubDate>
		<dc:creator>Toniface</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[aviso]]></category>
		<category><![CDATA[Base de Datos]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1361</guid>
		<description><![CDATA[Este es un pequeño truco para hacer que os llegue un aviso a vuestro mail en caso que se detecte algún fallo en la Base de Datos de vuestro WordPress. Eso sí, sabreis que hay algún fallo pero no de cual se trata, pero al menos ya sabremos que algo no marcha bien. El funcionamiento [...]


]]></description>
			<content:encoded><![CDATA[<p>Este es un pequeño truco para hacer que os llegue un aviso a vuestro mail en caso que se detecte algún fallo en la Base de Datos de vuestro WordPress. Eso sí, sabreis que hay algún fallo pero no de cual se trata, pero al menos ya sabremos que algo no marcha bien.</p>
<p>El funcionamiento es sencillo, WordPress siempre se fija en si hay algún error, pero hace una llamada dentro de <em><strong>wp-content</strong></em> al archivo <strong><em>db-error.php</em></strong> que no existe, por eso hemos de crearlo.</p>
<p>Con nuestro editor de texto favorito (texto plano, tipo Bloc de notas, no Word) creamos el archivo <strong><em>db-error.php</em></strong> con el siguiente contenido:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" &lt;?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?&gt;&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Database Error&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Error establishing a database connection&lt;/h1&gt;

&lt;?php
$email = "<strong>tu correo</strong>";
mail(
$email,
// Asunto
"<strong>Error en la base de datos</strong>",
// Mensaje
"<strong>Parece que tu blog hay problemas con la base de datos</strong>."
);
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Evidentemente debéis poner una direccion de mail en<strong> “tu correo”</strong>, y podéis modificar el cuerpo del e-mail y el asunto Una vez creado lo subimos a <strong><em>/wp-content</em></strong> y ya está, la próxima vez que falle nuestra Base de Datos seremos los primeros en saberlo.</p>
<p><strong>Vía:</strong> <a href="http://www.todowp.org/hacer-que-wordpress-envie-un-correo-cuando-haya-algun-problema-con-la-base-de-datos/" target="_blank">Todo WordPress</a></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/recibir-un-aviso-por-mail-si-falla-la-base-de-datos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pon un reproductor de MP3 en tu blog: MP3 Player Plugin</title>
		<link>http://www.guiawordpress.org/tutoriales/pon-un-reproductor-de-mp3-en-tu-blog-mp3-player-plugin/</link>
		<comments>http://www.guiawordpress.org/tutoriales/pon-un-reproductor-de-mp3-en-tu-blog-mp3-player-plugin/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 11:23:15 +0000</pubDate>
		<dc:creator>Toniface</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reproductor]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1294</guid>
		<description><![CDATA[De forma muy sencilla y gracias a este plugin: MP3 Player Plugin, podrás poner todos los reproductores de MP3 que quieras en tu web creando las listas de reproducción que quieras. En primer lugar lo descargais desde WordPress.org. Para instalarlo, como siempre, descomprimimos mp3player.zip y lo subimos al directorio /wp-content/plugins/. Dentro del Panel de control [...]


]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">De forma muy sencilla y gracias a este plugin: <strong>MP3 Player Plugin</strong>, podrás poner todos los reproductores de MP3 que quieras en tu web creando las listas de reproducción que quieras.<br />
En primer lugar lo descargais desde <a href="http://wordpress.org/extend/plugins/mp3-player-plugin-for-wordpress/" target="_blank">WordPress.org</a>. Para instalarlo, como siempre, descomprimimos<strong> mp3player.zip</strong> y lo subimos al directorio <strong>/wp-content/plugins/</strong>.</p>
<p style="text-align: justify;">Dentro del <strong>Panel de control</strong> de nuestro WordPress vamos a <strong>Plugins</strong> y lo activamos.</p>
<p style="text-align: justify;">Ahora en <strong>Opciones</strong> veremos: <strong>MP3 Player Options</strong>. Allí dentro nos encontramos con todas las posibilidades de personalización y creación de players.</p>
<p style="text-align: justify;"><img class="alignnone size-large wp-image-1295" title="Mp3Player-Options-01" src="http://www.guiawordpress.org/wp-content/uploads/2010/01/Mp3Player-Options-01-1024x388.jpg" alt="Mp3Player Options 01 1024x388 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="189" /></p>
<p style="text-align: justify;">En primer lugar nos muestra la carpeta por defecto para guardar nuestros mp3, que se llama<strong> mp3 </strong>y se encuentra en: <strong><code>/wp-content/plugins/mp3-player-plugin-for-wordpress/mp3/</code></strong></p>
<p style="text-align: justify;">Allí podemos poner nuestros MP3 para la lista de reproducción. Si queremos mas de un player con contenidos distintos en cada uno habremos de crear carpetas cada una con un nombre identificativo de la siguiente manera: <strong><code>wp-content/plugins/mp3-player-plugin-for-wordpress/nombre_directorio/</code></strong> y dentro de cada directorio pondremos los MP3 que deseamos en esa lista/player.</p>
<p style="text-align: justify;">En esta imagen vemos que podemos personalizar las <strong>dimensiones </strong>del player según el modelo escogido que es uno de estos:</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1297" title="Mp3Player-Options-03" src="http://www.guiawordpress.org/wp-content/uploads/2010/01/Mp3Player-Options-03.jpg" alt="Mp3Player Options 03 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="211" /></p>
<p style="text-align: justify;">Podemos personalizar el <strong>color</strong>, pero tan solo varía el color de la <strong>barra de progreso y volumen</strong>.</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1296" title="Mp3Player-Options-02" src="http://www.guiawordpress.org/wp-content/uploads/2010/01/Mp3Player-Options-02.jpg" alt="Mp3Player Options 02 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="167" /></p>
<p style="text-align: justify;">Luego encontramos una serie de Opciones como <strong>Show numbers </strong>(Mostrar número de canciones) <strong>Shuffle</strong> (para dar orden aleatorio) <strong>Autoplay</strong>, <strong>Alineación</strong>, <strong>Transparencia</strong>,  Mostrar <strong>Botón de Pop-Up</strong>,&#8230;</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1299" title="Mp3Player-Options-04" src="http://www.guiawordpress.org/wp-content/uploads/2010/01/Mp3Player-Options-04.jpg" alt="Mp3Player Options 04 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="342" /></p>
<p style="text-align: justify;">Con estas opciones hemos definido nuestro player en el caso de que sea el único o el principal que, por ejemplo, podemos ubicar en el <strong>sidebar </strong>como widget. Para ello solo tenemos que ir a <strong>Apariencia-&gt;Widgets</strong> y colocarlo donde queramos arrastrándolo.</p>
<p style="text-align: justify;">También podemos situar el player en el lugar que deseemos de nuestras páginas o posts poniéndo este código</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1300" title="Mp3Player-Options-05" src="http://www.guiawordpress.org/wp-content/uploads/2010/01/Mp3Player-Options-05.jpg" alt="Mp3Player Options 05 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="316" height="159" /></p>
<p style="text-align: justify;">Pero como ya hemos dicho, podemos crear todos los que deseemos e insertrlos donde convenga. Una vez hemos creado las carpetas con el contenido debemos crear el código para cada uno de los players. Las opciones y sus tags son:</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1301" title="Mp3Player-Options-06" src="http://www.guiawordpress.org/wp-content/uploads/2010/01/Mp3Player-Options-06.jpg" alt="Mp3Player Options 06 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="192" height="600" /></p>
<p style="text-align: justify;">El código que hemos de colocar donde queramos ha de ser similar a este:</p>
<p style="text-align: justify;"><strong><code>[mp3_embed blog_plyrs="3" playlistfolder="lol" transparent="no" colors="#408080" show="no" mp3wids=”280” mp3highs=”215”]</code></strong></p>
<p style="text-align: justify;"><strong><code>mp3_embed blog_plyrs</code></strong> indica el tipo de player (1 para el Baby, 2 para el Medium y 3 para el grande)</p>
<p style="text-align: justify;"><strong><code>playlistfolder</code></strong> indica la carpeta donde se encuentran los MP3 de ese player. En este caso la carpeta es <strong>lol</strong> y la ruta completa es <strong><code>/wp-content/plugins/mp3-player-plugin-for-wordpress/lol/</code></strong> aunque como veis solo hay que poner el nombre de la carpeta.</p>
<p style="text-align: justify;"><strong><code>transparen</code>t</strong> indica que no deseamos transparencia.</p>
<p style="text-align: justify;"><strong><code>colors</code> </strong>nos sirve para indicar en hexadecimal el color que deseamos pàra la barra de progreso y volumen. El código lo obtenemos fácilmente con el cuadro que hemnos comentado arriba. Ponemos el cursos sobre el color deseado y obtenemos el hexadecimal.</p>
<p style="text-align: justify;"><strong><code>show</code> </strong>nos señala en este caso que no debe mostrar los números de orden de los temas, ya que ya están escritos en el nombre del MP3 o simplemente porque mo lo deseamos.</p>
<p style="text-align: justify;"><strong><code>mp3wids</code></strong> nos sirve para declarar un tamaño de ancho diferente al estandard para el tipo de player seleccionado.<br />
<strong><code>mp3highs</code></strong> nos sirve para declarar un tamaño de alto diferente al estandard para el tipo de player seleccionado.</p>
<p style="text-align: justify;">Si ponemos mas de un player en la misma págibna o post hemos de usar la etiqueta<strong> id </strong>para diferenciarlos</p>
<p style="text-align: justify;">id=”1” id=”2”&#8230;</p>
<p style="text-align: justify;">Ahora ya podemos poner el código donde deseemos.</p>
<p style="text-align: justify;"><strong>Un par de detalles:</strong></p>
<p style="text-align: justify;">- No pongais <strong>acentos </strong>en los nombres de los MP3 ya que si no esas letras no os aparecerán.</p>
<p style="text-align: justify;">- En el nombre del directorio donde guardaremos los MP3 no podemos poner <strong>signos </strong>como el guión (-).</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/pon-un-reproductor-de-mp3-en-tu-blog-mp3-player-plugin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tutorial: Utilizando el Plugin AStickyPostOrderER</title>
		<link>http://www.guiawordpress.org/tutoriales/tutorial-utilizando-el-plugin-astickypostorderer/</link>
		<comments>http://www.guiawordpress.org/tutoriales/tutorial-utilizando-el-plugin-astickypostorderer/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:09:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Vídeo]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1259</guid>
		<description><![CDATA[AStickyPostOrderER presenta el plugin para WordPress, incluyendo la configuración y las ideas para su uso.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=YpH7tn20&amp;width=640&amp;height=480" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.10" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="480" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.10" allowfullscreen="true" flashvars="guid=YpH7tn20&amp;width=640&amp;height=480"></embed></object></p>
<p><a href="http://wordpress.org/extend/plugins/astickypostorderer/">El plugin se puede encontrar en el repositorio wordpress.org aquí</a>.</p>
<h4>Idioma</h4>
<p>Inglés</p>
<h4>Productor</h4>
<p>Adam W Warner</p>
<h4>Altavoces</h4>
<p>Adam W Warner</p>
<h4>Fecha</h4>
<p>4 de noviembre 2009</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/tutorial-utilizando-el-plugin-astickypostorderer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realizar una actualización de WordPress</title>
		<link>http://www.guiawordpress.org/tutoriales/realizar-una-actualizacion-de-wordpress/</link>
		<comments>http://www.guiawordpress.org/tutoriales/realizar-una-actualizacion-de-wordpress/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 16:10:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Actualizaciones]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Vídeo]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1234</guid>
		<description><![CDATA[En este tutorial verán cómo actualizar su instalación de WordPress de forma automática. El manejo es muy sencillo, sn emabrgo,  muchas personas regularmente se pregunta sobre cómo proceder.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">En este tutorial verán cómo actualizar su instalación de WordPress de forma automática. El manejo es muy sencillo, sn emabrgo,  muchas personas regularmente se pregunta sobre cómo proceder. Ahora resulta que WordPress está disponible en la versión 2.8.5, vean este vídeo.</p>
<h4 style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://v.wordpress.com/UOTzQuTu" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="600" height="350" src="http://v.wordpress.com/UOTzQuTu" allowfullscreen="true"></embed></object></h4>
<h4>Idioma</h4>
<p>Francés</p>
<h4>Productor</h4>
<p>Maigret</p>
<h4>Altavoces</h4>
<p>Maigret</p>
<h4>Fecha</h4>
<p>3 de noviembre 2009</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/realizar-una-actualizacion-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como integrar un carrusel jQuery a WP, con tus últimos post</title>
		<link>http://www.guiawordpress.org/tutoriales/como-integrar-un-carrusel-jquery-a-wp-con-tus-ultimos-post/</link>
		<comments>http://www.guiawordpress.org/tutoriales/como-integrar-un-carrusel-jquery-a-wp-con-tus-ultimos-post/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 01:48:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[Nuevas]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personalizar]]></category>
		<category><![CDATA[Posts]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1161</guid>
		<description><![CDATA[Si suelen diseñar themes Wordpress con frecuencia, no tengo dudas que en algún momento desearan innovar e intentaran implementar nuevas funcionalidades a la hora de presentar sus artículos en portada.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="alignnone size-full wp-image-1162" title="carruselwp" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/carruselwp.jpg" alt="carruselwp Como integrar un carrusel jQuery a WP, con tus últimos post" width="485" height="150" /></p>
<p align="justify">Si suelen diseñar themes WordPress con frecuencia, no tengo dudas que en algún momento desearan innovar e intentaran implementar nuevas funcionalidades a la hora de presentar sus artículos en portada. <a href="http://www.envioenlaces.com/?http://armeda.com/how-to-create-a-jquery-carousel-with-wordpress-posts/" target="_blank">Create a jQuery Carousel with WordPress Posts,</a> es un tutorial que me pareció muy interesante, en el aprenderán paso a paso como Integrar un carrusel basado en jQuery en wordpress, el cual contendrá tus <strong>últimas entradas publicadas</strong>. Se explicara como configurar una categoría en particular, como instalar <a href="http://www.envioenlaces.com/?http://www.gimiti.com/kltan/wordpress/?p=46" target="_blank">jFlow</a> (un script muy liviano para generar los slide), como publicar y como personalizar todo una vez finalizado. El resultado es realmente muy bueno.</p>
<p>Ver <a href="http://www.envioenlaces.com/?http://demo.armeda.com/" target="_blank">Demo</a> &#8211; Enlace <a href="http://www.envioenlaces.com/?http://armeda.com/how-to-create-a-jquery-carousel-with-wordpress-posts/" target="_blank">Create a jQuery Carousel with WordPress Posts</a></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/como-integrar-un-carrusel-jquery-a-wp-con-tus-ultimos-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Añadir marcadores sociales a sus themes wordpress de forma manual.</title>
		<link>http://www.guiawordpress.org/tutoriales/anadir-marcadores-sociales-a-sus-themes-wordpress-de-forma-manual/</link>
		<comments>http://www.guiawordpress.org/tutoriales/anadir-marcadores-sociales-a-sus-themes-wordpress-de-forma-manual/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 01:07:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[amp]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[botones]]></category>
		<category><![CDATA[conti]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[eje]]></category>
		<category><![CDATA[esto]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[lle]]></category>
		<category><![CDATA[marca]]></category>
		<category><![CDATA[marcadores]]></category>
		<category><![CDATA[muchos sitios]]></category>
		<category><![CDATA[nada]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personalizar]]></category>
		<category><![CDATA[plataformas]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[stumbleupon]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Título]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[unos]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1132</guid>
		<description><![CDATA[Si en algún momento han deseado añadir marcadores sociales a sus plataformas wordpress, pero personalizados por ustedes mismos, sin la utilización de plugin, créanme que nos es nada complicado, y a continuación podrán leer dos artículos que los ayudara a entender cómo hacerlo.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial0.jpg"><img class="alignnone size-full wp-image-1134" title="linksocial0" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial0.jpg" alt="linksocial0 Añadir marcadores sociales a sus themes wordpress de forma manual." width="485" height="150" /></a></p>
<p>Si en algún momento han deseado añadir marcadores sociales a sus plataformas wordpress, pero personalizados por ustedes mismos, sin la utilización de plugin, créanme que nos es nada complicado, y a continuación podrán leer dos artículos que los ayudara a entender cómo hacerlo.</p>
<p style="text-align: center">
<p style="text-align: center;"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial1.jpg"><img class="size-full wp-image-1136 aligncenter" title="linksocial" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial1.jpg" alt="linksocial1 Añadir marcadores sociales a sus themes wordpress de forma manual." width="485" height="150" /></a></p>
<p><a href="http://www.envioenlaces.com/?http://thedesigned.com/2009/06/13/plain-text-social-bookmark-links-for-wordpress/" target="_blank">Plain text social bookmark links for WordPress</a>, este artículo le da el código de texto necesario para muchos sitios sociales diferentes, como Digg, Facebook, Reddit, Delicious, y muchos más.  Con los cuales podrán personalizar aun más sus sitios basados en WordPress. Si no sabian que URL utilizar, esto los sacara de toda duda generada.</p>
<p style="text-align: center;"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial21.jpg"><img class="size-full wp-image-1138 aligncenter" title="linksocial2" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial21.jpg" alt="linksocial21 Añadir marcadores sociales a sus themes wordpress de forma manual." width="485" height="150" /></a></p>
<p style="text-align: center">
<p><a href="http://www.envioenlaces.com/?http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/" target="_blank">Add social bookmarks to your wordpress theme</a>, un breve tutorial que les explicara como añadir de forma manual botones bookmarking sociales (Delicious, Reddit, Digg, StumbleUpon, Twitter y Facebook) a sus themes wordpress. Todos estos sitios proporcionan una manera simple de crear estos botones, Por ejemplo, para agregar un artículo a Reddit, la dirección es: http://www.reddit.com/submit?url=THE-URL&amp;title=THE-TITLE, como pueden ver, sólo tiene que rellenar la dirección URL y el título del artículos especifico. Pueden serles muy útiles estos tips, para tener muy mayor control, sin utilizar algunos plugin.  Leer tutorial: <a href="http://www.envioenlaces.com/?http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/" target="_blank">Add social bookmarks </a></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/anadir-marcadores-sociales-a-sus-themes-wordpress-de-forma-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiando el Avatar por default en WordPress</title>
		<link>http://www.guiawordpress.org/tutoriales/cambiando-el-avatar-por-default-en-wordpress/</link>
		<comments>http://www.guiawordpress.org/tutoriales/cambiando-el-avatar-por-default-en-wordpress/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:47:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[cambian]]></category>
		<category><![CDATA[Comentarios]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[Imagen]]></category>
		<category><![CDATA[lo primero]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personalizar]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unos]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1110</guid>
		<description><![CDATA[Los custom fields ó campos personalizados que trae WordPress nos ofrecen una cantidad infinita de posibilidades, podemos mostrar cualquier cosa que deseemos


]]></description>
			<content:encoded><![CDATA[<p>Comencemos con este pequeño tutorial, se trata de cambiar el avatar que nos muestra por default WordPress, como bien saben WordPress integra el servicio de <a href="http://www.envioenlaces.com/?http://gravatar.com">gravatar</a> para mostrar una pequeña imagen en los comentarios ó en donde deseen mostrar información sobre el usuario&#8230; así es que vamos a empezar.</p>
<p>Lo primero que haremos será elegir qué imagen quieren poner como nuevo gravatar, recuerden que esta imagen se mostrará unicamente para los usuarios que no tengan su cuenta.</p>
<p><span id="more-3333"> </span></p>
<p>Aquí les dejo algunos que pueden usar, habrá que ajustarles el tamaño dependiendo de cuál usen en su theme&#8230; si es de 50&#215;50, 100&#215;100, etc&#8230; esta imagen la guardamos de preferencia dentro de la carpeta <strong>images</strong> en nuestro theme, pero sino pueden guardarla donde uds. deseen.</p>
<p class="center"><img class="alignnone size-full wp-image-1114" title="avatar1" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar1.png" alt="avatar1 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1115" title="avatar2" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar2.png" alt="avatar2 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1116" title="avatar4" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar4.png" alt="avatar4 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1117" title="avatar3" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar3.png" alt="avatar3 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1119" title="avatar5" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar51.png" alt="avatar51 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1121" title="avatar6" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar61.png" alt="avatar61 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1122" title="avatar7" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar7.png" alt="avatar7 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1123" title="avatar8" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/avatar8.png" alt="avatar8 Cambiando el Avatar por default en WordPress" width="128" height="128" /></p>
<p>Ok, ahora vamos a abrir el archivo <strong>functions.php</strong> que se encuentra dentro de nuestro theme, sino lo tienen pueden crear uno.</p>
<p>En este archivo agregamos las siguienes líneas</p>
<div class="igBar"><span id="lphp-1"><a onclick="javascript:showPlainTxt('php-1'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*************************************************************************</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * CAMBIAR EL AVATAR POR DEFAULT</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> *************************************************************************/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">(</span> <span style="color:#FF0000;">&#8216;avatar_defaults&#8217;</span>, <span style="color:#FF0000;">&#8216;newgravatar&#8217;</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> newgravatar <span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$avatar_defaults</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$myavatar</span> = get_bloginfo<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;template_directory&#8217;</span><span style="color:#006600; font-weight:bold;">)</span> . <span style="color:#FF0000;">&#8216;/images/avatar.png&#8217;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$avatar_defaults</span><span style="color:#006600; font-weight:bold;">[</span><span style="color:#0000FF;">$myavatar</span><span style="color:#006600; font-weight:bold;">]</span> = <span style="color:#FF0000;">&#8220;My new avatar&#8221;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <span style="color:#0000FF;">$avatar_defaults</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Listo ahora nos dirigimos a nuestro panel de administración y en la parte de <strong>discusión</strong> veremos nuestro nuevo avatar listo para usarse.</p>
<p style="text-align: center;"><img class="size-full wp-image-1113 aligncenter" title="discussion_settings_avatar" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/discussion_settings_avatar.png" alt="discussion settings avatar Cambiando el Avatar por default en WordPress" width="205" height="262" /></p>
<p>En otro tutorial veremos cómo hacer más grande el tamaño de nuestros avatars así como personalizar el listado de comentarios.</p>
<p class="buttons">


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/cambiando-el-avatar-por-default-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obtener el número de followers de Twitter en texto plano</title>
		<link>http://www.guiawordpress.org/tutoriales/obtener-el-numero-de-followers-de-twitter-en-texto-plano/</link>
		<comments>http://www.guiawordpress.org/tutoriales/obtener-el-numero-de-followers-de-twitter-en-texto-plano/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:22:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[Directorio]]></category>
		<category><![CDATA[Encontrar]]></category>
		<category><![CDATA[esto]]></category>
		<category><![CDATA[Función]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[sencillo]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1095</guid>
		<description><![CDATA[No le hagan mucho caso a mi versión zombie del pajarraco de Twitter, solo quería buscar una manera "personal" de ilustrar el post. Por otro lado, esta función ha sido creada por Peter Ivanov y resulta muy útil y sencillo poder implementarlo en nuestro WP..


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/twitter_followers.png"><img class="size-full wp-image-1097 aligncenter" title="twitter_followers" src="http://www.guiawordpress.org/wp-content/uploads/2009/11/twitter_followers.png" alt="twitter followers Obtener el número de followers de Twitter en texto plano" width="583" height="150" /></a></p>
<p>No le hagan mucho caso a mi versión zombie del pajarraco de Twitter, solo quería buscar una manera &#8220;personal&#8221; de ilustrar el post. Por otro lado, esta función ha sido creada por <a href="http://www.envioenlaces.com/?http://www.ooyes.net/">Peter Ivanov</a> y resulta muy útil y sencillo poder implementarlo en nuestro WP..</p>
<p>En fin, el único valor que nos pide esta función es el nombre de usuario, si han visto <a href="http://www.guiawordpress.org/author/JFmonin/">mi perfil</a>, el de <a href="http://www.guiawordpress.org/author/pablocs/">Pablo</a> que han publicado en este blog, se darán cuenta que en la parte de abajo se muestra el <strong># de followers</strong> que tiene cada uno. Incluso para los colaboradores, en su perfil encontrarán el campo para poner sus <em>tweets</em> recientes y todo lo demás.</p>
<p><span id="more-3423"> </span></p>
<p>Ok, es muy sencillo lo que vamos a hacer es abrir el archivo <strong>functions.php</strong> de nuestro theme, recuerden que si no tienen uno pueden crearlo. En este archivo ponemos el siguiente código:</p>
<div class="igBar"><span id="lphp-1"><a onclick="javascript:showPlainTxt('php-1'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/**</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Fetch the number of followers from twitter api</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @author Peter Ivanov </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @copyright    http://www.ooyes.net</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @version    0.2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @link http://www.ooyes.net</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @param string $username</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @return string</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> twitter_followers_counter<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$username</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file</span> = CACHEDIR . <span style="color:#FF0000;">&#8216;twitter_followers_counter_&#8217;</span> . <a href="http://www.php.net/md5"><span style="color:#000066;">md5</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$username</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">(</span><a href="http://www.php.net/is_file"><span style="color:#000066;">is_file</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span> == <span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file_time</span> = <a href="http://www.php.net/strtotime"><span style="color:#000066;">strtotime</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#FF0000;">&#8217;1984-01-11 07:15&#8242;</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file_time</span> = <a href="http://www.php.net/filemtime"><span style="color:#000066;">filemtime</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$now</span> = <a href="http://www.php.net/strtotime"><span style="color:#000066;">strtotime</span></a> <span style="color:#006600; font-weight:bold;">(</span> <a href="http://www.php.net/date"><span style="color:#000066;">date</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#FF0000;">&#8216;Y-m-d H:i:s&#8217;</span> <span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$api_call</span> = <span style="color:#0000FF;">$cache_file_time</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$difference</span> = <span style="color:#0000FF;">$now</span> &#8211; <span style="color:#0000FF;">$api_call</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$api_time_seconds</span> = <span style="color:#CC66CC;color:#800000;">1800</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$difference</span>&gt;= <span style="color:#0000FF;">$api_time_seconds</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$api_page</span> = <span style="color:#FF0000;">&#8216;http://twitter.com/users/show/&#8217;</span> . <span style="color:#0000FF;">$username</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$xml</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$api_page</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$profile</span> = <span style="color:#000000; font-weight:bold;">new</span> SimpleXMLElement <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$xml</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$count</span> = <span style="color:#0000FF;">$profile</span>-&gt;<span style="color:#006600;">followers_count</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">(</span><a href="http://www.php.net/is_file"><span style="color:#000066;">is_file</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span> == <span style="color:#000000; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/unlink"><span style="color:#000066;">unlink</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/touch"><span style="color:#000066;">touch</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">file_put_contents <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span>, <a href="http://www.php.net/strval"><span style="color:#000066;">strval</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <a href="http://www.php.net/strval"><span style="color:#000066;">strval</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$count</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <a href="http://www.php.net/strval"><span style="color:#000066;">strval</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Ok, hasta ahí todo bien&#8230; ahora vamos a modificarlo un poco, en la <strong>línea 13</strong> nos encontraremos con esto:</p>
<div class="igBar"><span id="lphp-2"><a onclick="javascript:showPlainTxt('php-2'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file</span> = CACHEDIR . <span style="color:#FF0000;">&#8216;twitter_followers_counter_&#8217;</span> . <a href="http://www.php.net/md5"><span style="color:#000066;">md5</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$username</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Si lo dejamos así puede funcionar sin problemas, pero nuestro fichero se guardará en &#8220;root&#8221; y no me parece muy amigable, entonces lo que haremos será guardar este fichero en una carpeta llamada <em>cache </em>dentro del directorio de nuestro theme.</p>
<p>Entonces creamos una carpeta llamada cache dentro de nuestro theme, recuerden que debe tener los permisos 777 y el código lo reemplazamos por el siguiente:</p>
<div class="igBar"><span id="lphp-3"><a onclick="javascript:showPlainTxt('php-3'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file</span> = <span style="color:#FF0000;">&#8220;wp-content/themes/mi-theme/cache/&#8221;</span> . <span style="color:#FF0000;">&#8216;twitter_followers_counter_&#8217;</span> . <a href="http://www.php.net/md5"><span style="color:#000066;">md5</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$username</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Donde <strong>mi-theme</strong> es el nombre de la carpeta de su theme.</p>
<p>Lo siguiente que haremos será mostrarlo en WordPress, mmm&#8230; abrimos el archivo <strong>sidebar.php</strong> y en el lugar que ustedes decidan ponemos lo siguiente:</p>
<div class="igBar"><span id="lphp-4"><a onclick="javascript:showPlainTxt('php-4'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> twitter_followers_counter<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;NOMBRE_DE_USUARIO&#8217;</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> Followers</div>
</li>
</ol>
</div>
</div>
</div>
<p>Yo lo tengo de la siguiente manera:</p>
<div class="igBar"><span id="lphp-5"><a onclick="javascript:showPlainTxt('php-5'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-5">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;a href=<span style="color:#FF0000;">&#8220;http://twitter.com/guiawordpress&#8221;</span> title=<span style="color:#FF0000;">&#8220;&lt;?php _e(&#8216;Follow me on Twitter&#8217;,'ifx&#8217;);?&gt;&#8221;</span>&gt;&lt;strong&gt;&lt;?php  <a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> twitter_followers_counter<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;<span style="color:#FF0000;">guiawordpress</span>&#8216;</span><span style="color:#006600; font-weight:bold;">)</span> ?&gt;&lt;/strong&gt; <span style="color:#000000; font-weight:bold;">&lt;?php</span> _e<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;followers&#8217;</span>,<span style="color:#FF0000;">&#8216;ifx&#8217;</span><span style="color:#006600; font-weight:bold;">)</span>;?&gt;&lt;/a&gt;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Listo! Otra función más lista para agregar a nuestros themes, por cierto si quieren les dejo mi versión <em>alternativa bizarra zombie</em></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/obtener-el-numero-de-followers-de-twitter-en-texto-plano/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

