当前位置:网站首页>Zblog determines whether a plug-in installs the enabled built-in function code
Zblog determines whether a plug-in installs the enabled built-in function code
2022-06-24 16:48:00 【Shell house railing - Wenxi】
Development Zblog When the subject is , Occasionally, a function depends on a plug-in , such as , The image upload function relies on... For most themes Ueditor Editor , and Ueditor The editor is in ZBlog Is in the form of a plug-in , Can be deleted by the user , If it is deleted, the uploading function of the theme image will be affected , Therefore, you need to determine whether the plug-in is installed in the topic , To prompt the user to install or give different setting schemes .
Correlation function
zblog The function used to determine whether the plug-in is installed
$zbp->LoadApp('plugin', 'plugin ID')->isloadedZblog Function used to determine whether the plug-in is enabled in
$zbp->CheckPlugin('plugin ID')Tips :【plugin ID】 It can be found in the configuration file of the plug-in plugin.xml Found in , Such as UEditor Medium “UEditor” The plug-in ID.
Examples of use
1、 Judge UEditor Whether the editor plug-in is installed
if($zbp->LoadApp('plugin', 'UEditor')->isloaded){
echo 'UEditor Editor plug-in installed ';}
else{
echo 'UEditor The editor plug-in has not been installed ';}2、 Judge UEditor Whether the editor plug-in is enabled
if($zbp->CheckPlugin('UEditor')){
echo 'UEditor Editor plug-in enabled ';}
else{
echo 'UEditor The editor plug-in has not been enabled ';}Function position :zb_system/function/lib/zblogphp.php
边栏推荐
- How FEA and FEM work together
- Web page live broadcast on demand RTMP streaming platform easydss newly added virtual live broadcast support dash streaming function
- How does easydss, an online classroom / online medical live on demand platform, separate audio and video data?
- How to pop up an alarm through the national standard gb28181 protocol video platform easygbs for mobile detection / perimeter intrusion detection video recording
- Serial of H3CNE experiment column - spanning tree STP configuration experiment
- Serial of H3CNE experiment column - VLAN configuration experiment, access and trunk
- Factory mode
- zblog判断某个插件是否安装启用的内置函数代码
- Video structured intelligent analysis platform easycvr video recording plan function optimization / regularly delete expired videos
- What is browser fingerprint recognition?
猜你喜欢

Ps\ai and other design software pondering notes

Applet wxss

Problems encountered in the work of product manager

Ui- first lesson

Cognition and difference of service number, subscription number, applet and enterprise number (enterprise wechat)

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)

A survey of training on graphs: taxonomy, methods, and Applications

Applet - use of template

A survey on dynamic neural networks for natural language processing, University of California

A survey on model compression for natural language processing (NLP model compression overview)
随机推荐
主链系统发展解析
Saying "Dharma" Today: the little "secret" of paramter and localparam
Principle analysis of robot hardware in the loop system
Problems encountered in the work of product manager
How to use the national standard streaming media server to view the video stream of the surveillance camera? How to correctly use UDP and TCP protocols?
Go kit microservice integrates Promtheus to solve monitoring alarm problems
Page scrolling effect library, a little skinny
How to perform concurrent stress testing on RTSP video streams distributed by audio and video streaming servers?
Activeindex selection and redirection in the menu bar on the right of easycvs
Try catch finally implementation mechanism
06. Tencent cloud IOT device side learning - Introduction to basic functions
Coding's first closed door meeting on financial technology exchange was successfully held
Pageadmin CMS solution for redundant attachments in website construction
Release! Tencent IOA and Tencent sky screen were selected into the first batch of certified products of domestic digital trusted services
Percona Toolkit series - Pt deadlock logger
zblog系统如何根据用户ID获取用户相关信息的教程
[go] concurrent programming channel
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
Introduction to koa (IV) koa operation database
Modern finite element analysis can easily achieve accurate results