114啦网址导航建站模板bug修复方法
时间:2011年07月14日作者:么吉查看次数:111 views评论次数:0
最近在研究网站导航(网址大全)的114啦网址导航建站程序,但是发布三级网站点击是报错。版本为 V1.15。其它的版本没有测试过。
114la导航模板,点开三级分类后,出现的页面内容如下:
———————
Warning: Smarty error: unable to read resource: “class_header.tpl” in D:\wamp\apps\daohang\upload\admin\modules\smarty\Smarty.class.php on line 1114
Warning: Smarty error: unable to read resource: “class_body.tpl” in D:\wamp\apps\daohang\upload\admin\modules\smarty\Smarty.class.php on line 1114
Warning: Smarty error: unable to read resource: “class_footer.tpl” in D:\wamp\apps\daohang\upload\admin\modules\smarty\Smarty.class.php on line 1114
——————–
上网搜索了一些方法,如下是解决方法:
第一步:打开admin\modules下的 mod_make_html.php 的文件,查找
/**
* 生成4级分类 HTML
*
* @param int $cid
* @return string
*/
找到其后面的
1 | $path_tpls_main = PATH_TPLS_MAIN . '/' . $dir_tpls_main; |
将其修改为
1 | $path_tpls_main = PATH_TPLS_MAIN . '/' . $dir_tpls_main . '/class'; |
// —— 找到以下代码删除
1 2 | app_tpl::$instance->compile_id = mod_config::get_one_config('yl_dirtplmain'); $output .= app_tpl::fetch('class_header.tpl', $path_tpls_main); |
第二步:
查找
1 2 3 4 | /** * 您的位置 */ app_tpl::$instance = null; |
将其改为
1 2 3 4 | /** * 您的位置 */ //app_tpl::$instance = null; |
第三步:查找以下代码并删除
1 2 3 4 5 6 | /* * 取得主体页尾 */ app_tpl::$instance->compile_id = mod_config::get_one_config('yl_dirtplmain'); $output .= app_tpl::fetch('class_body.tpl', $path_tpls_main); app_tpl::$instance = null; |
第四步:查找
1 | $output .= app_tpl::fetch('class_footer.tpl', $path_tpls_main); |
将其删除,并在其后面添加
1 2 | $template = empty($class_list[$cid]['template']) ? 'class.tpl' : $class_list[$cid]['template']; $output .= app_tpl::fetch($template, $path_tpls_main); |
保存。至此,此BUG修复完毕。起码我现在用的V1.15版本没有问题.
————————————————————–
方法二 :
可以下载我修改好后的文件直接覆盖就可以了. 下载下面的文件解压到 admin/modules 覆盖原来的文件 mod_make_html.php
文件 : [ mod_make_html.php ]


最新评论
我在调出这个窗口的时候,暂停了我 »
Post:2011-11-29 19:31:02出8.0.5了,能否做一下破解呢? :mrgreen:
Post:2011-11-10 17:05:58回来看看等DbVisualizer 8.0 新版 »
Post:2011-10-10 19:20:21:twisted: 不麻烦的话,能否能做 »
Post:2011-09-05 16:10:59你可以到hostloc去找IDC,很多。 X »
Post:2011-08-28 12:37:23我不知道你的网站的是IP与PV是多少 »
Post:2011-08-28 00:27:40vpsyou的口碑实际上好于brust,我 »
Post:2011-08-27 21:18:48我前段时间就已经知道有8.0.2的版 »
Post:2011-08-27 14:30:48