sábado, 17 de noviembre de 2007

Mas elementos widgets en tus Blogs


Hace días que la pestaña para añadir widgets en la sidebar ha desaparecido, esperaba aque "apareciera" por si sola pero al parecer ser que se ha tomado unas vacaciones, y he decidido investigar la forma de añadir un nuevo widget
Ya puesta y metida en el tema decidí añadir más widgets por si en un futuro decido añadir algo nuevo a la plantilla, así que los añadí en los lugares que por defecto deberían venir en la plantilla, es decir en
header, sidebar, main, footer.
Para hacerlo hay que situarse en Panel/Diseño/Edicción HTML y "Expandir plantillas de artilugios"

Para añadir un nuevo "widget en la sidebar" buscaremos lo siguiente:
<b:section class='sidebar' id='sidebar' preferred='yes'>
Y lo sustituimos por:
<b:section class='sidebar' id='sidebar' maxwidgets='10' showaddelement='yes'>

*maxwidgets indica el número máximo de artilugios que se pueden permitir en esta sección. Si no se especifica límite, significa que no existe y podremos añadir todos los widgets que deseemos, por el contrario si tenemos en nuestra sidebar 3 o 4 widgets y queremos aumentar el número deberemos poner un número mayor al que ya tenemos.

*showaddelement puede ser "yes" o "no", donde "yes" es la opción predeterminada pero si encontramos "no" es obvio que por eso no aparece en nuestra sidebar la opción de añadir elementos de página.

Ahora vamos a añadir un nuevo "widget en el header" buscaremos:
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
Y lo sustituimos por:
<b:section class='header' id='header' maxwidgets='2' showaddelement='yes'>

Le toca el turno a "main" buscaremos:
<b:section class='main' id='main' showaddelement='no'>
Lo sustituimos por:
<b:section class='main' id='main' maxwidgets='5' showaddelement='yes'>

Y por último vamos a añadir la opción de nuevos "widgets en footer" para ello buscaremos:
<b:section class='footer' id='footer'/>
En su lugar añadiremos:
<b:section class='footer' id='footer' maxwidgets='2' showaddelement='yes'>

Recordad que la cantidad de maxwidgets es la que yo he añadido como referencia, pero en realidad cada uno debe añadir la que vea oportuna de acuerdo con los widgets que tenga o piensa añadir en su blog.

DE GEMA BLOG

viernes, 16 de noviembre de 2007

Menú despegable personalizado gracias a gema blog

gema blog

Este menú despegable que traigo es muy vistoso para el blog, tiene una particularidad y es que podemos añadir nosotros mismos los botones de acuerdo a nuestros gustos o el color acorde con nuestro blog.
En El blog de Cesar he encontrado uno igual que a su vez lo hizo con Aire como referencia.
La imagen que ilustra esta entrada es solo para que veáis el diseño. En la sidebar encontraréis el menú, os invito a probar para que veáis el efecto al clicar en él.
Podemos aplicarlo en unos sencillos pasos:


Lo primero que haremos será situarnos en Plantilla/Edición HTML y justo después de <head> añadiremos lo siguiente:

<style type="text/css">.texthidden {display:inline}.shown {display:block}</style><script type="text/javascript">document.write('<style>.texthidden {display:none} </style>');</script><script type="text/Javascript">function expandcollapse (postid) {whichpost = document.getElementById(postid);if (whichpost.className=="shown") {whichpost.className="texthidden";}else {whichpost.className="shown";}}</script>

Después nos situamos en Plantilla/Añadir un elemento de página/HTML/Javascript y añadimos el código.
Os lo dejo tal y como lo tengo en mi sidebar omitiendo algunos enlaces para ahorraros el trabajo de eliminarlos.

<a href="javascript:void(0);" onclick="expandcollapse('Actualidad')">
<img border="0" src="
http://img183.imageshack.us/img183/6739/actualidadan5.gif"/>
</a><br/>

<ul id="
Actualidad" class="texthidden">
<li><a href="
http://www.20minutos.es/ " target="_blank"> 20 Minutos
</a></li></ul>

<a href="javascript:void(0);" onclick="expandcollapse('
Traductor')">
<img border="0"src="
http://img186.imageshack.us/img186/4555/traductorhp5.gif"/>
</a><br/>

<ul id="
Traductor" class="texthidden">
<li><a href="
http://www.elmundo.es/traductor/" target="_blank"> El Mundo </a></li></ul>

<a href="javascript:void(0);" onclick="expandcollapse('
Enciclopedia')">
<img border="0" src="
http://img186.imageshack.us/img186/9757/encicoplediabq3.gif"/>
</a><br/>

