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

 找回密码
 立即注册
搜索

home 的 哪个函数是进行 转换 html的

[复制链接]
caihuoyan 发表于 2009-10-12 20:47:04 | 显示全部楼层 |阅读模式
<div>内容</div>


转换为   内容 显示的

是哪个文件里的 函数了
回复

使用道具 举报

 楼主| caihuoyan 发表于 2009-10-12 21:00:42 | 显示全部楼层
if($list[0]['isthread']) {
                $thread['content'] = $list[0];
                include_once(S_ROOT.'./source/function_blog.php');
                $thread['content']['message'] = blog_bbcode($thread['content']['message']);
                unset($list[0]);
        } else {
                $thread['content'] = array();
        }

        //分页
        $multi = multi($count, $perpage, $page, "space.php?uid=$thread[uid]&do=$do&id=$id");

        //访问统计
        if(!$space['self']) {
                $_SGLOBAL['db']->query("UPDATE ".tname('thread')." SET viewnum=viewnum+1 WHERE tid='$id'");
                inserttable('log', array('id'=>$space['uid'], 'idtype'=>'uid'));//延迟更新
        }

        //实名
        realname_get();

        include_once template("space_thread_view");

上面是  space_thread.php 显示话题内容的代码

$thread['content']['message'] = “<div>内容</div>”;
将刚才的$thread['content']['message'] = blog_bbcode($thread['content']['message']); 改为上句,可以把div 去掉
但刚才那段执行到后面就到 include_once template("space_thread_view"); 没有 用什么函数处理$thread['content']['message']     是在模板也处理吗,还是转到哪个看不到的地方了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-13 10:09 , Processed in 0.093875 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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