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>";
} |