Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

PowerEasy 2006 SP4 Access => SupeSite 5.0.1转换程序

 关闭 [复制链接]
 楼主| 僭燮水 发表于 2006-12-29 23:13:30 | 显示全部楼层
时间的问题我来再看看程序
我记得我是处理了 个人测试也通过了

我再看看是什么原因
~~·
:) :)
回复

使用道具 举报

xingqq 发表于 2006-12-30 13:40:37 | 显示全部楼层
似乎"转换后原有图片的文章链接都有[InstallDir_ChannelDir]{$UploadDir},无法显示图片"
这个问题不知道是个别的还是怎么回事?
=========================
如果水水兄弟测试正常的话,难道问题是出在我们都是从以前的版本升级到SP4和水水直接使用SP4全新安装的有区别?
回复

使用道具 举报

 楼主| 僭燮水 发表于 2006-12-30 14:04:01 | 显示全部楼层
update  `supe_spacenews` set message=replace(message,'src="[InstallDir_ChannelDir]{$UploadDir}/','src="Article/UploadFiles/');
用这句  在MYSQL中运行
回复

使用道具 举报

xingqq 发表于 2006-12-30 15:15:55 | 显示全部楼层
呵呵,刚刚找到答案,到论坛来一看,水水已经先一步了,呵呵
不过好像要
update  `supe_spacenews` set message=replace(message,'src="[InstallDir_ChannelDir]{$UploadDir}/','scr="attachments/pe/Article/UploadFiles/');
回复

使用道具 举报

 楼主| 僭燮水 发表于 2006-12-30 22:09:01 | 显示全部楼层
原始短消息: PE->SS时间转换
今天自己写了一个时间转换函数:没有对PE的时间进行字段判断,因为表中的格式都是2006-12-12 16:20:41这个格式的,
function acctimetounixtime($time) {
        $dt_elements = explode(" ",$time);       // 将字符串分解成2部分-日期、时间
        $date_elements = explode("-",$dt_elements[0]);           // 分解日期  
        $time_elements = explode(":",$dt_elements[1]);           // 分解时间         
        $unixtime = mktime ($time_elements [0], $time_elements[ 1], $time_elements[ 2], $date_elements[1], $date_elements[2], $date_elements[0]);
        return $unixtime;
}
在pe2006sp4-ss501.php文件中的$fieldarray = array(.....);加入了'UpdateTime'          //用于读入PE的时间
然后$query1上面一行加了$dateline = acctimetounixtime($article['UpdateTime']);    //格式转换
更改了$query1的VALUES,       //插入UNIX时间戳
不知道我这个做法是否正确,应该是有问题的.
结果还想也没有什么作用,可能是调用的时候有点问题,不太了解那个转换程序结构,^_^刚学PHP不久,
不过我发现在pe2006sp4-ss501.php这个文件中好像有点问题呀!
$query1        = "INSERT INTO {$discuz_tablepre}spaceitems (`itemid` , `catid` , `uid` , `tid` , `username` , `itemtypeid` , `type` , `subtype` , `subject` , `dateline` , `lastpost` , `viewnum` , `replynum` , `trackbacknum` , `goodrate` , `badrate` , `digest` , `top` , `allowreply` , `hash` , `folder` , `haveattach` , `grade`) VALUES ('$articleid', '$catid', '1', '0', '$username', '0', '$type', '', '$subject', '', '$viewnum', '0', '0', '0', '0', '0', '$digest', '$top', '1', '', '1', '0', '$grade');";         
在VALUES参数$subject', '', '$viewnum',这个中间应该有两个字段dataline   lastpost而在'$viewnum', '0', '0', '0', '0', '0', '$digest'中应该只有四个字段replynum         trackbacknum         goodrate         badrate,而dataline   lastpost这两个字段应该就是文章的相关时间字段吧.


上面是一位朋友给我的PM
真的很感谢他
同时由于我现在手头没有测试数据
而且星期天还有门考试
要看现代企业管理~~

所以只好星期一再开始对转换程序进行修改
目前先做了个修改的版本
没有进行过测试
先放出来 大家试试
我会努力完成这个转换程序的~
回复

使用道具 举报

xingqq 发表于 2007-1-4 14:39:18 | 显示全部楼层
30号的测试版,我已经测试了,可以用了,到此,这个转换程序我个人感觉已经比较完美了
回复

使用道具 举报

fourth 发表于 2007-1-6 04:46:48 | 显示全部楼层
期待更完美的版本,可以实现以下功能:

1.不清空原有论坛内容,可跟原来的数据合并

2.可以转换会员,并且会员名相同时做一定的处理
回复

使用道具 举报

zaomeng 发表于 2007-1-8 13:38:19 | 显示全部楼层
转换数据到第2步的时候出现以下错误:
Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81

Warning: mktime(): Windows does not support negative values for this function in D:\website\vi21.cn#fheuwkjk\111\convertinc\functions.php on line 81
回复

使用道具 举报

 楼主| 僭燮水 发表于 2007-1-8 20:29:08 | 显示全部楼层
这个错误是由与日期范围超过函数支持的范围

可能是您的时间段超过范围了

这个如果不管它的话 还是可以继续转换的
可就是文章的日期有点问题

我正在查找原因 修正
回复

使用道具 举报

ashu913 发表于 2007-1-8 22:26:18 | 显示全部楼层
有没有sql的转换阿    我想要转换
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-15 10:09 , Processed in 0.033629 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表