Artículo Anterior: Traducción de b2evolution 2.4.2 (Palms) al español »

07/29/08

09:56:44 , Categorías: b2evolution, Extensiones (plugins) , 554 palabras

Extensión (Plug-in) ShareThis para b2evolution 2.4.x

Sharethis

Sharethis es un sencillo pero muy útil servicio que nos permite agregar un botoncito para darle a nuestros lectores la oportunidad de enviar el contenido en nuestras páginas web a distintas redes sociales y servicios de marcadores en línea, tales como Facebook, Digg, Menéame.net (en español), StumbleUpon y un largo etcétera.

La gente de Sharethis ofrece extensiones para varias plataformas bitacoreras populares, tales como Blogger, Wordpress y Typepad, pero como de costumbre, b2evolution no es tomada en cuenta, quizás por los pocos que la usamos.

Para no quedarme con los brazos cruzados, decidí hace unas semanas escribir una pequeña extensión o plug-in para b2evolution que agregara la funcionalidad de Sharethis a mis bitácoras y aquí lo pongo a disposición de mis colegas "b2-bitacoreros":

Sharethis Plugin for b2evolution 2.4.x

Es tan fácil como descargar el archivo ZIP, desempacarlo dentro del directorio plugins/ de tu bitácora e instalarlo desde el panel de control.

Parámetros de configuración

Para que la extensión funcione correctamente hay que configurar un par de parámetros desde el panel de control o backoffice. Bueno, en realidad hace falta configurar un sólo parámetro que es la identificación de editor (publisher ID) proporcionada por Sharethis cuando uno se registra. Este parámetro es una cadena de 36 caracteres del tipo: 03f2a089-44c7-4110-821a-5121f0ed76a9 y uno la obtiene en la página de configuración de Sharethis (el texto que viene después de publisher= en el código javascript.

El segundo parámetro es la lista de servicios que uno desea que aparezcan en el recuadro cuando el usuario presiona "ShareThis" y uno la obtiene desde el mismo lugar. Para beneficio propio y de los bitacoreros hispanoparlantes he incluido a menéame.net en la lista por omisión, pero si no te gusta, no "tienes que comértelo" y lo puedes cambiar a discreción desde el panel de control.

Sharethis plugin for b2evolution

Esta información en español

I'm happy to present the Sharethis plugin for b2evolution 2.4.x.

What is sharethis? A nice button to allow your readers to post your content to multiple social bookmarking sites, like facebook, digg, meneame, etc. Furthermore you'll have upon registration on sharethis, nice statistics about click-through rates and other goodies.

This plugin will add a Sharethis button to your posts. Just that.

Installation and Setup

Installation and setup is fairly easy.

  1. Donwload the ZIP file which contains the Plugin: Sharethis Plugin for b2evolution 2.4.x
  2. Extract the contents of the ZIP file on your server's plugins/ directory
  3. Go to your Backoffice and activate the plugin
  4. There are two parameters to setup after activation, the first one is your publisher ID, which you get upon registration at ShareThis. The second one is the comma-separated list of services you want to appear when the user clicks the button. If this list is empty, the default 20 services will be used.
  5. After this, you will notice a new checkbox when you're in the editor ShareThis, which is activated by default. This will put the ShareThis button in your new posts. If you don't want this behavior, go to the plugin settings and select "opt-in", or "opt-out" for "Apply Rendering" option.

Dirección para referencias de este mensaje

URL para Referencias (pinche con el botón derecho y copie la dirección del enlace)

8 comentarios

Comentario De: Walter Cruz [Visitante] · http://b2evolution.waltercruz.com
*****
Ouch! I was working on sharethis port too!
i think that we can share some code ;)

http://devlog.waltercruz.com/media/blogs/b2evolution/share_this_plugin_beta.zip

In my plugin, I have made it a stealth renderer.. I don't know what is the better, opt-in or stealth... I have copied the ak_uuid from the original plugin (GPL code), so the user can use the share this without have to register itself on sharethis site. Let's talk about it!
07.08.08 @ 14:38
Comentario De: Larry Nieves [Miembro] Correo electrónico · http://liberal-venezolano.net/blog/
Hi Walter, I'm sorry that also happened to me several days ago with an autocomplete tags plugin.

