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

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

  1. taufikdisc says:

    Assalamu’alaykum …

    Syukron Katsiron Mas Abu Farhan..
    Ilmunya berhasil saya terapkan di blog saya..

    Mas Abu..
    apa bisa saya minta izin hilangkan linknya?

  2. Crystal says:

    Thank you for the wonderful widget.

    At first i cant see the widget appear at blog posts and labels. After some exploring, realising that i have to set the blog readers permissions setting to “Allow Anybody” and finally i can see it.

    One thing to take note, if u have already replaced ‘data:label.url’ to ‘data:label.url + "?&max-results=7"’ and u remove the labels widget accidentally, then u have to redo this step again after u put back the label widget.

    Hope this helps some of the readers here :)

  3. jugraj singh says:

    nice widget but its not working on blog pages and label post

  4. Daniel says:

    Hi Abu,

    I have been trying to implement this page navigation for some time using your codes, muhammad’s and other’s too. However one thing is that, the box (the border covering the numbers) is broken. And also, the page navigation is not visible using Chrome.

    You can try visiting my blog to clarify about the problem. At the moment, I am using the 1-click installation from Aneesh.

    I really appreciate if you can reply asap regarding this. You can also email me. I will be waiting for your replies.

    Thank you very much!

  5. sizar says:

    salam,
    i tried all kinds of the page navi codes on the web.. NO one works for me.. even urs abu
    i dont know whats the prob exactly ..
    may you give me some help? i realy need this code in my blog , i have more than 5000 posts in there , and it will be fine for me if it work for the last 500 posts..
    iza betreed abu far7an, nater mennak jawab.

  6. daniel says:

    here did not!

  7. jorge afonso says:

    abu hello, I wonder how you have put an image
    background on the page navigation

  8. mohamed says:

    from all the page navigation in the web yours is the best
    tanks & tanks

  9. bewhh says:

    keren abis postingannya …

  10. m.hariyanto says:

    Assalamualaikum

    Alhamdulillah, berhasil
    terimakasih
    saya tunggu karya karya fantastis lainnya

    Wassalamualaikum wr.wb.

  11. Fahmi Zolla says:

    Maaf kang abu,, saya mau sedikit edit scriptnya yah … terima kasih

  12. Fahmi Zolla says:

    So cool mr. abu farhan. haha

  13. ranjith says:

    sir the js is not working please help me

  14. boffin says:

    Dude the javascript link for the following file is nt working since the last 2 days..kindly rectify-

    http://all-in-one-blogger-widget.googlecode.com/files/pagenaviv202-min.js

  15. iwan ajah says:

    I can’t find this code. where?
    ‘data:label.url’

  16. Mr.O says:

    Hi again Abu the page navigation has just disappeared Ive tried installing it three times now and still its not returning please help.

  17. [...] que puedan trabajar y hacer que tu blog fácil de navegar, Amiin Este script original es gracias a http://www.abu-farhan.com [...]

  18. Prash says:

    Hi Abu..

    I have done all the things step by step…My site is also having Blog-pager ID but then also this one is not working for me..

    and widget by annesh (bloggerplugin.org) is working..

    Pls help me out…

  19. Mr.O says:

    Hi Abu ive got another issue now that I have installed the page nummber navigations why is it that when I go directly to the page via Navigation Menu on the left the page number navigation is no longer there at the bottom.

    Please get back to me regards

  20. As Salamo Alaikom wa rahmatollah

    Akhi, I need your help. I just can’t make it to word on my label pages. I’ve managed to cut a number of posts (replacing data:label.url) to my desired posts but pagination just doesn’t appear on labels.

    You can check it on this post – http://www.islamskeknjige.com/search/label/Amr%20Halid?max-results=8

    There is 14 posts on that label, I’ve made it to show max 8 posts but it still displays newer/oldest.

    Can you please check it and see what I’m doing wrong ? I can send you template html if that’s better.

    I’m not using your code now since I’ve added other one earlier and would need to change all css for it but I’ve checked it with your code and it still wouldn’t display pagination on label pages.

    JazzakAllah khair

    Almir

  21. Wildan says:

    abu farhan, my navpage can not show . . . . .

  22. Lucas says:

    Olá essa dica foi muito util, tive que modificar algumas partes do codigo mas ele está funcionado perfeitamente, abraços de um de seus leitores do BRASIL!

  23. aml says:

    This is awesome.. What a great tutorial and its really work on mine. Thanks a lot.

  24. Fernando says:

    BISMILLAH

    ALHUMDULILLAH

    ABU-FARHAN

    THANK YOU SO MUCH FOR THE INFORMATION, FROM TRINIDAD AND TOBAGO. I HAVE FOLLOWED ALL THE STEPS BUT THIS IS NOT FUNCTIONING IN MY BLOG.

    WOULD YOU MIND HELPING ME PLEASE. IT IS TOO IMPORTANT THAT IT COULD WORK BECAUSE I NEED TO APPLY THE SAME IN ANOTHER ONE. THANKS IF IT POSSIBLE YOU CHECK MY CODE.

    BISMILLAH

    ALHUMDULILLAH

    FOREVER !

  25. Hi Abu-farhan, this tutorial is absolutely great!, may I upload the script to other host and edit some lines?.
    Regards!

  26. Abdulrahman Ishaq says:

    Thank you abo-farhan, this is great job
    am asking permission to do some edit:
    1- to upload the script to my own host.
    2- to edit the “Widget by Abu-farhan” to “by Abu-farhan”.

  27. mamalkay says:

    salam-o-alaikom
    i am from iran
    many thanx for this.
    i searched a lot on google & allblogtools.com with lovly max, but none was working and finally i found yours.
    in finally it is work.
    thanx,thanx,thanx
    10 million thanx
    God protect you.

  28. [...] Page Navigation Ready [...]

  29. thanks so much for the navigation bar. i love it. if you have time can you show me how to stop the tops of the numbers from being cut off. See my page. thanks soo much

  30. dr.cinta~ says:

    thanks ~ nice =) i use it~

  31. bhavin says:

    many thanx for this.
    i searched a lot on google, but none was working and finally i found yours.

    a question i have,
    you have written that 500 post limitation has been solved, so will it work for unlimited posts ???

    Thank You once again !!!

  32. dwi isnein says:

    OK, clear about my problem,
    but any title widget with your name.
    it’s bad for looking.
    so how i can remove the title?

  33. dwi isnein says:

    hi abu..not working after i try it.
    so what other problem??
    my older post (default) still have,
    and Page navigation don’t have

  34. Kang ismet says:

    Nafa’anallahu bi ulumikum…
    Banjarkah? sudah nda pake di web nda.

    Keep working bro…

  35. art says:

    when i save template it’s shows me this:

    The element type “html” must be terminated by the matching end-tag “”.

    where is this?

  36. acapz says:

    salam.

    can u look at my blog why it become like that?. it seem the font “page 1 of 55″ show at right.
    btw your script it cool. nice =D

  37. romeo v says:

    would be nice to add some pictures to understand better, plis … thanks!

  38. Ram says:

    Farhan bhai…excellent

  39. Sunny says:

    Hey buddy… you just made my day….
    Thnx again for this widget…

  40. Sunny says:

    Hey nice work…. u just made my day

    -http://funktm.blogspot.com

  41. [...] Numbered Page Navigation For Blogger New Script [...]

  42. Anshul Dixit says:

    Asslam Waalekum bhaijaan

    I am using your page navigation widget in my blog. Uptil now it was working fine. But when I installed LinkWithin widget, then from 2nd page onwards it is not being displayed correctly. Please see it for yourself at my blog http://www.KnowledgeHub.co.in. There navigate to 2nd page or any other page. You’ll see the problem for yourself.

    Please help me in resolving this problem.

    Thanks.

  43. Mr-Top says:

    Very Nice….

  44. Hasrul says:

    It’s not working for me.

    The code just showing the title of the post, not the contents of the post.

    After clicking the title, it will show the contents of the post BUT
    the paginate gone!

  45. Sujeet says:

    Is there any way to NOT SHOW page navigation on Home Page??

  46. Hadie Danker says:

    Jazakallah bikhoyr ya akh…

  47. Devy Online says:

    Alhamdulillah…Abu memang TOP…makasih ilmunya

Leave a Reply

Copyright 2009 - 2010  Choen