Inicio ¿Sidebar? RSS

WP Digg Style Pagination Plugin V0.2 Beta

I think that this entry is obsolete. If you are looking for a pagination control for Wordpress, you can read this article which is eaiser to implement.

[DEMO][Download][Some styles for your pagination]

WP-digg style pagination allows to add or replace the Wordpress pagination by one easy and more comfortable navigation like Digg, Flickr, Meneame and Sabrosus.

The creation of this pagination plugin was based on the modular version built from the original created by strangerstudios.com.

This implementation does not require the inclusion of the parameter "file" in where is specified the file in which the data of the present page are sent, since WordPress do it automatically.

In order to install and use the plugin:

  1. Download the plugin, upload the pagination.php plugin to the folder wp-content/plugins on our Wordpress installation.
  2. Activate the plugin in the Plugins section of the admin control panel.
  3. Open the folder wp-content/themes//footer.php or header.php
  4. Call the pagination function as the next example, and add to the section of the theme where we want to appear the pagination.

    1. <?
    2.    if(function_exists("pagination"))
    3.       pagination();
    4. ?>

    Customizing the pagination output. Specifying the amount of adjacent links to the present page in which we browse.

    1. <?
    2.    if(function_exists("pagination"))
    3.       pagination(2);
    4. ?>

    And just like the previous one plus a second parameter that controls the words by defect on the pagination.

    1. <?
    2.    if(function_exists("pagination"))
    3.       pagination(2,array("Anterior","Siguiente"));
    4. ?>
  5. Finally you can take one CSS Style for your pagination from those of the list

If you wish to use the pagination in some of your systems programmed by own account you can use the Digg Style Pagination Class. A version easier to implement, using classes for PHP version 4. The implementation is simple, is necessary to include the class with a require or an include. We defined basic properties for pagination such as an amount of elements to paginate, elements by page, page to which the element "page" will be sent, you need a CSS style and finally we generate the pagination to show it. Continue reading here.

If your are using WP 2.3 you need to change the line 22 by this other
  1. $sqlStr = “SELECT count(DISTINCT ID) FROM $fromwhere”;

Plugin Version 0.2 (2007-04-30)

  • Solved the problem with category pages for WordPress 2.1.3

Plugin Version 0.1 Beta (2007-03-10)

  • Compatible with WordPress 2.1, 2.0 (Other versions I don't know)
  • If there aren't pages to show digg-style-paginator it will not appear.

95 comentarios en WP Digg Style Pagination Plugin V0.2 Beta

vBracco » Archivo » WP-Digg Pagination Plugin

[...] de la Rocha, acaba de presentar WP Digg Style Pagination. Un útil plugin para reemplazar el paginado por defecto de Wordpress, por otro más ameno para [...]

Victor

<ol>
<li>Una consulta que obtiene el número total de entradas sobre las cuales se calculará la paginación (<em>SELECT count(*) FROM ...</em>).</li>
<li>En cuanto a ralentización, no he tenido problemas con la paginación en ninguno de mis sistemas ¿Alguien ya lo probó y que piense/diga lo contrario?</li>
<li>No realiza paginación sobre los comentarios, ni siquiera WP lo hace.</li>
</ol>

Pecesama.Net [weblog] - » WP Digg Style Pagination Plugin

[...] de la Rocha, el incansable de los algoritmos acaba de presentar el WP Digg Style Pagination, un plugin para reemplazar el paginado por defecto de Wordpress al estilo [...]

pecesama

Para los comentarios existe <a href="http://www.keyvan.net/code/paged-comments/" rel="nofollow">Paged Comments</a>, igual Victor y te sirve como base para hacerlo estilo Digg :P

Mis Algoritmos » Blog Archive » Some styles for your pagination

[...] Mis Algoritmos El acordeón que todos necesitamos… « WP Digg Style Pagination Plugin [...]

Vlad

Victor,
I just installed the plugin. It works good.

You need to take out spaces between "< ?php"

k40s

Hola, a mi no se me ve. Me explico lo he instalado, lo he activadom he quitado el espacio entre "< ?php"

k40s

joder lo siento, no puedo poner el simbolo "mayor que" :( pues eso que he hecho todo lo que se indica y no me muestra nada... ni da fallo ni nada, simplemente no me muestra nada

Victor De la Rocha

K40s, he creado una liga en <a href="http://www.mis-algoritmos.com/foro/topic.php?id=18" rel="nofollow">el foro</a> para evitar llenar de preguntas aquí :-)

http://www.mis-algoritmos.com/foro/topic.php?id=18

Por cierto, para poner el símbolo "Mayor que" > o "Menor que" < Se debe utilizar su entidad html: <strong>&gt;, &lt;</strong> o <em>&#62;, &#60;</em> respectivamente.

Para lo que querías escribir sería así "&lt; ?php"

J.B.

Can this plugin work with the "<!--nextpage-->" like for paged posts?

I have your plugin on a 2.1 test setup, and all of the pagination links look like Digg except the nextpage-paged posts links.

Any way to edit the plugin file to make it work with the nextpage links also?

Thanks, and thanks for making a great plugin.

J.B.

Forgot that would not show up. :-)