<ul id="
Enciclopedia" class="texthidden">
<li><a href="
http://es.wikipedia.org/wiki/Portada" target="_blank"> Wikipedia </a></li></ul>

<a href="javascript:void(0);" onclick="expandcollapse('
Alojamiento')">
<img border="0" src="
http://img216.imageshack.us/img216/2209/imgenesalojamientojt7.gif"/>
</a><br/>

<ul id="
Alojamiento" class="texthidden">
<li><a href="
http://www.imageshack.us/" target="_blank"> Imageshack </a></li></ul>

<a href="javascript:void(0);" onclick="expandcollapse('
Plantillas')">
<img border="0" src="
http://img263.imageshack.us/img263/820/plantillasqz7.gif "/>
</a><br/>

<ul id="
Plantillas" class="texthidden">
<li><a href="
http://plantillas-narko.blogspot.com/" target="_blank"> Narko-Team </a>
</li></ul>

<a href="javascript:void(0);" onclick="expandcollapse('
Conversor')">
<img border="0" src="
http://img340.imageshack.us/img340/3786/conversorzi5.gif"/>
</a><br/>

<ul id="
Conversor" class="texthidden">
<li><a href="
http://chuano.net/chuano/util/convsimbolos.php" target="_blank"> Conversor HTML </a></li></ul>

<a href="javascript:void(0);" onclick="expandcollapse('
Ayuda blog')">
<img border="0" src="
http://img208.imageshack.us/img208/940/buttonoq4.gif"/>
</a><br/>

<ul id="
Gem@BLOG" class="texthidden">
<li><a = _blank href="
http://www.gemablog-.blogspot.com/">Gem@ BLOG </a></li></ul>

Vamos a conocer un poco el código.

Color rojo:
El texto que habremos añadido al botón.
Color verde: Dirección Url de la imagen del botón.
Color naranja: Texto que aparece al desplegarse el botón.
Color azul: Dirección Url del enlace de la página enlazada.
(Lo que aparece en negro no lo modificaremos)

Es fácil crear unos botones, una página muy sencilla es http://www.buttonator.com/

Al igual que Cesar yo lo personalicé con una imagen chiquita que aparece en forma de flecha si os gusta podéis añadir una imagen añadiendo el código de imagen
<img src="aquí-la-url-de-tu-imagen"> justo antes del texto que aparece al desplegarse el botón (color naranja)
Y eso es todo, si tienes dudas házmelo saber

lunes, 29 de octubre de 2007

Escucha tus posts con SONO WEBS

Instalación en Blogger




Instalación:

1. Entrar en el panel Blogger de vuestro Blog.







2. Pulsa en "Configuración"






3. Pulsa en la pestaña "Plantilla"




4. Pulsa en la subpestaña "Edición de HTML"



5
Activa la casilla "Expandir plantillas de artilugios"



6. Despues de la cadena:


<b:include data='post' name='post'/>


7. Introducir el siguiente código:



_____________________________________________________________________________________________

<div id='speech'>

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' height='20' width='232'>


<param name='flash_component' value='ImageViewer.swc'/>

<param name='movie' value='http://www.sonowebs.com/tts.swf'/>

<param name='quality' value='high'/>

<param expr:value='"tit=" + data:post.title + "&amp;txt=" + data:post.body + "&amp;lang=es&amp;url=" + data:post.url + "&amp;cat=ninguna"' name='FlashVars'/>

<embed expr:flashvars='"tit=" + data:post.title + "&amp;txt=" + data:post.body + "&amp;lang=es&amp;url=" + data:post.url + "&amp;cat=ninguna"' height='20' quality='high' src='http://www.sonowebs.com/tts.swf' width='232'/>


</object><br/></div>

_____________________________________________________________________________________________


8.Por ultimo pulsa en el botón de "Guardar Plantilla":





A partir de ahora tu blog ademas de poderse leer podra ser escuchado,










gRACIAS A SONO WEBS, VIA LOOGIC

CSS MENU MAKER (Generador de menús) para blogger



He recibido varias peticiones sobre menús horizontales, ya hablamos sobre el clásico menú horizontal y sobre el menú despegable
Esta vez es algo diferente, un generador de menús, la forma de crearlo es muy sencilla para ello accederemos a CSS MENU MAKER encontraremos a la izquierda menús horizontales y a la derecha verticales.
Escogemos el que mejor se adapte nuestro blog.







Ver efecto en Menú Crystal

Una vez decididos...

Clicamos en Customize


Agregamos el número de temas que harán de enlace para en el menú y clicamos en Submit


Llenamos los campos requeridos para el título y agregamos a la derecha la url del lugar que vamos a enlazar. Clicamos de nuevo en Submit


