BackLinks Widget

Era algo que tenía pensado hacer y ahora que he tenido un tiempo, me he puesto a hacerlo.

Básicamente es un plugin para integrar los enlaces de BackLinks.com en tu blog sin necesidad de tocar nada, cuando me planteé hacerlo creo que no había un plugin oficial, pero a día de hoy el plugin oficial aún requiere tocar la plantilla y no tiene la opción de quitar los estilos para poder usar los de la plantilla en uso.

El uso es muy sencillo, se copia en wp-content/wp-plugins se activa y en la Opción Diseño -> Widget te aparecerá un nuevo Widget llamado Backlinks, lo activas en la barra lateral que quieras y lo configuras (al menos es necesario meter tu llave del sitio) y listo.

La llave del sitio la puedes sacar desde Backlinks vas a “My Link Pages” pulsas en cualquier botón de los que dicen “installation code” y en el texto que sale bajas hasta ver la linea $BLKey = “XXXX-XXXX-XXXX-XXXX”;

Lo que está entre las comillas (en nuestro ejemplo XXXX-XXXX-XXXX-XXXX) es tu llave del sitio.

Si tu tema no soporta las barras laterales dinamicas o quieres poner los enlaces en otra parte de tu web tan solo tienes que editar tu tema y añadir la siguiente linea:

<?php widget_backlinks_inline(”TuLlave” [, VentanaNueva [, QuitarEstilos] ]) ?>

Tu llave es la llave que hemos visto antes y tanto VentanaNueva como QuitarEstilos son campos opcionales:

  • VentanaNueva: Define si los enlaces se abrirán en una nueva ventana , si quieres que se habran pon 1 si no 0 (por defecto se abrirán).
  • QuitarEstilos: Define si se quitan los estilos que manda BackLinks para los enlaces, si quieres quitarlos pon true, si no false (por defecto se quitan).

Download BackLinks Widget Version 1.0

BackLinks Widget

———

In english now:

Here is my custom Backlinks Wordpress Widget it has some advantages over the default plugin:

+ Adds a widget to insert the links without touching your template.

+ Can remove styles from links to let them match your site templates.

+ Do not make use of crappy tables instead uses list.

To use it just download and activate, it should add a widget to your widget page in “Design/Widget” you can configure it from there also.

You Backlinks key can be obtained from Backlinks site, go to “My Link Pages” push on “intallation code” find the line $BLKey = “XXXX-XXXX-XXXX-XXXX”; and grab what it is there instead of the XXXX-XXXX-XXXX-XXXX part.

If your theme do not support dinamic sidebar you should consider upgrading to a theme supporting them but anyway you can use the plugin adding the line:

<?php widget_backlinks_inline( BackLinksKey[, NewWindow [, RemoveStyle] ]) ?>

BackLinksKey is your site key as seen previously, NewWindow is an optional param that make the link open in a new window (put ‘0′ to disable by default it is enabled ‘1′) and RemoveStyle is an optional parameter that control the removal of the link styles (put false to deactivate, buy default it is activated, true).

Download BackLinks Widget Version 1.0

BackLinks Widget

Posts Relacionados

0 Respuesta a “BackLinks Widget”


  • Ningún Comentario

Añade un Comentario