Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

Duda con plantilla "monotone"

Estas en el tema de Duda con plantilla "monotone" en el foro de WordPress en Foros del Web. Buenas, he instalado la plantilla monotone en un Wordpress, aqui podeis ver una demo: http://monotonedemo.wordpress.com/2008/ Como veis, en la pagina de archivos te da la ...
  #1 (permalink)  
Antiguo 23/01/2009, 07:01
 
Fecha de Ingreso: julio-2007
Ubicación: Málaga
Mensajes: 600
Antigüedad: 16 años, 9 meses
Puntos: 56
Duda con plantilla "monotone"

Buenas, he instalado la plantilla monotone en un Wordpress, aqui podeis ver una demo:

http://monotonedemo.wordpress.com/2008/

Como veis, en la pagina de archivos te da la opcion de filtrarlos por mes/año o por categoria. Pero yo lo que necesito hacer es que me salgan todas las miniaturas de todos los meses/años juntas, y si algun visitante quiere filtrarlas tambien podria hacerlo, pero que en principio salgan todas mezcladas.

Alguien ha usado o usa esta plantilla? es posible hacer esto?? Os dejo el codigo del archivo "archive.php":

Código:
<?php get_header(); rewind_posts(); ?>
<div class="archive">
	
<ul id="filters">
	<li>Filter by:</li>
	<li>
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'> 
  <option value=""><?php echo attribute_escape(__('Select Month')); ?></option> 
  <?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
</li>
<li>
<?php wp_dropdown_categories('show_option_none=Select Category'); ?>

<script type="text/javascript"><!--
    var dropdown = document.getElementById("cat");
    function onCatChange() {
		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
			location.href = "<?php echo get_option('home');
?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
		}
    }
    dropdown.onchange = onCatChange;
--></script>
</li>
</ul>

		<?php 
		query_posts($query_string.'&posts_per_page=24');
		if (have_posts()) : ?>

 	  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 	  <?php /* If this is a category archive */ if (is_category()) { ?>
		<h2>Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h2>Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h2>Archive for <?php the_time('F, Y'); ?></h2>
 	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h2>Archive for <?php the_time('Y'); ?></h2>
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h2>Author Archive</h2>
 	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h2>Blog Archives</h2>
 	  <?php } ?>


		<div class="nav">
			<div class="prev"><?php next_posts_link('&laquo; Older Entries') ?></div>
			<div class="next"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
		</div>
<ul class="thumbnails">
		<?php while (have_posts()) : the_post(); ?>

					<li id="post-<?php the_ID(); ?>">
						<a href="<?php the_permalink() ?>" title="Link to <?php the_title_attribute(); ?>"><?php the_thumbnail(); ?></a>
					</li>

		<?php endwhile; ?>
</ul>
<div class="nav">
	<div class="prev"><?php next_posts_link('&laquo; Older Entries') ?></div>
	<div class="next"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>

	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>
</div>

<?php get_footer(); ?>
Sé que es algo muy especifico de esta plantilla, pero agradecería cualquier sugerencia. Gracias por adelantado!
  #2 (permalink)  
Antiguo 24/01/2009, 04:05
 
Fecha de Ingreso: junio-2008
Mensajes: 80
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Duda con plantilla "monotone"

Creo que no te podre ayudar mucho, pues no soy ningun especialista en WP. Pero es una plantilla muy curiosa. De entrada, no se ve como entrar como administrador. Cuano se entra como administrador hay la opcion de mostrar todos los posts (miniaturas) por orden cronologico de entrada. Este tema "monotono", parece muy interesante para montar una galeria de fotos.

beseit
  #3 (permalink)  
Antiguo 25/01/2009, 12:10
 
Fecha de Ingreso: julio-2007
Ubicación: Málaga
Mensajes: 600
Antigüedad: 16 años, 9 meses
Puntos: 56
Respuesta: Duda con plantilla "monotone"

Gracias por responder. Al final lo he conseguido copiando todo el codigo del archivo 'archive.php' en 'index.php'. Así la pagina de incio son todas las miniaturas juntas, que es lo que buscaba.

Ahora estoy intentando aumentar el tamaño de los thumbnails, aunque no lo consigo, si alguien sabe como hacerlo se lo agradeceria mucho!

Última edición por CorpseOfSteel; 25/01/2009 a las 14:01
  #4 (permalink)  
Antiguo 21/02/2009, 07:59
 
Fecha de Ingreso: julio-2007
Ubicación: Málaga
Mensajes: 600
Antigüedad: 16 años, 9 meses
Puntos: 56
Respuesta: Duda con plantilla "monotone"

Hola, tengo un nuevo problema con esta plantilla. No se porqué cuando creo un post nuevo me sale este error:

Código:
Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 109

Warning: getimagesize(http://miweb.com/wp-content/uploads/2009/02/2008-10-26.jpg) [function.getimagesize]: failed to open stream: Resource temporarily unavailable in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 109

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 235

Warning: imagecreatefromjpeg(http://miweb.com/wp-content/uploads/2009/02/2008-10-26.jpg) [function.imagecreatefromjpeg]: failed to open stream: Resource temporarily unavailable in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 235

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 237

Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 239

Warning: imagecolorat(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 251

Warning: imagecolorat(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 252

Warning: imagecolorat(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 253

Warning: imagecolorat(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 254

Warning: imagecolorat(): supplied argument is not a valid Image resource in /home/www/miweb.com/wp-content/themes/monotone/functions.php on line 255

Warning: Cannot modify header information - headers already sent by (output started at /home/www/miweb.com/wp-content/themes/monotone/functions.php:109) in /home/www/miweb.com/wp-includes/pluggable.php on line 850
Alguien sabe de que puede ser?? yo solo he tocado lo que es el diseño, asi que no se porqué me sale esto. Si alguien sabe algo se lo agradeceria mucho. Gracias!


EDITO: Tambien decir que si le doy a 'atras' en el navegador, y le vuelvo a dar a enviar, entonces si se sube el post correctamente. lo que lo hace todavia mas raro :S
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:40.