Bismillah, Alhamdulillah

Skip to Content

Numbered Page Navigation For Blogger New Script

December 11th, 2009

Bismillah (in the Name of Allah), Alhamdulillah (All Praise to Allah)

Page navigation is need for all blogger because it can make navigation easy for your visitors. Previous script have some weakness :

  1. Maximum posts 500
  2. Have to read all JSON file if post so many make your blog slow
  3. Need long loop to calculate all posts (no body know this if they not read the script)

Now all those problems can be solved, Insya Allah. The script is different with My Previous Modification Nummbered Page Navigation for blogger, the script based on my own idea and for style I used from Mohamed Rias

image

To see the result open These demos:

Step 1 : Apply Style

  1. Login to Blogger Dashboard and navigate to Layout > Edit Html
  2. Don’t click the checkbox which says ‘Expand Widget Templates’
  3. Find this
]]></b:skin>

and replace it with


.showpageNum a {
  padding: 3px 8px;
  margin:0 4px;
  text-decoration: none;
  border:1px solid #999;
  -webkit-border-radius:3px;-moz-border-radius:3px;
  background: #ddd;
  }

.showpageOf {
margin:0 8px 0 0;
}
.showpageNum a:hover {
  border:1px solid #888;
  background: #ccc;
  }

.showpagePoint {
  color:#fff;
  text-shadow:0 1px 2px #333;
  padding: 3px 8px;
  margin: 2px;
  font-weight: 700;
  -webkit-border-radius:3px;-moz-border-radius:3px;
  border:1px solid #999;
  background: #666;
  text-decoration: none;
  }

]]></b:skin>

Above style use Old Style You can use Six other style from this Posts
Six Styles Page Navigation for Blogger

Step 2 : Aplly Javascript

Find This :

</body>

Replace with :


&lt;script type='text/javascript'&gt;
var home_page=&quot;/&quot;;
var urlactivepage=location.href;
var postperpage=7;
var numshowpage=4;
var upPageWord ='Prev';
var downPageWord ='Next';
&lt;/script&gt;
&lt;script src='http://scriptabufarhan.googlecode.com/svn/trunk/pagenaviv202-min.js' type='text/javascript'&gt;&lt;/script&gt;
</body>

Change based on your blog setting :
var postperpage=7;
var numshowpage=4;

Postperpage : How many Post every Page for your blog
numshowpage : how Many number will show in Your page Navigation

Step 3 : Customize Label (if you already use my previous Page Navi don’t use this step)

Go to the Edit HTML page and “Expand Widget Templates”
Find this (all of this text in your xml or template)

'data:label.url'

and Replace with this

'data:label.url + &quot;?&amp;max-results=7&quot;'

Change 7 base on how many post every page

only That, I hope it can work and make your blog easy to navigate, amiin

For All My Page Navi Can read from Read this :
  1. Six Styles Page Navigation for Blogger
  2. Beautiful New Page Navi For Blogger With Scroll
  3. Page navigation for Blogger with Google Style
  4. Page Navigation for Blogger (Problems Solved)

Categories: Featured, Page Navigation, Tips and Tricks Blogger

Tags: ,

Enjoyed this Post?

Subscribe to our RSS Feed, Follow us on Twitter or Comments RSS Feed

Trackback
Leave a response

