<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>紫电网站开发随笔 - 插件开发教程</title>
    <link>https://zi-dian.com/forum-46-1.html</link>
    <description>Latest 20 threads of 插件开发教程</description>
    <copyright>Copyright(C) 紫电网站开发随笔</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 11 Sep 2026 10:58:57 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://zi-dian.com/static/image/common/logo_88_31.gif</url>
      <title>紫电网站开发随笔</title>
      <link>https://zi-dian.com/</link>
    </image>
    <item>
      <title>在Discuz!X上实现模糊查询出现的问题及解决方法</title>
      <link>https://zi-dian.com/thread-29-1-1.html</link>
      <description><![CDATA[一般的SQL模糊查询语句为
但是查询语句执行后，利用浏览器的调试功能查看会看到错误警告：     Discuz! Database Error           (0) SQL string format error! This SQL need “4” vars to replace into.
           （SQL语句格式错误，该语句需要4个变量）出现的原 ...]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Fri, 17 May 2019 01:34:21 +0000</pubDate>
    </item>
    <item>
      <title>Discuz! X 搜索地址的拼接。</title>
      <link>https://zi-dian.com/thread-28-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Fri, 17 May 2019 01:27:19 +0000</pubDate>
    </item>
    <item>
      <title>Discuz!信息、提醒和私信发送函数sendpm()解析</title>
      <link>https://zi-dian.com/thread-16-1-1.html</link>
      <description><![CDATA[该函数用于发送短消息（包括私人消息、系统消息、提醒消息等）函数定义于：\\source\\function\\function_core.phphelper_pm::sendpm位于：\\source\\class\\helper\\helper_pm.php参数含义：$toid参数是接收短消息的用户UID；$subject参数是短消息的标题；$message参数是短消 ...]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Tue, 27 Nov 2018 07:33:41 +0000</pubDate>
    </item>
    <item>
      <title>Discuz!X/数据库 DB:: 函数操作方法</title>
      <link>https://zi-dian.com/thread-14-1-1.html</link>
      <description><![CDATA[DB::table($tablename)获取正确带前缀的表名，转换数据库句柄，
DB::delete($tablename, 条件,条数限制)删除表中的数据
DB::insert($tablename, 数据(数组),是否返回插入ID,是否是替换式,是否silent)插入数据操作
DB::update($tablename, 数据(数组)条件)更新操作
DB::f ...]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Tue, 16 Oct 2018 01:04:15 +0000</pubDate>
    </item>
    <item>
      <title>Discuz的showmessage()函数代码详解</title>
      <link>https://zi-dian.com/thread-9-1-1.html</link>
      <description><![CDATA[showmessage()函数存在于文件 source/function/function_core.php 中，

function showmessage($message, $url_forward = ”, $values = array(), $extraparam = array(), $custom = 0) {}




example:

showmessage(‘用户 ID {uid} 已经被占用’, ”, array(‘uid’  ...]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Mon, 17 Apr 2017 12:29:59 +0000</pubDate>
    </item>
    <item>
      <title>Discuz全局变量</title>
      <link>https://zi-dian.com/thread-7-1-1.html</link>
      <description><![CDATA[可以用上方代码直接打印出来查看，但是不要给其他人看，有重要信息。

$_G 保存了 Discuz! 中所有的预处理数据
缓存能够很好的提高程序的性能，一些配置数据没必要每次都查询数据库，只要在修改了的时候更新下缓存即可。
Discuz! 中所有的缓存保存在 $_G[cache] 中
$_G[ ...]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Fri, 31 Mar 2017 07:40:19 +0000</pubDate>
    </item>
    <item>
      <title>Discuz系统常量</title>
      <link>https://zi-dian.com/thread-5-1-1.html</link>
      <description><![CDATA[[*]DISCUZ_ROOT     //网站根目录
[*]TIMESTAMP          //程序执行的时间戳
[*]CHARSET             //程序的语言编码类型
[*]IS_ROBOT           //是否是机器访问
[*]FORMHASH          //HASH值


[*]其余的可直接打印出来查看



 ...]]></description>
      <category>插件开发教程</category>
      <author>admin</author>
      <pubDate>Wed, 29 Mar 2017 05:56:14 +0000</pubDate>
    </item>
  </channel>
</rss>