I meant can the plugin work with the built-in "nextpage" links that let you have paged posts:

<a href="http://codex.wordpress.org/Styling_Page-Links" rel="nofollow">See this page of the Wordpress Codex for what I mean.</a>

Victor De la Rocha

@J.B: Plugin does not have that functionality.

Social Poster » WP Digg Style Pagination Plugin

[...] WP Digg Style Pagination Plugin WP-digg style pagination allows to add or replace the Wordpress pagination by one easy and more comfortable navigation like Digg, Flickr, Meneame and Sabrosus. [...]

utupia WordPress functions | utupia

[...] plugin que em permetés fer el que volia, i vaig trobar-ne un que a priori em satisfeia bastant, el WP Digg Style Pagination Plugin. Però em va passar el mateix que aquella vegada: no em funcionava del tot bé per algun error, i [...]

Becca White

Thank you for the great plugin.

I was having some trouble getting it to work, but finally got it up and running. However, it doesn't seem to work for the archive pages -- monthly archives, category archives, etc. It only works on the front page. Is there a way to make it work on the archive pages?

Thanks.

Victor De la Rocha

@Becca White
<del datetime="2007-04-14T22:55:41+00:00">I will update to 2.1.3, and I will prove, hope.</del>

I have updated to version 2.1.3, have proven with <strong>the Archives</strong> and the pagination is correctly but, with <strong>the categories</strong> it does not work correctly.

I will play a little with the code and I will tell them soon. :)

Victor De la Rocha

I have solved several of the problems related to the writing, beginning by <em>the space between the symbols of beginning of code PHP "<? php"</em>. By this part I do not believe that the problems continue appearing with the code, nevertheless, I do not know the probability that of the code works correctly in older versions of Wordpress 2.1, but I will be working according to bugs/problems that you are sending to me.

hmm, I am having enough problems with the code, the problem is in the line of SQL query (<code>$request</code>) because it makes a <code>...LEFT JOIN...</code>, although still I have doubt.

I hope to be able to solve problem the more soon.

Sorry my English, I am translating in the <a href="http://translate.google.com/translate_t" rel="nofollow">Google translator</a>. :-( I Speak and Write in spanish

san roman

Era una de las cosas que tenía pendientes , funciona correctamente, y a la primera!! :)
saludos

Die besten WordPress Plugins - Design » Tipps zur Suchmaschinenoptimierung

[...] Digg Style Pagination Adds a Digg style pagination. [...]

Mis Algoritmos » Blog Archive » Plugins para Wordpress

[...] Digg Style Pagination Plugin [Web] [Demo] [Some styles for the pagination] allows to add or replace the Wordpress pagination by one [...]

Mis Algoritmos » Blog Archive » Digg and sabros.us style pagination

