Share my knowledge, feel my life. Eric Shan' Blog myBloggie 2.1.6 © 2005   
Mar 2025 April 2025 May 2025
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30    
Categories
About[5]
Blackberry[1]
dotNet and C Charp[1]
IPhone[10]
Life[4]
Unix&Linux[19]
WEB programming[16]
Windows API[5]
Windows Mobile[1]
Windows Multimedia[4]
Recent
CentOS mount CDrom and USB
CentOS GHOST(幽灵)漏洞修复方法
centos 改变语言并立即生效
centos vpn 接通后无法连接internet
让vlc播放中文字幕不出乱码
centos 取消屏保
php中ob_flush和flush的用法
CentOS检查,添加,删除自启动服务
CentOS中开机自动启动某个服务
Top命令中的翻页
Archives
February 2010[4]
September 2009[1]
August 2009[1]
January 2009[7]
October 2008[10]
June 2008[2]
December 2007[14]
November 2007[5]
May 2007[9]
April 2007[3]
March 2007[10]
User List
Eric Shan[66]
Search
Syndication
21 Nov 2008 02:59:13 am
Fix MyBloggie 2.1.6
In MyBloggie 2.1.6, it has a problem that when user click the Next page in the right end corner of the Homepage, the "Next" page did not show anything.

Checked the source code, looks like the index.php plus the parameter of "viewlist" is no longer exist in the handle list, so I test add a new "view" parameter, and let it do remove the parameter of "mode", this will make the index page think it was just has no Mode set.

What I did the change is,

1. In blog.php, change as below:

Code :

//$pagination = pagelink("viewlist", $pageno, $bloglimit, $numrow);
$pagination = pagelink("view",$pageno, $bloglimit, $numrow); // change to this


2. In index.php, change as below:
Code :

if ($right_menu){
if (isset($mode)) {
switch ($mode) {
case "viewid":
include 'view.php';
$search = false ;
break;
case "viewdate" :
include 'viewmode.php';
break;
case "viewmonth":
include 'viewmode.php';
break;
case "delcom":
include 'delcomment.php';
$search = false ;
break;
case "editcom":
include 'view.php';
$search = false ;
break;
case "viewcat":
include 'viewmode.php';
break;
case "search":
include 'search.php';
break;
case "viewuser":
include 'viewuser.php';
break;
case "view": //add this
unset($mode); //add this
break; // add this

default: include($mybloggie_root_path.'blog.php'); break;
}
}

......

if ($right_menu){
if (isset($mode)) {
switch ($mode) {
case "viewid":
include 'view.php';
$search = false ;
break;
case "viewdate" :
include 'viewmode.php';
break;
case "viewmonth":
include 'viewmode.php';
break;
case "delcom":
include 'delcomment.php';
$search = false ;
break;
case "editcom":
include 'view.php';
$search = false ;
break;
case "viewcat":
include 'viewmode.php';
break;
case "search":
include 'search.php';
break;
case "viewuser":
include 'viewuser.php';
break;
case "view": //add this
unset($mode); // add this
break; //add this

}
Category : WEB programming | Posted By : Eric Shan | Comments [0] | Trackbacks [0]
Trackbacks
The URI to TrackBack this entry is :
http://blog.tntsoft.com/trackback.php/32
Comments

Add Your Comment

Subject

Comments

Name

Email Address (Optional)

Home Page (Optional)

Security Code

Please enter the security code as displayed :



Template theme : aura
Powered by myBloggie Copyright © 2004 2006
-- myWebland --

Sponsed by TNTSoft Store