A continuación nos proporciona dos códigos copiaremos el segundo que dice:
CSS Code y nos situaremos en plantilla Edición html
Justo antes de ]]></b:skin> lo pegaremos.

Luego copiaremos donde dice HTML Code nos situaremos en Plantilla/Añadir un elemento de página/HTML/Javascript para añadir lo siguiente:

<ul id='menu'>
<li ><a href='url del enlace'>Título del enlace </a></li>
<li ><a href='url del enlace'>Título del enlace </a></li>
<li ><a href='url del enlace'>Título del enlace </a></li>
<li ><a href='url del enlace'>Título del enlace </a></li>
</ul>

Guardamos los cambios y arrastramos esa etiqueta hasta el lugar deseado. Volveremos de nuevo al lugar donde copiamos los códigos para la plantilla y el elemento de página y descargaremos donde dice "Click here to download Image files" se trata de un archivo zip con las imágenes del menú.
Abriremos la carpeta "images" y extraeremos las imágenes en formato gif. que más tarde alojaremos en un servidor para conseguir la url de las imágenes.
Esa url la debemos pegar en el código que agregamos a la CSS de nuestra plantilla.
Viene detallado donde agregarla, deberéis buscar donde dice algo así como:
background:transparent url("images/nombre-de-la-imagen.gif") .......


Gracias JmpaSrgc por el detalle, hacía tiempo que un generador no me hacia tanta ilusión.



Sacado de Gema Blogs

Menú horizontal despegable PARA BLOGGER


Antes de nada quiero aclarar que este menú no sustituye las categorías de Blogger, su finalidad es crear enlaces de forma dinámica a modo de despegable.

1º- Para añadirlo a nuestro blog debemos situarnos en Plantilla/Edicción de HTML y justo después de <head> añadir lo siguiente:


<link href='http://webjcp.googlepages.com/css.css' rel='stylesheet'/>
<!--[if IE]>
<link rel="stylesheet" href="http://webjcp.googlepages.com/hack.css" />
<script type="text/javascript">
window.mlrunShim = true;
</script>
<![endif]-->
<script src='http://webjcp.googlepages.com/js.js' type='text/javascript'>
</script>


2º- Guardamos los cambios y nos situamos en Plantilla/Añadir un elemento de página/HTML/Javascript para añadir lo siguiente:


<center><div class="mlmenu horizontal bluewhite blindv plus">
<ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>
</ul></li>

</ul>
</div>
</center>


La forma de modificarlo es muy sencilla:
Título o tema será el tema para la categoría de enlaces.
url: debemos pegar la url del lugar que deseamos enlazar.
En Link1, Link2, Link3, y Link4 irá el texto asignado al correspondiente enlace.

Este Menú es una gentileza de César que amablemente pone a disposición de todos.
Yo me he permitido variar un poco las explicaciones para adecuar los colores a nuestro gusto.
El primer código que añadimos a la plantilla contiene tres archivos, un archivo js. y dos CSS.
Uno de los archivos CSS es el que podemos configurar para cambiar el aspecto referente a color.

Lo hice de la siguiente forma:
1º- En el primer paso añadí justo antes de </head> el archivo js. que previamente subí a mi servidor.

<script src='http://forevergema.googlepages.com/menu.js.js' type='text/javascript'>

2º-Después el archivo que contiene la configuración para modificar el aspecto del menú lo abrí con el bloc de notas y copié su contenido para seguidamente pegarlo justo antes de ]]></b:skin>
El contenido es el siguiente:
http://forevergema.googlepages.com/

Es ahí donde podéis modificar los colores del menú donde dice /*colors for menu*/

3º-Guardamos los cambios y nos situamos en Plantilla/Añadir un elemento de página/HTML/Javascript para añadir el mismo código que el primer paso:


<center><div class="mlmenu horizontal bluewhite blindv plus">
<ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>

</ul>
</li><li><a href="#"> titulo o tema </a>
<ul>
<li><a href="url">Link1</a></li>
<li><a href="url">Link2</a></li>
<li><a href="url">Link3</a></li>
<li><a href="url">Link4</a></li>
</ul></li>

</ul>
</div>
</center>


Añadimos los enlaces y listo.

Como podéis comprobar la única diferencia es que añadimos en nuestra plantilla un archivo que siendo alojado en un servidor ocuparía mucho menos espacio pero que podremos modificar cada vez que lo deseemos sin necesidad de abrir el archivo y volverlo a alojar.
Si una vez modificado no necesitamos modificarlo más también podemos subir el archivo a nuestro servidor y en el código de César que añadimos después de <head> sustituimos:
http://webjcp.googlepages.com/css.css por la url de vuestro archivo css.






