tedem/mybb-template-helper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tedem/mybb-template-helper

最新稳定版本:v1.0.0

Composer 安装命令:

composer require tedem/mybb-template-helper

包简介

A composer package to help you edit MyBB templates locally with your favorite code editor.

README 文档

README

A composer package to help you edit MyBB templates locally with your favorite code editor. You can use it to create a local copy of the MyBB templates, edit them, and compile them back to the original format.

Requirements

The requirements for this package to work are as follows:

  • MyBB: 1.8 or higher
  • PHP: 8.2 or higher

Installation

Install the package using Composer by running:

composer require tedem/mybb-template-helper --dev

Enjoy!

Usage

Create a new theme from the ACP or use the theme you have already created.

Attention: Remember to make a backup before use. For theme development only.

Download Templates Command:

./vendor/bin/mybb-template-helper -d "[THEME NAME HERE]"

Your theme must have a template set. If not, you can create one through the ACP. First, the core templates will be installed, and then if there are any modifications in your theme, those templates will be updated locally.

The downloaded templates will be listed in the .temp folder in the main directory of MyBB.

Upload Templates Command:

./vendor/bin/mybb-template-helper -u "[THEME NAME HERE]"

The update command will update the templates you have modified. If the modified template does not belong to your theme's template set, it will create a new template for your theme with the same name.

Upload Specific Templates Command:

# Only one template
./vendor/bin/mybb-template-helper -u "[THEME NAME HERE]" header

# Many templates
./vendor/bin/mybb-template-helper -u "[THEME NAME HERE]" header footer

Specifying a custom template will only load the template you have selected. No changes will be made to other templates.

Note: You need to run the command after each change. You can use looping software to automate it.

Contributing Guidelines

Please review our contributing guidelines to learn about our submission process, coding standards, and more.

Versioning

I use SemVer for versioning.

Authors

  • Medet Erdal - Initial work - tedem

License

MIT

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-10