I don't know what's a "stealth" renderer, probably that's why I set the way I did. In any case, I'll give a look at your code when I have a little bit of time.
08.08.08 @ 06:22
Comentario De: Walter Cruz [Visitante] · http://b2evolution.waltercruz.com
*****
Where can I fin this autocomplete tag plugin?

A stealth renderer is a renderer that is applied to all items, and the user can´t change this. In my plugin settings, I had almost the same settings as in the wordpress plugin. I could select to apply share this on all post or all pages, ant it should be applied to all posts and pages, cause it´s a stealth plugin :)

(Can I speak on portuguese? It will take the my life easier :) )
08.08.08 @ 20:30
Comentario De: Larry Nieves [Miembro] Correo electrónico · http://liberal-venezolano.net/blog/
Walter, sí, puedes hablar en portugués (y tener la esperanza que yo entienda :). El autocomplete tags no lo he publicado, lo he estado probando por una semana y ¥åßßå tienen un plugin que hace (casi) lo mismo y se llama "Predicting Tags" (http://waffleson.co.uk/2008/04/predicting-tag)
09.08.08 @ 04:11
Comentario De: JC John SESE-Cuneta [Visitante] · http://gameshogun.ws/
*****
A minor layout problem, maybe the plugin will need an extra line break or put it within a container or something to make sure it goes below.

Visit my site and look for CHEAP iCafe Investment.... I can't put my link here, your anti-spam is too strict :P hehe.

good job!!

19.08.08 @ 02:47
Comentario De: JC John SESE-Cuneta [Visitante] · http://gameshogun.ws/
*****
By the way, just noticed that it doesn't apply to post type "Page".

How can I make it so that it shows up in post type "Page" as well?

Visit my blog and click on "PH-Online Games List" as a sample. ^_^

Thanks!!
20.08.08 @ 03:11
Comentario De: Larry Nieves [Miembro] Correo electrónico · http://liberal-venezolano.net/blog/
@JC, the button is enclosed in a <div class="sharethis"> so in principle you could apply CSS styles to it, but I see your point with the post metadata not directly below the post content.

On the forums, someone pointed this out also, I had not thought about it. In a future release, there will be a SkinTag and everything, so you can put it wherever you like without problems.

As to the Pages, you are right. You can comment out about line 114 where it says:

if ( $item_type != 1 ) /* don't do it for links */ return $content ;

and I think it will be able to put the button on every kind of post.
21.08.08 @ 03:02
Comentario De: Ron Perel [Visitante] · http://blog.internetsolutions.com
I installed the plugin per above and activated it in the back office but I cannot see where to do this:

There are two parameters to setup after activation, the first one is your publisher ID, which you get upon registration at ShareThis. The second one is the comma-separated list of services you want to appear when the user clicks the button. If this list is empty, the default 20 services will be used.
07.10.08 @ 11:22

Dejar un comentario


Su dirección de correo no será mostrada en este sitio.

Su URL será mostrada.
PobreExcelente
(Los saltos de línea serán <br />)
(Nombre, correo y página web)
(Permitir a los usuarios contactarle a través de un formulario de mensajes (su correo no será mostrado.))
Esta es una imagen captcha. Es usada para prevenir accesos masivos por parte de robots.
Por favor, ingrese los caracteres de la imagen de arriba. (No distingue mayúsculas/minúsculas)
December 2008
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
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        

Aventuras y desventuras, experiencias y experimentos, anécdotas y trucos de un físico que adoptó a Linux en 1996 ó 1997 y desde entonces no ha querido usar otra cosa en sus computadoras

Otras Bitácoras Interesantes/Útiles

XML Feeds

Valid XHTML 1.0! Valid CSS! Valid RSS 2.0! Valid Atom 1.0!

  • Directorio de Blogs de Venezuela
  • Veneblogs, primer directorio de bitácoras de Venezuela
  • Blogalaxia