UCHome插件
语言编码: |
GBK简体 |
插件名称: |
天使宠物乐园V6.1完美整合版 |
插件作者: |
|
适用版本: |
|
本帖最后由 stak 于 2009-5-24 10:18 编辑
发表此贴的意义就是让更多的人知道有这么个东西
喜欢的到我的论坛下载免费的
晕了 才想起来 限制了500K
发个下载地址好了 郁闷!!
演示地址:http://98qy.com/pet.php
还点小问题!!希望大家指出!!
关于有人提到白屏的问题是模板部分没修改完整
如果出现白屏 之前安装过得 可以根据下面调整
修改 source/function_common.php 文件
找到
//模板调用
function template($name) {
global $_SCONFIG, $_SGLOBAL;
if(strexists($name,'/')) {
$tpl = $name;
} else {
$tpl = "template/$_SCONFIG[template]/$name";
}
$objfile = S_ROOT.'./data/tpl_cache/'.str_replace('/','_',$tpl).'.php';
if(!file_exists($objfile)) {
include_once(S_ROOT.'./source/function_template.php');
parse_template($tpl);
}
return $objfile;
}
整段修改为
//模板调用
function template($name, $temp1='', $temp2='') {
global $_SCONFIG, $_SGLOBAL;
if (!$temp2)
{
if(strexists($name,'/')) {
$tpl = $name;
} else {
$tpl = "template/$_SCONFIG[template]/$name";
}
}
else
{
$tpl = "$temp2/$name";
}
$objfile = S_ROOT.'./data/tpl_cache/'.str_replace('/','_',$tpl).'.php';
if(!file_exists($objfile)) {
include_once(S_ROOT.'./source/function_template.php');
parse_template($tpl);
}
return $objfile;
} |
|