<?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>Lecciones Prácticas &#187; favoritos</title>
	<atom:link href="http://www.leccionespracticas.com/tag/favoritos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leccionespracticas.com</link>
	<description>informática y bibliotecas 2.0</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:36:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Widget para wordpress: mostrar los twitts favoritos de tu cuenta twitter</title>
		<link>http://www.leccionespracticas.com/php/widget-para-wordpress-mostrar-los-twitts-favoritos-de-tu-cuenta-twitter/</link>
		<comments>http://www.leccionespracticas.com/php/widget-para-wordpress-mostrar-los-twitts-favoritos-de-tu-cuenta-twitter/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 09:46:12 +0000</pubDate>
		<dc:creator>Miguel</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[favoritos]]></category>
		<category><![CDATA[favourites]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://leccionespracticas.com/?p=1591</guid>
		<description><![CDATA[Basándome en elTwitter Widget para WordPress de Sean Spalding, he modificado ligeramente el código para que muestre únicamente los twitts favoritos de un determinado usuario. El fuente es éste: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [...]
Related posts:<ol>
<li><a href='http://www.leccionespracticas.com/php/anadir-meta-informacion-a-wordpress/' rel='bookmark' title='Añadir meta-información a wordpress'>Añadir meta-información a wordpress</a></li>
<li><a href='http://www.leccionespracticas.com/informatica-web/wordpress/wordpress-wp-postviews-en-espanol-resuelto/' rel='bookmark' title='WordPress WP-Postviews en español [RESUELTO]'>WordPress WP-Postviews en español [RESUELTO]</a></li>
<li><a href='http://www.leccionespracticas.com/vufind-2/vufind-mostrar-informacion-de-reservas-en-los-registros/' rel='bookmark' title='vufind: mostrar información de reservas en los registros'>vufind: mostrar información de reservas en los registros</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Basándome en el<a href="http://seanys.com/2007/10/12/twitter-wordpress-widget/">Twitter Widget</a> para WordPress de <a href="http://seanys.com/">Sean Spalding</a>, he modificado ligeramente el código para que muestre únicamente los twitts favoritos de un determinado usuario.</p>
<p>El fuente es éste:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
</pre></td><td 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;">/*
Plugin Name: Twitter Widget Favoritos
Plugin URI: http://leccionespracticas.com/php/widget-para-wordpress-mostrar-los-twitts-favoritos-de-tu-cuenta-twitter/
Description: Muestra favoritos de twitter de un usuario (usa Javascript &lt;a href=&quot;http://twitter.com/badges/which_badge&quot;&gt;Twitter 'badge'&lt;/a&gt;)
Version: 1.0.0
Author: Miguel Martin
Author URI: http://www.leccionespracticas.com
License: GPL
Basado en: Twitter Widget by Sean Spalding - http://seanys.com/2007/10/12/twitter-wordpress-widget/
&nbsp;
This software comes without any warranty, express or otherwise, and if it
breaks your blog or results in your cat being shaved, it's not my fault.
&nbsp;
*/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> widget_Twidget_Favoritos_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar_widget'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> widget_Twidget_Favoritos<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// &quot;$args is an array of strings that help widgets to conform to</span>
		<span style="color: #666666; font-style: italic;">// the active theme: before_widget, before_title, after_widget,</span>
		<span style="color: #666666; font-style: italic;">// and after_title are the array keys.&quot; - These are set up by the theme</span>
		<span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// These are our own options</span>
		<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'widget_Twidget'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$account</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'account'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// Your Twitter account name</span>
		<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// Title in sidebar for widget</span>
		<span style="color: #000088;">$show</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// # of Updates to show</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Output</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$before_widget</span> <span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// start</span>
		<span style="color: #666666; font-style: italic;">//echo '&lt;div id=&quot;twitter_div&quot;&gt;'</span>
        <span style="color: #666666; font-style: italic;">//      .$before_title.$title.$after_title;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$before_title</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #000088;">$after_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;div id=&quot;twitter_div&quot;&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;ul id=&quot;twitter_update_list&quot;&gt;&lt;/ul&gt;&lt;/div&gt;
		      &lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/javascripts/blogger.js&quot;&gt;&lt;/script&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Con esta linea buscamos TODOS los twitts de el usuario identificado por $account</span>
		<span style="color: #666666; font-style: italic;">/*echo '&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/statuses/user_timeline/'.$account.'.json?callback=twitterCallback2&amp;amp;count='.$show.'&quot;&gt;&lt;/script&gt;';*/</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Con esta linea buscamos los favoritos del usuario identificado por $account</span>
		<span style="color: #666666; font-style: italic;">// http://api.twitter.com/1/favorites/bibliouz.json?callback=twitterCallback2&amp;count=5</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;script type=&quot;text/javascript&quot; src=&quot;http://api.twitter.com/1/favorites/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$account</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.json?callback=twitterCallback2&amp;amp;count='</span><span style="color: #339933;">.</span><span style="color: #000088;">$show</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;/script&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Con esta otra linea se filtra por $account y por $hashtag</span>
		<span style="color: #666666; font-style: italic;">// http://search.twitter.com/search.json?q=%23HASHTAG+from:USERNAME</span>
		<span style="color: #666666; font-style: italic;">// similar a (parámetro rpp final es el número de tweets qse muestran</span>
		<span style="color: #666666; font-style: italic;">// http://search.twitter.com/search?q=&amp;ands=&amp;phrase=&amp;ors=&amp;nots=&amp;tag=bibliotecas&amp;lang=all&amp;from=bibliouz&amp;to=&amp;ref=&amp;near=&amp;within=15&amp;units=mi&amp;since=&amp;until=&amp;rpp=5</span>
        <span style="color: #666666; font-style: italic;">//$hashtag = '%23'.'listado';</span>
		<span style="color: #666666; font-style: italic;">/*echo '&lt;script type=&quot;text/javascript&quot; src=&quot;http://search.twitter.com/search.json?q=listado+from:bibliouz&quot;&gt;&lt;/script&gt;';*/</span>
&nbsp;
&nbsp;
&nbsp;
		<span style="color: #666666; font-style: italic;">// echo widget closing tag</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$after_widget</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Settings form</span>
	<span style="color: #000000; font-weight: bold;">function</span> widget_Twidget_Favoritos_control<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Get options</span>
		<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'widget_Twidget_Favoritos'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// options exist? if not set defaults</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'account'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'seanys'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Twitter Updates'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// form posted?</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Twitter-submit'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// Remember to sanitize and format use input appropriately.</span>
			<span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'account'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Twitter-account'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Twitter-title'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Twitter-show'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			update_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'widget_Twidget_Favoritos'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Get options for form fields to show</span>
		<span style="color: #000088;">$account</span> <span style="color: #339933;">=</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'account'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$show</span> <span style="color: #339933;">=</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'show'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The form fields</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p style=&quot;text-align:right;&quot;&gt;
				&lt;label for=&quot;Twitter-account&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Account:'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'
				&lt;input style=&quot;width: 200px;&quot; id=&quot;Twitter-account&quot; name=&quot;Twitter-account&quot; type=&quot;text&quot; value=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$account</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;
				&lt;/label&gt;&lt;/p&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p style=&quot;text-align:right;&quot;&gt;
				&lt;label for=&quot;Twitter-title&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Title:'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'
				&lt;input style=&quot;width: 200px;&quot; id=&quot;Twitter-title&quot; name=&quot;Twitter-title&quot; type=&quot;text&quot; value=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;
				&lt;/label&gt;&lt;/p&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p style=&quot;text-align:right;&quot;&gt;
				&lt;label for=&quot;Twitter-show&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Show:'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'
				&lt;input style=&quot;width: 200px;&quot; id=&quot;Twitter-show&quot; name=&quot;Twitter-show&quot; type=&quot;text&quot; value=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$show</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;
				&lt;/label&gt;&lt;/p&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;input type=&quot;hidden&quot; id=&quot;Twitter-submit&quot; name=&quot;Twitter-submit&quot; value=&quot;1&quot; /&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
	<span style="color: #666666; font-style: italic;">// Register widget for use</span>
	register_sidebar_widget<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter-favoritos'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'widgets'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'widget_Twidget_Favoritos'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Register settings for use, 300x200 pixel form</span>
	register_widget_control<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter-favoritos'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'widgets'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'widget_Twidget_control'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">300</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Run code and init</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'widgets_init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'widget_Twidget_Favoritos_init'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Las instrucciones de instalación son de lo más simple:</p>
<p>1. Copiar el archivo superior (twitter-widget-favoritos.php) en <em>/wp-content/plugins/widgets</em> (si no existe la carpeta, la crearemos).<br />
2. Activar el plugin en el menú <em>plugins</em> de wordpress<br />
3. Añadir el widget a la barra lateral en el menú <em>widgets</em> de wordpress y rellenar el menú con el id del usuario (por ejemplo, <em>bibliouz</em>).</p>
<p>Lo he testeado y funciona a la perfección con el tema <a href="http://newwpthemes.net/comfy/">WP Comfy</a> en <b>wordpress 3.0.4</em></p>
<p>Podéis consultar <a href="http://apiwiki.twitter.com/w/page/22554703/Twitter-REST-API-Method:-favorites">La API de favoritos de twitter</a> y la del <a href="http://dev.twitter.com/doc/get/statuses/user_timeline">statuses/user_timeline</a> o a <a href="http://search.twitter.com/api/">API de búsquedas</a> para más detalles.</p>
<p>Si queréis saber más sobre la creación de widgets para wordpress podéis hacerlo <a href="http://www.entrecodigos.com/2009/01/como-crear-un-widget-de-wordpress.html">en este sencillo manual</a></p>
<p>Related posts:<ol>
<li><a href='http://www.leccionespracticas.com/php/anadir-meta-informacion-a-wordpress/' rel='bookmark' title='Añadir meta-información a wordpress'>Añadir meta-información a wordpress</a></li>
<li><a href='http://www.leccionespracticas.com/informatica-web/wordpress/wordpress-wp-postviews-en-espanol-resuelto/' rel='bookmark' title='WordPress WP-Postviews en español [RESUELTO]'>WordPress WP-Postviews en español [RESUELTO]</a></li>
<li><a href='http://www.leccionespracticas.com/vufind-2/vufind-mostrar-informacion-de-reservas-en-los-registros/' rel='bookmark' title='vufind: mostrar información de reservas en los registros'>vufind: mostrar información de reservas en los registros</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leccionespracticas.com/php/widget-para-wordpress-mostrar-los-twitts-favoritos-de-tu-cuenta-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aumentar el tráfico a tu sitio web: AddThis</title>
		<link>http://www.leccionespracticas.com/informatica-web/wordpress/aumentar-el-trafico-a-tu-sitio-web-addthis/</link>
		<comments>http://www.leccionespracticas.com/informatica-web/wordpress/aumentar-el-trafico-a-tu-sitio-web-addthis/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:37:46 +0000</pubDate>
		<dc:creator>Miguel</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[addthis]]></category>
		<category><![CDATA[aumentar trafico]]></category>
		<category><![CDATA[bookmark]]></category>
		<category><![CDATA[favoritos]]></category>
		<category><![CDATA[page rank]]></category>
		<category><![CDATA[SEF]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.leccionespracticas.com/?p=579</guid>
		<description><![CDATA[Muchos usuarios me preguntan cómo aumentar el tráfico a su sitio web. Para ello, además de tener una página bien construida (DTD&#8217;s validados), usar url&#8217;s SEF, etc, debemos realizar labores de promoción y fidelización del lector. (Te recomiendo la lectura de mi anterior artículo de mejora de posicionamiento) Una buen forma de promoción para tu [...]
Related posts:<ol>
<li><a href='http://www.leccionespracticas.com/informatica-web/joomla-informatica-web/addthis-plugin-for-joomla-1-5/' rel='bookmark' title='AddThis plugin for joomla 1.5'>AddThis plugin for joomla 1.5</a></li>
<li><a href='http://www.leccionespracticas.com/php/widget-para-wordpress-mostrar-los-twitts-favoritos-de-tu-cuenta-twitter/' rel='bookmark' title='Widget para wordpress: mostrar los twitts favoritos de tu cuenta twitter'>Widget para wordpress: mostrar los twitts favoritos de tu cuenta twitter</a></li>
<li><a href='http://www.leccionespracticas.com/informatica-web/joomla-informatica-web/personalizar-la-pagina-de-el-sitio-esta-desactivado-por-tareas-de-mantenimiento/' rel='bookmark' title='Personalizar la página de &#8220;El sitio está desactivado por tareas de mantenimiento&#8221;'>Personalizar la página de &#8220;El sitio está desactivado por tareas de mantenimiento&#8221;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Muchos usuarios me preguntan cómo <b>aumentar el tráfico</b> a su sitio web. Para ello, además de tener una página bien construida (DTD&#8217;s validados), usar url&#8217;s SEF, etc, debemos realizar labores de promoción y fidelización del lector. (Te recomiendo la lectura de <a href="http://www.leccionespracticas.com/informatica-utilidades-internet/posicionamiento-en-google-ii/">mi anterior artículo de mejora de posicionamiento</a>)</p>
<p>Una buen forma de promoción para tu sitio web pasa por ofrecer a tus lectores la posibilidad de añadir tu página a favoritos, o compartir las noticias (digg, twitter, etc). Existe un servicio, llamado <a href="http://www.addthis.com">addthis.com</a>, que es idóneo para ello.</p>
<p>Cuando colocas el botón de AddThis en tu sitio web, automáticamente determina la URL de tu página. Cuando los visitantes hacen click en este botón, éste les lleva a una página que permite elegir qué servicio de favoritos prefieren utilizar. </p>
<p>Como veréis, utilizo el botón de AddThis a lo largo de toda mi página. Si ofreces contenidos interesantes, existe un enorme mercado de lectores que querrán añadirte a favoritos, y esto generará miles de enlaces a tu sitio web y aumentará de forma considerable tu ranking. </p>
<h3>Añadiendo este botón a tu blog WordPress</h3>
<p>Puedes añadir AddThis como plugin o como widget.</p>
<p>Como plugin: entra en la sección de plugins &#8211; Add new y busca <i>AddThis</i>. Instálalo y actívalo. Fácil, sencillo y para toda la familia <img src='http://www.leccionespracticas.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Como widget: entra a AddThis y rellena el formulario para darte de alta. Éste te proporcionará un código fuente, que debes copiar (Control+V). Después accede al panel de administración de WordPress, más en concreto a la sección de Apariencia (Appearance) y pulsa sobre Widgets. Crea un nuevo Widget de texto e inserta el código AddThis, que debería ser algo asi:</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!-- AddThis Button BEGIN --&gt;
&lt;div&gt;&lt;a href=&quot;http://www.addthis.com/bookmark.php?v=250&quot; title=&quot;Bookmark and Share&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/lg-bookmark-en.gif&quot; width=&quot;125&quot; height=&quot;16&quot; alt=&quot;Bookmark and Share&quot; style=&quot;border:0&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;!-- AddThis Button END --&gt;</pre></div></div>

<p></code></p>
<p>¿Te ha parecido interesante el artículo? Añádenos como favorito!<!-- AddThis Button BEGIN --></p>
<div><a href="http://www.addthis.com/bookmark.php?v=250" title="Bookmark and Share" target="_blank"><img src="http://s7.addthis.com/static/btn/lg-bookmark-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>
<p><!-- AddThis Button END --></p>
<p>Related posts:<ol>
<li><a href='http://www.leccionespracticas.com/informatica-web/joomla-informatica-web/addthis-plugin-for-joomla-1-5/' rel='bookmark' title='AddThis plugin for joomla 1.5'>AddThis plugin for joomla 1.5</a></li>
<li><a href='http://www.leccionespracticas.com/php/widget-para-wordpress-mostrar-los-twitts-favoritos-de-tu-cuenta-twitter/' rel='bookmark' title='Widget para wordpress: mostrar los twitts favoritos de tu cuenta twitter'>Widget para wordpress: mostrar los twitts favoritos de tu cuenta twitter</a></li>
<li><a href='http://www.leccionespracticas.com/informatica-web/joomla-informatica-web/personalizar-la-pagina-de-el-sitio-esta-desactivado-por-tareas-de-mantenimiento/' rel='bookmark' title='Personalizar la página de &#8220;El sitio está desactivado por tareas de mantenimiento&#8221;'>Personalizar la página de &#8220;El sitio está desactivado por tareas de mantenimiento&#8221;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leccionespracticas.com/informatica-web/wordpress/aumentar-el-trafico-a-tu-sitio-web-addthis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