[...] [WP-Digg Style Pagination Plugin] [Some Styles for your [...]

Stranger Studios - Web and Graphic Design Solutions

[...] Mis Algoritmos is at it again with a digg-style pagination plugin for Wordpress based on this [...]

san roman

Hola Victor , No funciona la paginación para las categorías, alguna pista o solución ??, parece que arriba dan la respuesta, pero my english is bad :(
Gracias

Victor De la Rocha

Si, ya tengo la respuesta, lo solucionaré cuanto antes jejeje :)

Daves Blog » Blog Archive » stöckchen: wordpress plugins

[...] *Digg Style Paginator - inaktiv: Funktion ist vergleichbar der hier benutzten Blätterfunktion (unten) [...]

The_Walrus

Any news on the fix for the category pages? GREAT PLUGIN! I love it!

Victor De la Rocha

Plugin Version 0.2 (2007-04-30)
<ul>
<li>Solved the problem with category pages for WordPress 2.1.3</li>
</ul>

I'm sorry to be late, but I have much work in the company :(

Again, Sorry my bad English

Oscar

uff, una lástima, me hubiera encantado que funcionara para los comentarios que es lo que he estado buscando sin éxito, el plugin de keyvan.net es demasiado antiguo.. http://www.keyvan.net/code/paged-comments/

Saludos

san roman

Gracias Victor funciona correctamente en categorías tambien.

san roman

sólo un detalle (www.djsanroman.com/category/grupos-de-musica/) en algunas categorias muestra más páginas de las que hay en realidad

Victor De la Rocha

Hmm lo revisaré, gracis @san roman

ikari

Instead of:
<code>$sqlStr = "SELECT COUNT(*) FROM $fromwhere";</code>
Should be:
<code>$sqlStr = "SELECT COUNT( DISTINCT (post_id) ) FROM $fromwhere";</code>

It gave me way too many pages before this patch ;) (54 instead of 33)

lustitsch

Thanks, I'm using this plugin on my site and it works like a charme.

aloha WEBLOG - spreading the aloha spirit » WP Digg Style Pagination Plugin

[...] Gerade installiert, sieht ganz nice aus und funktioniert einwandfrei. Macht das Navigieren durch die Seiten einfacher und kommt bei Suchmaschinen gut an.   [...]

Antonie Potgieter

Thanks for this great plugin! It works really well and I haven't experienced problems yet. Digged!

Paginación en WordPress « Xyberneticos

[...] descubro en La mate por un yogur un plugin que nos ayudara a lograrlo de forma fácil y rápida. WP Digg Style Pagination es un plugin para WordPress creado por mis-algoritmos y es precisamente este plugin quien nos [...]

Nikko

Quedan muy bellos...gracias Victor por el plugin ^_^

Agustín Mustieles

Extraordinario plugin. Funciona perfecto y a la primera, sin ningún problema en la versión 2.2. Muchas gracias.

Arreglos al blog at blog.cualquiera.net

[...] WP-Digg Style Pagination Plugin - He editado el fichero /wp-contents/themes/unnamed-one-021beta/navigation.php para que mi tema [...]

Victor De la Rocha

Por nada :) ¡Gracias a ustedes por usarlo!

Thanks! Thanks :)

BustyBoots

I don’t want to wait till the end of Summer :( , I want it now. Who with me?
save your time <a href="http://BustyBoots.info/?p=24" rel="nofollow"> and join me</a>. ;)

Amebas a la deriva » Plugin de paginación para la portada en Wordpress

[...] plugin se llama WP Digg Style pagination, y podeis descargarlo aquí. Luego solamente hay que subir el plugin, activarlo y poner el código donde queramos que aparezca [...]

Blogestudio » Nuevo diseño de Enrique Dans

[...] Digg Style Paginator de Víctor de la Rocha para la paginación de los posts. [...]

dubó

Definitivamente no me funciona con la version 2.0.2 de Wordpress :(
Algun fix?

Victor De la Rocha

@dubó Te recomiendo actualices a la versión más nueva de WordPress.

Condicionar el uso de plugins en WP | Infected-FX| tutoriales, photoshop brushes y recursos para diseñadores web

[...] themes de WordPress y aún no apliquen esta técnica, para eso utilizaremos ahora el plugin para la paginación tipo Digg. Donde Nikko nos explica como usarlo. A lo que me gustaría [...]

Michel

I tried your pagination plugin, at it seems to work fine.

I have two questions for you, however:

1) If I have a number of pages, and click the page number 3, then the number 2 will appear twice - like this:

« Forrige side12...234...1314Næste side »

2) I can't seem to make spaces between the numbers work. How can I adjust that, becaus as it is now, it looks like above, with no spaces?

Greetings and thanks for a much needed plugin,
Michel

Michel

Well, I solved the CSS problem - it seems that I had to integrate the styles into my themes CSS in order to get it to work, the CSS included in the plugin folder is not used..

However, I still have trouble with thedouble appearance of number 2 when activating page 3. It looks like a bug to me.

Will there be any way to tweak the plugin to have more than one page before and one after, when in the middle of the pages?

Diego