mENU hORIZONTAL dESPLEGABLE

Menú horizontal blogger beta

Este menú horizontal es muy vistoso, lo he tomado prestado del blog de nuestro buen amigo César.
Para añadirlo a nuestro blog nos situaremos en Plantilla/Edición HTML.
Después de <head> /añadiremos lo siguiente:


<style type='text/css'>
#chromemenu{
width: 100%;
font-weight: bold;
font-size: 90%;
}

#chromemenu:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 1px;
clear: both;
visibility: hidden;
}

#chromemenu ul{
border: 5px double #660000;
width: 99%;
background-color: #000000; center
center repeat-x;
padding: 5px 0;
margin: 0;
text-align: left; /*set value to "right" for example to align menu to the left of page*/
}

#chromemenu ul li{
display: inline;
}

#chromemenu ul li a{
color: #cccc66 ;
padding: 5px;
margin: 10;
text-decoration: none;
border-right: 3px double #660000;
}

#chromemenu ul li a:hover{
background-color: #660000; center
center repeat-x;
}

</style>


(en esta parte de código es donde podemos cambiar el color del menú)


Una vez guardados los cambios nos dirigimos a; Añadir un elemento de página/HTML Javascript donde añadiremos lo siguiente:


<div id="chromemenu">
<ul>
<li><a href="aquí-url">texto</a></li>
<li><a href="aquí-url">texto</a></li>
<li><a href="aquí-url">texto</a></li>
<li><a href="aquí-url">texto</a></li>
<li><a href="aquí-url">texto</a></li>
<li><a href="aquí-url">texto</a></li>
<li><a href="aquí-url">texto</a></li>
</ul>
</div>

(En esta parte es donde podemos añadir los enlaces y el texto que será visible)




Extraido de Gemablog

jueves, 25 de octubre de 2007

Posts relacionados en Blogger, otra forma mas facil

This is a Related Posts step-by-step Manual Instructions. Before applying this blogger hacks (may i call it a blogger hack? : ) I recommend you to create a dummy / test blog, so everything will still be under control if you are having trouble with it.



Note: If you have problem on installing this trick, please scroll down and read the update below. you can also the demo here. so if you have problem copying this code, you may download that template and copy the code inside it. thanks


update: to make you easier, you can download the related posts / articles on .txt file here.


Actually Related Article by Label has already created by Hoctro, and i must admit that he had done a really great job. that’s why I didn’t create this hack widget (oh I will mention it as Widget from now) from scratch. I use his widget and modifying it as a better and fit to my need.




First, you may want to read the original article on hoctro blogs here. There are couple thing I don’t like from the original widget. there are;


1. On Previous version, It uses 2 blog’s widget. Now I cut the code, so we can put it anywhere on the same blog widget. Why I don’t like to use 2 different widgets? Because your code would be too long, and you can not have your Related Post List right under your post area and Above the comment section. It is because it uses 2 different widgets.


Sure you can use 2 widgets and place the Related Posts Lists under post area and above the comment section, but that would make your code so not tidy. you with me?



2. On previous version, Users have to modify the code them self so they can use it. They have to fill a Parameter with their Blog Url. Now they need no more! I have modified the code so users will be able to use it just as simply as copy and paste.


3. On Previous Version, and this is important. The Current Article / Post will also be listed inside the Related Post/ Article Lists. that is not right isn’t? Related Posts / Articles means Other Articles / Posts which have relation with the current Article. Not the current Article it self.


I believe Hoctro knows all that points I mentioned above. And I’m sure it is easy for him to update and upgrade the code. It just i don’t know how to contact him, because he hide his comment section on his site. So..



Hope he will permit me to do this, I will modify the code by my self for your use. So here it is.


*Again, if you want to have the old version, you can go to that hoctro’s link above.


and here it is,


Step by step to install the

RELATED POST WIDGET FOR BLOGGER / BLOGSPOT


1. GO to your Template Editor, Under your blogger / blogspot Dashboard.


Click on the DOwnload Full Template Link. save your downloaded template as a back up, just to prevent in case you failed on applying this hack.


Then, tick the Expand Widget Templates.


2. Find this code below


<data:post.body/>

3. Copy this code below


update: to make you easier, you can download the related posts / articles on .txt file here.



<div class='clear-block;'/><b:if cond='data:blog.pageType == "item"'>

<div class="similiar">

<!-- *****************http://hoctro.blogspot.com*****Jan,2007****************** -->
<!-- *****************Related Articles by Labels - Take Two****************** –>

<!–

Modified by JackBook.Com to make it easier to use.

