WP Digg Style Pagination Plugin V0.2 Beta
[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:
- Download the plugin, upload the pagination.php plugin to the folder wp-content/plugins on our Wordpress installation.
- Activate the plugin in the Plugins section of the admin control panel.
- Open the folder wp-content/themes/
/footer.php or header.php Call the pagination function as the next example, and add to the section of the theme where we want to appear the pagination.
<?php if(function_exists('pagination')) pagination(); ?>Customizing the pagination output. Specifying the amount of adjacent links to the present page in which we browse.
<?php if(function_exists('pagination')) pagination(2); ?>And just like the previous one plus a second parameter that controls the words by defect on the pagination.
<?php if(function_exists('pagination')) pagination(2,array("Anterior","Siguiente")); ?>- 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$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.
Comentarios
[...] 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 [...]
¿cuantas consultas a la base de datos consume? ¿ralentiza mucho el blog?¿se podría poner para paginar los comentarios? es lo malo de estos sistema de paginación. gracias si alguien me responde.
- Una consulta que obtiene el número total de entradas sobre las cuales se calculará la paginación (SELECT count(*) FROM ...).
- 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?
- No realiza paginación sobre los comentarios, ni siquiera WP lo hace.
[...] 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 [...]
Para los comentarios existe Paged Comments, igual Victor y te sirve como base para hacerlo estilo Digg :P
[...] Mis Algoritmos El acordeón que todos necesitamos… « WP Digg Style Pagination Plugin [...]
[...] Here is another “Digg-Like” pagination plugin. I initially tried to install it on my blog but it did not work. Not being able to understand the [...]
Victor,
I just installed the plugin. It works good.
You need to take out spaces between "< ?php"
Hola, a mi no se me ve. Me explico lo he instalado, lo he activadom he quitado el espacio entre "< ?php"
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
[...] Mis Algoritmos » Blog Archive » WP Digg Style Pagination Plugin Plugin de Wordpress para crear una paginacion al estilo de Digg o Flickr. ¿Quién dijo Podcaster? (tags: wordpress plugin plugins navigation pages) [...]
K40s, he creado una liga en el foro 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: >, < o >, < respectivamente.
Para lo que querías escribir sería así "< ?php"
Can this plugin work with the "" 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.
Forgot that would not show up. :-)
I meant can the plugin work with the built-in "nextpage" links that let you have paged posts:
See this page of the Wordpress Codex for what I mean.
[...] 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. [...]
[...] 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 [...]
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.
Forgot to mention -
I originally tried it in WP 2.0 and it refused to work no matter what I did. After upgrading to 2.1, it began to work on the front page, but not the archive pages.
The current version of the blog is 2.1.3 and the function is being called after the 'endwhile' in the loop.
@Becca White
I have updated to version 2.1.3, have proven with the Archives and the pagination is correctly but, with the categories it does not work correctly.
I will play a little with the code and I will tell them soon. :)
I have solved several of the problems related to the writing, beginning by the space between the symbols of beginning of code PHP "<? php". 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 (
$request) because it makes a ...LEFT JOIN..., although still I have doubt.I hope to be able to solve problem the more soon.
Sorry my English, I am translating in the Google translator. :-( I Speak and Write in spanish
Era una de las cosas que tenía pendientes , funciona correctamente, y a la primera!! :)
saludos
[...] Digg Style Pagination Adds a Digg style pagination. [...]
[...] Digg Style Pagination Plugin [Web] [Demo] [Some styles for the pagination] allows to add or replace the Wordpress pagination by one [...]
First of all, AWESOME plugin! I don't know why this isn't built-in to WP but thank you for building it.
I really needed it to work for categories, not just the homepage so I took a closer look at the $fromwhere part of the query.
I ran the queries for the homepage and the category page in my phpMyAdmin. The results were very different. For the homepage, the query just gave me the COUNT(*) of all the rows.
But when I ran the $fromwhere query for the category page, it gave me as many rows as their were results, with each row's COUNT(*) value equal to 1.
So, to fix this, I removed "GROUP BY wp_posts.ID" from the $fromwhere part of the query. This gave me a functional pagination result for my category pages!
So, to modify the pagination.php file to get it to work with categories follow these instructions:
AFTER THIS:
preg_match('{FROMs(.*)sLIMIT}siU', $request, $matches);
$fromwhere = $matches[1];
INSERT THIS:
if (is_category()) {
$fromwhere = str_replace("GROUP BY wp_posts.ID", " ", $fromwhere);
}
Anyway, this worked for me. From this, you may be able to figure out a more efficient way to do it.
Thanks again for an AWESOME plugin!!!!!!!
Eric
[...] [WP-Digg Style Pagination Plugin] [Some Styles for your [...]
[...] Mis Algoritmos is at it again with a digg-style pagination plugin for Wordpress based on this [...]
Wordpress Pagination Plugin For SEO
How well are your older posts being crawled by search engines?
If your blog contains hundreds or thousands of posts you could be in DEEP trouble.
Pagination will place your older posts deeper and deeper in your directory. Several layers or several doze...
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
Si, ya tengo la respuesta, lo solucionaré cuanto antes jejeje :)
[...] *Digg Style Paginator - inaktiv: Funktion ist vergleichbar der hier benutzten Blätterfunktion (unten) [...]
Plugin Version 0.2 (2007-04-30)
- Solved the problem with category pages for WordPress 2.1.3
I'm sorry to be late, but I have much work in the company :(
Again, Sorry my bad English
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
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
Instead of:
$sqlStr = "SELECT COUNT(*) FROM $fromwhere";Should be:
$sqlStr = "SELECT COUNT( DISTINCT (post_id) ) FROM $fromwhere";It gave me way too many pages before this patch ;) (54 instead of 33)
[...] Gerade installiert, sieht ganz nice aus und funktioniert einwandfrei. Macht das Navigieren durch die Seiten einfacher und kommt bei Suchmaschinen gut an. [...]
Thanks for this great plugin! It works really well and I haven't experienced problems yet. Digged!
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
[...] 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 [...]
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
Extraordinario plugin. Funciona perfecto y a la primera, sin ningún problema en la versión 2.2. Muchas gracias.
[...] WP-Digg Style Pagination Plugin - He editado el fichero /wp-contents/themes/unnamed-one-021beta/navigation.php para que mi tema [...]
Hi Victor, thank you for providing such a nice plugin. Works smoothly on my blog. And works on WP 2.2, too. ;-)
I don’t want to wait till the end of Summer :( , I want it now. Who with me?
save your time and join me. ;)
[...] 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 [...]
[...] Digg Style Paginator de Víctor de la Rocha para la paginación de los posts. [...]
Definitivamente no me funciona con la version 2.0.2 de Wordpress :(
Algun fix?
@dubó Te recomiendo actualices a la versión más nueva de WordPress.
[...] WP Digg Style Pagination es un plugin para WordPress que permite paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
[...] se si se habran dado cuenta, pero aqui en el blog instale un plug in para wordpress que se llama WP-Digg Style Paginator tambien lo quise instalar en war-ez pero como tenia una version vieja de WP no funcionaba bien, asi [...]
[...] 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 [...]
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
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?
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 aquí 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
[...] *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 Revisaré eso, y trataré de tener una solución durante los próximos 15 días. Estoy en exámenes en la facultad, y no he podido atender bien el blog :(
[...] ao final da página principal, já está em funcionamento aqui no pBlog, não precisa nem visitar o site do desenvolvedor para vê-lo funcionando. [...]
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!!
Solution? Will be nice some function to be able to exclude posts from count. I need to exclude posts with "post_type" 'attachment'.
[...] 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 [...]
[...] -Digg Style Pagination - Rápido e fácil de configurar permite mudar a forma de paginar o blog tem vários estilos CSS que podem ser aplicados ao tema. [...]
[...] Mis Algoritmos Blog Archive WP Digg Style Pagination Plugin adresindeki eklentiyi indir. O adreste kurulum ekli de anlatlyor.. __________________ Snrl Sayda PR5 Link 15 YTL [...]
[...] WP-Digg Style Paginator qui permet de rajouter une pagination sur votre home, plutot que l’habituel précédent/suivant [...]
[...] WP Digg Style Pagination es un plugin para Wordpress que nos permite mostrar en nuestro blog el típico sistema por páginas: Anterior - 1 2 3 4 5 ... - Última Es muy fácil de instalar y se puede editar el CSS para adecuarlo a nuestro gusto. En la página del autor del plugin puedes encontrar todas las instrucciones para configurarlo e instalarlo. [...]
[...] 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. [...]
[...] 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 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. [...]
[...] 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. [...]
[...] 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 [...]
[...] 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 플러그인에서는 UTW 태그 페이지를 페이징해주지 않습니다. 카테고리나 메인 인덱스에서는 해주는데 말이죠. 플러그인 페이지에서는 언급이 없길래, WP-PagiNavi 플러그인을 참고해서 해결해봤어요. [...]
[...] 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 [...]
[...] Solamente tendremos que modificar una linea en el plugin, está bien explicado en esta url. Gracias a mis-algoritmos por el [...]
If your are using WP 2.3 you need to change the line 22 by this other
$sqlStr = “SELECT count(DISTINCT ID) FROM $fromwhere”;
[...] WP Digg Style Paginator. This is the one responsible in paginating our blog. [...]
[...] read more | digg story [...]
Can you say how i can change quantity of posts on shows on one page... i need to display 2 posts per page..
Thank you for the answer. May be you know how i can make some categories to not shows ?
[...] es el que use hasta hace poco, el WP Digg Style Pagination, si querés saber como instalarlo visita [...]
[...] WP-Digg Style Paginator [...]
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.....
[...] Digg Style Navigation [...]
[...] WP-Digg Style Paginator [...]
[...] WP Digg Style Pagination es un plugin para WordPress que te da la posibilidad de paginar mejor las entradas del blog, sustituye el típico “siguiente - anterior” por un listado numérico de las páginas disponibles, al estilo Google, Digg y similares. Además el propio autor pone a disposición de todos el código CSS para emular la paginación de diferentes sitios populares de la red. [...]
Mano! avientate uno para blogger, jaja por eso y mas razones en mayo cambio a wordpress ... felicidades Vic! que buena aportacion para wordpress!!