Que onda Victor, esta muy bueno el plugin, muchas gracias :) pero mira estoy teniendo problemas con las categorias y al comenzar a leer los comentarios me di cuenta de que mucha gente lo tenía... pero me sorprendió que al llegar a los últimos comentarios se supone que eso de las categorias ya esta corregido en la versión 0.2 para Wordpress 2.1.3, pero yo tengo Wordpress 2.2 y estoy teniendo problemas con las categorias. Puedes verlo <a href="http://dinavil.com/category/sports/" rel="nofollow">aquí</a> Me da el siguiente error:

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT count(DISTINCT post_id) FROM

» Mis plugins » Blog Archive El diario sin diario

[...] *WP-Digg Style Paginator :Este plugin nos ayuda a hacer la paginación mas vistosa en nuestro wordpress. Paginacion al estilo digg, mas “web 2.0″ ;). Post donde explico como instalarlo aqui. [...]

Diego

Ok, muchas gracias, suerte en tus exámenes ;)

Daniel

Hello to the author of this great plugin! I've found a pagination problem win this plugin when you combine it with IMP Download (http://www.inmypad.com/2007/01/wordpress-plugins-imp-download/). The number of pages do not match with the real number of posts. IMP Download creates "inherit" entries to store download URL's, that's the reason why appear more pages available than posts. It is possible to solve it? Thank you!!

Daniel

Solution? Will be nice some function to be able to exclude posts from count. I need to exclude posts with "post_type" 'attachment'.

Wordpressplugins Pagination und Pagebar » Pixeldrama

[...] außerdem die bessere Durchblutung der Webseite, folglich dürften auch Suchmaschinen Pagebar oder Pagination wohlwollend gegenüberstehen. Erstere Erweiterung ließ sich problemlos unter WP 2.0.10 [...]

Romain Libeau » Blog Archive » Une fournée de nouveaux Plugin Wordpress

[...] WP-Digg Style Paginator qui permet de rajouter une pagination sur votre home, plutot que l’habituel précédent/suivant [...]

Wordpress Plugin | Vomicae™

[...] Pagination - Com esse plugin você coloca a paginação bem diferente do padrão do Wordpress, ao estilo do Digg, Flickr e vários outros estilos. [...]

» How I built Minimology… Revealed! » Minimology

[...] Well, I can’t really take credit for the system myself, I simply installed a plugin called Digg Style Pagination. The reason it’s named so? Well, it’s based on the pagination mechanism found at [...]

Wp-Wordpress, ma grosse liste de 59 plugins en place ! | Le blogueur masqué

[...] wp digg style pagination permet de rajouter une pagination sur vos pages, plutot qu’un simple précédent/suivant. Personnalisation facile avec un fichier CSS. [...]

TousPourUn Blog » WordPress… quelques plug ins

[...] wp digg style pagination permet de rajouter une pagination sur vos pages, plutot qu’un simple précédent/suivant. Personnalisation facile avec un fichier CSS. [...]

despuesdegoogle » » PageNavi, plugin para paginar con elegancia tu WordPress

[...] plugins que mejoran significativamente la estética y la funcionalidad. Quizás el más conocido es WP Digg Style Pagination Plugin con la ventaja que es altamente configurable en estilos que imitan los de famosos sitios o [...]

B l o g c l i c * » 59 plugins pour wordpress

[...] wp digg style pagination permet de rajouter une pagination sur vos pages, plutot qu’un simple précédent/suivant. Personnalisation facile avec un fichier CSS. [...]

Pagination 플러그인에서 태그 페이지 Paging하기 « Mei Clamo

[...] Pagination 플러그인에서는 UTW 태그 페이지를 페이징해주지 않습니다. 카테고리나 메인 인덱스에서는 해주는데 말이죠. 플러그인 페이지에서는 언급이 없길래, WP-PagiNavi 플러그인을 참고해서 해결해봤어요. [...]

Solución a Unknown column ‘post_id’ in ‘field list’ — Viciao2k3

[...] si tienes activado el plugin WP-Digg Style Paginator y has actualizado wordpress a la versión 2.3, al entrar en cualquier categoría, al final de la [...]

diarioTHC | Mejora la navegación de wordpress, WP Digg Style Pagination Plugin

[...] Solamente tendremos que modificar una linea en el plugin, está bien explicado en esta url. Gracias a mis-algoritmos por el [...]

Victor De la Rocha

If your are using WP 2.3 you need to change the line 22 by this other

$sqlStr = “SELECT count(DISTINCT ID) FROM $fromwhere”;

