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

 找回密码
 立即注册
搜索

[求助] 回复时如何新增URL参数?

[复制链接]
iamatig 发表于 2015-6-2 23:02:02 | 显示全部楼层 |阅读模式
我给回复新增加了一个URL参数,不知道怎么写入数据库,已经:
一、在model_forum_post.php中
protected function _init_parameters($parameters) {下增加
$varname = array(
                        ..., 'DJID',
                );
  ...
}

$this->pid = insertpost(array(
                        ...
                        'DJID' => $DJID,
                ));
二、数据库中pre_forum_post增加 DJID 项,类型text,长度20

不知道还要做哪些修改

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-23 22:20 , Processed in 0.097468 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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