<?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>braulioaquino.com &#187; tip</title>
	<atom:link href="http://braulioaquino.com/tema/tip/feed" rel="self" type="application/rss+xml" />
	<link>http://braulioaquino.com</link>
	<description>Internet en todas sus formas</description>
	<lastBuildDate>Tue, 22 May 2012 04:37:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WordPress: Enlace para borrar post</title>
		<link>http://braulioaquino.com/2012/03/wordpress-link-borrar-post</link>
		<comments>http://braulioaquino.com/2012/03/wordpress-link-borrar-post#comments</comments>
		<pubDate>Wed, 14 Mar 2012 17:18:40 +0000</pubDate>
		<dc:creator>braulio aquino</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[borrar]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://braulioaquino.com/?p=2332</guid>
		<description><![CDATA[Si queremos eliminar un post de WordPress lo normal es que entremos al panel de administrador, veamos la lista de post y demos clic en Enviar a papelera, hasta ahí todo bien, pero si tienes un blog con demasiados posts y quieres eliminar algunos por su contenido no vas a entrar a cada uno, darle [...]]]></description>
			<content:encoded><![CDATA[<p>Si queremos <strong>eliminar un post de WordPress</strong> lo normal es que entremos al panel de administrador, veamos la lista de post y demos clic en <strong>Enviar a papelera</strong>, hasta ahí todo bien, pero si tienes un blog con demasiados posts y quieres eliminar algunos por su contenido no vas a entrar a cada uno, darle a editar y enviar a papelera. Es una tarea larga.</p>
<p>¿La solución? Un enlace de “Enviar a papelera” que sea visible sólo para los administradores en cada post.</p>
<p>Primero, colocar la siguiente función en nuestro <em>function.php</em></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> wp_delete_post_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Eliminar post'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$before</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$after</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_type</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'page'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'delete_pages'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'delete_posts'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$advertencia</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&amp;iquest;Est&amp;aacute;s seguro de querer eliminar &quot;</span><span style="color: #339933;">.</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; ?&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$delLink</span> <span style="color: #339933;">=</span> wp_nonce_url<span style="color: #009900;">&#40;</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wpurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/wp-admin/post.php?action=delete&amp;post=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'delete-post_'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;a target='_blank' onclick='return confirm(<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$advertencia</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>)'  href='&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$delLink</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;' title='Delete' /&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$link</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$before</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$link</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$after</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Segundo, colocar el llamado a la función donde quieres que aparezca el enlace: <em>single, index, loop</em>, donde quieras.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_delete_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Eliminar post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Muy útil para aquellos blogs que se alimentan de Feeds RSS o los que tienen el registro de autores libre.</p>
]]></content:encoded>
			<wfw:commentRss>http://braulioaquino.com/2012/03/wordpress-link-borrar-post/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Permisos de Administrador en Windows 7</title>
		<link>http://braulioaquino.com/2010/05/permisos-administrador-windows-7</link>
		<comments>http://braulioaquino.com/2010/05/permisos-administrador-windows-7#comments</comments>
		<pubDate>Sat, 01 May 2010 23:30:13 +0000</pubDate>
		<dc:creator>braulio aquino</dc:creator>
				<category><![CDATA[microsoft]]></category>
		<category><![CDATA[registro]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://braulioaquino.com/?p=1723</guid>
		<description><![CDATA[Una de las funciones de Windows nacidas en Windows Vista y heredadas hacia Windows 7 son las alertas sobre los permisos de administrador cuando alguien desea instalar algún programa o ejecutar cualquier tarea que el sistema crea “importante”. Estas alertas son necesarias para evitar instalaciones no deseadas, pero seamos sinceros, llega a resultar algo muy [...]]]></description>
			<content:encoded><![CDATA[<p>Una de las funciones de Windows nacidas en <em>Windows Vista</em> y heredadas hacia <em><strong>Windows 7</strong></em> son las alertas sobre los <strong>permisos de administrador</strong> cuando alguien desea instalar algún programa o ejecutar cualquier tarea que el sistema crea “importante”.</p>
<p>Estas alertas son necesarias para evitar instalaciones no deseadas, pero seamos sinceros, llega a resultar algo muy fastidioso. Si estamos usando un usuario como Administrador deberíamos tener todas las facilidades para hacer modificaciones en nuestro Windows, y las tenemos, pero no todos lo saben.</p>
<p align="center">¿Cómo desactivar las alertas relacionadas a los <strong>permisos de administrador</strong> de <strong>Windows 7</strong>?</p>
<p>Esta característica tiene como nombre <strong>UAC</strong> (<em>User Account Control</em>), entonces para modificar las alertas basta con presionar el botón <strong>Inicio</strong> y escribir en el cuadro de búsqueda: <strong>UAC</strong>. Al hacerlo aparece el panel de control de las notificaciones de usuarios, eliges la quieres y listo.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="permisos administracion windows 7" border="0" alt="permisos administracion windows 7" src="http://braulioaquino.com/wp-content/uploads/2010/05/permisosadministracion02.jpg" width="409" height="77" /> </p>
<p><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="permisos administracion windows 7" border="0" alt="permisos administracion windows 7" src="http://braulioaquino.com/wp-content/uploads/2010/05/permisosadministracion01.jpg" width="461" height="398" /> </p>
<p>Existen cuatro tipos de notificaciones en el panel de permisos de administrador y el propio equipo de Microsoft explica cual es la diferencia entre cada una:</p>
<ul>
<li>     <strong>Siempre notificarme y esperar mi respuesta.</strong> Se muestra la solicitud de confirmación del UAC en el escritorio seguro cuando un programa intenta instalar un software, o cuando un usuario o un programa intentan cambiar la configuración de Windows. Si no hace clic en Sí, después de 30 segundos la solicitud de confirmación del UAC deniega automáticamente la solicitud.   </li>
<li>    <strong>Notificarme siempre.</strong> Se muestra la solicitud de confirmación del UAC en el escritorio cuando un programa intenta instalar un software, o cuando un usuario o un programa cambian la configuración de Windows. Si no hace clic en Sí, después de 30 segundos la solicitud de confirmación del UAC deniega automáticamente la solicitud.   </li>
<li>     <strong>Sólo notificarme cuando un programa intenta hacer cambios en mi equipo.</strong> Sólo se le notifica cuando un programa intenta hacer cambios en el equipo, incluidos los cambios en la configuración de Windows.   </li>
<li>    <strong>No notificarme nunca.</strong> Esta opción deshabilita el Control de cuentas de usuario.   </li>
<p> En nuestro caso, si nos fastidian las alertas, nuestra opción es la última.</ul>
]]></content:encoded>
			<wfw:commentRss>http://braulioaquino.com/2010/05/permisos-administrador-windows-7/feed</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
	</channel>
</rss>