Pavel

Can you say how i can change quantity of posts on shows on one page... i need to display 2 posts per page..

Pavel

Thank you for the answer. May be you know how i can make some categories to not shows ?

Victor De la Rocha

No, i don't know, sorry.

Plugin para paginar los resutados en Wordpress | Codigo Geek

[...] es el que use hasta hace poco, el WP Digg Style Pagination, si querés saber como instalarlo visita [...]

Senthil

Is it possible to extend the single Wordpress page with this plugin? For example i am having page height of around 3000 Pixels.. Can i split pages without changing URL ? Help me in this regard.....

Ruriko

I use WP 2.3 you say I need to change in line 22 but in which file??

Fist

I use WP 2.5, it work fine on main page, but it doesn't work in the category. How can I repair this?

Flameboy

Hello, I have an error of pagination when I go to the categories... The pagination is not here, it's a SQL request error which appear :



Erreur de la base de données de WordPress : [Unknown column 'post_id' in 'field list']
SELECT count(DISTINCT post_id) FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) WHERE 1=1 AND wp_term_taxonomy.taxonomy = 'category' AND wp_term_taxonomy.term_id IN ('16') AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC


Can somebody help me to have a pagination on all pages (categories...)

Añadida la paginación al blog | webmasters, recursos webmasters, recursos gratuitos, scripts, web

[...] cambio a sido tan sencillo como instalar el plugin wp-digg-style-pagination-plugin, subir el archivo pagination.php a la carpeta plugins y activarlo desde el panel de control de [...]

Kanchan

How to show in this pagination??

Showing from 1 to 20 from 200 queries.

mark

How would I go about adding nofollow to these links? Thanks in advance

Jesus

Buenas, gracias por tu plug-in. A mi me sigue sin funcionar en categorias, me podrias echar una mano?
Las instrucciones que das a mi no me funcionan.

Gracias de antemano.

muslim, islam blog

Thank you very much !

very good plugins..

mauro

muy bueno ... :D

Javier

Hola a ver si alguien me puede ayudar.

Si utilizo query_posts para quitar una categoria (query_posts("cat=-45");) deja de funcionar el paginado.

He encontrado el siguente codigo peor no funciona, alguien puede ayudar?
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-45&paged=$paged");

Gracias

kemal22

Solution? Will be nice some function to be able to exclude posts from count. I need to exclude posts with "post_type" 'attachment'.

kemal22

thank u sharingg. good article...

MOMO

Hola Master, a ver si puedes darme una manito con este Plugin, que soy diseñador y de programacion muy basico.

El Plugin aparece correctamente en la Home, pero al hacer click en siguiente o anterior o en cualquiera de los numeros de las paginas, simepre vuelve a cargar la Home, es decir, no avanza ni retrocede.

Este es mi codigo, despues del endif viene el paginador.
Muchas gracias de antemano!!!

<?php
get_header();
?>

<div id="sites">
<?php giftsfordaddy(); ?>
</div>



<?php $count = 0;?>
<?php query_posts('showposts=5'); ?>
<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div class="postindex" id="post-<?php the_ID(); ?>">






<div class="entry">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(__('Readmore �'));?>



</div>
<div class="spacer"></div>
<ul class="post-data">
<li class="comments">
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</li>
<li class="posted">
<?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit','',''); ?>
</li>


</ul>
</div>


<?php comments_template(); ?>
<?php
if($count == 1 ) {
echo "<div style='clear:both;'></div>";}
$count = $count+1;
?>


<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

<?php if(function_exists('pagination'))
pagination(2,array(Preview,Next));
?>



<?php get_footer(); ?>

MOMO

Hola Gente!
Instale el plugin y se ve muy bien, pero no pasa las paginas.
Podeis ayudarme?

Despues del <?php endif; ?>

Pegue el siguiente codigo

<?php if(function_exists('pagination'))
pagination(2,array(Preview,Next));
?>

mi página es www.adriancastrodesign.com, alli podeis ver que no va.
Muchas gracias de antemano.

dofollow social bookmark

superb plugin.. i have installed, iam going to bookmark.

Carlos Eduardo Sully

Preciso de saber como faço para reduzir o número posts por página?

denys

me gustaria saber como puedo modificar el numero de posts que se ven en cada pagina ...

Deja un comentario

¿Cuanto es 2 + 3? =

Suscribirse a los comentarios.