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: Blogger Tricks, Featured, Page Navigation

Tags: ,

Abu Farhan

I'm an Owner of this blog and it's always been a passion of mine to write about Blogger. I like to make original script for blogger. I also run the awesome Website at The Best Lists.

Enjoyed this Post?

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

Donate towards my web hosting bill!

Trackback
Leave a response

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

  1. doaib says:

    What about my request brother abu farhan? :)
    http://bit.ly/5ubH1T
    If its hard to do, then we ll use it as it is?
    Thank you for your great codes!

  2. Dedew says:

    Assalaamu’alaikum..
    Blog wallpaper saya jadi semakin teroptimasi berkat script ini. Terima kasih banyak…

    Bolehkah saya publish ulang cara ini di blog saya? Tentu saja credit dan live link untuk Anda tetap saya sertakan.

  3. duadua says:

    eh, om..
    apa ni script bentrok sama tag cloud cumulus ya??

  4. Yafiz says:

    Assalammualaikum, Alhamdulillah, I used this widget with Falknertree template, these work all fine. Please visit and see how they’re work in my blog: http://www.yafiz-syam.blogspot.com. I appreciated, sukron katsir!!!
    Wassalam.

  5. duadua says:

    om abu, kagak bisa om..
    padahal dah persis sama langkah2nya..

  6. tikno says:

    assalamualaikum kang abu…..

    Kang, ane mau page navigation scriptnya di semua template yang aku convert. Tapi bisa ngak kalau link blog ku dimasukkin ke scriptnya????

    Saya tunggu jawabannya kang.

    Assalamualaikum

    tikno

  7. BTP says:

    thank abu……

  8. thanks for your solusion.,1 agains thanks

  9. Pierre says:

    Hello!
    Thanks for the code! It looks great on my blog – but I have a small problem with the label fix.

    I followed your instructions but when I click on a label your widget doesn’t show until I’ve clicked “Äldre inlägg” (Older posts). How can I solve this?

  10. Faiz says:

    bro,tidak mahu pon.

    selepas steps 2,nak save dlu ke ape?
    saya mahu buat labels, dan mahu tick expand widget widget…tidak dapat.
    gimana ?

  11. Arief says:

    Minta izin menggunakan halaman navigasi di bloggku

  12. ZaaRz says:

    Abu farhan… still waiting for ur response on my comment above.. (how to install this hack in aspire blogger template..)

    • ZaaRz says:

      Salam,

      Saya dah doload template aspire tersebut dan ianya berhasil. Setelah dicomparekan coding aspire template yang ada page navigation dan my current aspire template, tak dapat bezakan mana satu code yang telah ditambah. T_T

      Sebolehnya, saya ingin guna my current template sebabnya dah banyak hack lain yang telah ditambah seperti sidebar ketiga, disqus comment system etc. Bolehkah saudara Abu Farhan menginstallkan page nav tersebut di dalam template aspire saya sekarang saja?

  13. na_raka says:

    i’ve tried it, but not run in my blog. sorry my english so bad (SMP) :)

  14. na_raka says:

    assalamualaikum Wr.Wb. thanks ohm. i need it. it’s veryusefull for me…. :)

  15. tihang says:

    sayang bahasa inggris saya cetek, aduh…, gimana nih.

  16. Helen says:

    Don’t worry… Have just read your post for the old page nav and now I understand what the label code is for. And that I need to add that ‘max results’ code for every instance of label URL. Thanks very much. Great work.

  17. Helen says:

    Hi Abu,

    Thanks for this – been looking all over for decent pagination!

    Can you tell me what this code is for? What happens if I don’t add it?:

    ‘data:label.url + "?&max-results=7"’

    I have that ‘data:label.url’ text at 3 points in my template. Is it meant to go in the post-footer-line div?

    Thanks!

  18. gibol says:

    Wah ternyata mudah di terapkan yach tp ada link ke website ini yach tp g pa2 dech tdnya sih pgn di apus tp setelah di pikir2 ky buat amal juga dech buat bloger lain spy bs mampir ke website abu farhan ini ky si empu website ini ikhlas kok memberikan ilmunya knp kt tidak memberikan balasannya iya gak..cr memberikan imbalannya yach dg membiarkan link yg menuju website ini n juga blog ini no ads men ana salut dech..g mana cr bayar buat sewa domainnyanya yach kheeeee

  19. Aliavera says:

    Trims Kang… tp ko cm trlihat page 1 yah? bgmn caranya mmbuat page2 yang lain? trims b4…

  20. muns says:

    Assalamu alaikum wr. wb.

    Thank you for your great widgets! I use it for my blog

    Wassalamualaikum.

  21. asalamualaikum…hehehe…mantab neh…tapi masih belum berhasil…masih aja ga mau nampil page nav nya…tapi saya tidak akan menyerah..makasih abu tutornya sangat bagus.

  22. Esydownloads says:

    So this is not working in my Blog ?

  23. pengembara says:

    Alhamdulillah..

    sangat membantu! jazakallah ya akh..
    teruskan memberi info yang bermanfaat :)

  24. Fernando Ferreira Passe says:

    I would ask permission to translate the script to Portuguese of Brazil and republicalo on my blog but without removing the credits

  25. winlin says:

    MAsha allah brother , very nice widget
    May allah reward you

  26. ZaaRz says:

    does this hack support for my aspire blogger template ? I already follow ur instruction, but the page navigation still not appear… help me.. thanks~

  27. ZaaRz says:

    Why it doesnt work in my testing blog ?

    My testing blog is, http://www.zaarz87.blogspot.com

    Hope u wiling to help me fixing this problems.. thanks in advance..

    • admin says:

      Your test template don’t have blog-pager id, you have to add Blog-pager id by your self. and you put two page navi script in one template

      • ZaaRz says:

        Assalamualaikum Mr Admin @ Abu Farhan,

        So how to solve this ? how to remove my old page navi ? and what is blog-pager id? i dont know much about html coding, can u teach me in order to add / install blog-pager id and ur beautiful page navigation ? Im looking forward for ur reply.

        Thanks.

        • admin says:

          Wa’alaikumsalam

          Ok maybe on saturday I’ll try your Aspire template for this page navigation, because I still busy until friday.
          Insya Allah I’ll try that Template to apply Page Navigation.

          • ZaaRz says:

            could u give ur current email so that it easy for me to send my template for u. ? Yup, aspire template.. kinda hard to modified this template… (for beginner like me).. Anyway, thanks in advance…

  28. Aneesh says:

    They look simply superb.. congratz dude..

  29. Kent says:

    Assalamu’alaikum, Alhamdulillah …. I am here again to confirm that I have fix the script, and your link has been placed there. I apologize if I had forgot it. I’ve placed your link on my sidebar, too. I hope this can solve the inconvenience. Once again, thank you very much for your permission you have given. You are the best.
    Wassalamu’alaikum …..

    • admin says:

      Wa’alaikumusalam warohmatullahi wabarokatuh
      Alhamdulillah, I like if someone confirm me first, I’ll allow them for doing that. Thanks for that link.

  30. Kent says:

    Thank you very much to Mas Farhan. Alhadulillah..it’s worked properly on my other blog (http://freegamezones.blogspot.com/). But I’m sorry, there, I’ve removed your credit link, may I? I promise that it’s just only for mine, and I’ll not share it for others. OK?

    • admin says:

      ok its good if you confirm about that, but don’t remove Credit name in js file(top 3 lines before the script) . If you want you can add my link to your link sidebar its better.

  31. esydownloads says:

    i tired from the numberd page navigation system
    this is not working properly in my blog
    i post 1–25 post in my testing blog .i set 6 post per page
    & use this navigation it shows me
    25–20 0n first page
    11–2 second page
    1 on the last page

    i tried more than 10 time but not suucesful
    son any help from u for my blog

    thx

    http://esydownloads.blogspot.com

    my testing blog

    http://yadavtest.blogspot.com

    • admin says:

      The problem usualy because custom Template not follow All id or class is default from Blogger . Usualy problems because you don’t have id=”blog-pager”. In your test blog I can’t open because so many widget maybe. I only guessing problem of your test blog because you post less than 1 minute(this not happen in real blog) .

  32. Hussain says:

    Assalam Alaikum bhai. I am using ur google style page navigation hack on my blog. Will it work fine, if posts exceeds 500? please reply me soon.

  33. Black Pulsy says:

    Assalamualaikum,

    Mr. Abu, need permission for add to my post.

    Thanks.

  34. anshul says:

    Assalamualaikum bhaijaan,
    once again u r back with a wonderful widget… its working great on my blog..thanks a lot…

    can you tell how to show limited number of posts on blog archive page also, just as we did in labels page ??

  35. Thank you — this works! I like it and I really appreciate your work, but … your “big” misaligned credit under the page navigation looks ugly. Is it really necessary to make us link to your site just to use your widget?

    • admin says:

      yes, that for any blogger that want to use this kind of Page Navi, I made this free to use and nobody pay to me, I hope it can use for everyone.

      I think any blogger that made widget put their credit also, bloggerplugins, bloggerbuster and Mohemmad Rias you can check to their blogs.

      for Previous page navi hack I not put credit because I only modify and at mohammad rias blog he put credit for his blog.

  36. sulltan says:

    thank u … Its working fine .Masha Allah its working fine

  37. kibastos says:

    Oh! Many thanks for your widget))

  38. tikno says:

    wah….ane pake pagenavigation versi sebelumnya kang abu…..yang ini lebih maknyus…ane bookmark dulu ah.

    Salam

  39. asep canda says:

    makasih infonya sob berguna banget buat aku

  40. ipenk says:

    saya sudah coba sob tapi kok cma munculnya di IE gag bisa di MF

  41. BEBEN says:

    doh adoh…makin menggelitik nih page navigationnya….ihohihohiohioh

  42. doaib says:

    Assalamo 3alekom wa rahmato’llah
    Thank you brother Aby Frhan for all your great widgets!
    This one is really helpful and powerful.
    But i have a request that will make it popular for RTL language too, so can you make a version that count from right to left and print the showpageOf in the right side …?
    if done I’ll post about it so much brothers may appreciate your great work.
    Thank you and sorry for my bad English it still beta :)

  43. saleem says:

    Hi Abu,
    It has a Small Bug..
    1 2 3 4

    if you open these 1 to 4 on in other tab by clicking open in new tab by a same page,it will not take to that page number and stay on same page in all 4 window.

    please look into it.

  44. Hola soy un usuario spanish de peru mi pregunta era que si la paginacion se puede crear en webs que superan los post pues mi web supera los 1000 post de tematicas y ninguna `paginacion funciona

  45. thangaraju says:

    one more request i want code for photo gallery slide for post blogger post..

  46. saleem says:

    Yea how to remove bellow widget by.
    Thanks for the widget.

  47. Denny says:

    this one? OK, ill try.. thanks bro..

  48. ireng_ajah says:

    makin banyak pilihan page paginationnya. Kalo seumpama jumlah postingan lebih dari 500, kode pagination ini tidak bisa digunakan??

  49. thangaraju says:

    am not getting page navi bar..

  50. thanks you, i will test it in my blog en sha’a allah

  51. Ip4s says:

    buy hair extensionsfresno churchame Biram Diouf, who scored twice for the reserves in their win over Fulham on Monday night, but Jonny Evans and Patrice Evra shrugged off hip and knee knocks picked up at Bolton on S

  52. Ip4s says:

    video chatski property 4 vallees
    fiscal consolidation plan that Congress and the administration recently agreed to falls short of what, in our view, would be necessary to stabilise the government’s medium-term debt dynamics.

  53. Ip4s says:

    Soirée jeux olympiquesHouses For Sale in Etobicokepecial. In the future, there might be other LE and things that can only be obtained if you post there. Membercard collectors, keep that in mind and post a comment there, if you haven’t done it already. **Note that it’s sticky.
    **Sometimes another sticky thread will appear

Leave a Reply


five + = six

Dbestlists Dbestlists

Copyright 2009 - 2010  Choen