Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/12/2011, 02:13
Bandit_S
 
Fecha de Ingreso: agosto-2003
Mensajes: 192
Antigüedad: 20 años, 8 meses
Puntos: 0
Respuesta: Codigo para enviar noticia a twitter

Gracias por sus respuestas.

Como indicaba en el primer post, he diseñado una barra donde he incluido varias cosas que me parecian interesantes que estuvieran despues del titulo de la entrada.

Esta barra, va a ir tanto en el single.php y page.php y la barra en cuestion es esta:



y el codigo de la misma es este:

Cita:
<table id="Tabla_01" width="635" height="33" border="0" cellpadding="0" cellspacing="0" align="left">
<tr>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_01.jpg" width="110" height="33"align="center"><?php the_time('j/m/Y') ?>-<?php the_time() ?></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_03.jpg" width="3" height="33"></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_02.jpg" width="124" height="33" align="center"><?php comments_popup_link('No hay comentarios', '1 Comentario', '% Comentarios'); ?></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_03.jpg" width="3" height="33"></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_02.jpg" width="87" height="33"align="center"><?php if(function_exists('the_views')) { the_views(); } ?></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_03.jpg" width="3" height="33"></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_04.jpg" width="80" height="33"align="center"><div class="fb-like" data-href="www.mundomotero.com" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_05.jpg" width="3" height="33"></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_06.jpg" width="124" height="33"align="center"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="mundomotero" data-lang="es">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_07.jpg" width="2" height="33"></td>
<td background="wp-content/themes/zherald/images/barra_redes_sociales_post_08.jpg" width="94" height="33"align="center"><script type="text/javascript" src="http://widgets.tuenti.com/widgets.js"></script> <script type="text/javascript"> tuenti.widget.shareButton("tuenti_share", {"icon-style": "light", "share-url": "http://www.mundomotero.com" });</script> <a href="http://www.tuenti.com/share" id="tuenti_share"></a></td>
</tr>
</table>
He copiado el codigo, desde "Ver original" y al cambiarlo por el facilitado por Carlos, a partir del momento de mostrar el boton de Twitter ya no muestra nada mas.

La idea es que envie el titulo del post y la direccion, cosa que estoy intentando para Twitter y Tuenti, pero de este ultimo tampoco he encontrado informacion de como hacerlo.

Gracias por su ayuda e informacion