1. Now, users don’t need to change anything to use this widget. just copy and paste, and done!

2. The current article will also be listed, now it’s no more.

–>

<div class=’widget-content’>

<h3>Related Posts by Categories</h3>

<div id=’data2007′/><br/><br/>

<div id=’hoctro’>

Widget by <u><a href=’http://hoctro.blogspot.com’>Hoctro</a></u> | <u><a href=’http://www.jackbook.com/’ title=’Related Posts on Blogger Modified by JackBook.Com. Read More?’>Jack Book</a>

</u></div>

<script type=”text/javascript”>

var homeUrl3 = “<data:blog.homepageUrl/>”;

var maxNumberOfPostsPerLabel = 4;

var maxNumberOfLabels = 10;

<b:if cond=’data:blog.pageType == “item”‘>

maxNumberOfPostsPerLabel = 100;

</b:if>

<b:if cond=’data:blog.pageType == “item”‘>

maxNumberOfLabels = 3;

</b:if>

function listEntries10(json) {

var ul = document.createElement(’ul’);

var maxPosts = (json.feed.entry.length <= maxNumberOfPostsPerLabel) ?

json.feed.entry.length : maxNumberOfPostsPerLabel;

for (var i = 0; i < maxPosts; i++) {

var entry = json.feed.entry[i];

var alturl;

for (var k = 0; k < entry.link.length; k++) {

if (entry.link[k].rel == ‘alternate’) {

alturl = entry.link[k].href;

break;

}

}

var li = document.createElement(’li’);

var a = document.createElement(’a');

a.href = alturl;

if(a.href!=location.href) {

var txt = document.createTextNode(entry.title.$t);

a.appendChild(txt);

li.appendChild(a);

ul.appendChild(li);

}

}

for (var l = 0; l < json.feed.link.length; l++) {

if (json.feed.link[l].rel == ‘alternate’) {

var raw = json.feed.link[l].href;

var label = raw.substr(homeUrl3.length+13);

var k;

for (k=0; k<20; k++) label = label.replace(”%20″, ” “);

var txt = document.createTextNode(label);

var h = document.createElement(’b');

h.appendChild(txt);

var div1 = document.createElement(’div’);

div1.appendChild(h);

div1.appendChild(ul);

document.getElementById(’data2007′).appendChild(div1);

}

}

}

function search10(query, label) {

var script = document.createElement(’script’);

script.setAttribute(’src’, query + ‘feeds/posts/default/-/’

+ label +

‘?alt=json-in-script&callback=listEntries10′);

script.setAttribute(’type’, ‘text/javascript’);

document.documentElement.firstChild.appendChild(script);

}

var labelArray = new Array();

var numLabel = 0;

<b:loop values=’data:posts‘ var=’post’>

<b:loop values=’data:post.labels’ var=’label’>

textLabel = “<data:label.name/>”;

var test = 0;

for (var i = 0; i < labelArray.length; i++)

if (labelArray[i] == textLabel) test = 1;

if (test == 0) {

labelArray.push(textLabel);

var maxLabels = (labelArray.length <= maxNumberOfLabels) ?

labelArray.length : maxNumberOfLabels;

if (numLabel < maxLabels) {

search10(homeUrl3, textLabel);

numLabel++;

}

}

</b:loop>

</b:loop>

</script>

</div>

</div>

</b:if>

3. Paste right after the code #2 (<data:post.body/>)


Please be flexible. You can do experiment by put the <data:post.body/> inside a <p></p> tag like this.


<p><data:post.body/></p> Then_the_related_posts_script_here


4. Save your template. refresh your blog, and Done.



That’s all. Enjoy!


Note; Related Posts is a list of all posts related to some article based on the labels. And because this uses Javascript, if you want to create a list of posts related by content, it might be pretty hard to do currently.



Updates | Important Note :


For some people who always failed and/or getting error on installing this related posts trick. Kirk Warren from weeklycrisis.com has founded the solution for you. here is his comment


The reason you are getting the errors is because whatever he did with the formatting in this script boxes has ” and ‘ wrong. If you look at them in the Blogger template when you paste the code, they come off as ’ (notice it is slanted to the left, not straight down like a normal single quote [ ‘ vs ’ ]. Same thing happens with the ” and “. Notice how one is straight down and the other is to the right [” vs “]. This is what is causing all the hassles for people.


Most likely, when he recovered the post from Google cache, it had reformated the quotation marks on him and this is why you get that error. Manually replace all the ‘ and ” in that section of code and you should be fine.


update: to make you easier, you can download the related posts / articles on .txt file here.


Thanks





tambien puedes descargar desde aca