xiuno4单页面插件分享-关于我们等独立页面制作方法 建站心得

已认证 已通过实名认证 xiuno
管理员
官方成员
2020-7-11 2148

采用插件机制:

新建目录和文件,假定插件名为 my_plugin:

plugin/
    my_plugin/
        conf.json (配置文件)
        icon.png (图标宽高:54*54)
        hook/
           index_route_case_end.php  (插入点,该插入点在 index.php)
        hello.php (你的业务逻辑文件)


conf.json 内容:

{
    "name":"我的第一个 Xiuno BBS 插件",
    "brief":"我的插件介绍。",
    "version":"1.0",
    "bbs_version":"4.0",
    "installed":0,
    "enable":0,
    "hooks_rank":[],
    "overwrites_rank":[],
    "dependencies":[]
}

index_route_case_end.php 内容:

case 'hello': include APP_PATH.'plugin/my_plugin/hello.php'; break;

hello.php 内容:

<?php
message(0, 'Hello, Plugin');
?>


资源下载(本站资源请使用电脑winrar进行解压!):

未登录提示:


关闭
他们喜欢这个资源
  • 刀哥
  • qweqweqwe321
  • 巡山
  • 驴仔阿
  • 柠七
  • lhqf1234
  • Memory
  • just1605
  • 顺其自然
  • fenge
  • kexia
  • xzw11111
  • aa
最新回复 (0)
    • Xiuno顶尖网
      2
        登陆 注册
  • aa
    2
     点击可以快捷回复 感谢 支持 不错 无奈 一般 生气 回帖 路过 顶帖
    表情
在线客服

特别说明

QQ客服仅提供有偿服务,如无付费意愿,请勿扰!一般问题请站内发帖咨询!
服务项目:
1,xiuno插件模板定制开发
2,xiuno网站BUG修复
3,xiuno个性化定制
4,xiuno仿站等

客服工作时间:8:00~22:00
在线客服