219 Responses to “Numbered Page Navigation For Blogger New Script”

  1. [...] be more useful plugins and widgets around the web and I have not included some common plugins like page navigation, which is very common. Drop in your comments for best blogger plugins or widgets according to you [...]

  2. neo says:

    terima kasih banyak-banyak bang.

  3. m2s says:

    thanks buddy. thats 100% work on mine :)

    download all movie

  4. Sujeet says:

    Can i upload this script to google sites?

  5. m.hariyanto says:

    Alhamdulillah, on

  6. السلام عليكم
    .
    this code works perfect with my blog, and the colors are amazing!

  7. Bismillah, Allahu Akbar!
    Bravo Abu Farhan … Science may Allah multiply that you have..Amien!

  8. CoMeL says:

    Subhanallah… Alhamdulillah, Allahu Akbar!

    Thanks bapakku ABU FARHAN, semoga Allah menjadikan ini sebagai Amal Zariah, Amin ya Allah

    Don’t missed visit my blog ya abi!!!

  9. Robin says:

    Anyway you made me mad. I applied your trick and when i see my blog in chrome all the side bar got bad. Thanks. SOrry i mistakely visited your blog .

  10. Padly Rahman says:

    Tengkyu Bos… Tapi akan lebih cantik Kalau Page 1 of 7 nya dihilangkan? Bisa ga?

  11. erwin says:

    maaf Abu..saya udah menjalankan instruksi diatas berkali-kali..tetapi tetap tidak bisa bekerja di template saya.

    kenapa ya?

    terima kasih banyak.

  12. your site is so useful
    thanks

  13. thanks for this site

  14. Helen says:

    Hi Abu,

    There seems to be something wrong with the “var numshowpage=4;” code – it only works for the final page. For all earlier pages, the nav will display *all* page numbers… so for example, there will be 7 page links at the bottom, despite the “numshowpage” value being “4″.

    This problem is also in your demo blogs.

    Any idea how to fix this?

    • Helen says:

      I might be getting confused with what “numshowpage” is meant to do, but I thought it was to specify the number of pages that are linked to in the nav.

      For example, in the Minima demo, you have “numshowpage=4″ but if you’re currently on page 5, the nac at the bottom will have links to pages 1, 3, 4, 5, 6, 7, 14…. whereas I would expect it to have links for just pages 1, 3, 4, 14 or something.

      If you’re on page 14 (the final page), the nav correctly shows only 4 page number links which are 1, 12, 13, 14.

      How do you reduce the number of page number links in the nav?

      Apart from that, the nav works brilliantly.

  15. omjun says:

    thanks abu… artikel ini bermanfaat buat saya…

  16. DragonWilGT says:

    Really, really thanks a lot, in my blog works perfectly is amazing, look at this http://wallpaperslife.blogspot.com/

  17. Giri says:

    Terima Kasih Abu,Terima Kasih

  18. Sujeet says:

    This hack works great. I want to remove “widget by abu farhan”. Please.

  19. Fdsm says:

    Thanks a lot! All excellently works for me :).

  20. David says:

    Alhamdulillah, sukses. Syukron akhi.

  21. i have seen this link ‘data:label.url’ more than 1 times on my blogger edit html page. so what to do ?

  22. Phil says:

    Thank’s
    But doesn’t gog on my blog ( http://www.coccxyphil.com/ )

    Saddly !

  23. Phil says:

    Thanks !
    Doesn’t go on my blog :
    http://www.coccxyphil.com/

    Sad !

  24. sam says:

    Thanks Work Perfect With My Blog

  25. jawa says:

    how can i change color of this texxt

    Page 5 of 116

  26. Taufik says:

    asslamualaikum…
    thank you..

  27. al3arabiya says:

    for all people that face the probelm of disappearance “older posts” “newer posts” you can see the isntruction how to add it back
    http://www.ipietoon.com/2010/02/how-to-fixed-newer-older-post.html

  28. syed jawaid says:

    Salam

    brother blogger has closed the page navigation option
    why ?

    no blog is supporting pag navigation script

    now and how can install pag navigation

    please reply abuuuuuuuuuuuuuuuuuuuuuuuuuuu

  29. Dav7 says:

    I have the same question as acaPAWN7, do I have to change all 3 data:label.url that I find in my blog?

    I did it…

    and I don’t see the hack working on the arquive :\

    managed to change the “Next” and “Prev” to my language (Portuguese), but how can I change the “Page 1 of 4″ text?

  30. Rizki says:

    Assalamualaikum wr wb ABu,
    Blog sy pakai blogger dengan custom domain http://www.sapstudymaterials.com/. Sy tidak pasang widget ‘label’ sehingga tidak ada code ‘data:label.url’. sy udah coba langkah 1 & 2 tp nggak muncul apa-apa.

  31. acaPAWN7 says:

    Salam..

    My custom template has many code, should I replace all of it too?

    • acaPAWN7 says:

      Salam..

      My custom template has many (‘data:label.url’) code, should I replace all of it too?

      P/S: Sorry, the ‘data:label.url’ code didn’t appear in my previous post.

  32. Farhan says:

    Salam

    Brother what do Mean By MAX POST 500 ??

    where will it show MAX POSTS 500
    in the Labels ?

    if i have more than 500 posts in my one label than what shoul i do ?

    Please Discribe what Do you Means By MAX POSTS 500

    THANKS IN ADVANCED

    Please Reply Brother

  33. karaoke says:

    suwun mass saya juga numpang di batam salam sehat mass

  34. syed jawaid says:

    Salam

    Brother what do Mean By MAX POST 500 ??

    where will it show MAX POSTS 500
    in the Labels ?

    if i have more than 500 posts in my one label than what shoul i do ?

    Please Discribe what Do you Means By MAX POSTS 500

    THANKS IN ADVANCED

    Please Reply Brother

  35. Ramiz says:

    Salam brother,

    Unfortunately I’m not having any luck with this page navigation. I had working fine, before with the old easy page navigation widget.

    But ever since I changed the date of my first post. The old navigation script had stopped functioning.

    I tried your new script, but sadly I’ve had no luck still.

    Please check my blog (time willing),
    RA

  36. wisnu says:

    assalamualaikum..
    trimakasih tuk tipsnya, dan berhasil di template blog saya

  37. Syed-Jawaid says:

    Salam

    Brother what do Mean By MAX POST 500 ??

    where will it show MAX POSTS 500
    in the Labels ?

    if i have more than 500 posts in my one label than what shoul i do ?

    Please Discribe what Do you Means By MAX POSTS 500

    THANKS IN ADVANCED

  38. gyant says:

    njajal ahh nek iso barang…lhothong

  39. gyant says:

    njajal nek iso barang…lhothong….

  40. ahmad syah says:

    mas saya udah coba tambah .nomor halaman
    tapiu ngak berhasil ????
    makasih

  41. Yori VT says:

    assalamualaikum..
    it’s work.. perfect.. beautifull and faster than previous page Nav Code.. i really thanks..
    But.. may i remove “widget by abu farhan”?

    ups barusan saya baca codenya.. tapi ternyata..

    gak ngerti TT

    itu bukan javascript kan? ato udah di encrypt??
    hilang sudah niatan untuk ngedit tuh kode..

    tolong dong mas.. dihilangin kodenya..
    agak kurang nyaman makenya..

    ato di hidden kan aja.. kayak kode tag cloud si amanda..

  42. mimi says:

    hi…bagaimana caranya biar bisa d pakai di classic?bisa kasih tau caranya?apa kode nya beda sama yang ada di classic?bisa kasih kode untuk yang i dclassic?thanks…:D

  43. Roziq says:

    Assalamualaikum. Maf sblumny I g ngerti Bhs Inggris so bs bc tp g ngrti mksdnya. Tp intinya I pengen ngedit (Ngisi) pagenav sesuai dg keinginanku, gmn ya cranya. Please sapa ja yg tau tlg kash tau I di immroziq@gmail.com. Makasih!

  44. saya sudah coba kalo langsung mis : http://widescreen-wallpapers-collection.blogspot.com/ bisa keluar, tapi kalo lewat label mis:http://widescreen-wallpapers-collection.blogspot.com/search/label/world%20widescreen%20wallpapers. kok ga mau keluar. knapa ya.langkah2x sudh saya ikuti semua, trims

  45. Dan says:

    Hello I love your blog but is possible to remove your watermark?

    I will be happy to donate to you if you can.

  46. sen says:

    thanks you!!!!!!!!!!!!!!!!!!!!!

  47. No Name says:

    tetep gak iso. sama aja dengan yang trik2 yang laen dak ada yang berhasil.

    copy paste semua sih, coba kalo yang nulis bener2 paham code pasti aja berhasil, kalo cuman copy paste trik seperti ini jadinya sdeperti trik sampah.

    yang bener aja masa di template classic ada code ]]> , yang bener aja. trus ada menu expand template widget’ ini template classic yang mana ?

  48. zblog9 says:

    Hi, I can’t get this page navigation work.
    My blog is http://zblog9.blogspot.com/

Leave a Reply

Copyright 2009 - 2010  Choen