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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] DIY里面自己添加了变量,DIY时有数据,一保存就没有了

[复制链接]
lmymark 发表于 2018-1-5 13:46:47 | 显示全部楼层 |阅读模式
  1. function fields() {
  2.                 return array(
  3.                                         'id' => array('name' => lang('blockclass', 'blockclass_field_id'), 'formtype' => 'text', 'datatype' => 'int'),
  4.                                         'url' => array('name' => lang('blockclass', 'blockclass_thread_field_url'), 'formtype' => 'text', 'datatype' => 'string'),
  5.                                         'title' => array('name' => lang('blockclass', 'blockclass_thread_field_title'), 'formtype' => 'title', 'datatype' => 'title'),
  6.                                        
  7.                                         'ttt' => array('name' => lang('blockclass', 'blockclass_thread_field_title'), 'formtype' => 'title', 'datatype' => 'title'),//我自己添加的
复制代码
  1. while($data = DB::fetch($query)) {
  2.                         $_G['block_thread'][$data['tid']] = $data;
  3.                         if($style['getsummary']) {
  4.                                 $threadtids[$data['posttableid']][] = $data['tid'];
  5.                         }
  6.                         $listtids[$data['tid']] = $data['tid'];
  7.                         $list[$data['tid']] = array(
  8.                                 'id' => $data['tid'],
  9.                                 'idtype' => 'tid',
  10.                                 'title' => cutstr(str_replace('\\\'', ''', addslashes($data['subject'])), $titlelength, ''),
  11.                                
  12.                                 'ttt' => cutstr(str_replace('\\\'', ''', addslashes($data['subject'])), $titlelength, ''),//我自己添加的
复制代码
效果如下:
刚添加的时候是这样,有数据的

点击diy保存之后就没有了  如下图



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

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

本版积分规则

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

GMT+8, 2024-4-27 22:23 , Processed in 0.101178 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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