September 14th, 2009
All Posts For New Script of Page Navigation for Blogger
- Numbered Page Navigation For Blogger New Script
- Beautiful New Page Navi For Blogger With Scroll
- Five Styles Page Navigation for Blogger New Script Part 2
- Five Styles Page Navigation for Blogger New Script Part 1
- Six Styles Page Navigation for Blogger
- Page navigation for Blogger with Google style using New Script
Bismillah, Alhamdulillah, after some of my json hack for blogger. Now, I’ll try to solve most need hack for blogger is Page Navigation for blogger. Actually this hack I solved 2 months ago, but I’m not make tutorial for that because to explain this hack very difficult.
If we search about Page navigation for blogger will found to the author Mohamed Rias
Tutorial for Page Navigation for blogger by Mohamed Rias :
I think this hack is the best Hack for blogger because useful and use for many blogger
If we check all comments from many tutorial about this so many question said that it can’t work :
For my Script I used same script from Mohamed Rias (Jazakallahu khoiran ya akhi) but I modified some places.
Now I tried to solve by simple problem first, Page navigation not show, This problem because :
- Domain name in first script use only for blogger and Amanda give explanation about this , but in my script no need to change for this problem.
- No id name ‘blog-pager’ , to solve this problem you have to change the script base on your ID in blog-pager because some template that not original from blogger they change id name.
Now I’ll explain what is the problem for advanced user. They found these kind of problems :
- If we post more than one post in same day, navigation can’t show right result. They solve by only post one post in one day. But it will problem for someone have many post in previous posts and they post more than one in same day, problem because previous hack only use Date not until Time (Insya Allah this problem Solved in my script).
- Label problem, if we click the label it will show more than maximum post per page (problem is from blogger.com), If you want know why it can’t solved that problem because Label have different JSON feed (In my script this problem solved insya Allah)
Explanation what I changed inside the script :
- Var timestamp , Prev hack only count Date not time, the problem occur when many post in one day.
- Separate JSON link and Function script for Page and Label.
- Make Max Post for Label.
Follow All tutorial in this post because the script is different from original script. CSS is same with previous hack.
Now tutorial to use my script, I’ll use tutorial from Mohamed Rias
Step 1 : Log in to your blogger account and navigate to Layout section. Now go to the edit HTML subtab.
Step 2 : search this line ]]></b:skin> and add this CSS code above that line.
It must look like this :
(Picture source from Mohamed Rias)
Step 3 : Now search for this code or related in your template ( no need to expand widgets )
<b:section class='main' id='main' showaddelement='yes' > <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/> </b:section>
Now Add This script just below the </b:section> .
if you can’t find you can search (ctrl+f) by this key ” id=’main’
Now Add This script just below the </b:section> .
Or if Difficult you can put before closing body tag
My Modification Script already solve the problem for Post more than one and Label Problem.
In the code above you can edit this line only :
1 : var pageCount = 10;
The Pagecount represents number of posts to be shown in single page. Change the digit to show as many pages you want.
for example :
In my example I have put that value as 10 . In each page you can see only 10 posts .
The number have to same with your setting
The picture show from Setting –> Formatting –> Show –> 10 posts
2 : var displayPageNum = 6;
here the digit 6 represents number of pages to be listed.
For example :
In my example I have chosen 6 , then 6 pages will be shown.
Tutorial from Mohammed Rias only stop here, But for my script have to add modification for label link
Modification Step for Label :
Step 1 : Add Label Gadget (Layout –> page elements –> Add Gadget –> Select Labels)
Step 2 : From Layout –> Edit HTML . Don’t Forget to backup your template (Download Full Template)
Step 3 : Search this
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a>
Change to this And Click “save template”
Finished, I hope it can work and This is Demo :
Note : If Some blogger one to make Tutorial in their own blog, please give link to my blog (Abu Farhan) or Mohamed Rias to appreciate our work for this hack, and for me Insya Allah I can give some explanation if error or can’t show for the user.
Related Articles :
- Page navigation for Blogger with Google style using New Script (28)
- Five Styles Page Navigation for Blogger New Script Part 2 (43)
- Five Styles Page Navigation for Blogger New Script Part 1 (45)
- Numbered Page Navigation For Blogger New Script (400)
- Six Styles Page Navigation for Blogger (91)
- Beautiful New Page Navi For Blogger With Scroll (205)
- Page navigation for Blogger with Google Style (63)
PLEASE DONATE MY BLOG