MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
Error in Pagination System Blog
AuthorText
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 08/06/2010 14:23
Error in Pagination System Blog
#post24046
Site url: http://www.alcanedefreguesia.com
MemHT version: 4.0.1
Hosting OS: Linux, Windows
PHP and MySQL versions: 5.0.9
Installed addons/scripts: 5.2.12
Error/Problem:

Hello to all again.
I found a problem in paging Blog within the categories in which I can not solve, need help here.

Look at the Problem:

When you access the blog page normally (www.mysite.com/blog.html) without entering into any category, pagination 1, 2, 3, comes to work perfectly together with the Rewrite mode and will then /blog_1.html, /blog_2.html, etc.

However, if you do it within a specific category of the blog, paging already crashing, as if the Rewrite not exist.
Pagination should make the links like /blog_category_1_TESTE_1.html, /blog_category_1_TESTE_2.html and etc. But what has happened with the pagination is the entire link, which ends up giving error on page and will then /index.php?Page=Blog&category=TEST&pg=1, /index.php?Page=blog&category=TEST&pg=2 and so on.

Someone found a solution to this problem?

I suspect the problem is occurring on the page /pages/blog/index.php between the lines 153~172, which contains:

code
                        $tpl->assign("tpl_blog",$tpl_blog);
                       
                        //Pages
                        $path = "index.php?page=blog";
                        if ($category!="") { $path .= "&category=$category"; }
                        if ($year>0) { $path .= "&year=$year"; }
                        if ($month>0) { $path .= "&month=$month"; }
                        if ($day>0) { $path .= "&day=$day"; }
                       
                        include_once("inc/class/paginationSystem.class.php");
                        $ps = new paginationSystem();
                        $ps->items = $ofsppg;
                        $ps->actpg = $pg;
                        $ps->query = $query;
                        $ps->url = "{$path}&pg={{N}}";
                        $ps->show();
                } else {
                        echo "<div align='center' id='errorText'><b>"._EMPTY_."</b></div>";
                }


..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
Reply
Tags blog
Twitter updates...
MemHT Wiki
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.234

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo